UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 03:33:36";
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE programsettings SET companyname = 'سنتر احمد العربي', address = 'ش الترعة البولاقيه - امام قسم شبرا - مول العتبه', specializtion = 'ملابس جملة', phone = '01064062900', faxnumber = '', email = '', website = '', logo = '4a754be7e82553f312ecf932e16cce7d.jpg', roundnumbers = '1', saveprinting = '1', deptprinting = '1', printingpapersize = '0', userid = '-1', showPreviousPrice = '0', parcode = '0', priceing = '0', lastprice = '0', searchvalue = '2',clientsearchvalue = '2', updateproductprice = '0', allowfinsldelete = '0', updateclientprice = '0', `partition` = '0', taxcard = '', commercialregistration = '', costcenter = '1', clinic = '1', workshop = '1', transport = '1', manufacturing = '1', masterCopy = '0' , dailyentrydate = '2020-04-18' ,updatefiledate = '2026-10-13',workerbetweenstores = '1',workshoptimeout = '24',drivertimeout = '3',currancy = 'جنيه',serial='57a85883346811cbf7076a51c5bd887a2e96bf2df777a95668d34a3537aceedfe3f238b684c96d789642405e6f69293dbb311716d957a5ac40fe5570cf297eaf',allowdateedit = '0', clientcode = '1' ,clientserial = '1',timezone = 'Africa/Cairo' , expiredate ='1' , production ='1' , description='1' , service ='0' , 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 = '0', isCafe = '0' ,isRestaurent = '0' ,productDays = '0',thereIsRestTax = '0',restTaxVal = '0',restPrintLang = '0',taxNameFlag = '0',parcodeDigits = '5' ,specializedParcodeDigits = '7', clientDefaultDebtLimit = '10000' , clientDefaultDebtLimitControl = '0',usedParcode = '1' ,productbycodeimage = '' ,commentClient='تعليق على العميل ',Inventoryevaluation='last_discount',Profitevaluation='last_discount' , delivery='0',premiums = '1',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 = ',0,0,0,',earlyrepayment = '0',visaPay = '0',headerPrint='38e56bc84e0c8adff190ee376e986bbd.png',headerPrintSand='',printSand='0',makeDailyEntry='1',clientShowTawla='0',billRest='1',suppIsClientToo='0',isCarBill='0',expensesproduct='1',projectshownew='1',showparcode='0',changeBuyPriceChangeSellInBuyBillCtrl = '0',changeBuyPriceChangeSellInProductCtrl = '0',inventoryvaluation = '1',showBillCollectionSearch='0',incomeclient='1',showserial='1',editservice='1',showCurrency='0',qrerp='1',valueadded='0',qrcodesh='0',printfoot='',sellorder='0',numberprint='0',valueaddedbuy='0',simpleAddClientInBill='0',licenseNo='',maintenance='0',showPrevDiscount='0',vatvalueqr='0.13043479',imgprinthide='0',parcodeprinttype = 'C128A',parcodeprintwidth='160',parcodeprinttextsize='14',parcodeprintCurr='',sizecolorDigits='3',searchBarcodeInBill='0',allowMobileLogin='0',lanAllowType='0',wanAllowType='0',sendBillToRestaurant='0',obgyPharmacyGroups='',updateProUnitPricesOnPriceUpdate='0',ebill='0',valueaddeddiscount='0',clientdetail='1',showPrevPricesRet='0',showPrevDiscountRet='0',eunitInTax='',showStoreToDetail='0',showBuyPriceAtProductddl='0',specialexpenses='1',ratioshow='0',defaultUnitPriceAtBill='0',rulers='0',quantitynew='0',showBillOperationSearch='0',obygyFolder='',clientsell='0',
                preorderperiod='0',useListPrice='0',ebillclient='0',importproduct='0',realestateunits='0',expensesupplier='0',changeOrderproduct='0',searchlimit='0',typebill='',roundnumbersbilltotal='0',noOfDecimalPlacesBillTotal='0',dailyEntryCostprice='last_discount',storeRecieveType='0',clientPhoneReq='0',addServiceToBill='0',realestatedev='1',showprice4='0',showprice5='0',showprice6='0',showprice7='0',showprice8='0',showpriceall='1',showpricehalf='1',showpriceunit='1',showbillstatus='0',showbilldeliverydate='0',enablequantityfractions='0',addclienttoproduct='0',closingcustomeraccount='0',serial2='',
                shownameE='0',showprocode='0',showpartnumber='0',showtype='0',showcompany='0',showweight='0',showorigin='0',showhscode='0',showexpire='0',showgrantduration='0',showonline='0',showminappear='0',showonlinecat='0',showsellpercentage='0',showbuydiscount='0',preparingStore='1',sellordername='0',showsearchfilter='0',unitPriceAtsalesreport='0',medExCat='0',laterNakdiClientId='0',headerPrint12Right='',headerPrint12Left='',halfPriceStart='0',allPriceStart='0',checkretsellclient='1',webApiId='0',noBillEditTillPay='0',showDataOfficialContract='0',showprice9='0',showprice10='0',showprice11='0',showprice12='0',showprice13='0',serial3='83b7fcbc8ec5f6680b38c85c5097af3b8f9e24beb34e300c92da2aed73200ef3508d6b04b93e1301b69bf990665657d386b98aa70faa9951dfc2289ed943c6cd',associatedtags='0',commentClientChasis='0',dollarExType='64',saudielectronicinvoice='0',saudielectronicinvoclient='0',productDiscount='0'
                ,reviewRecords='',reviewRecordsLastDate='0000-00-00',showepayrestaurant='0',showSellAllPriceInStoreDetail='0' WHERE programsettingsid = '1';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:29:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 08:59:15", deviceType = "DESKTOP" WHERE userid = 2;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 08:59:15', '2', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8891
UPDATE programsettings SET companyname = 'سنتر احمد العربي', address = 'ش الترعة البولاقيه - امام قسم شبرا - مول العتبه', specializtion = 'ملابس جملة', phone = '01064062900', faxnumber = '', email = '', website = '', logo = '4a754be7e82553f312ecf932e16cce7d.jpg', roundnumbers = '1', saveprinting = '1', deptprinting = '1', printingpapersize = '0', userid = '-1', showPreviousPrice = '0', parcode = '0', priceing = '0', lastprice = '0', searchvalue = '2',clientsearchvalue = '2', updateproductprice = '0', allowfinsldelete = '0', updateclientprice = '0', `partition` = '0', taxcard = '', commercialregistration = '', costcenter = '1', clinic = '1', workshop = '1', transport = '1', manufacturing = '1', masterCopy = '0' , dailyentrydate = '2020-04-18' ,updatefiledate = '2026-10-14',workerbetweenstores = '1',workshoptimeout = '24',drivertimeout = '3',currancy = 'جنيه',serial='57a85883346811cbf7076a51c5bd887a2e96bf2df777a95668d34a3537aceedfe3f238b684c96d789642405e6f69293dbb311716d957a5ac40fe5570cf297eaf',allowdateedit = '0', clientcode = '1' ,clientserial = '1',timezone = 'Africa/Cairo' , expiredate ='1' , production ='1' , description='1' , service ='0' , 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 = '0', isCafe = '0' ,isRestaurent = '0' ,productDays = '0',thereIsRestTax = '0',restTaxVal = '0',restPrintLang = '0',taxNameFlag = '0',parcodeDigits = '5' ,specializedParcodeDigits = '7', clientDefaultDebtLimit = '10000' , clientDefaultDebtLimitControl = '0',usedParcode = '1' ,productbycodeimage = '' ,commentClient='تعليق على العميل ',Inventoryevaluation='last_discount',Profitevaluation='last_discount' , delivery='0',premiums = '1',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 = ',0,0,0,',earlyrepayment = '0',visaPay = '0',headerPrint='38e56bc84e0c8adff190ee376e986bbd.png',headerPrintSand='',printSand='0',makeDailyEntry='1',clientShowTawla='0',billRest='1',suppIsClientToo='0',isCarBill='0',expensesproduct='1',projectshownew='1',showparcode='0',changeBuyPriceChangeSellInBuyBillCtrl = '0',changeBuyPriceChangeSellInProductCtrl = '0',inventoryvaluation = '1',showBillCollectionSearch='0',incomeclient='1',showserial='1',editservice='1',showCurrency='0',qrerp='1',valueadded='0',qrcodesh='0',printfoot='',sellorder='0',numberprint='0',valueaddedbuy='0',simpleAddClientInBill='0',licenseNo='',maintenance='0',showPrevDiscount='0',vatvalueqr='0.13043479',imgprinthide='0',parcodeprinttype = 'C128A',parcodeprintwidth='160',parcodeprinttextsize='14',parcodeprintCurr='',sizecolorDigits='3',searchBarcodeInBill='0',allowMobileLogin='0',lanAllowType='0',wanAllowType='0',sendBillToRestaurant='0',obgyPharmacyGroups='',updateProUnitPricesOnPriceUpdate='0',ebill='0',valueaddeddiscount='0',clientdetail='1',showPrevPricesRet='0',showPrevDiscountRet='0',eunitInTax='',showStoreToDetail='0',showBuyPriceAtProductddl='0',specialexpenses='1',ratioshow='0',defaultUnitPriceAtBill='0',rulers='0',quantitynew='0',showBillOperationSearch='0',obygyFolder='',clientsell='0',
                preorderperiod='0',useListPrice='0',ebillclient='0',importproduct='0',realestateunits='0',expensesupplier='0',changeOrderproduct='0',searchlimit='0',typebill='',roundnumbersbilltotal='0',noOfDecimalPlacesBillTotal='0',dailyEntryCostprice='last_discount',storeRecieveType='0',clientPhoneReq='0',addServiceToBill='0',realestatedev='1',showprice4='0',showprice5='0',showprice6='0',showprice7='0',showprice8='0',showpriceall='1',showpricehalf='1',showpriceunit='1',showbillstatus='0',showbilldeliverydate='0',enablequantityfractions='0',addclienttoproduct='0',closingcustomeraccount='0',serial2='',
                shownameE='0',showprocode='0',showpartnumber='0',showtype='0',showcompany='0',showweight='0',showorigin='0',showhscode='0',showexpire='0',showgrantduration='0',showonline='0',showminappear='0',showonlinecat='0',showsellpercentage='0',showbuydiscount='0',preparingStore='1',sellordername='0',showsearchfilter='0',unitPriceAtsalesreport='0',medExCat='0',laterNakdiClientId='0',headerPrint12Right='',headerPrint12Left='',halfPriceStart='0',allPriceStart='0',checkretsellclient='1',webApiId='0',noBillEditTillPay='0',showDataOfficialContract='0',showprice9='0',showprice10='0',showprice11='0',showprice12='0',showprice13='0',serial3='83b7fcbc8ec5f6680b38c85c5097af3b8f9e24beb34e300c92da2aed73200ef3508d6b04b93e1301b69bf990665657d386b98aa70faa9951dfc2289ed943c6cd',associatedtags='0',commentClientChasis='0',dollarExType='64',saudielectronicinvoice='0',saudielectronicinvoclient='0',productDiscount='0'
                ,reviewRecords='',reviewRecordsLastDate='0000-00-00',showepayrestaurant='0',showSellAllPriceInStoreDetail='0' WHERE programsettingsid = '1';
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 05:29:15";
UPDATE user SET loginip = "51.89.20.165", lastactivetime = "2026-10-14 08:59:15", deviceType = "DESKTOP" WHERE userid = 2;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 08:59:15', '2', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8892
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:29:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 08:59:42", deviceType = "DESKTOP" WHERE userid = 2;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 08:59:42', '2', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8893
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:30:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:00:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 09:00:14', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8894
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 05:30:15";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 09:00:15', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8895
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:31:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:01:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 09:01:03', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=8896
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:31:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:01:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 09:01:12', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=8897
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:33:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:03:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 09:03:56', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=8898
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:34:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:04:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 09:04:02', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=8899
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:34:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:04:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('returnBuyBillController.php', '2026-10-14 09:04:15', '1', 'details', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/returnBuyBillController.php?do=details&id=19'); -- id=8900
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:40:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:10:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 09:10:28', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=6'); -- id=8901
UPDATE productunit SET unitid = '1', productid = '767', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='375',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='355',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '767';
UPDATE product SET productName = 'الصخره 900', productDescription = '', productCatId = '10', productBuyPrice = '360', productSellAllPrice = '375', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09107',type ='0', expireDate = '0' , dailyentryId = '122',isService = '0',isOptic = '0',lastbuyprice = '355.00',lastbuyprice_withDiscount = '355',meanbuyprice = '355.00',meanbuyprice_withDiscount = '355' , productbuypricereal = '355' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='355',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9107',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='355',meanbuyprice_withTax='355',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='355',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '767';
UPDATE productunit SET unitid = '1', productid = '764', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='395',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='375',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '764';
UPDATE product SET productName = 'جينز 1565 الصخره', productDescription = '', productCatId = '10', productBuyPrice = '380', productSellAllPrice = '395', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '05207',type ='0', expireDate = '0' , dailyentryId = '119',isService = '0',isOptic = '0',lastbuyprice = '375.00',lastbuyprice_withDiscount = '375',meanbuyprice = '375.00',meanbuyprice_withDiscount = '375' , productbuypricereal = '375' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='375',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='5207',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='375',meanbuyprice_withTax='375',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='375',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '764';
UPDATE productunit SET unitid = '1', productid = '769', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='495',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='475',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '769';
UPDATE product SET productName = 'موديل 1564 الصخره', productDescription = '', productCatId = '10', productBuyPrice = '480', productSellAllPrice = '495', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09603',type ='0', expireDate = '0' , dailyentryId = '124',isService = '0',isOptic = '0',lastbuyprice = '475.00',lastbuyprice_withDiscount = '475',meanbuyprice = '475.00',meanbuyprice_withDiscount = '475' , productbuypricereal = '475' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='475',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9603',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='475',meanbuyprice_withTax='475',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='475',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '769';
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:45:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:15:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 09:15:31', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8902
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 05:45:32";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 09:15:32', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8903
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:45:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:15:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 09:15:37', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=8904
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:45:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:15:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientReportsController.php', '2026-10-14 09:15:47', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/clientReportsController.php'); -- id=8905
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:45:53";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:15:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientReportsController.php', '2026-10-14 09:15:53', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/clientReportsController.php?do=show'); -- id=8906
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:46:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:16:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 09:16:28', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8907
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 05:46:28";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 09:16:28', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8908
UPDATE productunit SET unitid = '1', productid = '766', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='425',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='405',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '766';
UPDATE product SET productName = 'الصخره 1556', productDescription = '', productCatId = '10', productBuyPrice = '410', productSellAllPrice = '425', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09106',type ='0', expireDate = '0' , dailyentryId = '121',isService = '0',isOptic = '0',lastbuyprice = '405.00',lastbuyprice_withDiscount = '405',meanbuyprice = '405.00',meanbuyprice_withDiscount = '405' , productbuypricereal = '405' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='405',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9106',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='405',meanbuyprice_withTax='405',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='405',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '766';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:49:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:19:02", deviceType = "DESKTOP" WHERE userid = 2;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:19:02', '2', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=8909

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf1a4eaf8c9
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 09:19:03', '06acf1a4eaf8c9', '1', '0.00', '0', '0', '1', '8160.00', '8160', '8160', '0', '1', '2026-10-14 09:19:03', '', '2', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '18' ,'0','','','','','-1','0','0','0','0','0','8160','0','','0','0','8160','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=496
UPDATE client SET  clientdebt = '0', userid = '2' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','496', '0', '2026-10-14 09:19:03', '2', 'sellbillController.php', 'اضافة فاتورة مبيعات', '8160', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 09:19:03','0','0','',''); -- id=641
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 936;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('358.8','01866', '496', '146', '1866', '6', '390', '2340', '0', '', '0', '2026-10-14 09:19:03', '1866', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','936-6,','1','1','0','0','390','2340','0','','0','0.00','0','0','0','0'); -- id=1706
UPDATE sellbilldetail SET  lastbuyprice = 390.00 , meanbuyprice = 390.00, lastbuyprice_withDiscount = 358.80, meanbuyprice_withDiscount = 374.40
        , lastbuyprice_withTax = 390, meanbuyprice_withTax = 195, lastbuyprice_withDiscountAndTax = 358.8
                where sellbilldetailid = 1706;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1866, '2026-10-14', 2340, 2340, 2340
                    , 2340, 2152.8, 2246.4, 2152.8
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2340, 1170, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2340, sellCostBuyPrice =sellCostBuyPrice+2340
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2340, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2340
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2152.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2246.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2152.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2340
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1170
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2340, 2340, 2340
                    , 2340, 2152.8, 2246.4, 2152.8
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2340, 1170, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2340, sellCostBuyPrice =sellCostBuyPrice+2340
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2340, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2340
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2152.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2246.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2152.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2340
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1170
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '18', userid = '2', storedetaildate = '2026-10-14 09:19:03' WHERE storedetailid = '2883';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1866', '1', '6', '1', '496', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '18', '2', '2026-10-14 09:19:03','0','0'); -- id=5193
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '496', '153', '1921', '12', '485', '5820', '0', '', '0', '2026-10-14 09:19:03', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-12,','1','1','0','0','485','5820','0','','0','0.00','0','0','0','0'); -- id=1707
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1707;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 5820, 5520, 5520
                    , 5520, 5520, 5520, 5520
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 5520, 5520, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5820, sellCostBuyPrice =sellCostBuyPrice+5520
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5520, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5520
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5520, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5520
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5520
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5520
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5520
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5820, 5520, 5520
                    , 5520, 5520, 5520, 5520
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5520, 5520, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5820, sellCostBuyPrice =sellCostBuyPrice+5520
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5520, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5520
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5520, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5520
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5520
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5520
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5520
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '285', userid = '2', storedetaildate = '2026-10-14 09:19:03' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '12', '1', '496', 'اضافة فاتورة مبيعات', 'sellbillController.php', '297', '285', '2', '2026-10-14 09:19:03','0','0'); -- id=5194
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '2876370',  userid = '2' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('2868210','8160', '0', '2', 'اضافة فاتورة مبيعات', '496', '2876370', '2026-10-14 09:19:03', '2',  'sellbillController.php','1','','0'); -- id=633
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '8160', '8160', '2026-10-14', '2', '0', '0', '2026-10-14 09:19:03','اضافة فاتورة مبيعات رقم 496','1','0',null,'0','496','sellbillController.php?do=showDetail&sellbillid=496'); -- id=2317
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2317', '419', '8160', '','0'); -- id=2364
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '2876370', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2317', '143', '8160', '','0'); -- id=2319
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '4982500', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '7672.8', '7672.8', '2026-10-14', '2', '0', '0', '2026-10-14 09:19:03','اضافة فاتورة مبيعات رقم 496 - صرف البضاعة من المخزن','1','0',null,'0','496','sellbillController.php?do=showDetail&sellbillid=496'); -- id=2318
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2318', '402', '7672.8', '','0'); -- id=2365
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '4654246.94', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2318', '382', '7672.8', '','0'); -- id=2320
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21770473.36', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2317,0,2318' where sellbillid=496;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 8160, 7860, 7860
                    , 7860, 7672.8, 7766.4, 7672.8
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,7860, 6690, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8160, sellCostBuyPrice =sellCostBuyPrice+7860
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7860, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7860
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7672.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7766.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7672.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7860
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6690
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 8160, 7860, 7860
                    , 7860, 7672.8, 7766.4, 7672.8
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,7860, 6690, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8160, sellCostBuyPrice =sellCostBuyPrice+7860
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7860, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7860
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7672.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7766.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7672.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7860
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6690
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 8160, 7860, 7860
                    , 7860, 7672.8, 7766.4, 7672.8, 7860, 6690)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+8160, netSellCostBuyPrice = netSellCostBuyPrice+7860
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+7860
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+7860
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+7672.8
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+7766.4
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+7672.8
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+7860
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+6690;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf1a4eaf8c9 and sellbillId = 496 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE productunit SET unitid = '1', productid = '768', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='375',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='355',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '768';
UPDATE product SET productName = 'الصخره 1517', productDescription = '', productCatId = '10', productBuyPrice = '360', productSellAllPrice = '375', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09108',type ='0', expireDate = '0' , dailyentryId = '123',isService = '0',isOptic = '0',lastbuyprice = '355.00',lastbuyprice_withDiscount = '355',meanbuyprice = '355.00',meanbuyprice_withDiscount = '355' , productbuypricereal = '355' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='355',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9108',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='355',meanbuyprice_withTax='355',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='355',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '768';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:49:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:19:03", deviceType = "DESKTOP" WHERE userid = 2;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:19:03', '2', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8910
UPDATE productunit SET unitid = '1', productid = '765', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='410',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='390',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '765';
UPDATE product SET productName = 'الصخره 1552', productDescription = '', productCatId = '10', productBuyPrice = '395', productSellAllPrice = '410', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09105',type ='0', expireDate = '0' , dailyentryId = '120',isService = '0',isOptic = '0',lastbuyprice = '390.00',lastbuyprice_withDiscount = '390',meanbuyprice = '390.00',meanbuyprice_withDiscount = '390' , productbuypricereal = '390' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='390',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9105',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='390',meanbuyprice_withTax='390',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='390',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '765';
UPDATE productunit SET unitid = '1', productid = '763', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='415',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='395',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '763';
UPDATE product SET productName = 'الصخره كود 1567', productDescription = '', productCatId = '10', productBuyPrice = '400', productSellAllPrice = '415', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '05101',type ='0', expireDate = '0' , dailyentryId = '118',isService = '0',isOptic = '0',lastbuyprice = '395.00',lastbuyprice_withDiscount = '395',meanbuyprice = '395.00',meanbuyprice_withDiscount = '395' , productbuypricereal = '395' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='5101',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='395',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='395',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '763';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:51:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:21:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 09:21:10', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=8911
BEGIN;
INSERT INTO returnbuybill (returnbuybillSerial, returnbuybilldate, returnbuybillsupplierid, returnbuybilltotaldeptbefor, returnbuybilltotaldeptafter, returnbuybilldiscount, returnbuybilldiscountrype, returnbuybilltotalbill, returnbuybillaftertotalbill, returnbuybilltotalpayed, returnbuybillfinalbill, returnbuybillstoreid, returnbuybillsysdate,comment, userid, conditions, returnbuybillclientname, returnbuybillsaveid, billnameid, returnbuybilldirectpayment,payedtax,costcenterid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,client,returnbuybilladdition,returnbuybilladditiontrype) VALUES ('06acf1cd429093', '2026-10-14 09:10:28', '37', '546030.00', '334430', '0', '0', '-211600.00', '-211600.00', '0', '-211600', '1', '2026-10-14 09:21:10', '', '1', '0', '', '1', '6','1','0.00','-1','0','1','0','0','0','0','0'); -- id=20
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09107', '20', '10', '767', '35', '360', '12600', '0', '', '767','','','0','0','0','0','0','360','12600','0','0','0','0','0','0','0','1'); -- id=76
UPDATE product SET productName = 'الصخره 900', productDescription = '', productCatId = '10', productBuyPrice = '360.00', productSellAllPrice = '375.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09107',type ='0', expireDate = '0' , dailyentryId = '122',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '360',meanbuyprice = '267.5',meanbuyprice_withDiscount = '267.5' , productbuypricereal = '355.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='355',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9107',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='267.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '767';
UPDATE returnbuybilldetail SET  lastbuyprice = 360 , meanbuyprice = 267.5, lastbuyprice_withDiscount = 360, meanbuyprice_withDiscount = 267.5
        , lastbuyprice_withTax = 360, meanbuyprice_withTax = 267.5, lastbuyprice_withDiscountAndTax = 360
                where returnbuybilldetailid = 76;
UPDATE productunit SET proUnitBuyPrice  = 360 * productnumber WHERE productid = 767;
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '767';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('767', '1', '35', '1', '20', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '37', '2', '1', '2026-10-14 09:10:28','0','0'); -- id=5195
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('05207', '20', '10', '764', '60', '380', '22800', '0', '', '764','','','0','0','0','0','0','380','22800','0','0','0','0','0','0','0','1'); -- id=77
UPDATE product SET productName = 'جينز 1565 الصخره', productDescription = '', productCatId = '10', productBuyPrice = '380.00', productSellAllPrice = '395.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '05207',type ='0', expireDate = '0' , dailyentryId = '119',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '380',meanbuyprice = '380.00',meanbuyprice_withDiscount = '380' , productbuypricereal = '375.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='375',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='5207',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '764';
UPDATE returnbuybilldetail SET  lastbuyprice = 380 , meanbuyprice = 380.00, lastbuyprice_withDiscount = 380, meanbuyprice_withDiscount = 380.00
        , lastbuyprice_withTax = 380, lastbuyprice_withDiscountAndTax = 380
                where returnbuybilldetailid = 77;
UPDATE productunit SET proUnitBuyPrice  = 380 * productnumber WHERE productid = 764;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '764';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('764', '1', '60', '1', '20', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '60', '0', '1', '2026-10-14 09:10:28','0','0'); -- id=5196
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09603', '20', '10', '769', '70', '480', '33600', '0', '', '769','','','0','0','0','0','0','480','33600','0','0','0','0','0','0','0','1'); -- id=78
UPDATE product SET productName = 'موديل 1564 الصخره', productDescription = '', productCatId = '10', productBuyPrice = '480.00', productSellAllPrice = '495.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09603',type ='0', expireDate = '0' , dailyentryId = '124',isService = '0',isOptic = '0',lastbuyprice = '480',lastbuyprice_withDiscount = '480',meanbuyprice = '825',meanbuyprice_withDiscount = '825' , productbuypricereal = '475.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='475',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9603',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='480',meanbuyprice_withTax='825',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='480',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '769';
UPDATE returnbuybilldetail SET  lastbuyprice = 480 , meanbuyprice = 825, lastbuyprice_withDiscount = 480, meanbuyprice_withDiscount = 825
        , lastbuyprice_withTax = 480, meanbuyprice_withTax = 825, lastbuyprice_withDiscountAndTax = 480
                where returnbuybilldetailid = 78;
UPDATE productunit SET proUnitBuyPrice  = 480 * productnumber WHERE productid = 769;
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '769';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('769', '1', '70', '1', '20', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '69', '-1', '1', '2026-10-14 09:10:28','0','0'); -- id=5197
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09106', '20', '10', '766', '70', '410', '28700', '0', '', '766','','','0','0','0','0','0','410','28700','0','0','0','0','0','0','0','1'); -- id=79
UPDATE product SET productName = 'الصخره 1556', productDescription = '', productCatId = '10', productBuyPrice = '410.00', productSellAllPrice = '425.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09106',type ='0', expireDate = '0' , dailyentryId = '121',isService = '0',isOptic = '0',lastbuyprice = '410',lastbuyprice_withDiscount = '410',meanbuyprice = '381.67',meanbuyprice_withDiscount = '381.67' , productbuypricereal = '405.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='405',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9106',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='381.67',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '766';
UPDATE returnbuybilldetail SET  lastbuyprice = 410 , meanbuyprice = 381.67, lastbuyprice_withDiscount = 410, meanbuyprice_withDiscount = 381.67
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 381.67, lastbuyprice_withDiscountAndTax = 410
                where returnbuybilldetailid = 79;
UPDATE productunit SET proUnitBuyPrice  = 410 * productnumber WHERE productid = 766;
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '766';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('766', '1', '70', '1', '20', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '85', '15', '1', '2026-10-14 09:10:28','0','0'); -- id=5198
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09108', '20', '10', '768', '75', '360', '27000', '0', '', '768','','','0','0','0','0','0','360','27000','0','0','0','0','0','0','0','1'); -- id=80
UPDATE product SET productName = 'الصخره 1517', productDescription = '', productCatId = '10', productBuyPrice = '360.00', productSellAllPrice = '375.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09108',type ='0', expireDate = '0' , dailyentryId = '123',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '360',meanbuyprice = '730',meanbuyprice_withDiscount = '730' , productbuypricereal = '355.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='355',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9108',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='730',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '768';
UPDATE returnbuybilldetail SET  lastbuyprice = 360 , meanbuyprice = 730, lastbuyprice_withDiscount = 360, meanbuyprice_withDiscount = 730
        , lastbuyprice_withTax = 360, meanbuyprice_withTax = 730, lastbuyprice_withDiscountAndTax = 360
                where returnbuybilldetailid = 80;
UPDATE productunit SET proUnitBuyPrice  = 360 * productnumber WHERE productid = 768;
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '768';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('768', '1', '75', '1', '20', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '74', '-1', '1', '2026-10-14 09:10:28','0','0'); -- id=5199
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09105', '20', '10', '765', '80', '395', '31600', '0', '', '765','','','0','0','0','0','0','395','31600','0','0','0','0','0','0','0','1'); -- id=81
UPDATE product SET productName = 'الصخره 1552', productDescription = '', productCatId = '10', productBuyPrice = '395.00', productSellAllPrice = '410.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09105',type ='0', expireDate = '0' , dailyentryId = '120',isService = '0',isOptic = '0',lastbuyprice = '395',lastbuyprice_withDiscount = '395',meanbuyprice = '382',meanbuyprice_withDiscount = '382' , productbuypricereal = '390.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='390',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9105',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='382',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='395',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '765';
UPDATE returnbuybilldetail SET  lastbuyprice = 395 , meanbuyprice = 382, lastbuyprice_withDiscount = 395, meanbuyprice_withDiscount = 382
        , lastbuyprice_withTax = 395, meanbuyprice_withTax = 382, lastbuyprice_withDiscountAndTax = 395
                where returnbuybilldetailid = 81;
UPDATE productunit SET proUnitBuyPrice  = 395 * productnumber WHERE productid = 765;
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '765';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('765', '1', '80', '1', '20', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '130', '50', '1', '2026-10-14 09:10:28','0','0'); -- id=5200
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09105', '20', '10', '765', '70', '390', '27300', '0', '', '765','','','0','0','0','0','0','390','27300','0','0','0','0','0','0','0','1'); -- id=82
UPDATE product SET productName = 'الصخره 1552', productDescription = '', productCatId = '10', productBuyPrice = '395.00', productSellAllPrice = '410.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09105',type ='0', expireDate = '0' , dailyentryId = '120',isService = '0',isOptic = '0',lastbuyprice = '390',lastbuyprice_withDiscount = '390',meanbuyprice = '372.67',meanbuyprice_withDiscount = '372.67' , productbuypricereal = '390.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='390',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9105',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='390',meanbuyprice_withTax='372.67',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='390',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '765';
UPDATE returnbuybilldetail SET  lastbuyprice = 390 , meanbuyprice = 372.67, lastbuyprice_withDiscount = 390, meanbuyprice_withDiscount = 372.67
        , lastbuyprice_withTax = 390, meanbuyprice_withTax = 372.67, lastbuyprice_withDiscountAndTax = 390
                where returnbuybilldetailid = 82;
UPDATE productunit SET proUnitBuyPrice  = 390 * productnumber WHERE productid = 765;
UPDATE storedetail SET  productquantity = '-20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '765';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('765', '1', '70', '1', '20', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '50', '-20', '1', '2026-10-14 09:10:28','0','0'); -- id=5201
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('05101', '20', '10', '763', '70', '400', '28000', '0', '', '763','','','0','0','0','0','0','400','28000','0','0','0','0','0','0','0','1'); -- id=83
UPDATE product SET productName = 'الصخره كود 1567', productDescription = '', productCatId = '10', productBuyPrice = '400.00', productSellAllPrice = '415.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '05101',type ='0', expireDate = '0' , dailyentryId = '118',isService = '0',isOptic = '0',lastbuyprice = '400',lastbuyprice_withDiscount = '400',meanbuyprice = '400.00',meanbuyprice_withDiscount = '400' , productbuypricereal = '395.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='5101',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='400',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='400',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '763';
UPDATE returnbuybilldetail SET  lastbuyprice = 400 , meanbuyprice = 400.00, lastbuyprice_withDiscount = 400, meanbuyprice_withDiscount = 400.00
        , lastbuyprice_withTax = 400, lastbuyprice_withDiscountAndTax = 400
                where returnbuybilldetailid = 83;
UPDATE productunit SET proUnitBuyPrice  = 400 * productnumber WHERE productid = 763;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '763';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('763', '1', '70', '1', '20', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '70', '0', '1', '2026-10-14 09:10:28','0','0'); -- id=5202
UPDATE supplier SET  suppliercurrentDebt = '34590',suppliercurrentDebtInCurrency= '334430' , userid = '1', supplierdate = '2026-10-14 09:21:10'   WHERE supplierid = '37';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('37', '246190.00', '211600', '1', 'اضافة فاتورة مردوات مشتريات', '20', '34590', '2026-10-14 09:10:28', '1', 'returnBuyBillController.php', 'اضافة فاتورة مردوات مشتريات', '0','', '0','1','1','211600','1','546030','211600','334430','0',''); -- id=460
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '211600', '211600', '2026-10-14', '1', '0', '0', '2026-10-14 09:21:10','اضافة فاتورة مردود مشتريات رقم 20','1','0',null,'0','20','returnBuyBillController.php?do=details&id=20'); -- id=2319
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2319', '456', '211600', '','0'); -- id=2366
UPDATE accountstree SET name = 'الصخرة - مورد', customName = 'الصخرة - مورد', customNameEn = 'الصخرة - مورد', nameEn = 'الصخرة - مورد', parent = '81', accountNature = '1', theValue = '-211600', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '456';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2319', '382', '211600', '','0'); -- id=2321
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21558873.36', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update returnbuybill set dailyentryid='2319,0' where returnbuybillid=20;
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:51:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:21:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('returnBuyBillController.php', '2026-10-14 09:21:10', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/returnBuyBillController.php?do=editprint&id=20'); -- id=8912
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:51:27";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:21:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 09:21:27', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=8913
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:51:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:21:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 09:21:35', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=8914
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:53:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:23:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 09:23:54', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=6'); -- id=8915
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:56:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:26:15", deviceType = "DESKTOP" WHERE userid = 2;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:26:15', '2', 'showDetail', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=showDetail&sellbillid=496'); -- id=8916
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:56:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:26:30", deviceType = "DESKTOP" WHERE userid = 2;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:26:30', '2', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8917
UPDATE productunit SET unitid = '1', productid = '1115', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='380',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='360',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1115';
UPDATE product SET productName = 'نيوسكاي تقطيع 251', productDescription = '', productCatId = '39', productBuyPrice = '355', productSellAllPrice = '380', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '77908',type ='0', expireDate = '0' , dailyentryId = '470',isService = '0',isOptic = '0',lastbuyprice = '360.00',lastbuyprice_withDiscount = '360',meanbuyprice = '360.00',meanbuyprice_withDiscount = '360' , productbuypricereal = '360' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='77908',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1115';
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:57:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:27:54", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 09:27:55', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8918
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 05:57:55";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 09:27:55', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8919
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:58:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:28:01", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:28:01', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8920
UPDATE productunit SET unitid = '1', productid = '1114', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='405',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='385',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1114';
UPDATE product SET productName = 'موديل يور ستار 405', productDescription = '', productCatId = '39', productBuyPrice = '380', productSellAllPrice = '405', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '07255',type ='0', expireDate = '0' , dailyentryId = '469',isService = '0',isOptic = '0',lastbuyprice = '385.00',lastbuyprice_withDiscount = '385',meanbuyprice = '385.00',meanbuyprice_withDiscount = '385' , productbuypricereal = '385' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='7255',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='385',meanbuyprice_withTax='385',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='385',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1114';
UPDATE productunit SET unitid = '1', productid = '1112', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='405',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='385',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1112';
UPDATE product SET productName = 'تطريز م 210 يورو ستار', productDescription = '', productCatId = '39', productBuyPrice = '385', productSellAllPrice = '405', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04953',type ='0', expireDate = '0' , dailyentryId = '467',isService = '0',isOptic = '0',lastbuyprice = '385.00',lastbuyprice_withDiscount = '385',meanbuyprice = '385.00',meanbuyprice_withDiscount = '385' , productbuypricereal = '385' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4953',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='385',meanbuyprice_withTax='385',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='385',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1112';
UPDATE productunit SET unitid = '1', productid = '1112', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='405',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='385',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1112';
UPDATE product SET productName = 'تطريز م 210 يورو ستار', productDescription = '', productCatId = '39', productBuyPrice = '385', productSellAllPrice = '405', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04953',type ='0', expireDate = '0' , dailyentryId = '467',isService = '0',isOptic = '0',lastbuyprice = '385.00',lastbuyprice_withDiscount = '385',meanbuyprice = '385.00',meanbuyprice_withDiscount = '385' , productbuypricereal = '385' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4953',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='385',meanbuyprice_withTax='385',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='385',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1112';
UPDATE productunit SET unitid = '1', productid = '1112', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='405',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='385',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1112';
UPDATE product SET productName = 'تطريز م 210 يورو ستار', productDescription = '', productCatId = '39', productBuyPrice = '380', productSellAllPrice = '405', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04953',type ='0', expireDate = '0' , dailyentryId = '467',isService = '0',isOptic = '0',lastbuyprice = '385.00',lastbuyprice_withDiscount = '385',meanbuyprice = '385.00',meanbuyprice_withDiscount = '385' , productbuypricereal = '385' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4953',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='385',meanbuyprice_withTax='385',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='385',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1112';
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:59:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:29:39", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 09:29:39', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8921
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 05:59:39";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 09:29:39', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8922
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 05:59:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:29:45", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:29:45', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8923
UPDATE productunit SET unitid = '1', productid = '1110', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='415',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='395',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1110';
UPDATE product SET productName = 'كفراج م 205 يورو ستار', productDescription = '', productCatId = '39', productBuyPrice = '390', productSellAllPrice = '415', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04952',type ='0', expireDate = '0' , dailyentryId = '465',isService = '0',isOptic = '0',lastbuyprice = '395.00',lastbuyprice_withDiscount = '395',meanbuyprice = '395.00',meanbuyprice_withDiscount = '395' , productbuypricereal = '395' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4952',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='395',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='395',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1110';
UPDATE productunit SET unitid = '1', productid = '1117', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='400',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='380',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1117';
UPDATE product SET productName = 'موديل 247', productDescription = '', productCatId = '39', productBuyPrice = '375', productSellAllPrice = '400', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09242',type ='0', expireDate = '0' , dailyentryId = '472',isService = '0',isOptic = '0',lastbuyprice = '380.00',lastbuyprice_withDiscount = '380',meanbuyprice = '380.00',meanbuyprice_withDiscount = '380' , productbuypricereal = '380' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9242',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='380',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1117';
UPDATE productunit SET unitid = '1', productid = '1118', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='400',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='380',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1118';
UPDATE product SET productName = 'موديل 248 ستار', productDescription = '', productCatId = '39', productBuyPrice = '380', productSellAllPrice = '400', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09243',type ='0', expireDate = '0' , dailyentryId = '473',isService = '0',isOptic = '0',lastbuyprice = '380.00',lastbuyprice_withDiscount = '380',meanbuyprice = '380.00',meanbuyprice_withDiscount = '380' , productbuypricereal = '380' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9243',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='380',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1118';
UPDATE productunit SET unitid = '1', productid = '1118', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='400',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='380',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1118';
UPDATE product SET productName = 'موديل 248 ستار', productDescription = '', productCatId = '39', productBuyPrice = '375', productSellAllPrice = '400', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09243',type ='0', expireDate = '0' , dailyentryId = '473',isService = '0',isOptic = '0',lastbuyprice = '380.00',lastbuyprice_withDiscount = '380',meanbuyprice = '380.00',meanbuyprice_withDiscount = '380' , productbuypricereal = '380' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9243',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='380',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1118';
UPDATE productunit SET unitid = '1', productid = '1111', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='385',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='365',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1111';
UPDATE product SET productName = 'توجي ديزل م 222 يورو ستار', productDescription = '', productCatId = '39', productBuyPrice = '365', productSellAllPrice = '385', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04948',type ='0', expireDate = '0' , dailyentryId = '466',isService = '0',isOptic = '0',lastbuyprice = '365.00',lastbuyprice_withDiscount = '365',meanbuyprice = '365.00',meanbuyprice_withDiscount = '365' , productbuypricereal = '365' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4948',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='365',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1111';
UPDATE productunit SET unitid = '1', productid = '1111', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='385',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='365',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1111';
UPDATE product SET productName = 'توجي ديزل م 222 يورو ستار', productDescription = '', productCatId = '39', productBuyPrice = '360', productSellAllPrice = '385', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04948',type ='0', expireDate = '0' , dailyentryId = '466',isService = '0',isOptic = '0',lastbuyprice = '365.00',lastbuyprice_withDiscount = '365',meanbuyprice = '365.00',meanbuyprice_withDiscount = '365' , productbuypricereal = '365' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4948',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='365',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1111';
UPDATE productunit SET unitid = '1', productid = '1114', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='405',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='385',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1114';
UPDATE product SET productName = 'موديل يور ستار 405', productDescription = '', productCatId = '39', productBuyPrice = '380', productSellAllPrice = '405', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '07255',type ='0', expireDate = '0' , dailyentryId = '469',isService = '0',isOptic = '0',lastbuyprice = '385.00',lastbuyprice_withDiscount = '385',meanbuyprice = '385.00',meanbuyprice_withDiscount = '385' , productbuypricereal = '385' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='7255',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='385',meanbuyprice_withTax='385',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='385',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1114';
UPDATE productunit SET unitid = '1', productid = '1119', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='400',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='380',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1119';
UPDATE product SET productName = 'موديل 249 يورو استار', productDescription = '', productCatId = '39', productBuyPrice = '375', productSellAllPrice = '400', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09245',type ='0', expireDate = '0' , dailyentryId = '474',isService = '0',isOptic = '0',lastbuyprice = '380.00',lastbuyprice_withDiscount = '380',meanbuyprice = '380.00',meanbuyprice_withDiscount = '380' , productbuypricereal = '380' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9245',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='380',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1119';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:02:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:32:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 09:32:44', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=8924
BEGIN;
INSERT INTO returnbuybill (returnbuybillSerial, returnbuybilldate, returnbuybillsupplierid, returnbuybilltotaldeptbefor, returnbuybilltotaldeptafter, returnbuybilldiscount, returnbuybilldiscountrype, returnbuybilltotalbill, returnbuybillaftertotalbill, returnbuybilltotalpayed, returnbuybillfinalbill, returnbuybillstoreid, returnbuybillsysdate,comment, userid, conditions, returnbuybillclientname, returnbuybillsaveid, billnameid, returnbuybilldirectpayment,payedtax,costcenterid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,client,returnbuybilladdition,returnbuybilladditiontrype) VALUES ('06acf1ffad8dd3', '2026-10-14 09:23:54', '63', '654905.00', '446590', '0', '0', '-208315.00', '-208315.00', '0', '-208315', '1', '2026-10-14 09:32:45', '', '1', '0', '', '1', '6','1','0.00','-1','0','1','0','0','0','0','0'); -- id=21
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('77908', '21', '39', '1115', '39', '355', '13845', '0', '', '1115','','','0','0','0','0','0','355','13845','0','0','0','0','0','0','0','1'); -- id=84
UPDATE product SET productName = 'نيوسكاي تقطيع 251', productDescription = '', productCatId = '39', productBuyPrice = '355.00', productSellAllPrice = '380.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '77908',type ='0', expireDate = '0' , dailyentryId = '470',isService = '0',isOptic = '0',lastbuyprice = '355',lastbuyprice_withDiscount = '355',meanbuyprice = '355.00',meanbuyprice_withDiscount = '355' , productbuypricereal = '360.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='77908',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='355',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='355',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1115';
UPDATE returnbuybilldetail SET  lastbuyprice = 355 , meanbuyprice = 355.00, lastbuyprice_withDiscount = 355, meanbuyprice_withDiscount = 355.00
        , lastbuyprice_withTax = 355, lastbuyprice_withDiscountAndTax = 355
                where returnbuybilldetailid = 84;
UPDATE productunit SET proUnitBuyPrice  = 355 * productnumber WHERE productid = 1115;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1115';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1115', '1', '39', '1', '21', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '39', '0', '1', '2026-10-14 09:23:54','0','0'); -- id=5203
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('07255', '21', '39', '1114', '49', '380', '18620', '0', '', '1114','','','0','0','0','0','0','380','18620','0','0','0','0','0','0','0','1'); -- id=85
UPDATE product SET productName = 'موديل يور ستار 405', productDescription = '', productCatId = '39', productBuyPrice = '380.00', productSellAllPrice = '405.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '07255',type ='0', expireDate = '0' , dailyentryId = '469',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '380',meanbuyprice = '386.96',meanbuyprice_withDiscount = '386.96' , productbuypricereal = '385.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='7255',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='386.96',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1114';
UPDATE returnbuybilldetail SET  lastbuyprice = 380 , meanbuyprice = 386.96, lastbuyprice_withDiscount = 380, meanbuyprice_withDiscount = 386.96
        , lastbuyprice_withTax = 380, meanbuyprice_withTax = 386.96, lastbuyprice_withDiscountAndTax = 380
                where returnbuybilldetailid = 85;
UPDATE productunit SET proUnitBuyPrice  = 380 * productnumber WHERE productid = 1114;
UPDATE storedetail SET  productquantity = '125', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1114';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1114', '1', '49', '1', '21', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '174', '125', '1', '2026-10-14 09:23:54','0','0'); -- id=5204
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('08065', '21', '39', '1116', '47', '350', '16450', '0', '', '1116','','','0','0','0','0','0','350','16450','0','0','0','0','0','0','0','1'); -- id=86
UPDATE product SET productName = 'نيوسكاي تطريز 252', productDescription = '', productCatId = '39', productBuyPrice = '355.00', productSellAllPrice = '375.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '08065',type ='0', expireDate = '0' , dailyentryId = '471',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '350',meanbuyprice = '355.00',meanbuyprice_withDiscount = '355' , productbuypricereal = '355.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='355',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='8065',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='350',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1116';
UPDATE returnbuybilldetail SET  lastbuyprice = 350 , meanbuyprice = 355.00, lastbuyprice_withDiscount = 350, meanbuyprice_withDiscount = 355.00
        , lastbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 350
                where returnbuybilldetailid = 86;
UPDATE productunit SET proUnitBuyPrice  = 350 * productnumber WHERE productid = 1116;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1116';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1116', '1', '47', '1', '21', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '47', '0', '1', '2026-10-14 09:23:54','0','0'); -- id=5205
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('04953', '21', '39', '1112', '12', '380', '4560', '0', '', '1112','','','0','0','0','0','0','380','4560','0','0','0','0','0','0','0','1'); -- id=87
UPDATE product SET productName = 'تطريز م 210 يورو ستار', productDescription = '', productCatId = '39', productBuyPrice = '380.00', productSellAllPrice = '405.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04953',type ='0', expireDate = '0' , dailyentryId = '467',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '380',meanbuyprice = '445',meanbuyprice_withDiscount = '445' , productbuypricereal = '385.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4953',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='445',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1112';
UPDATE returnbuybilldetail SET  lastbuyprice = 380 , meanbuyprice = 445, lastbuyprice_withDiscount = 380, meanbuyprice_withDiscount = 445
        , lastbuyprice_withTax = 380, meanbuyprice_withTax = 445, lastbuyprice_withDiscountAndTax = 380
                where returnbuybilldetailid = 87;
UPDATE productunit SET proUnitBuyPrice  = 380 * productnumber WHERE productid = 1112;
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1112';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1112', '1', '12', '1', '21', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '13', '1', '1', '2026-10-14 09:23:54','0','0'); -- id=5206
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('04952', '21', '39', '1110', '24', '390', '9360', '0', '', '1110','','','0','0','0','0','0','390','9360','0','0','0','0','0','0','0','1'); -- id=88
UPDATE product SET productName = 'كفراج م 205 يورو ستار', productDescription = '', productCatId = '39', productBuyPrice = '390.00', productSellAllPrice = '415.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04952',type ='0', expireDate = '0' , dailyentryId = '465',isService = '0',isOptic = '0',lastbuyprice = '390',lastbuyprice_withDiscount = '390',meanbuyprice = '390.00',meanbuyprice_withDiscount = '390' , productbuypricereal = '395.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4952',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='390',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='390',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1110';
UPDATE returnbuybilldetail SET  lastbuyprice = 390 , meanbuyprice = 390.00, lastbuyprice_withDiscount = 390, meanbuyprice_withDiscount = 390.00
        , lastbuyprice_withTax = 390, lastbuyprice_withDiscountAndTax = 390
                where returnbuybilldetailid = 88;
UPDATE productunit SET proUnitBuyPrice  = 390 * productnumber WHERE productid = 1110;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1110';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1110', '1', '24', '1', '21', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '24', '0', '1', '2026-10-14 09:23:54','0','0'); -- id=5207
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09242', '21', '39', '1117', '40', '375', '15000', '0', '', '1117','','','0','0','0','0','0','375','15000','0','0','0','0','0','0','0','1'); -- id=89
UPDATE product SET productName = 'موديل 247', productDescription = '', productCatId = '39', productBuyPrice = '375.00', productSellAllPrice = '400.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09242',type ='0', expireDate = '0' , dailyentryId = '472',isService = '0',isOptic = '0',lastbuyprice = '375',lastbuyprice_withDiscount = '375',meanbuyprice = '375.00',meanbuyprice_withDiscount = '375' , productbuypricereal = '380.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9242',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='375',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='375',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1117';
UPDATE returnbuybilldetail SET  lastbuyprice = 375 , meanbuyprice = 375.00, lastbuyprice_withDiscount = 375, meanbuyprice_withDiscount = 375.00
        , lastbuyprice_withTax = 375, lastbuyprice_withDiscountAndTax = 375
                where returnbuybilldetailid = 89;
UPDATE productunit SET proUnitBuyPrice  = 375 * productnumber WHERE productid = 1117;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1117';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1117', '1', '40', '1', '21', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '40', '0', '1', '2026-10-14 09:23:54','0','0'); -- id=5208
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('05360', '21', '39', '1113', '15', '335', '5025', '0', '', '1113','','','0','0','0','0','0','335','5025','0','0','0','0','0','0','0','1'); -- id=90
UPDATE product SET productName = 'وايد ليج 220 يورو ستار', productDescription = '', productCatId = '39', productBuyPrice = '340.00', productSellAllPrice = '360.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '05360',type ='0', expireDate = '0' , dailyentryId = '468',isService = '0',isOptic = '0',lastbuyprice = '335',lastbuyprice_withDiscount = '335',meanbuyprice = '340.00',meanbuyprice_withDiscount = '340' , productbuypricereal = '340.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='340',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='5360',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='335',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='335',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1113';
UPDATE returnbuybilldetail SET  lastbuyprice = 335 , meanbuyprice = 340.00, lastbuyprice_withDiscount = 335, meanbuyprice_withDiscount = 340.00
        , lastbuyprice_withTax = 335, lastbuyprice_withDiscountAndTax = 335
                where returnbuybilldetailid = 90;
UPDATE productunit SET proUnitBuyPrice  = 335 * productnumber WHERE productid = 1113;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1113';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1113', '1', '15', '1', '21', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '15', '0', '1', '2026-10-14 09:23:54','0','0'); -- id=5209
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09243', '21', '39', '1118', '30', '375', '11250', '0', '', '1118','','','0','0','0','0','0','375','11250','0','0','0','0','0','0','0','1'); -- id=91
UPDATE product SET productName = 'موديل 248 ستار', productDescription = '', productCatId = '39', productBuyPrice = '375.00', productSellAllPrice = '400.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09243',type ='0', expireDate = '0' , dailyentryId = '473',isService = '0',isOptic = '0',lastbuyprice = '375',lastbuyprice_withDiscount = '375',meanbuyprice = '387.5',meanbuyprice_withDiscount = '387.5' , productbuypricereal = '380.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9243',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='375',meanbuyprice_withTax='387.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='375',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1118';
UPDATE returnbuybilldetail SET  lastbuyprice = 375 , meanbuyprice = 387.5, lastbuyprice_withDiscount = 375, meanbuyprice_withDiscount = 387.5
        , lastbuyprice_withTax = 375, meanbuyprice_withTax = 387.5, lastbuyprice_withDiscountAndTax = 375
                where returnbuybilldetailid = 91;
UPDATE productunit SET proUnitBuyPrice  = 375 * productnumber WHERE productid = 1118;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1118';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1118', '1', '30', '1', '21', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '50', '20', '1', '2026-10-14 09:23:54','0','0'); -- id=5210
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01318', '21', '39', '1318', '140', '375', '52500', '0', '', '1318','','','0','0','0','0','0','375','52500','0','0','0','0','0','0','0','1'); -- id=92
UPDATE product SET productName = 'ريلاكسيد تقطيع م 255', productDescription = '', productCatId = '39', productBuyPrice = '380.00', productSellAllPrice = '405.00', productSellUnitPrice = '405.00', productSellHalfPrice = '405.00', productDate = '2026-09-29', conditions = '0', userId = '1', limitamount = '0', parcode = '01318',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '375',lastbuyprice_withDiscount = '375',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '380.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.58' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='375',meanbuyprice_withTax='560',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='375',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1318';
UPDATE returnbuybilldetail SET  lastbuyprice = 375 , meanbuyprice = 370, lastbuyprice_withDiscount = 375, meanbuyprice_withDiscount = 370
        , lastbuyprice_withTax = 375, meanbuyprice_withTax = 560, lastbuyprice_withDiscountAndTax = 375
                where returnbuybilldetailid = 92;
UPDATE productunit SET proUnitBuyPrice  = 375 * productnumber WHERE productid = 1318;
UPDATE storedetail SET  productquantity = '-70', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1318';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1318', '1', '140', '1', '21', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '70', '-70', '1', '2026-10-14 09:23:54','0','0'); -- id=5211
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('04948', '21', '39', '1111', '55', '360', '19800', '0', '', '1111','','','0','0','0','0','0','360','19800','0','0','0','0','0','0','0','1'); -- id=93
UPDATE product SET productName = 'توجي ديزل م 222 يورو ستار', productDescription = '', productCatId = '39', productBuyPrice = '360.00', productSellAllPrice = '385.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04948',type ='0', expireDate = '0' , dailyentryId = '466',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '360',meanbuyprice = '360.00',meanbuyprice_withDiscount = '360' , productbuypricereal = '365.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4948',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1111';
UPDATE returnbuybilldetail SET  lastbuyprice = 360 , meanbuyprice = 360.00, lastbuyprice_withDiscount = 360, meanbuyprice_withDiscount = 360.00
        , lastbuyprice_withTax = 360, lastbuyprice_withDiscountAndTax = 360
                where returnbuybilldetailid = 93;
UPDATE productunit SET proUnitBuyPrice  = 360 * productnumber WHERE productid = 1111;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1111';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1111', '1', '55', '1', '21', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '55', '0', '1', '2026-10-14 09:23:54','0','0'); -- id=5212
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('07255', '21', '39', '1114', '56', '380', '21280', '0', '', '1114','','','0','0','0','0','0','380','21280','0','0','0','0','0','0','0','1'); -- id=94
UPDATE product SET productName = 'موديل يور ستار 405', productDescription = '', productCatId = '39', productBuyPrice = '380.00', productSellAllPrice = '405.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '07255',type ='0', expireDate = '0' , dailyentryId = '469',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '380',meanbuyprice = '390.26',meanbuyprice_withDiscount = '390.26' , productbuypricereal = '385.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='7255',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='390.26',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1114';
UPDATE returnbuybilldetail SET  lastbuyprice = 380 , meanbuyprice = 390.26, lastbuyprice_withDiscount = 380, meanbuyprice_withDiscount = 390.26
        , lastbuyprice_withTax = 380, meanbuyprice_withTax = 390.26, lastbuyprice_withDiscountAndTax = 380
                where returnbuybilldetailid = 94;
UPDATE productunit SET proUnitBuyPrice  = 380 * productnumber WHERE productid = 1114;
UPDATE storedetail SET  productquantity = '69', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1114';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1114', '1', '56', '1', '21', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '125', '69', '1', '2026-10-14 09:23:54','0','0'); -- id=5213
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09245', '21', '39', '1119', '55', '375', '20625', '0', '', '1119','','','0','0','0','0','0','375','20625','0','0','0','0','0','0','0','1'); -- id=95
UPDATE product SET productName = 'موديل 249 يورو استار', productDescription = '', productCatId = '39', productBuyPrice = '375.00', productSellAllPrice = '400.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09245',type ='0', expireDate = '0' , dailyentryId = '474',isService = '0',isOptic = '0',lastbuyprice = '375',lastbuyprice_withDiscount = '375',meanbuyprice = '366.25',meanbuyprice_withDiscount = '366.25' , productbuypricereal = '380.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9245',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='375',meanbuyprice_withTax='366.25',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='375',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1119';
UPDATE returnbuybilldetail SET  lastbuyprice = 375 , meanbuyprice = 366.25, lastbuyprice_withDiscount = 375, meanbuyprice_withDiscount = 366.25
        , lastbuyprice_withTax = 375, meanbuyprice_withTax = 366.25, lastbuyprice_withDiscountAndTax = 375
                where returnbuybilldetailid = 95;
UPDATE productunit SET proUnitBuyPrice  = 375 * productnumber WHERE productid = 1119;
UPDATE storedetail SET  productquantity = '-20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1119';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1119', '1', '55', '1', '21', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '35', '-20', '1', '2026-10-14 09:23:54','0','0'); -- id=5214
UPDATE supplier SET  suppliercurrentDebt = '55575',suppliercurrentDebtInCurrency= '446590' , userid = '1', supplierdate = '2026-10-14 09:32:45'   WHERE supplierid = '63';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('63', '263890.00', '208315', '1', 'اضافة فاتورة مردوات مشتريات', '21', '55575', '2026-10-14 09:23:54', '1', 'returnBuyBillController.php', 'اضافة فاتورة مردوات مشتريات', '0','', '0','1','1','208315','1','654905','208315','446590','0',''); -- id=461
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '208315', '208315', '2026-10-14', '1', '0', '0', '2026-10-14 09:32:45','اضافة فاتورة مردود مشتريات رقم 21','1','0',null,'0','21','returnBuyBillController.php?do=details&id=21'); -- id=2320
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2320', '482', '208315', '','0'); -- id=2367
UPDATE accountstree SET name = 'يورو ستار - مورد', customName = 'يورو ستار - مورد', customNameEn = 'يورو ستار - مورد', nameEn = 'يورو ستار - مورد', parent = '81', accountNature = '1', theValue = '-99440', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '482';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2320', '382', '208315', '','0'); -- id=2322
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21350558.36', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update returnbuybill set dailyentryid='2320,0' where returnbuybillid=21;
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:02:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:32:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('returnBuyBillController.php', '2026-10-14 09:32:45', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/returnBuyBillController.php?do=editprint&id=21'); -- id=8925
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:03:21";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:33:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 09:33:21', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=8926
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:03:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:33:39", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:33:39', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=8927

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf2159af963
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 09:33:39', '06acf2159af963', '1', '0.00', '0', '20', '1', '14520.00', '14500', '14500', '0', '1', '2026-10-14 09:33:39', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '30' ,'0','','','','','-1','0','0','0','0','0','14500','0','','0','0','14500','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=497
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','497', '0', '2026-10-14 09:33:39', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '14500', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 09:33:39','0','0','',''); -- id=642
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+18 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '497', '153', '1921', '18', '485', '8730', '0', '', '0', '2026-10-14 09:33:39', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-18,','1','1','0','0','485','8730','0','','0','0.00','0','0','0','0'); -- id=1708
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1708;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 8717.9752066116, 8280, 8280
                    , 8280, 8280, 8280, 8280
                    , 0, 0, 0, 0
                    , 0, 0, 0, 18, 0, 8280, 8280, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8717.9752066116, sellCostBuyPrice =sellCostBuyPrice+8280
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8280, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8280
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+8280, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+8280
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+8280
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8280
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+8280
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+18
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 8717.9752066116, 8280, 8280
                    , 8280, 8280, 8280, 8280
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8280, 8280, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8717.9752066116, sellCostBuyPrice =sellCostBuyPrice+8280
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8280, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8280
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+8280, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+8280
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+8280
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8280
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+8280
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '267', userid = '3', storedetaildate = '2026-10-14 09:33:39' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '18', '1', '497', 'اضافة فاتورة مبيعات', 'sellbillController.php', '285', '267', '3', '2026-10-14 09:33:39','0','0'); -- id=5215
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 1080;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('425','01919', '497', '153', '1919', '9', '450', '4050', '0', '', '0', '2026-10-14 09:33:39', '1919', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1080-9,','1','1','0','0','450','4050','0','','0','0.00','0','0','0','0'); -- id=1709
UPDATE sellbilldetail SET  lastbuyprice = 425.00 , meanbuyprice = 425.00, lastbuyprice_withDiscount = 425.00, meanbuyprice_withDiscount = 425.00
        , lastbuyprice_withTax = 425, meanbuyprice_withTax = 425, lastbuyprice_withDiscountAndTax = 425
                where sellbilldetailid = 1709;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1919, '2026-10-14', 4044.4214876033, 3825, 3825
                    , 3825, 3825, 3825, 3825
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3825, 3825, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4044.4214876033, sellCostBuyPrice =sellCostBuyPrice+3825
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3825, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3825
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3825, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3825
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3825
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3825
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3825
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4044.4214876033, 3825, 3825
                    , 3825, 3825, 3825, 3825
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3825, 3825, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4044.4214876033, sellCostBuyPrice =sellCostBuyPrice+3825
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3825, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3825
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3825, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3825
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3825
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3825
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3825
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '345', userid = '3', storedetaildate = '2026-10-14 09:33:39' WHERE storedetailid = '2936';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '1', '9', '1', '497', 'اضافة فاتورة مبيعات', 'sellbillController.php', '354', '345', '3', '2026-10-14 09:33:39','0','0'); -- id=5216
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 513;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('533.6','01664', '497', '124', '1664', '3', '580', '1740', '0', '', '0', '2026-10-14 09:33:39', '1664', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','513-3,','1','1','0','0','580','1740','0','','0','0.00','0','0','0','0'); -- id=1710
UPDATE sellbilldetail SET  lastbuyprice = 580.00 , meanbuyprice = 580.00, lastbuyprice_withDiscount = 533.60, meanbuyprice_withDiscount = 533.60
        , lastbuyprice_withTax = 580, meanbuyprice_withTax = 580, lastbuyprice_withDiscountAndTax = 533.6
                where sellbilldetailid = 1710;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1664, '2026-10-14', 1737.6033057851, 1740, 1740
                    , 1740, 1600.8, 1600.8, 1600.8
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1740, 1740, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1737.6033057851, sellCostBuyPrice =sellCostBuyPrice+1740
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1740, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1740
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1600.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1600.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1600.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1740
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1740
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1737.6033057851, 1740, 1740
                    , 1740, 1600.8, 1600.8, 1600.8
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1740, 1740, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1737.6033057851, sellCostBuyPrice =sellCostBuyPrice+1740
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1740, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1740
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1600.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1600.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1600.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1740
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1740
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '9', userid = '3', storedetaildate = '2026-10-14 09:33:39' WHERE storedetailid = '2676';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1664', '1', '3', '1', '497', 'اضافة فاتورة مبيعات', 'sellbillController.php', '12', '9', '3', '2026-10-14 09:33:39','0','0'); -- id=5217
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '2890870',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('2876370','14500', '0', '2', 'اضافة فاتورة مبيعات', '497', '2890870', '2026-10-14 09:33:39', '3',  'sellbillController.php','1','','0'); -- id=634
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '14520', '14520', '2026-10-14', '3', '0', '0', '2026-10-14 09:33:40','اضافة فاتورة مبيعات رقم 497','1','0',null,'0','497','sellbillController.php?do=showDetail&sellbillid=497'); -- id=2321
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2321', '419', '14500', '','0'); -- id=2368
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '2890870', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2321', '398', '20', '','0'); -- id=2369
UPDATE accountstree SET name = 'خصم مسموح به', customName = 'خصم مسموح به', customNameEn = '', nameEn = '', parent = '158', accountNature = '0', theValue = '464815', theOrder = '0', layingOrder = '51', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-08-08 17:58:26' WHERE id = '398';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2321', '143', '14520', '','0'); -- id=2323
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '4997020', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '13705.8', '13705.8', '2026-10-14', '3', '0', '0', '2026-10-14 09:33:40','اضافة فاتورة مبيعات رقم 497 - صرف البضاعة من المخزن','1','0',null,'0','497','sellbillController.php?do=showDetail&sellbillid=497'); -- id=2322
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2322', '402', '13705.8', '','0'); -- id=2370
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '4667952.74', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2322', '382', '13705.8', '','0'); -- id=2324
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21336852.56', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2321,0,2322' where sellbillid=497;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 14500, 13845, 13845
                    , 13845, 13705.8, 13705.8, 13705.8
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,13845, 13845, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+14500, sellCostBuyPrice =sellCostBuyPrice+13845
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+13845, sellCostMeanBuyPrice = sellCostMeanBuyPrice+13845
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+13705.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+13705.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+13705.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+13845
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+13845
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 14500, 13845, 13845
                    , 13845, 13705.8, 13705.8, 13705.8
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,13845, 13845, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+14500, sellCostBuyPrice =sellCostBuyPrice+13845
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+13845, sellCostMeanBuyPrice = sellCostMeanBuyPrice+13845
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+13705.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+13705.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+13705.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+13845
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+13845
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 14500, 13845, 13845
                    , 13845, 13705.8, 13705.8, 13705.8, 13845, 13845)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+14500, netSellCostBuyPrice = netSellCostBuyPrice+13845
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+13845
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+13845
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+13705.8
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+13705.8
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+13705.8
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+13845
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+13845;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf2159af963 and sellbillId = 497 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:03:40";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:33:40", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:33:40', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8928
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:04:17";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:34:17", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:34:17', '3', 'showDetail', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=showDetail&sellbillid=497'); -- id=8929
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:04:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:34:23", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:34:23', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8930
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:04:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:34:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 09:34:56', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=8931
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:05:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:35:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 09:35:04', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=8932
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:06:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:36:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 09:36:43', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=8933
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('فولكانو شروال 420','','73','0','0','0','0','2026-10-14','0','1','0','','0','0','0','0','0','','0','','0','0','0','0','0','0','.','0','0','0','0','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','0','0','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','0','0','0','0','0','0','0','','','0','0','0','0'); -- id=1926
UPDATE product SET productName = 'فولكانو شروال 420', productDescription = '', productCatId = '73', productBuyPrice = '0', productSellAllPrice = '0', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01926',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '',lastbuyprice_withDiscount = '0',meanbuyprice = '',meanbuyprice_withDiscount = '0' , productbuypricereal = '0' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='0',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1926';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1926', '1', '2026-10-14', '1', '0','0192601','0','0','0','0','','0','0','0','0','0','0','0','0','0','0'); -- id=1926
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1926', '1', '0', '1', '2026-10-14'); -- id=2943
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1926', '1', '0', '0', '1926', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5218
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1926, 1,'2026-10-14 09:36:43',1)
                ON DUPLICATE KEY UPDATE productid = 1926, edited = 1, sysdate = '2026-10-14 09:36:43', userid = 1; -- id=2860
UPDATE product SET productName = 'فولكانو شروال 420', productDescription = '', productCatId = '73', productBuyPrice = '0.00', productSellAllPrice = '0.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01926',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '',lastbuyprice_withDiscount = '0',meanbuyprice = '',meanbuyprice_withDiscount = '0' , productbuypricereal = '0' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='0',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1926';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:06:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:36:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 09:36:44', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=8934
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:07:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:37:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 09:37:05', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=8935
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:07:13";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:37:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 09:37:13', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=8936
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:07:17";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:37:17", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 09:37:17', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8937
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 06:07:17";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 09:37:17', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8938
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:07:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:37:28", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:37:28', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8939
UPDATE product SET productName = 'فولكانو شروال 420', productDescription = '', productCatId = '73', productBuyPrice = '0.00', productSellAllPrice = '0.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01926',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '0.00',lastbuyprice_withDiscount = '0',meanbuyprice = '0.00',meanbuyprice_withDiscount = '0' , productbuypricereal = '0.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='0',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1926';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1926, 1,'2026-10-14 09:37:29',1)
                ON DUPLICATE KEY UPDATE productid = 1926, edited = 1, sysdate = '2026-10-14 09:37:29', userid = 1; -- id=2860
UPDATE productunit SET proUnitBuyPrice  = 395 * productnumber WHERE productid = 1926;
UPDATE product SET productName = 'فولكانو شروال 420', productDescription = '', productCatId = '73', productBuyPrice = '395', productSellAllPrice = '0.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01926',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '0.00',lastbuyprice_withDiscount = '0',meanbuyprice = '197.5',meanbuyprice_withDiscount = '197.5' , productbuypricereal = '0.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='197.5',meanbuyprice_withTax='197.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1926';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1926, 1,'2026-10-14 09:38:09',1)
                ON DUPLICATE KEY UPDATE productid = 1926, edited = 1, sysdate = '2026-10-14 09:38:09', userid = 1; -- id=2860
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:08:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:38:32", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:38:32', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8940
UPDATE productunit SET proUnitSellAllPrice  = 420 * productnumber  WHERE productid = 1926;
UPDATE product SET productName = 'فولكانو شروال 420', productDescription = '', productCatId = '73', productBuyPrice = '395.00', productSellAllPrice = '420', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01926',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '0.00',lastbuyprice_withDiscount = '0',meanbuyprice = '197.50',meanbuyprice_withDiscount = '197.5' , productbuypricereal = '0.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='197.5',meanbuyprice_withTax='197.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1926';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1926, 1,'2026-10-14 09:38:34',1)
                ON DUPLICATE KEY UPDATE productid = 1926, edited = 1, sysdate = '2026-10-14 09:38:34', userid = 1; -- id=2860
UPDATE productunit SET proUnitSellHalfPrice = 420 * productnumber WHERE productid = 1926;
UPDATE product SET productName = 'فولكانو شروال 420', productDescription = '', productCatId = '73', productBuyPrice = '395.00', productSellAllPrice = '420.00', productSellUnitPrice = '0.00', productSellHalfPrice = '420', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01926',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '0.00',lastbuyprice_withDiscount = '0',meanbuyprice = '197.50',meanbuyprice_withDiscount = '197.5' , productbuypricereal = '0.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='197.5',meanbuyprice_withTax='197.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1926';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1926, 1,'2026-10-14 09:38:36',1)
                ON DUPLICATE KEY UPDATE productid = 1926, edited = 1, sysdate = '2026-10-14 09:38:36', userid = 1; -- id=2860
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:08:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:38:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 09:38:52', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=8941
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:10:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:40:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 09:40:29', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=8942
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:10:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:40:49", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:40:49', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=8943

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf23682ab9f
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 09:40:49', '06acf23682ab9f', '1', '0.00', '0', '0', '1', '5580.00', '5580', '5580', '0', '1', '2026-10-14 09:40:49', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '12' ,'0','','','','','-1','0','0','0','0','0','5580','0','','0','0','5580','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=498
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','498', '0', '2026-10-14 09:40:49', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '5580', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 09:40:49','0','0','',''); -- id=643
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 863;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('404.8','01838', '498', '124', '1838', '3', '440', '1320', '0', '', '0', '2026-10-14 09:40:49', '1838', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','863-3,','1','1','0','0','440','1320','0','','0','0.00','0','0','0','0'); -- id=1711
UPDATE sellbilldetail SET  lastbuyprice = 440.00 , meanbuyprice = 440.00, lastbuyprice_withDiscount = 404.80, meanbuyprice_withDiscount = 404.80
        , lastbuyprice_withTax = 440, meanbuyprice_withTax = 440, lastbuyprice_withDiscountAndTax = 404.8
                where sellbilldetailid = 1711;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1838, '2026-10-14', 1320, 1320, 1320
                    , 1320, 1214.4, 1214.4, 1214.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1320, 1320, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1320, sellCostBuyPrice =sellCostBuyPrice+1320
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1320, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1320
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1214.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1214.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1214.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1320
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1320
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1320, 1320, 1320
                    , 1320, 1214.4, 1214.4, 1214.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1320, 1320, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1320, sellCostBuyPrice =sellCostBuyPrice+1320
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1320, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1320
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1214.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1214.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1214.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1320
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1320
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '21', userid = '3', storedetaildate = '2026-10-14 09:40:49' WHERE storedetailid = '2853';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1838', '1', '3', '1', '498', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '21', '3', '2026-10-14 09:40:49','0','0'); -- id=5219
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '498', '153', '1921', '6', '485', '2910', '0', '', '0', '2026-10-14 09:40:49', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-6,','1','1','0','0','485','2910','0','','0','0.00','0','0','0','0'); -- id=1712
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1712;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 2910, 2760, 2760
                    , 2760, 2760, 2760, 2760
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2760, 2760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2910, sellCostBuyPrice =sellCostBuyPrice+2760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2760, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2760
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2760
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2910, 2760, 2760
                    , 2760, 2760, 2760, 2760
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2760, 2760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2910, sellCostBuyPrice =sellCostBuyPrice+2760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2760, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2760
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2760
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '261', userid = '3', storedetaildate = '2026-10-14 09:40:49' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '6', '1', '498', 'اضافة فاتورة مبيعات', 'sellbillController.php', '267', '261', '3', '2026-10-14 09:40:49','0','0'); -- id=5220
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 1080;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('425','01919', '498', '153', '1919', '3', '450', '1350', '0', '', '0', '2026-10-14 09:40:49', '1919', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1080-3,','1','1','0','0','450','1350','0','','0','0.00','0','0','0','0'); -- id=1713
UPDATE sellbilldetail SET  lastbuyprice = 425.00 , meanbuyprice = 425.00, lastbuyprice_withDiscount = 425.00, meanbuyprice_withDiscount = 425.00
        , lastbuyprice_withTax = 425, meanbuyprice_withTax = 425, lastbuyprice_withDiscountAndTax = 425
                where sellbilldetailid = 1713;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1919, '2026-10-14', 1350, 1275, 1275
                    , 1275, 1275, 1275, 1275
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1275, 1275, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1350, sellCostBuyPrice =sellCostBuyPrice+1275
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1275, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1275
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1275, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1275
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1275
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1275
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1275
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1350, 1275, 1275
                    , 1275, 1275, 1275, 1275
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1275, 1275, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1350, sellCostBuyPrice =sellCostBuyPrice+1275
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1275, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1275
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1275, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1275
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1275
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1275
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1275
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '342', userid = '3', storedetaildate = '2026-10-14 09:40:49' WHERE storedetailid = '2936';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '1', '3', '1', '498', 'اضافة فاتورة مبيعات', 'sellbillController.php', '345', '342', '3', '2026-10-14 09:40:49','0','0'); -- id=5221
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '2896450',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('2890870','5580', '0', '2', 'اضافة فاتورة مبيعات', '498', '2896450', '2026-10-14 09:40:49', '3',  'sellbillController.php','1','','0'); -- id=635
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '5580', '5580', '2026-10-14', '3', '0', '0', '2026-10-14 09:40:49','اضافة فاتورة مبيعات رقم 498','1','0',null,'0','498','sellbillController.php?do=showDetail&sellbillid=498'); -- id=2323
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2323', '419', '5580', '','0'); -- id=2371
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '2896450', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2323', '143', '5580', '','0'); -- id=2325
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5002600', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '5249.4', '5249.4', '2026-10-14', '3', '0', '0', '2026-10-14 09:40:49','اضافة فاتورة مبيعات رقم 498 - صرف البضاعة من المخزن','1','0',null,'0','498','sellbillController.php?do=showDetail&sellbillid=498'); -- id=2324
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2324', '402', '5249.4', '','0'); -- id=2372
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '4673202.14', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2324', '382', '5249.4', '','0'); -- id=2326
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21331603.16', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2323,0,2324' where sellbillid=498;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 5580, 5355, 5355
                    , 5355, 5249.4, 5249.4, 5249.4
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,5355, 5355, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5580, sellCostBuyPrice =sellCostBuyPrice+5355
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5355, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5355
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5249.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5249.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5249.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5355
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5355
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5580, 5355, 5355
                    , 5355, 5249.4, 5249.4, 5249.4
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,5355, 5355, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5580, sellCostBuyPrice =sellCostBuyPrice+5355
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5355, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5355
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5249.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5249.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5249.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5355
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5355
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 5580, 5355, 5355
                    , 5355, 5249.4, 5249.4, 5249.4, 5355, 5355)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+5580, netSellCostBuyPrice = netSellCostBuyPrice+5355
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+5355
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+5355
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+5249.4
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+5249.4
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+5249.4
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+5355
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+5355;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf23682ab9f and sellbillId = 498 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:10:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:40:49", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:40:49', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8944
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:11:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:41:16", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 09:41:16', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8945
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 06:11:16";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 09:41:16', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8946
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:12:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:42:29", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 09:42:29', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8947
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 06:12:30";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 09:42:30', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8948
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:13:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:43:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 09:43:28', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=8949
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf23dd305af', '2026-10-14 09:40:29', '43', '546030.00', '692970', '0', '0', '146940.00',  '146940.00', '0', '146940', '1', '2026-10-14 09:43:28', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=136
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01926', '136', '73', '1926', '372', '395', '146940.00', '0', '', '2026-10-14 09:43:28', '1926','','','0','0','0','0','0',null,'395','146940','0','0','0','0','0','0','0','0','1'); -- id=837
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 09:40:29', 1, 1926, 0, 0
                    , 395, 372, 0, 0, 1, '2026-10-14 09:43:28')
                ON DUPLICATE KEY UPDATE buyprice = 395,
                        buyQuantity =buyQuantity+372, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 09:43:28' ; -- id=1114
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1926', '395', '372', '0', 'buyBillController.php', '837', '', '0', '0'); -- id=624
UPDATE product SET  productBuyPrice = "395" WHERE productId = 1926 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 837 ;
UPDATE product SET productName = 'فولكانو شروال 420', productDescription = '', productCatId = '73', productBuyPrice = '395.00', productSellAllPrice = '420.00', productSellUnitPrice = '0.00', productSellHalfPrice = '420.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01926',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '395',lastbuyprice_withDiscount = '395',meanbuyprice = '395',meanbuyprice_withDiscount = '395' , productbuypricereal = '0.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='395',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='395',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1926';
UPDATE buybilldetail SET  lastbuyprice = 395 , meanbuyprice = 395, lastbuyprice_withDiscount = 395, meanbuyprice_withDiscount = 395
        , lastbuyprice_withTax = 395, meanbuyprice_withTax = 395, lastbuyprice_withDiscountAndTax = 395
                where buybilldetailid = 837;
UPDATE productunit SET proUnitBuyPrice  = 395 * productnumber WHERE productid = 1926;
UPDATE storedetail SET  productquantity = '372', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2943';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1926', '1', '372', '0', '136', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '372', '1', '2026-10-14 09:40:29','0','0'); -- id=5222
UPDATE supplier SET  suppliercurrentDebt = '258596',suppliercurrentDebtInCurrency= '692970' , userid = '1', supplierdate = '2026-10-14 09:43:28'   WHERE supplierid = '43';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('43', '111656.00', '146940', '0', 'اضافة فاتورة مشتريات', '136', '258596', '2026-10-14 09:40:29', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','146940','1','546030','146940','692970','0',''); -- id=462
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '146940', '146940', '2026-10-14', '1', '0', '0', '2026-10-14 09:43:28','اضافة فاتورة مشتريات رقم 136','1','0',null,'0','136','buyBillController.php?do=details&id=136'); -- id=2325
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2325', '382', '146940', '','0'); -- id=2373
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21478543.16', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2325', '462', '146940', '','0'); -- id=2327
UPDATE accountstree SET name = 'فولكانو شروال - مورد', customName = 'فولكانو شروال - مورد', customNameEn = 'فولكانو شروال - مورد', nameEn = 'فولكانو شروال - مورد', parent = '81', accountNature = '1', theValue = '146940', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '462';
update buybill set dailyentryid='2325,0' where buybillid=136;
COMMIT;
UPDATE product SET overAllAveragePrice = 395 WHERE productId = 1926;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:13:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:43:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 09:43:28', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=136'); -- id=8950
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:13:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:43:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 09:43:39', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=136&type=2'); -- id=8951
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:17:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:47:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 09:47:43', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=8952
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:19:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:49:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 09:49:26', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=8953
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:20:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:50:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:50:30', '1', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8954
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:20:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:50:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 09:50:37', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=8955
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:21:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:51:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 09:51:09', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=8956
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:21:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:51:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 09:51:14', '1', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8957
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:21:18";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:51:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 09:51:18', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=8958
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:21:25";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:51:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 09:51:25', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=8959
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:21:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:51:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 09:51:29', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=8960
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:22:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:52:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 09:52:09', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=8961
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:22:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 09:52:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 09:52:49', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=8962
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:31:55";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:01:55", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:01:55', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8963
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:34:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:04:11", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:04:11', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=8964

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf28e3b111c
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 10:04:11', '06acf28e3b111c', '1', '0.00', '0', '5', '1', '8415.00', '8410', '8410', '0', '1', '2026-10-14 10:04:11', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '18' ,'0','','','','','-1','0','0','0','0','0','8410','0','','0','0','8410','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=499
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','499', '0', '2026-10-14 10:04:11', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '8410', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 10:04:11','0','0','',''); -- id=644
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '499', '153', '1921', '9', '485', '4365', '0', '', '0', '2026-10-14 10:04:11', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-9,','1','1','0','0','485','4365','0','','0','0.00','0','0','0','0'); -- id=1714
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1714;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 4362.4064171123, 4140, 4140
                    , 4140, 4140, 4140, 4140
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 4140, 4140, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4362.4064171123, sellCostBuyPrice =sellCostBuyPrice+4140
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4140, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4140
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4140, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4140
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4140
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4140
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4140
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4362.4064171123, 4140, 4140
                    , 4140, 4140, 4140, 4140
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4140, 4140, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4362.4064171123, sellCostBuyPrice =sellCostBuyPrice+4140
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4140, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4140
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4140, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4140
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4140
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4140
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4140
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '252', userid = '3', storedetaildate = '2026-10-14 10:04:11' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '9', '1', '499', 'اضافة فاتورة مبيعات', 'sellbillController.php', '261', '252', '3', '2026-10-14 10:04:11','0','0'); -- id=5223
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 1080;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('425','01919', '499', '153', '1919', '9', '450', '4050', '0', '', '0', '2026-10-14 10:04:11', '1919', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1080-9,','1','1','0','0','450','4050','0','','0','0.00','0','0','0','0'); -- id=1715
UPDATE sellbilldetail SET  lastbuyprice = 425.00 , meanbuyprice = 425.00, lastbuyprice_withDiscount = 425.00, meanbuyprice_withDiscount = 425.00
        , lastbuyprice_withTax = 425, meanbuyprice_withTax = 425, lastbuyprice_withDiscountAndTax = 425
                where sellbilldetailid = 1715;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1919, '2026-10-14', 4047.5935828877, 3825, 3825
                    , 3825, 3825, 3825, 3825
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3825, 3825, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4047.5935828877, sellCostBuyPrice =sellCostBuyPrice+3825
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3825, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3825
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3825, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3825
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3825
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3825
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3825
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4047.5935828877, 3825, 3825
                    , 3825, 3825, 3825, 3825
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3825, 3825, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4047.5935828877, sellCostBuyPrice =sellCostBuyPrice+3825
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3825, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3825
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3825, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3825
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3825
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3825
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3825
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '333', userid = '3', storedetaildate = '2026-10-14 10:04:11' WHERE storedetailid = '2936';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '1', '9', '1', '499', 'اضافة فاتورة مبيعات', 'sellbillController.php', '342', '333', '3', '2026-10-14 10:04:11','0','0'); -- id=5224
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '2904860',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('2896450','8410', '0', '2', 'اضافة فاتورة مبيعات', '499', '2904860', '2026-10-14 10:04:11', '3',  'sellbillController.php','1','','0'); -- id=636
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '8415', '8415', '2026-10-14', '3', '0', '0', '2026-10-14 10:04:11','اضافة فاتورة مبيعات رقم 499','1','0',null,'0','499','sellbillController.php?do=showDetail&sellbillid=499'); -- id=2326
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2326', '419', '8410', '','0'); -- id=2374
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '2904860', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2326', '398', '5', '','0'); -- id=2375
UPDATE accountstree SET name = 'خصم مسموح به', customName = 'خصم مسموح به', customNameEn = '', nameEn = '', parent = '158', accountNature = '0', theValue = '464820', theOrder = '0', layingOrder = '51', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-08-08 17:58:26' WHERE id = '398';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2326', '143', '8415', '','0'); -- id=2328
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5011015', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '7965', '7965', '2026-10-14', '3', '0', '0', '2026-10-14 10:04:11','اضافة فاتورة مبيعات رقم 499 - صرف البضاعة من المخزن','1','0',null,'0','499','sellbillController.php?do=showDetail&sellbillid=499'); -- id=2327
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2327', '402', '7965', '','0'); -- id=2376
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '4681167.14', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2327', '382', '7965', '','0'); -- id=2329
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21470578.16', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2326,0,2327' where sellbillid=499;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 8410, 7965, 7965
                    , 7965, 7965, 7965, 7965
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,7965, 7965, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8410, sellCostBuyPrice =sellCostBuyPrice+7965
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7965, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7965
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7965, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7965
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7965
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7965
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7965
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 8410, 7965, 7965
                    , 7965, 7965, 7965, 7965
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,7965, 7965, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8410, sellCostBuyPrice =sellCostBuyPrice+7965
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7965, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7965
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7965, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7965
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7965
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7965
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7965
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 8410, 7965, 7965
                    , 7965, 7965, 7965, 7965, 7965, 7965)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+8410, netSellCostBuyPrice = netSellCostBuyPrice+7965
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+7965
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+7965
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+7965
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+7965
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+7965
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+7965
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+7965;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf28e3b111c and sellbillId = 499 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:34:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:04:11", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:04:11', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8965
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:36:07";
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:36:20";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:06:20", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 10:06:21', '4', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8966
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 06:36:21";
UPDATE user SET loginip = "51.89.20.165", lastactivetime = "2026-10-14 10:06:21", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 10:06:21', '4', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8967
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:36:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:06:30", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:06:30', '4', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8968
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:52:04";
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:52:05";
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:52:08";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:22:08", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 10:22:08', '6', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8969
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 06:52:09";
UPDATE user SET loginip = "51.89.20.165", lastactivetime = "2026-10-14 10:22:09", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 10:22:09', '6', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8970
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:52:13";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:22:13", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:22:13', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8971
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:55:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:25:52", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:25:52', '6', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=8972

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf2da601965
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 10:25:52', '06acf2da601965', '1', '0.00', '0', '0', '1', '11460.00', '11460', '11460', '0', '1', '2026-10-14 10:25:52', '', '6', '0', 'نقدي', '4', '0', '3', '0', 'نقدي', '21' ,'0','','','','','-1','0','0','0','0','0','11460','0','','0','0','11460','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=500
UPDATE client SET  clientdebt = '0', userid = '6' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','500', '0', '2026-10-14 10:25:52', '6', 'sellbillController.php', 'اضافة فاتورة مبيعات', '11460', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 10:25:52','0','0','',''); -- id=645
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 187;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('495','01419', '500', '98', '1419', '6', '550', '3300', '0', '', '0', '2026-10-14 10:25:52', '1419', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','187-6,','1','1','0','0','550','3300','0','','0','0.00','0','0','0','0'); -- id=1716
UPDATE sellbilldetail SET  lastbuyprice = 550.00 , meanbuyprice = 550.00, lastbuyprice_withDiscount = 495.00, meanbuyprice_withDiscount = 522.50
        , lastbuyprice_withTax = 550, meanbuyprice_withTax = 275, lastbuyprice_withDiscountAndTax = 495
                where sellbilldetailid = 1716;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1419, '2026-10-14', 3300, 3300, 3300
                    , 3300, 2970, 3135, 2970
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 3300, 1650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3300, sellCostBuyPrice =sellCostBuyPrice+3300
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3300, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3300
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2970, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3135
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2970
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3300
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3300, 3300, 3300
                    , 3300, 2970, 3135, 2970
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3300, 1650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3300, sellCostBuyPrice =sellCostBuyPrice+3300
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3300, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3300
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2970, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3135
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2970
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3300
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '21', userid = '6', storedetaildate = '2026-10-14 10:25:52' WHERE storedetailid = '1432';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1419', '1', '6', '1', '500', 'اضافة فاتورة مبيعات', 'sellbillController.php', '27', '21', '6', '2026-10-14 10:25:52','0','0'); -- id=5225
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 186;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('558','01418', '500', '98', '1418', '3', '620', '1860', '0', '', '0', '2026-10-14 10:25:52', '1418', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','186-3,','1','1','0','0','620','1860','0','','0','0.00','0','0','0','0'); -- id=1717
UPDATE sellbilldetail SET  lastbuyprice = 620.00 , meanbuyprice = 620.00, lastbuyprice_withDiscount = 558.00, meanbuyprice_withDiscount = 589.00
        , lastbuyprice_withTax = 620, meanbuyprice_withTax = 310, lastbuyprice_withDiscountAndTax = 558
                where sellbilldetailid = 1717;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1418, '2026-10-14', 1860, 1860, 1860
                    , 1860, 1674, 1767, 1674
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1860, 930, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1860, sellCostBuyPrice =sellCostBuyPrice+1860
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1860, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1860
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1674, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1767
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1674
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1860
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+930
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1860, 1860, 1860
                    , 1860, 1674, 1767, 1674
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1860, 930, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1860, sellCostBuyPrice =sellCostBuyPrice+1860
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1860, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1860
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1674, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1767
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1674
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1860
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+930
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '27', userid = '6', storedetaildate = '2026-10-14 10:25:52' WHERE storedetailid = '1431';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1418', '1', '3', '1', '500', 'اضافة فاتورة مبيعات', 'sellbillController.php', '30', '27', '6', '2026-10-14 10:25:52','0','0'); -- id=5226
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 348;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('580','01503', '500', '108', '1503', '6', '600', '3600', '0', '', '0', '2026-10-14 10:25:52', '1503', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','348-6,','1','1','0','0','600','3600','0','','0','0.00','0','0','0','0'); -- id=1718
UPDATE sellbilldetail SET  lastbuyprice = 580.00 , meanbuyprice = 580.00, lastbuyprice_withDiscount = 580.00, meanbuyprice_withDiscount = 580.00
        , lastbuyprice_withTax = 580, meanbuyprice_withTax = 580, lastbuyprice_withDiscountAndTax = 580
                where sellbilldetailid = 1718;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1503, '2026-10-14', 3600, 3480, 3480
                    , 3480, 3480, 3480, 3480
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 3480, 3480, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3600, sellCostBuyPrice =sellCostBuyPrice+3480
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3480, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3480
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3480, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3480
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3480
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3480
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3480
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3600, 3480, 3480
                    , 3480, 3480, 3480, 3480
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3480, 3480, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3600, sellCostBuyPrice =sellCostBuyPrice+3480
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3480, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3480
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3480, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3480
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3480
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3480
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3480
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '30', userid = '6', storedetaildate = '2026-10-14 10:25:52' WHERE storedetailid = '1528';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1503', '1', '6', '1', '500', 'اضافة فاتورة مبيعات', 'sellbillController.php', '36', '30', '6', '2026-10-14 10:25:52','0','0'); -- id=5227
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 949;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('430','01497', '500', '108', '1497', '6', '450', '2700', '0', '', '0', '2026-10-14 10:25:52', '1497', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','949-6,','1','1','0','0','450','2700','0','','0','0.00','0','0','0','0'); -- id=1719
UPDATE sellbilldetail SET  lastbuyprice = 430.00 , meanbuyprice = 430.00, lastbuyprice_withDiscount = 430.00, meanbuyprice_withDiscount = 430.00
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 430
                where sellbilldetailid = 1719;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1497, '2026-10-14', 2700, 2580, 2580
                    , 2580, 2580, 2580, 2580
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2580, 2580, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2580
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2580, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2580
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2580, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2580
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2580
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2580
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2580
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2580, 2580
                    , 2580, 2580, 2580, 2580
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2580, 2580, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2580
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2580, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2580
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2580, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2580
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2580
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2580
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2580
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '30', userid = '6', storedetaildate = '2026-10-14 10:25:52' WHERE storedetailid = '1522';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1497', '1', '6', '1', '500', 'اضافة فاتورة مبيعات', 'sellbillController.php', '36', '30', '6', '2026-10-14 10:25:52','0','0'); -- id=5228
CALL saveInUse(4,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '216000',  userid = '6' WHERE saveid = '4';
UPDATE save SET  inUse = 0 where saveid = 4;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('204540','11460', '0', '4', 'اضافة فاتورة مبيعات', '500', '216000', '2026-10-14 10:25:52', '6',  'sellbillController.php','1','','0'); -- id=637
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '11460', '11460', '2026-10-14', '6', '0', '0', '2026-10-14 10:25:52','اضافة فاتورة مبيعات رقم 500','1','0',null,'0','500','sellbillController.php?do=showDetail&sellbillid=500'); -- id=2328
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2328', '568', '11460', '','0'); -- id=2377
UPDATE accountstree SET name = 'خزنة شروال', customName = 'خزنة شروال', customNameEn = 'خزنة شروال', nameEn = 'خزنة شروال', parent = '40', accountNature = '0', theValue = '216000', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-06 13:37:54' WHERE id = '568';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2328', '143', '11460', '','0'); -- id=2330
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5022475', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '10704', '10704', '2026-10-14', '6', '0', '0', '2026-10-14 10:25:52','اضافة فاتورة مبيعات رقم 500 - صرف البضاعة من المخزن','1','0',null,'0','500','sellbillController.php?do=showDetail&sellbillid=500'); -- id=2329
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2329', '402', '10704', '','0'); -- id=2378
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '4691871.14', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2329', '382', '10704', '','0'); -- id=2331
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21459874.16', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2328,0,2329' where sellbillid=500;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 11460, 11220, 11220
                    , 11220, 10704, 10962, 10704
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,11220, 8640, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+11460, sellCostBuyPrice =sellCostBuyPrice+11220
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+11220, sellCostMeanBuyPrice = sellCostMeanBuyPrice+11220
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+10704, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+10962
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+10704
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+11220
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+8640
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 11460, 11220, 11220
                    , 11220, 10704, 10962, 10704
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,11220, 8640, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+11460, sellCostBuyPrice =sellCostBuyPrice+11220
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+11220, sellCostMeanBuyPrice = sellCostMeanBuyPrice+11220
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+10704, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+10962
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+10704
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+11220
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+8640
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 11460, 11220, 11220
                    , 11220, 10704, 10962, 10704, 11220, 8640)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+11460, netSellCostBuyPrice = netSellCostBuyPrice+11220
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+11220
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+11220
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+10704
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+10962
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+10704
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+11220
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+8640;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf2da601965 and sellbillId = 500 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 06:55:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:25:52", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:25:52', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8973
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:04:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:34:52", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 10:34:52', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8974
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 07:04:52";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 10:34:52', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8975
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:05:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:35:42", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 10:35:42', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8976
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 07:05:42";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 10:35:42', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8977
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:05:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:35:49", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:35:49', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=8978

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf2328929f1
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 10:35:49', '06acf2328929f1', '1', '0.00', '0', '0', '1', '202330.00', '202330', '202330', '0', '1', '2026-10-14 10:35:49', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '550' ,'0','','','','','-1','0','0','0','0','0','202330','0','','0','0','202330','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=501
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','501', '0', '2026-10-14 10:35:49', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '202330', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 10:35:49','0','0','',''); -- id=646
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+45 where id = 866;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('235','01841', '501', '142', '1841', '45', '250', '11250', '0', '', '0', '2026-10-14 10:35:49', '1841', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','866-45,','1','1','0','0','250','11250','0','','0','0.00','0','0','0','0'); -- id=1720
UPDATE sellbilldetail SET  lastbuyprice = 235.00 , meanbuyprice = 235.00, lastbuyprice_withDiscount = 235.00, meanbuyprice_withDiscount = 235.00
        , lastbuyprice_withTax = 235, meanbuyprice_withTax = 117.5, lastbuyprice_withDiscountAndTax = 235
                where sellbilldetailid = 1720;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1841, '2026-10-14', 11250, 10575, 10575
                    , 10575, 10575, 10575, 10575
                    , 0, 0, 0, 0
                    , 0, 0, 0, 45, 0, 10575, 5287.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+11250, sellCostBuyPrice =sellCostBuyPrice+10575
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+10575, sellCostMeanBuyPrice = sellCostMeanBuyPrice+10575
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+10575, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+10575
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+10575
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+10575
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5287.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+45
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 11250, 10575, 10575
                    , 10575, 10575, 10575, 10575
                    , 0, 0, 0, 0
                    , 0, 0, 0, 10575, 5287.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+11250, sellCostBuyPrice =sellCostBuyPrice+10575
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+10575, sellCostMeanBuyPrice = sellCostMeanBuyPrice+10575
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+10575, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+10575
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+10575
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+10575
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5287.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '147', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2856';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1841', '1', '45', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '192', '147', '3', '2026-10-14 10:35:49','0','0'); -- id=5229
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 154;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('419.99','01404', '501', '99', '1404', '3', '420', '1260', '0', '', '0', '2026-10-14 10:35:49', '1404', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','154-3,','1','1','0','0','420','1260','0','','0','0.00','0','0','0','0'); -- id=1721
UPDATE sellbilldetail SET  lastbuyprice = 420.00 , meanbuyprice = 420.00, lastbuyprice_withDiscount = 419.99, meanbuyprice_withDiscount = 419.99
        , lastbuyprice_withTax = 420, meanbuyprice_withTax = 420, lastbuyprice_withDiscountAndTax = 419.99
                where sellbilldetailid = 1721;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1404, '2026-10-14', 1260, 1260, 1260
                    , 1260, 1259.97, 1259.97, 1259.97
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1260, 1260, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1260, sellCostBuyPrice =sellCostBuyPrice+1260
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1260, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1260
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1259.97, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1259.97
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1259.97
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1260
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1260
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1260, 1260, 1260
                    , 1260, 1259.97, 1259.97, 1259.97
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1260, 1260, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1260, sellCostBuyPrice =sellCostBuyPrice+1260
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1260, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1260
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1259.97, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1259.97
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1259.97
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1260
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1260
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '509', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1417';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1404', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '512', '509', '3', '2026-10-14 10:35:49','0','0'); -- id=5230
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 543;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('441','01641', '501', '122', '1641', '3', '490', '1470', '0', '', '0', '2026-10-14 10:35:49', '1641', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','543-3,','1','1','0','0','490','1470','0','','0','0.00','0','0','0','0'); -- id=1722
UPDATE sellbilldetail SET  lastbuyprice = 490.00 , meanbuyprice = 490.00, lastbuyprice_withDiscount = 441.00, meanbuyprice_withDiscount = 441.00
        , lastbuyprice_withTax = 490, meanbuyprice_withTax = 490, lastbuyprice_withDiscountAndTax = 441
                where sellbilldetailid = 1722;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1641, '2026-10-14', 1470, 1470, 1470
                    , 1470, 1323, 1323, 1323
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1470, 1470, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1470, sellCostBuyPrice =sellCostBuyPrice+1470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1323, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1323
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1323
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1470
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1470, 1470, 1470
                    , 1470, 1323, 1323, 1323
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1470, 1470, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1470, sellCostBuyPrice =sellCostBuyPrice+1470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1323, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1323
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1323
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1470
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '9', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1666';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1641', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '12', '9', '3', '2026-10-14 10:35:49','0','0'); -- id=5231
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 535;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('386.4','01633', '501', '120', '1633', '9', '420', '3780', '0', '', '0', '2026-10-14 10:35:49', '1633', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','535-9,','1','1','0','0','420','3780','0','','0','0.00','0','0','0','0'); -- id=1723
UPDATE sellbilldetail SET  lastbuyprice = 420.00 , meanbuyprice = 420.00, lastbuyprice_withDiscount = 386.40, meanbuyprice_withDiscount = 386.40
        , lastbuyprice_withTax = 420, meanbuyprice_withTax = 420, lastbuyprice_withDiscountAndTax = 386.4
                where sellbilldetailid = 1723;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1633, '2026-10-14', 3780, 3780, 3780
                    , 3780, 3477.6, 3477.6, 3477.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3780, 3780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3780, sellCostBuyPrice =sellCostBuyPrice+3780
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3780, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3780
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3477.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3477.6
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3477.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3780
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3780, 3780, 3780
                    , 3780, 3477.6, 3477.6, 3477.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3780, 3780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3780, sellCostBuyPrice =sellCostBuyPrice+3780
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3780, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3780
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3477.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3477.6
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3477.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3780
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '9', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1658';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1633', '1', '9', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '18', '9', '3', '2026-10-14 10:35:49','0','0'); -- id=5232
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 788;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('441','01805', '501', '122', '1805', '3', '490', '1470', '0', '', '0', '2026-10-14 10:35:49', '1805', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','788-3,','1','1','0','0','490','1470','0','','0','0.00','0','0','0','0'); -- id=1724
UPDATE sellbilldetail SET  lastbuyprice = 490.00 , meanbuyprice = 490.00, lastbuyprice_withDiscount = 441.00, meanbuyprice_withDiscount = 441.00
        , lastbuyprice_withTax = 490, meanbuyprice_withTax = 490, lastbuyprice_withDiscountAndTax = 441
                where sellbilldetailid = 1724;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1805, '2026-10-14', 1470, 1470, 1470
                    , 1470, 1323, 1323, 1323
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1470, 1470, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1470, sellCostBuyPrice =sellCostBuyPrice+1470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1323, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1323
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1323
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1470
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1470, 1470, 1470
                    , 1470, 1323, 1323, 1323
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1470, 1470, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1470, sellCostBuyPrice =sellCostBuyPrice+1470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1323, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1323
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1323
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1470
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '18', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2819';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1805', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '21', '18', '3', '2026-10-14 10:35:49','0','0'); -- id=5233
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 626;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('441.6','01727', '501', '132', '1727', '9', '480', '4320', '0', '', '0', '2026-10-14 10:35:49', '1727', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','626-9,','1','1','0','0','480','4320','0','','0','0.00','0','0','0','0'); -- id=1725
UPDATE sellbilldetail SET  lastbuyprice = 480.00 , meanbuyprice = 480.00, lastbuyprice_withDiscount = 441.60, meanbuyprice_withDiscount = 460.80
        , lastbuyprice_withTax = 480, meanbuyprice_withTax = 240, lastbuyprice_withDiscountAndTax = 441.6
                where sellbilldetailid = 1725;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1727, '2026-10-14', 4320, 4320, 4320
                    , 4320, 3974.4, 4147.2, 3974.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 4320, 2160, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4320, sellCostBuyPrice =sellCostBuyPrice+4320
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4320, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4320
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3974.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4147.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3974.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4320
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2160
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4320, 4320, 4320
                    , 4320, 3974.4, 4147.2, 3974.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4320, 2160, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4320, sellCostBuyPrice =sellCostBuyPrice+4320
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4320, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4320
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3974.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4147.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3974.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4320
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2160
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '21', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2740';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1727', '1', '9', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '30', '21', '3', '2026-10-14 10:35:49','0','0'); -- id=5234
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '501', '153', '1921', '9', '485', '4365', '0', '', '0', '2026-10-14 10:35:49', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-9,','1','1','0','0','485','4365','0','','0','0.00','0','0','0','0'); -- id=1726
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1726;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 4365, 4140, 4140
                    , 4140, 4140, 4140, 4140
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 4140, 4140, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4365, sellCostBuyPrice =sellCostBuyPrice+4140
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4140, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4140
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4140, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4140
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4140
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4140
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4140
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4365, 4140, 4140
                    , 4140, 4140, 4140, 4140
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4140, 4140, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4365, sellCostBuyPrice =sellCostBuyPrice+4140
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4140, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4140
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4140, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4140
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4140
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4140
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4140
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '243', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '9', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '252', '243', '3', '2026-10-14 10:35:49','0','0'); -- id=5235
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 978;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('429','01884', '501', '147', '1884', '6', '460', '2760', '0', '', '0', '2026-10-14 10:35:49', '1884', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','978-6,','1','1','0','0','460','2760','0','','0','0.00','0','0','0','0'); -- id=1727
UPDATE sellbilldetail SET  lastbuyprice = 429.00 , meanbuyprice = 429.00, lastbuyprice_withDiscount = 429.00, meanbuyprice_withDiscount = 429.00
        , lastbuyprice_withTax = 429, meanbuyprice_withTax = 429, lastbuyprice_withDiscountAndTax = 429
                where sellbilldetailid = 1727;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1884, '2026-10-14', 2760, 2574, 2574
                    , 2574, 2574, 2574, 2574
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2574, 2574, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2760, sellCostBuyPrice =sellCostBuyPrice+2574
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2574, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2574
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2574, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2574
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2574
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2574
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2574
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2760, 2574, 2574
                    , 2574, 2574, 2574, 2574
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2574, 2574, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2760, sellCostBuyPrice =sellCostBuyPrice+2574
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2574, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2574
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2574, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2574
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2574
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2574
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2574
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '286', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2901';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1884', '1', '6', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '292', '286', '3', '2026-10-14 10:35:49','0','0'); -- id=5236
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 624;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('345','01725', '501', '132', '1725', '6', '375', '2250', '0', '', '0', '2026-10-14 10:35:49', '1725', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','624-6,','1','1','0','0','375','2250','0','','0','0.00','0','0','0','0'); -- id=1728
UPDATE sellbilldetail SET  lastbuyprice = 375.00 , meanbuyprice = 375.00, lastbuyprice_withDiscount = 345.00, meanbuyprice_withDiscount = 360.00
        , lastbuyprice_withTax = 375, meanbuyprice_withTax = 187.5, lastbuyprice_withDiscountAndTax = 345
                where sellbilldetailid = 1728;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1725, '2026-10-14', 2250, 2250, 2250
                    , 2250, 2070, 2160, 2070
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2250, 1125, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2250, sellCostBuyPrice =sellCostBuyPrice+2250
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2250, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2250
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2070, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2160
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2070
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2250
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1125
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2250, 2250, 2250
                    , 2250, 2070, 2160, 2070
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2250, 1125, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2250, sellCostBuyPrice =sellCostBuyPrice+2250
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2250, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2250
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2070, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2160
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2070
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2250
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1125
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '27', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2738';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1725', '1', '6', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '33', '27', '3', '2026-10-14 10:35:49','0','0'); -- id=5237
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 154;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('419.99','01404', '501', '99', '1404', '4', '420', '1680', '0', '', '0', '2026-10-14 10:35:49', '1404', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','154-4,','1','1','0','0','420','1680','0','','0','0.00','0','0','0','0'); -- id=1729
UPDATE sellbilldetail SET  lastbuyprice = 420.00 , meanbuyprice = 420.00, lastbuyprice_withDiscount = 419.99, meanbuyprice_withDiscount = 419.99
        , lastbuyprice_withTax = 420, meanbuyprice_withTax = 420, lastbuyprice_withDiscountAndTax = 419.99
                where sellbilldetailid = 1729;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1404, '2026-10-14', 1680, 1680, 1680
                    , 1680, 1679.96, 1679.96, 1679.96
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 1680, 1680, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1680, sellCostBuyPrice =sellCostBuyPrice+1680
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1680, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1680
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1679.96, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1679.96
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1679.96
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1680
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1680
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1680, 1680, 1680
                    , 1680, 1679.96, 1679.96, 1679.96
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1680, 1680, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1680, sellCostBuyPrice =sellCostBuyPrice+1680
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1680, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1680
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1679.96, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1679.96
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1679.96
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1680
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1680
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '505', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1417';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1404', '1', '4', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '509', '505', '3', '2026-10-14 10:35:49','0','0'); -- id=5238
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+8 where id = 688;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('276','01467', '501', '104', '1467', '8', '340', '2720', '0', '', '0', '2026-10-14 10:35:49', '1467', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','688-8,','1','1','0','0','340','2720','0','','0','0.00','0','0','0','0'); -- id=1730
UPDATE sellbilldetail SET  lastbuyprice = 276.00 , meanbuyprice = 276.00, lastbuyprice_withDiscount = 276.00, meanbuyprice_withDiscount = 276.00
        , lastbuyprice_withTax = 276, meanbuyprice_withTax = 276, lastbuyprice_withDiscountAndTax = 276
                where sellbilldetailid = 1730;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1467, '2026-10-14', 2720, 2208, 2208
                    , 2208, 2208, 2208, 2208
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8, 0, 2208, 2208, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2720, sellCostBuyPrice =sellCostBuyPrice+2208
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2208, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2208
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2208, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2208
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2208
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2208
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2208
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+8
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2720, 2208, 2208
                    , 2208, 2208, 2208, 2208
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2208, 2208, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2720, sellCostBuyPrice =sellCostBuyPrice+2208
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2208, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2208
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2208, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2208
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2208
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2208
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2208
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '540', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1492';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1467', '1', '8', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '548', '540', '3', '2026-10-14 10:35:49','0','0'); -- id=5239
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 213;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('485','01432', '501', '100', '1432', '3', '515', '1545', '0', '', '0', '2026-10-14 10:35:49', '1432', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','213-3,','1','1','0','0','515','1545','0','','0','0.00','0','0','0','0'); -- id=1731
UPDATE sellbilldetail SET  lastbuyprice = 485.00 , meanbuyprice = 482.50, lastbuyprice_withDiscount = 485.00, meanbuyprice_withDiscount = 482.50
        , lastbuyprice_withTax = 482.5, meanbuyprice_withTax = 482.5, lastbuyprice_withDiscountAndTax = 485
                where sellbilldetailid = 1731;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1432, '2026-10-14', 1545, 1440, 1455
                    , 1447.5, 1455, 1447.5, 1455
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1447.5, 1447.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1545, sellCostBuyPrice =sellCostBuyPrice+1440
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1455, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1447.5
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1455, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1447.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1455
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1447.5
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1447.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1545, 1440, 1455
                    , 1447.5, 1455, 1447.5, 1455
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1447.5, 1447.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1545, sellCostBuyPrice =sellCostBuyPrice+1440
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1455, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1447.5
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1455, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1447.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1455
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1447.5
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1447.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '9', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1445';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1432', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '12', '9', '3', '2026-10-14 10:35:49','0','0'); -- id=5240
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 861;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('515.2','01836', '501', '124', '1836', '6', '560', '3360', '0', '', '0', '2026-10-14 10:35:49', '1836', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','861-6,','1','1','0','0','560','3360','0','','0','0.00','0','0','0','0'); -- id=1732
UPDATE sellbilldetail SET  lastbuyprice = 560.00 , meanbuyprice = 560.00, lastbuyprice_withDiscount = 515.20, meanbuyprice_withDiscount = 515.20
        , lastbuyprice_withTax = 560, meanbuyprice_withTax = 560, lastbuyprice_withDiscountAndTax = 515.2
                where sellbilldetailid = 1732;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1836, '2026-10-14', 3360, 3360, 3360
                    , 3360, 3091.2, 3091.2, 3091.2
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 3360, 3360, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3360, sellCostBuyPrice =sellCostBuyPrice+3360
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3360, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3360
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3091.2, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3091.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3091.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3360
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3360
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3360, 3360, 3360
                    , 3360, 3091.2, 3091.2, 3091.2
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3360, 3360, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3360, sellCostBuyPrice =sellCostBuyPrice+3360
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3360, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3360
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3091.2, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3091.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3091.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3360
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3360
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '21', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2851';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1836', '1', '6', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '27', '21', '3', '2026-10-14 10:35:49','0','0'); -- id=5241
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 250;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('480','01487', '501', '107', '1487', '4', '520', '2080', '0', '', '0', '2026-10-14 10:35:49', '1487', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','250-4,','1','1','0','0','520','2080','0','','0','0.00','0','0','0','0'); -- id=1733
UPDATE sellbilldetail SET  lastbuyprice = 480.00 , meanbuyprice = 480.00, lastbuyprice_withDiscount = 480.00, meanbuyprice_withDiscount = 480.00
        , lastbuyprice_withTax = 480, meanbuyprice_withTax = 480, lastbuyprice_withDiscountAndTax = 480
                where sellbilldetailid = 1733;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1487, '2026-10-14', 2080, 1920, 1920
                    , 1920, 1920, 1920, 1920
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 1920, 1920, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2080, sellCostBuyPrice =sellCostBuyPrice+1920
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1920, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1920
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1920, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1920
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1920
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1920
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1920
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2080, 1920, 1920
                    , 1920, 1920, 1920, 1920
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1920, 1920, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2080, sellCostBuyPrice =sellCostBuyPrice+1920
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1920, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1920
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1920, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1920
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1920
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1920
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1920
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '16', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1512';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1487', '1', '4', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '20', '16', '3', '2026-10-14 10:35:49','0','0'); -- id=5242
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 985;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('364','01891', '501', '147', '1891', '6', '395', '2370', '0', '', '0', '2026-10-14 10:35:49', '1891', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','985-6,','1','1','0','0','395','2370','0','','0','0.00','0','0','0','0'); -- id=1734
UPDATE sellbilldetail SET  lastbuyprice = 364.00 , meanbuyprice = 364.00, lastbuyprice_withDiscount = 364.00, meanbuyprice_withDiscount = 364.00
        , lastbuyprice_withTax = 364, meanbuyprice_withTax = 364, lastbuyprice_withDiscountAndTax = 364
                where sellbilldetailid = 1734;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1891, '2026-10-14', 2370, 2184, 2184
                    , 2184, 2184, 2184, 2184
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2184, 2184, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2370, sellCostBuyPrice =sellCostBuyPrice+2184
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2184, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2184
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2184, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2184
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2184
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2184
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2184
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2370, 2184, 2184
                    , 2184, 2184, 2184, 2184
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2184, 2184, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2370, sellCostBuyPrice =sellCostBuyPrice+2184
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2184, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2184
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2184, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2184
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2184
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2184
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2184
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '324', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2908';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1891', '1', '6', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '330', '324', '3', '2026-10-14 10:35:49','0','0'); -- id=5243
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 985;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('364','01891', '501', '147', '1891', '12', '395', '4740', '0', '', '0', '2026-10-14 10:35:49', '1891', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','985-12,','1','1','0','0','395','4740','0','','0','0.00','0','0','0','0'); -- id=1735
UPDATE sellbilldetail SET  lastbuyprice = 364.00 , meanbuyprice = 364.00, lastbuyprice_withDiscount = 364.00, meanbuyprice_withDiscount = 364.00
        , lastbuyprice_withTax = 364, meanbuyprice_withTax = 364, lastbuyprice_withDiscountAndTax = 364
                where sellbilldetailid = 1735;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1891, '2026-10-14', 4740, 4368, 4368
                    , 4368, 4368, 4368, 4368
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 4368, 4368, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4740, sellCostBuyPrice =sellCostBuyPrice+4368
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4368, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4368
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4368, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4368
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4368
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4368
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4368
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4740, 4368, 4368
                    , 4368, 4368, 4368, 4368
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4368, 4368, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4740, sellCostBuyPrice =sellCostBuyPrice+4368
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4368, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4368
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4368, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4368
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4368
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4368
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4368
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '312', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2908';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1891', '1', '12', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '324', '312', '3', '2026-10-14 10:35:49','0','0'); -- id=5244
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+21 where id = 981;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('379','01887', '501', '147', '1887', '21', '410', '8610', '0', '', '0', '2026-10-14 10:35:49', '1887', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','981-21,','1','1','0','0','410','8610','0','','0','0.00','0','0','0','0'); -- id=1736
UPDATE sellbilldetail SET  lastbuyprice = 379.00 , meanbuyprice = 379.00, lastbuyprice_withDiscount = 379.00, meanbuyprice_withDiscount = 379.00
        , lastbuyprice_withTax = 379, meanbuyprice_withTax = 379, lastbuyprice_withDiscountAndTax = 379
                where sellbilldetailid = 1736;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1887, '2026-10-14', 8610, 7959, 7959
                    , 7959, 7959, 7959, 7959
                    , 0, 0, 0, 0
                    , 0, 0, 0, 21, 0, 7959, 7959, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8610, sellCostBuyPrice =sellCostBuyPrice+7959
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7959, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7959
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7959, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7959
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7959
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7959
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7959
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+21
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 8610, 7959, 7959
                    , 7959, 7959, 7959, 7959
                    , 0, 0, 0, 0
                    , 0, 0, 0, 7959, 7959, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8610, sellCostBuyPrice =sellCostBuyPrice+7959
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7959, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7959
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7959, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7959
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7959
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7959
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7959
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '351', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2904';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1887', '1', '21', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '372', '351', '3', '2026-10-14 10:35:49','0','0'); -- id=5245
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 332;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('410','01462', '501', '103', '1462', '6', '430', '2580', '0', '', '0', '2026-10-14 10:35:49', '1462', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','332-6,','1','1','0','0','430','2580','0','','0','0.00','0','0','0','0'); -- id=1737
UPDATE sellbilldetail SET  lastbuyprice = 410.00 , meanbuyprice = 410.00, lastbuyprice_withDiscount = 410.00, meanbuyprice_withDiscount = 410.00
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 410, lastbuyprice_withDiscountAndTax = 410
                where sellbilldetailid = 1737;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1462, '2026-10-14', 2580, 2460, 2460
                    , 2460, 2460, 2460, 2460
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2460, 2460, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2580, sellCostBuyPrice =sellCostBuyPrice+2460
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2460, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2460
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2460, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2460
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2460
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2460
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2460
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2580, 2460, 2460
                    , 2460, 2460, 2460, 2460
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2460, 2460, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2580, sellCostBuyPrice =sellCostBuyPrice+2460
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2460, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2460
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2460, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2460
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2460
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2460
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2460
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '216', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1487';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1462', '1', '6', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '222', '216', '3', '2026-10-14 10:35:49','0','0'); -- id=5246
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 425;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('372','01584', '501', '115', '1584', '6', '400', '2400', '0', '', '0', '2026-10-14 10:35:49', '1584', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','425-6,','1','1','0','0','400','2400','0','','0','0.00','0','0','0','0'); -- id=1738
UPDATE sellbilldetail SET  lastbuyprice = 400.00 , meanbuyprice = 400.00, lastbuyprice_withDiscount = 372.00, meanbuyprice_withDiscount = 372.00
        , lastbuyprice_withTax = 400, meanbuyprice_withTax = 400, lastbuyprice_withDiscountAndTax = 372
                where sellbilldetailid = 1738;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1584, '2026-10-14', 2400, 2400, 2400
                    , 2400, 2232, 2232, 2232
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2400, 2400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2400, sellCostBuyPrice =sellCostBuyPrice+2400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2232, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2232
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2232
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2400, 2400, 2400
                    , 2400, 2232, 2232, 2232
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2400, 2400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2400, sellCostBuyPrice =sellCostBuyPrice+2400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2232, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2232
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2232
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '3', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1609';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '1', '6', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '9', '3', '3', '2026-10-14 10:35:49','0','0'); -- id=5247
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+18 where id = 980;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('289','01886', '501', '147', '1886', '18', '320', '5760', '0', '', '0', '2026-10-14 10:35:49', '1886', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','980-18,','1','1','0','0','320','5760','0','','0','0.00','0','0','0','0'); -- id=1739
UPDATE sellbilldetail SET  lastbuyprice = 289.00 , meanbuyprice = 289.00, lastbuyprice_withDiscount = 289.00, meanbuyprice_withDiscount = 289.00
        , lastbuyprice_withTax = 289, meanbuyprice_withTax = 289, lastbuyprice_withDiscountAndTax = 289
                where sellbilldetailid = 1739;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1886, '2026-10-14', 5760, 5202, 5202
                    , 5202, 5202, 5202, 5202
                    , 0, 0, 0, 0
                    , 0, 0, 0, 18, 0, 5202, 5202, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5760, sellCostBuyPrice =sellCostBuyPrice+5202
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5202, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5202
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5202, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5202
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5202
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5202
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5202
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+18
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5760, 5202, 5202
                    , 5202, 5202, 5202, 5202
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5202, 5202, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5760, sellCostBuyPrice =sellCostBuyPrice+5202
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5202, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5202
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5202, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5202
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5202
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5202
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5202
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '110', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2903';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1886', '1', '18', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '128', '110', '3', '2026-10-14 10:35:49','0','0'); -- id=5248
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 72;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('350','01380', '501', '94', '1380', '9', '390', '3510', '0', '', '0', '2026-10-14 10:35:49', '1380', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','72-9,','1','1','0','0','390','3510','0','','0','0.00','0','0','0','0'); -- id=1740
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 350.00, meanbuyprice_withDiscount = 350.00
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 350
                where sellbilldetailid = 1740;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1380, '2026-10-14', 3510, 3150, 3150
                    , 3150, 3150, 3150, 3150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3150, 3150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3510, sellCostBuyPrice =sellCostBuyPrice+3150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3510, 3150, 3150
                    , 3150, 3150, 3150, 3150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3150, 3150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3510, sellCostBuyPrice =sellCostBuyPrice+3150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '552', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1380';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1380', '1', '9', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '561', '552', '3', '2026-10-14 10:35:49','0','0'); -- id=5249
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 770;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('432','01649', '501', '123', '1649', '3', '480', '1440', '0', '', '0', '2026-10-14 10:35:49', '1649', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','770-3,','1','1','0','0','480','1440','0','','0','0.00','0','0','0','0'); -- id=1741
UPDATE sellbilldetail SET  lastbuyprice = 480.00 , meanbuyprice = 480.00, lastbuyprice_withDiscount = 432.00, meanbuyprice_withDiscount = 456.00
        , lastbuyprice_withTax = 480, meanbuyprice_withTax = 240, lastbuyprice_withDiscountAndTax = 432
                where sellbilldetailid = 1741;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1649, '2026-10-14', 1440, 1440, 1440
                    , 1440, 1296, 1368, 1296
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1440, 720, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1440, sellCostBuyPrice =sellCostBuyPrice+1440
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1440, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1440
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1296, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1368
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1296
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1440
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+720
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1440, 1440, 1440
                    , 1440, 1296, 1368, 1296
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1440, 720, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1440, sellCostBuyPrice =sellCostBuyPrice+1440
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1440, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1440
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1296, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1368
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1296
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1440
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+720
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '21', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1674';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1649', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '21', '3', '2026-10-14 10:35:49','0','0'); -- id=5250
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 992;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('441.6','01898', '501', '149', '1898', '6', '480', '2880', '0', '', '0', '2026-10-14 10:35:49', '1898', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','992-6,','1','1','0','0','480','2880','0','','0','0.00','0','0','0','0'); -- id=1742
UPDATE sellbilldetail SET  lastbuyprice = 480.00 , meanbuyprice = 480.00, lastbuyprice_withDiscount = 441.60, meanbuyprice_withDiscount = 460.80
        , lastbuyprice_withTax = 480, meanbuyprice_withTax = 240, lastbuyprice_withDiscountAndTax = 441.6
                where sellbilldetailid = 1742;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1898, '2026-10-14', 2880, 2880, 2880
                    , 2880, 2649.6, 2764.8, 2649.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2880, 1440, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2880, sellCostBuyPrice =sellCostBuyPrice+2880
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2880, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2880
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2649.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2764.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2649.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2880
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1440
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2880, 2880, 2880
                    , 2880, 2649.6, 2764.8, 2649.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2880, 1440, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2880, sellCostBuyPrice =sellCostBuyPrice+2880
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2880, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2880
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2649.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2764.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2649.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2880
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1440
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '18', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2915';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1898', '1', '6', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '18', '3', '2026-10-14 10:35:49','0','0'); -- id=5251
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 72;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('350','01380', '501', '94', '1380', '3', '390', '1170', '0', '', '0', '2026-10-14 10:35:49', '1380', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','72-3,','1','1','0','0','390','1170','0','','0','0.00','0','0','0','0'); -- id=1743
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 350.00, meanbuyprice_withDiscount = 350.00
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 350
                where sellbilldetailid = 1743;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1380, '2026-10-14', 1170, 1050, 1050
                    , 1050, 1050, 1050, 1050
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1050, 1050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1050
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1050, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1050
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1050, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1050
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1050
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1050
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1050
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1170, 1050, 1050
                    , 1050, 1050, 1050, 1050
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1050, 1050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1050
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1050, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1050
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1050, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1050
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1050
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1050
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1050
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '549', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1380';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1380', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '552', '549', '3', '2026-10-14 10:35:49','0','0'); -- id=5252
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 79;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('477','01387', '501', '95', '1387', '3', '530', '1590', '0', '', '0', '2026-10-14 10:35:49', '1387', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','79-3,','1','1','0','0','530','1590','0','','0','0.00','0','0','0','0'); -- id=1744
UPDATE sellbilldetail SET  lastbuyprice = 530.00 , meanbuyprice = 530.00, lastbuyprice_withDiscount = 477.00, meanbuyprice_withDiscount = 504.76
        , lastbuyprice_withTax = 530, meanbuyprice_withTax = 252.38, lastbuyprice_withDiscountAndTax = 477
                where sellbilldetailid = 1744;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1387, '2026-10-14', 1590, 1590, 1590
                    , 1590, 1431, 1514.28, 1431
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1590, 757.14, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1590, sellCostBuyPrice =sellCostBuyPrice+1590
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1590, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1590
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1431, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1514.28
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1431
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1590
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+757.14
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1590, 1590, 1590
                    , 1590, 1431, 1514.28, 1431
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1590, 757.14, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1590, sellCostBuyPrice =sellCostBuyPrice+1590
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1590, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1590
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1431, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1514.28
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1431
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1590
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+757.14
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '12', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1387';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1387', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '15', '12', '3', '2026-10-14 10:35:49','0','0'); -- id=5253
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 76;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('441','01384', '501', '95', '1384', '3', '490', '1470', '0', '', '0', '2026-10-14 10:35:49', '1384', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','76-3,','1','1','0','0','490','1470','0','','0','0.00','0','0','0','0'); -- id=1745
UPDATE sellbilldetail SET  lastbuyprice = 490.00 , meanbuyprice = 490.00, lastbuyprice_withDiscount = 441.00, meanbuyprice_withDiscount = 465.50
        , lastbuyprice_withTax = 490, meanbuyprice_withTax = 245, lastbuyprice_withDiscountAndTax = 441
                where sellbilldetailid = 1745;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1384, '2026-10-14', 1470, 1470, 1470
                    , 1470, 1323, 1396.5, 1323
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1470, 735, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1470, sellCostBuyPrice =sellCostBuyPrice+1470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1323, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1396.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1323
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+735
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1470, 1470, 1470
                    , 1470, 1323, 1396.5, 1323
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1470, 735, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1470, sellCostBuyPrice =sellCostBuyPrice+1470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1323, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1396.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1323
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+735
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '258', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1384';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1384', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '261', '258', '3', '2026-10-14 10:35:49','0','0'); -- id=5254
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 77;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('351','01386', '501', '95', '1386', '3', '390', '1170', '0', '', '0', '2026-10-14 10:35:49', '1386', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','77-3,','1','1','0','0','390','1170','0','','0','0.00','0','0','0','0'); -- id=1746
UPDATE sellbilldetail SET  lastbuyprice = 390.00 , meanbuyprice = 390.00, lastbuyprice_withDiscount = 351.00, meanbuyprice_withDiscount = 370.97
        , lastbuyprice_withTax = 390, meanbuyprice_withTax = 190.32, lastbuyprice_withDiscountAndTax = 351
                where sellbilldetailid = 1746;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1386, '2026-10-14', 1170, 1170, 1170
                    , 1170, 1053, 1112.91, 1053
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1170, 570.96, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1170
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1170, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1170
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1053, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1112.91
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1053
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1170
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+570.96
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1170, 1170, 1170
                    , 1170, 1053, 1112.91, 1053
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1170, 570.96, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1170
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1170, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1170
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1053, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1112.91
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1053
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1170
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+570.96
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '165', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1386';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1386', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '168', '165', '3', '2026-10-14 10:35:49','0','0'); -- id=5255
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 83;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('468','01391', '501', '95', '1391', '6', '520', '3120', '0', '', '0', '2026-10-14 10:35:49', '1391', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','83-6,','1','1','0','0','520','3120','0','','0','0.00','0','0','0','0'); -- id=1747
UPDATE sellbilldetail SET  lastbuyprice = 520.00 , meanbuyprice = 520.00, lastbuyprice_withDiscount = 468.00, meanbuyprice_withDiscount = 494.00
        , lastbuyprice_withTax = 520, meanbuyprice_withTax = 260, lastbuyprice_withDiscountAndTax = 468
                where sellbilldetailid = 1747;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1391, '2026-10-14', 3120, 3120, 3120
                    , 3120, 2808, 2964, 2808
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 3120, 1560, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3120, sellCostBuyPrice =sellCostBuyPrice+3120
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3120, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3120
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2808, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2964
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2808
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3120
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1560
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3120, 3120, 3120
                    , 3120, 2808, 2964, 2808
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3120, 1560, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3120, sellCostBuyPrice =sellCostBuyPrice+3120
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3120, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3120
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2808, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2964
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2808
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3120
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1560
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '45', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1391';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1391', '1', '6', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '51', '45', '3', '2026-10-14 10:35:49','0','0'); -- id=5256
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 902;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('372','01855', '501', '144', '1855', '3', '400', '1200', '0', '', '0', '2026-10-14 10:35:49', '1855', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','902-3,','1','1','0','0','400','1200','0','','0','0.00','0','0','0','0'); -- id=1748
UPDATE sellbilldetail SET  lastbuyprice = 400.00 , meanbuyprice = 400.00, lastbuyprice_withDiscount = 372.00, meanbuyprice_withDiscount = 372.00
        , lastbuyprice_withTax = 400, meanbuyprice_withTax = 400, lastbuyprice_withDiscountAndTax = 372
                where sellbilldetailid = 1748;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1855, '2026-10-14', 1200, 1200, 1200
                    , 1200, 1116, 1116, 1116
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1200, 1200, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1200, sellCostBuyPrice =sellCostBuyPrice+1200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1116, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1116
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1116
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1200
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1200, 1200, 1200
                    , 1200, 1116, 1116, 1116
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1200, 1200, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1200, sellCostBuyPrice =sellCostBuyPrice+1200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1116, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1116
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1116
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1200
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '222', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2872';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1855', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '225', '222', '3', '2026-10-14 10:35:49','0','0'); -- id=5257
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 997;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('423.2','01903', '501', '149', '1903', '3', '460', '1380', '0', '', '0', '2026-10-14 10:35:49', '1903', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','997-3,','1','1','0','0','460','1380','0','','0','0.00','0','0','0','0'); -- id=1749
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 423.20, meanbuyprice_withDiscount = 441.60
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 230, lastbuyprice_withDiscountAndTax = 423.2
                where sellbilldetailid = 1749;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1903, '2026-10-14', 1380, 1380, 1380
                    , 1380, 1269.6, 1324.8, 1269.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1380, 690, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1380, sellCostBuyPrice =sellCostBuyPrice+1380
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1380, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1380
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1269.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1324.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1269.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1380
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+690
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1380, 1380, 1380
                    , 1380, 1269.6, 1324.8, 1269.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1380, 690, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1380, sellCostBuyPrice =sellCostBuyPrice+1380
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1380, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1380
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1269.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1324.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1269.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1380
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+690
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '24', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2920';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1903', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '27', '24', '3', '2026-10-14 10:35:49','0','0'); -- id=5258
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 72;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('350','01380', '501', '94', '1380', '3', '390', '1170', '0', '', '0', '2026-10-14 10:35:49', '1380', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','72-3,','1','1','0','0','390','1170','0','','0','0.00','0','0','0','0'); -- id=1750
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 350.00, meanbuyprice_withDiscount = 350.00
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 350
                where sellbilldetailid = 1750;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1380, '2026-10-14', 1170, 1050, 1050
                    , 1050, 1050, 1050, 1050
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1050, 1050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1050
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1050, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1050
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1050, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1050
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1050
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1050
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1050
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1170, 1050, 1050
                    , 1050, 1050, 1050, 1050
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1050, 1050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1050
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1050, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1050
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1050, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1050
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1050
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1050
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1050
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '546', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1380';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1380', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '549', '546', '3', '2026-10-14 10:35:49','0','0'); -- id=5259
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 425;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('372','01584', '501', '115', '1584', '3', '400', '1200', '0', '', '0', '2026-10-14 10:35:49', '1584', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','425-3,','1','1','0','0','400','1200','0','','0','0.00','0','0','0','0'); -- id=1751
UPDATE sellbilldetail SET  lastbuyprice = 400.00 , meanbuyprice = 400.00, lastbuyprice_withDiscount = 372.00, meanbuyprice_withDiscount = 372.00
        , lastbuyprice_withTax = 400, meanbuyprice_withTax = 400, lastbuyprice_withDiscountAndTax = 372
                where sellbilldetailid = 1751;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1584, '2026-10-14', 1200, 1200, 1200
                    , 1200, 1116, 1116, 1116
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1200, 1200, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1200, sellCostBuyPrice =sellCostBuyPrice+1200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1116, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1116
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1116
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1200
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1200, 1200, 1200
                    , 1200, 1116, 1116, 1116
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1200, 1200, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1200, sellCostBuyPrice =sellCostBuyPrice+1200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1116, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1116
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1116
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1200
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1609';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '3', '0', '3', '2026-10-14 10:35:49','0','0'); -- id=5260
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 77;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('351','01386', '501', '95', '1386', '3', '390', '1170', '0', '', '0', '2026-10-14 10:35:49', '1386', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','77-3,','1','1','0','0','390','1170','0','','0','0.00','0','0','0','0'); -- id=1752
UPDATE sellbilldetail SET  lastbuyprice = 390.00 , meanbuyprice = 390.00, lastbuyprice_withDiscount = 351.00, meanbuyprice_withDiscount = 370.97
        , lastbuyprice_withTax = 390, meanbuyprice_withTax = 190.32, lastbuyprice_withDiscountAndTax = 351
                where sellbilldetailid = 1752;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1386, '2026-10-14', 1170, 1170, 1170
                    , 1170, 1053, 1112.91, 1053
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1170, 570.96, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1170
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1170, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1170
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1053, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1112.91
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1053
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1170
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+570.96
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1170, 1170, 1170
                    , 1170, 1053, 1112.91, 1053
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1170, 570.96, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1170
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1170, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1170
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1053, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1112.91
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1053
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1170
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+570.96
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '162', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1386';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1386', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '165', '162', '3', '2026-10-14 10:35:49','0','0'); -- id=5261
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 902;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('372','01855', '501', '144', '1855', '3', '400', '1200', '0', '', '0', '2026-10-14 10:35:49', '1855', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','902-3,','1','1','0','0','400','1200','0','','0','0.00','0','0','0','0'); -- id=1753
UPDATE sellbilldetail SET  lastbuyprice = 400.00 , meanbuyprice = 400.00, lastbuyprice_withDiscount = 372.00, meanbuyprice_withDiscount = 372.00
        , lastbuyprice_withTax = 400, meanbuyprice_withTax = 400, lastbuyprice_withDiscountAndTax = 372
                where sellbilldetailid = 1753;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1855, '2026-10-14', 1200, 1200, 1200
                    , 1200, 1116, 1116, 1116
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1200, 1200, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1200, sellCostBuyPrice =sellCostBuyPrice+1200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1116, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1116
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1116
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1200
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1200, 1200, 1200
                    , 1200, 1116, 1116, 1116
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1200, 1200, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1200, sellCostBuyPrice =sellCostBuyPrice+1200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1116, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1116
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1116
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1200
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '219', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2872';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1855', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '222', '219', '3', '2026-10-14 10:35:49','0','0'); -- id=5262
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 395;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('450','01576', '501', '113', '1576', '3', '500', '1500', '0', '', '0', '2026-10-14 10:35:49', '1576', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','395-3,','1','1','0','0','500','1500','0','','0','0.00','0','0','0','0'); -- id=1754
UPDATE sellbilldetail SET  lastbuyprice = 500.00 , meanbuyprice = 500.00, lastbuyprice_withDiscount = 450.00, meanbuyprice_withDiscount = 472.23
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 450
                where sellbilldetailid = 1754;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1576, '2026-10-14', 1500, 1500, 1500
                    , 1500, 1350, 1416.69, 1350
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1500, 1500, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1500, sellCostBuyPrice =sellCostBuyPrice+1500
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1500, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1500
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1350, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1416.69
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1350
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1500
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1500
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1500, 1500, 1500
                    , 1500, 1350, 1416.69, 1350
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1500, 1500, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1500, sellCostBuyPrice =sellCostBuyPrice+1500
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1500, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1500
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1350, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1416.69
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1350
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1500
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1500
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '42', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1601';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '45', '42', '3', '2026-10-14 10:35:49','0','0'); -- id=5263
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 71;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01379', '501', '94', '1379', '6', '300', '1800', '0', '', '0', '2026-10-14 10:35:49', '1379', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','71-6,','1','1','0','0','300','1800','0','','0','0.00','0','0','0','0'); -- id=1755
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1755;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1379, '2026-10-14', 1800, 1620, 1620
                    , 1620, 1620, 1620, 1620
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1620, 1620, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1800, sellCostBuyPrice =sellCostBuyPrice+1620
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1620, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1620
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1620, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1620
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1620
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1620
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1620
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1800, 1620, 1620
                    , 1620, 1620, 1620, 1620
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1620, 1620, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1800, sellCostBuyPrice =sellCostBuyPrice+1620
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1620, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1620
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1620, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1620
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1620
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1620
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1620
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '510', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1379';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1379', '1', '6', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '516', '510', '3', '2026-10-14 10:35:49','0','0'); -- id=5264
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 79;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('477','01387', '501', '95', '1387', '3', '530', '1590', '0', '', '0', '2026-10-14 10:35:49', '1387', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','79-3,','1','1','0','0','530','1590','0','','0','0.00','0','0','0','0'); -- id=1756
UPDATE sellbilldetail SET  lastbuyprice = 530.00 , meanbuyprice = 530.00, lastbuyprice_withDiscount = 477.00, meanbuyprice_withDiscount = 504.76
        , lastbuyprice_withTax = 530, meanbuyprice_withTax = 252.38, lastbuyprice_withDiscountAndTax = 477
                where sellbilldetailid = 1756;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1387, '2026-10-14', 1590, 1590, 1590
                    , 1590, 1431, 1514.28, 1431
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1590, 757.14, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1590, sellCostBuyPrice =sellCostBuyPrice+1590
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1590, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1590
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1431, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1514.28
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1431
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1590
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+757.14
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1590, 1590, 1590
                    , 1590, 1431, 1514.28, 1431
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1590, 757.14, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1590, sellCostBuyPrice =sellCostBuyPrice+1590
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1590, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1590
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1431, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1514.28
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1431
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1590
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+757.14
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '9', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1387';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1387', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '12', '9', '3', '2026-10-14 10:35:49','0','0'); -- id=5265
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 989;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('358.8','01895', '501', '148', '1895', '3', '390', '1170', '0', '', '0', '2026-10-14 10:35:49', '1895', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','989-3,','1','1','0','0','390','1170','0','','0','0.00','0','0','0','0'); -- id=1757
UPDATE sellbilldetail SET  lastbuyprice = 390.00 , meanbuyprice = 390.00, lastbuyprice_withDiscount = 358.80, meanbuyprice_withDiscount = 360.64
        , lastbuyprice_withTax = 390, meanbuyprice_withTax = 390, lastbuyprice_withDiscountAndTax = 358.8
                where sellbilldetailid = 1757;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1895, '2026-10-14', 1170, 1170, 1170
                    , 1170, 1076.4, 1081.92, 1076.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1170, 1170, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1170
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1170, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1170
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1076.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1081.92
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1076.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1170
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1170
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1170, 1170, 1170
                    , 1170, 1076.4, 1081.92, 1076.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1170, 1170, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1170
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1170, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1170
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1076.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1081.92
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1076.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1170
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1170
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '93', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2912';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1895', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '96', '93', '3', '2026-10-14 10:35:49','0','0'); -- id=5266
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 76;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('441','01384', '501', '95', '1384', '3', '490', '1470', '0', '', '0', '2026-10-14 10:35:49', '1384', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','76-3,','1','1','0','0','490','1470','0','','0','0.00','0','0','0','0'); -- id=1758
UPDATE sellbilldetail SET  lastbuyprice = 490.00 , meanbuyprice = 490.00, lastbuyprice_withDiscount = 441.00, meanbuyprice_withDiscount = 465.50
        , lastbuyprice_withTax = 490, meanbuyprice_withTax = 245, lastbuyprice_withDiscountAndTax = 441
                where sellbilldetailid = 1758;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1384, '2026-10-14', 1470, 1470, 1470
                    , 1470, 1323, 1396.5, 1323
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1470, 735, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1470, sellCostBuyPrice =sellCostBuyPrice+1470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1323, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1396.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1323
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+735
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1470, 1470, 1470
                    , 1470, 1323, 1396.5, 1323
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1470, 735, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1470, sellCostBuyPrice =sellCostBuyPrice+1470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1323, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1396.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1323
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+735
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '255', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1384';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1384', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '258', '255', '3', '2026-10-14 10:35:49','0','0'); -- id=5267
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 83;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('468','01391', '501', '95', '1391', '3', '520', '1560', '0', '', '0', '2026-10-14 10:35:49', '1391', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','83-3,','1','1','0','0','520','1560','0','','0','0.00','0','0','0','0'); -- id=1759
UPDATE sellbilldetail SET  lastbuyprice = 520.00 , meanbuyprice = 520.00, lastbuyprice_withDiscount = 468.00, meanbuyprice_withDiscount = 494.00
        , lastbuyprice_withTax = 520, meanbuyprice_withTax = 260, lastbuyprice_withDiscountAndTax = 468
                where sellbilldetailid = 1759;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1391, '2026-10-14', 1560, 1560, 1560
                    , 1560, 1404, 1482, 1404
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1560, 780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1560, sellCostBuyPrice =sellCostBuyPrice+1560
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1560, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1560
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1404, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1482
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1404
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1560
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1560, 1560, 1560
                    , 1560, 1404, 1482, 1404
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1560, 780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1560, sellCostBuyPrice =sellCostBuyPrice+1560
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1560, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1560
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1404, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1482
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1404
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1560
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '42', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1391';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1391', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '45', '42', '3', '2026-10-14 10:35:49','0','0'); -- id=5268
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 76;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('441','01384', '501', '95', '1384', '3', '490', '1470', '0', '', '0', '2026-10-14 10:35:49', '1384', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','76-3,','1','1','0','0','490','1470','0','','0','0.00','0','0','0','0'); -- id=1760
UPDATE sellbilldetail SET  lastbuyprice = 490.00 , meanbuyprice = 490.00, lastbuyprice_withDiscount = 441.00, meanbuyprice_withDiscount = 465.50
        , lastbuyprice_withTax = 490, meanbuyprice_withTax = 245, lastbuyprice_withDiscountAndTax = 441
                where sellbilldetailid = 1760;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1384, '2026-10-14', 1470, 1470, 1470
                    , 1470, 1323, 1396.5, 1323
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1470, 735, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1470, sellCostBuyPrice =sellCostBuyPrice+1470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1323, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1396.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1323
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+735
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1470, 1470, 1470
                    , 1470, 1323, 1396.5, 1323
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1470, 735, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1470, sellCostBuyPrice =sellCostBuyPrice+1470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1323, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1396.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1323
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+735
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '252', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1384';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1384', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '255', '252', '3', '2026-10-14 10:35:49','0','0'); -- id=5269
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '501', '153', '1921', '6', '485', '2910', '0', '', '0', '2026-10-14 10:35:49', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-6,','1','1','0','0','485','2910','0','','0','0.00','0','0','0','0'); -- id=1761
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1761;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 2910, 2760, 2760
                    , 2760, 2760, 2760, 2760
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2760, 2760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2910, sellCostBuyPrice =sellCostBuyPrice+2760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2760, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2760
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2760
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2910, 2760, 2760
                    , 2760, 2760, 2760, 2760
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2760, 2760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2910, sellCostBuyPrice =sellCostBuyPrice+2760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2760, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2760
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2760
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '237', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '6', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '243', '237', '3', '2026-10-14 10:35:49','0','0'); -- id=5270
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 1080;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('425','01919', '501', '153', '1919', '12', '450', '5400', '0', '', '0', '2026-10-14 10:35:49', '1919', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1080-12,','1','1','0','0','450','5400','0','','0','0.00','0','0','0','0'); -- id=1762
UPDATE sellbilldetail SET  lastbuyprice = 425.00 , meanbuyprice = 425.00, lastbuyprice_withDiscount = 425.00, meanbuyprice_withDiscount = 425.00
        , lastbuyprice_withTax = 425, meanbuyprice_withTax = 425, lastbuyprice_withDiscountAndTax = 425
                where sellbilldetailid = 1762;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1919, '2026-10-14', 5400, 5100, 5100
                    , 5100, 5100, 5100, 5100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 5100, 5100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5400, sellCostBuyPrice =sellCostBuyPrice+5100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5400, 5100, 5100
                    , 5100, 5100, 5100, 5100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5100, 5100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5400, sellCostBuyPrice =sellCostBuyPrice+5100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '321', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '2936';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '1', '12', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '333', '321', '3', '2026-10-14 10:35:49','0','0'); -- id=5271
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('275','07110', '501', '40', '1129', '11', '295', '3245', '0', '', '0', '2026-10-14 10:35:49', '1129', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','295','3245','0','','0','0.00','0','0','0','0'); -- id=1763
UPDATE sellbilldetail SET  lastbuyprice = 275.00 , meanbuyprice = 275.00, lastbuyprice_withDiscount = 275.00, meanbuyprice_withDiscount = 275.00
        , lastbuyprice_withTax = 275, meanbuyprice_withTax = 275, lastbuyprice_withDiscountAndTax = 275
                where sellbilldetailid = 1763;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1129, '2026-10-14', 3245, 3025, 3025
                    , 3025, 3025, 3025, 3025
                    , 0, 0, 0, 0
                    , 0, 0, 0, 11, 0, 3025, 3025, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3245, sellCostBuyPrice =sellCostBuyPrice+3025
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3025, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3025
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3025, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3025
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3025
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3025
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3025
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+11
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3245, 3025, 3025
                    , 3025, 3025, 3025, 3025
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3025, 3025, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3245, sellCostBuyPrice =sellCostBuyPrice+3025
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3025, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3025
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3025, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3025
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3025
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3025
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3025
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '497', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '1129';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1129', '1', '11', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '508', '497', '3', '2026-10-14 10:35:49','0','0'); -- id=5272
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('365','09634', '501', '24', '887', '5', '385', '1925', '0', '', '0', '2026-10-14 10:35:49', '887', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','385','1925','0','','0','0.00','0','0','0','0'); -- id=1764
UPDATE sellbilldetail SET  lastbuyprice = 365.00 , meanbuyprice = 365.00, lastbuyprice_withDiscount = 365.00, meanbuyprice_withDiscount = 365.00
        , lastbuyprice_withTax = 365, meanbuyprice_withTax = 365, lastbuyprice_withDiscountAndTax = 365
                where sellbilldetailid = 1764;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (887, '2026-10-14', 1925, 1825, 1825
                    , 1825, 1825, 1825, 1825
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 1825, 1825, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1925, sellCostBuyPrice =sellCostBuyPrice+1825
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1825, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1825
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1825, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1825
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1825
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1825
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1825
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1925, 1825, 1825
                    , 1825, 1825, 1825, 1825
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1825, 1825, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1925, sellCostBuyPrice =sellCostBuyPrice+1825
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1825, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1825
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1825, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1825
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1825
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1825
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1825
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '40', userid = '3', storedetaildate = '2026-10-14 10:35:49' WHERE storedetailid = '887';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('887', '1', '5', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '45', '40', '3', '2026-10-14 10:35:49','0','0'); -- id=5273
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('225','07904', '501', '21', '859', '30', '245', '7350', '0', '', '0', '2026-10-14 10:35:50', '859', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','245','7350','0','','0','0.00','0','0','0','0'); -- id=1765
UPDATE sellbilldetail SET  lastbuyprice = 225.00 , meanbuyprice = 225.00, lastbuyprice_withDiscount = 225.00, meanbuyprice_withDiscount = 225.00
        , lastbuyprice_withTax = 225, meanbuyprice_withTax = 225, lastbuyprice_withDiscountAndTax = 225
                where sellbilldetailid = 1765;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (859, '2026-10-14', 7350, 6750, 6750
                    , 6750, 6750, 6750, 6750
                    , 0, 0, 0, 0
                    , 0, 0, 0, 30, 0, 6750, 6750, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+7350, sellCostBuyPrice =sellCostBuyPrice+6750
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6750, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6750
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6750, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6750
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6750
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6750
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6750
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+30
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 7350, 6750, 6750
                    , 6750, 6750, 6750, 6750
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6750, 6750, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+7350, sellCostBuyPrice =sellCostBuyPrice+6750
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6750, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6750
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6750, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6750
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6750
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6750
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6750
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '643', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '859';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('859', '1', '30', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '673', '643', '3', '2026-10-14 10:35:50','0','0'); -- id=5274
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('195','00444', '501', '21', '855', '30', '215', '6450', '0', '', '0', '2026-10-14 10:35:50', '855', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','215','6450','0','','0','0.00','0','0','0','0'); -- id=1766
UPDATE sellbilldetail SET  lastbuyprice = 195.00 , meanbuyprice = 195.00, lastbuyprice_withDiscount = 195.00, meanbuyprice_withDiscount = 195.00
        , lastbuyprice_withTax = 195, meanbuyprice_withTax = 195, lastbuyprice_withDiscountAndTax = 195
                where sellbilldetailid = 1766;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (855, '2026-10-14', 6450, 5850, 5850
                    , 5850, 5850, 5850, 5850
                    , 0, 0, 0, 0
                    , 0, 0, 0, 30, 0, 5850, 5850, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6450, sellCostBuyPrice =sellCostBuyPrice+5850
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5850, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5850
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5850, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5850
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5850
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5850
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5850
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+30
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 6450, 5850, 5850
                    , 5850, 5850, 5850, 5850
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5850, 5850, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6450, sellCostBuyPrice =sellCostBuyPrice+5850
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5850, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5850
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5850, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5850
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5850
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5850
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5850
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '1020', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '855';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('855', '1', '30', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '1050', '1020', '3', '2026-10-14 10:35:50','0','0'); -- id=5275
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('200','07803', '501', '7', '686', '20', '220', '4400', '0', '', '0', '2026-10-14 10:35:50', '686', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','220','4400','0','','0','0.00','0','0','0','0'); -- id=1767
UPDATE sellbilldetail SET  lastbuyprice = 200.00 , meanbuyprice = 200.00, lastbuyprice_withDiscount = 200.00, meanbuyprice_withDiscount = 200.00
        , lastbuyprice_withTax = 200, meanbuyprice_withTax = 200, lastbuyprice_withDiscountAndTax = 200
                where sellbilldetailid = 1767;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (686, '2026-10-14', 4400, 4000, 4000
                    , 4000, 4000, 4000, 4000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 20, 0, 4000, 4000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4400, sellCostBuyPrice =sellCostBuyPrice+4000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+20
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4400, 4000, 4000
                    , 4000, 4000, 4000, 4000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4000, 4000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4400, sellCostBuyPrice =sellCostBuyPrice+4000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '138', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '686';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('686', '1', '20', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '158', '138', '3', '2026-10-14 10:35:50','0','0'); -- id=5276
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('530','09828', '501', '5', '660', '10', '550', '5500', '0', '', '0', '2026-10-14 10:35:50', '660', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','550','5500','0','','0','0.00','0','0','0','0'); -- id=1768
UPDATE sellbilldetail SET  lastbuyprice = 530.00 , meanbuyprice = 530.00, lastbuyprice_withDiscount = 530.00, meanbuyprice_withDiscount = 530.00
        , lastbuyprice_withTax = 530, meanbuyprice_withTax = 530, lastbuyprice_withDiscountAndTax = 530
                where sellbilldetailid = 1768;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (660, '2026-10-14', 5500, 5300, 5300
                    , 5300, 5300, 5300, 5300
                    , 0, 0, 0, 0
                    , 0, 0, 0, 10, 0, 5300, 5300, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5500, sellCostBuyPrice =sellCostBuyPrice+5300
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5300, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5300
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5300, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5300
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5300
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5300
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5300
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+10
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5500, 5300, 5300
                    , 5300, 5300, 5300, 5300
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5300, 5300, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5500, sellCostBuyPrice =sellCostBuyPrice+5300
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5300, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5300
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5300, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5300
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5300
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5300
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5300
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '20', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '660';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('660', '1', '10', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '30', '20', '3', '2026-10-14 10:35:50','0','0'); -- id=5277
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+5 where id = 35;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('580','01330', '501', '37', '1330', '5', '600', '3000', '0', '', '0', '2026-10-14 10:35:50', '1330', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','35-5,','1','1','0','0','600','3000','0','','0','0.00','0','0','0','0'); -- id=1769
UPDATE sellbilldetail SET  lastbuyprice = 580.00 , meanbuyprice = 580.00, lastbuyprice_withDiscount = 580.00, meanbuyprice_withDiscount = 580.00
        , lastbuyprice_withTax = 580, meanbuyprice_withTax = 580, lastbuyprice_withDiscountAndTax = 580
                where sellbilldetailid = 1769;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1330, '2026-10-14', 3000, 2900, 2900
                    , 2900, 2900, 2900, 2900
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 2900, 2900, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3000, sellCostBuyPrice =sellCostBuyPrice+2900
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2900, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2900
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2900, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2900
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2900
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2900
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2900
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3000, 2900, 2900
                    , 2900, 2900, 2900, 2900
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2900, 2900, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3000, sellCostBuyPrice =sellCostBuyPrice+2900
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2900, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2900
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2900, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2900
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2900
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2900
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2900
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '45', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '1330';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1330', '1', '5', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '50', '45', '3', '2026-10-14 10:35:50','0','0'); -- id=5278
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('600','09736', '501', '37', '1096', '10', '620', '6200', '0', '', '0', '2026-10-14 10:35:50', '1096', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','620','6200','0','','0','0.00','0','0','0','0'); -- id=1770
UPDATE sellbilldetail SET  lastbuyprice = 600.00 , meanbuyprice = 600.00, lastbuyprice_withDiscount = 600.00, meanbuyprice_withDiscount = 600.00
        , lastbuyprice_withTax = 600, meanbuyprice_withTax = 600, lastbuyprice_withDiscountAndTax = 600
                where sellbilldetailid = 1770;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1096, '2026-10-14', 6200, 6000, 6000
                    , 6000, 6000, 6000, 6000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 10, 0, 6000, 6000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6200, sellCostBuyPrice =sellCostBuyPrice+6000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+10
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 6200, 6000, 6000
                    , 6000, 6000, 6000, 6000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6000, 6000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6200, sellCostBuyPrice =sellCostBuyPrice+6000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '25', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '1096';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1096', '1', '10', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '35', '25', '3', '2026-10-14 10:35:50','0','0'); -- id=5279
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('225','09433', '501', '21', '861', '10', '245', '2450', '0', '', '0', '2026-10-14 10:35:50', '861', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','245','2450','0','','0','0.00','0','0','0','0'); -- id=1771
UPDATE sellbilldetail SET  lastbuyprice = 225.00 , meanbuyprice = 225.00, lastbuyprice_withDiscount = 225.00, meanbuyprice_withDiscount = 225.00
        , lastbuyprice_withTax = 225, meanbuyprice_withTax = 225, lastbuyprice_withDiscountAndTax = 225
                where sellbilldetailid = 1771;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (861, '2026-10-14', 2450, 2250, 2250
                    , 2250, 2250, 2250, 2250
                    , 0, 0, 0, 0
                    , 0, 0, 0, 10, 0, 2250, 2250, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2450, sellCostBuyPrice =sellCostBuyPrice+2250
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2250, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2250
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2250, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2250
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2250
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2250
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2250
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+10
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2450, 2250, 2250
                    , 2250, 2250, 2250, 2250
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2250, 2250, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2450, sellCostBuyPrice =sellCostBuyPrice+2250
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2250, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2250
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2250, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2250
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2250
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2250
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2250
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '630', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '861';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('861', '1', '10', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '640', '630', '3', '2026-10-14 10:35:50','0','0'); -- id=5280
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('450','09464', '501', '2', '1014', '18', '470', '8460', '0', '', '0', '2026-10-14 10:35:50', '1014', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','470','8460','0','','0','0.00','0','0','0','0'); -- id=1772
UPDATE sellbilldetail SET  lastbuyprice = 450.00 , meanbuyprice = 450.00, lastbuyprice_withDiscount = 450.00, meanbuyprice_withDiscount = 450.00
        , lastbuyprice_withTax = 450, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 450
                where sellbilldetailid = 1772;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1014, '2026-10-14', 8460, 8100, 8100
                    , 8100, 8100, 8100, 8100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 18, 0, 8100, 8100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8460, sellCostBuyPrice =sellCostBuyPrice+8100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+8100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+8100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+8100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+8100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+18
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 8460, 8100, 8100
                    , 8100, 8100, 8100, 8100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8100, 8100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8460, sellCostBuyPrice =sellCostBuyPrice+8100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+8100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+8100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+8100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+8100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '42', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '1014';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1014', '1', '18', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '60', '42', '3', '2026-10-14 10:35:50','0','0'); -- id=5281
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','00358', '501', '18', '817', '5', '285', '1425', '0', '', '0', '2026-10-14 10:35:50', '817', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','285','1425','0','','0','0.00','0','0','0','0'); -- id=1773
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1773;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (817, '2026-10-14', 1425, 1350, 1350
                    , 1350, 1350, 1350, 1350
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 1350, 1350, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1425, sellCostBuyPrice =sellCostBuyPrice+1350
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1350, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1350
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1350, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1350
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1350
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1350
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1350
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1425, 1350, 1350
                    , 1350, 1350, 1350, 1350
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1350, 1350, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1425, sellCostBuyPrice =sellCostBuyPrice+1350
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1350, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1350
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1350, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1350
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1350
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1350
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1350
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '194', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '817';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('817', '1', '5', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '199', '194', '3', '2026-10-14 10:35:50','0','0'); -- id=5282
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('275','04974', '501', '18', '823', '11', '295', '3245', '0', '', '0', '2026-10-14 10:35:50', '823', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','295','3245','0','','0','0.00','0','0','0','0'); -- id=1774
UPDATE sellbilldetail SET  lastbuyprice = 275.00 , meanbuyprice = 275.00, lastbuyprice_withDiscount = 275.00, meanbuyprice_withDiscount = 275.00
        , lastbuyprice_withTax = 275, meanbuyprice_withTax = 275, lastbuyprice_withDiscountAndTax = 275
                where sellbilldetailid = 1774;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (823, '2026-10-14', 3245, 3025, 3025
                    , 3025, 3025, 3025, 3025
                    , 0, 0, 0, 0
                    , 0, 0, 0, 11, 0, 3025, 3025, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3245, sellCostBuyPrice =sellCostBuyPrice+3025
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3025, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3025
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3025, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3025
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3025
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3025
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3025
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+11
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3245, 3025, 3025
                    , 3025, 3025, 3025, 3025
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3025, 3025, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3245, sellCostBuyPrice =sellCostBuyPrice+3025
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3025, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3025
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3025, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3025
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3025
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3025
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3025
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '204', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '823';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('823', '1', '11', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '215', '204', '3', '2026-10-14 10:35:50','0','0'); -- id=5283
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('430','08410', '501', '32', '1023', '15', '450', '6750', '0', '', '0', '2026-10-14 10:35:50', '1023', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','450','6750','0','','0','0.00','0','0','0','0'); -- id=1775
UPDATE sellbilldetail SET  lastbuyprice = 430.00 , meanbuyprice = 430.00, lastbuyprice_withDiscount = 430.00, meanbuyprice_withDiscount = 430.00
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 430
                where sellbilldetailid = 1775;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1023, '2026-10-14', 6750, 6450, 6450
                    , 6450, 6450, 6450, 6450
                    , 0, 0, 0, 0
                    , 0, 0, 0, 15, 0, 6450, 6450, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6750, sellCostBuyPrice =sellCostBuyPrice+6450
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6450, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6450
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6450, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6450
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6450
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6450
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6450
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+15
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 6750, 6450, 6450
                    , 6450, 6450, 6450, 6450
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6450, 6450, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6750, sellCostBuyPrice =sellCostBuyPrice+6450
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6450, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6450
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6450, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6450
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6450
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6450
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6450
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '40', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '1023';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1023', '1', '15', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '55', '40', '3', '2026-10-14 10:35:50','0','0'); -- id=5284
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('145','00002', '501', '21', '853', '30', '150', '4500', '0', '', '0', '2026-10-14 10:35:50', '853', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','150','4500','0','','0','0.00','0','0','0','0'); -- id=1776
UPDATE sellbilldetail SET  lastbuyprice = 145.00 , meanbuyprice = 145.00, lastbuyprice_withDiscount = 145.00, meanbuyprice_withDiscount = 145.00
        , lastbuyprice_withTax = 145, meanbuyprice_withTax = 145, lastbuyprice_withDiscountAndTax = 145
                where sellbilldetailid = 1776;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (853, '2026-10-14', 4500, 4350, 4350
                    , 4350, 4350, 4350, 4350
                    , 0, 0, 0, 0
                    , 0, 0, 0, 30, 0, 4350, 4350, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4500, sellCostBuyPrice =sellCostBuyPrice+4350
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4350, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4350
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4350, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4350
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4350
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4350
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4350
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+30
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4500, 4350, 4350
                    , 4350, 4350, 4350, 4350
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4350, 4350, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4500, sellCostBuyPrice =sellCostBuyPrice+4350
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4350, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4350
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4350, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4350
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4350
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4350
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4350
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '1432', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '853';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('853', '1', '30', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '1462', '1432', '3', '2026-10-14 10:35:50','0','0'); -- id=5285
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('410','09813', '501', '24', '889', '5', '430', '2150', '0', '', '0', '2026-10-14 10:35:50', '889', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','430','2150','0','','0','0.00','0','0','0','0'); -- id=1777
UPDATE sellbilldetail SET  lastbuyprice = 410.00 , meanbuyprice = 410.00, lastbuyprice_withDiscount = 410.00, meanbuyprice_withDiscount = 410.00
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 410, lastbuyprice_withDiscountAndTax = 410
                where sellbilldetailid = 1777;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (889, '2026-10-14', 2150, 2050, 2050
                    , 2050, 2050, 2050, 2050
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 2050, 2050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2150, sellCostBuyPrice =sellCostBuyPrice+2050
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2050, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2050
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2050, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2050
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2050
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2050
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2050
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2150, 2050, 2050
                    , 2050, 2050, 2050, 2050
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2050, 2050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2150, sellCostBuyPrice =sellCostBuyPrice+2050
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2050, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2050
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2050, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2050
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2050
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2050
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2050
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '30', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '889';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('889', '1', '5', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '35', '30', '3', '2026-10-14 10:35:50','0','0'); -- id=5286
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+5 where id = 69;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('530','01354', '501', '26', '1354', '5', '550', '2750', '0', '', '0', '2026-10-14 10:35:50', '1354', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','69-5,','1','1','0','0','550','2750','0','','0','0.00','0','0','0','0'); -- id=1778
UPDATE sellbilldetail SET  lastbuyprice = 530.00 , meanbuyprice = 530.00, lastbuyprice_withDiscount = 530.00, meanbuyprice_withDiscount = 530.00
        , lastbuyprice_withTax = 530, meanbuyprice_withTax = 530, lastbuyprice_withDiscountAndTax = 530
                where sellbilldetailid = 1778;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1354, '2026-10-14', 2750, 2650, 2650
                    , 2650, 2650, 2650, 2650
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 2650, 2650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2750, sellCostBuyPrice =sellCostBuyPrice+2650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2650, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2650
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2650
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2750, 2650, 2650
                    , 2650, 2650, 2650, 2650
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2650, 2650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2750, sellCostBuyPrice =sellCostBuyPrice+2650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2650, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2650
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2650
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '35', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '1354';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1354', '1', '5', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '40', '35', '3', '2026-10-14 10:35:50','0','0'); -- id=5287
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('315','09799', '501', '21', '866', '5', '335', '1675', '0', '', '0', '2026-10-14 10:35:50', '866', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','335','1675','0','','0','0.00','0','0','0','0'); -- id=1779
UPDATE sellbilldetail SET  lastbuyprice = 315.00 , meanbuyprice = 315.00, lastbuyprice_withDiscount = 315.00, meanbuyprice_withDiscount = 315.00
        , lastbuyprice_withTax = 315, meanbuyprice_withTax = 315, lastbuyprice_withDiscountAndTax = 315
                where sellbilldetailid = 1779;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (866, '2026-10-14', 1675, 1575, 1575
                    , 1575, 1575, 1575, 1575
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 1575, 1575, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1675, sellCostBuyPrice =sellCostBuyPrice+1575
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1575, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1575
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1575, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1575
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1575
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1575
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1575
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1675, 1575, 1575
                    , 1575, 1575, 1575, 1575
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1575, 1575, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1675, sellCostBuyPrice =sellCostBuyPrice+1575
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1575, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1575
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1575, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1575
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1575
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1575
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1575
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '92', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '866';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('866', '1', '5', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '97', '92', '3', '2026-10-14 10:35:50','0','0'); -- id=5288
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+1 where id = 62;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('435','09714', '501', '11', '770', '5', '455', '2275', '0', '', '0', '2026-10-14 10:35:50', '770', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','62-1,','1','1','0','0','455','2275','0','','0','0.00','0','0','0','0'); -- id=1780
UPDATE sellbilldetail SET  lastbuyprice = 435.00 , meanbuyprice = 435.00, lastbuyprice_withDiscount = 435.00, meanbuyprice_withDiscount = 435.00
        , lastbuyprice_withTax = 435, meanbuyprice_withTax = 435, lastbuyprice_withDiscountAndTax = 435
                where sellbilldetailid = 1780;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (770, '2026-10-14', 2275, 2175, 2175
                    , 2175, 2175, 2175, 2175
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 2175, 2175, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2275, sellCostBuyPrice =sellCostBuyPrice+2175
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2175, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2175
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2175, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2175
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2175
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2175
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2175
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2275, 2175, 2175
                    , 2175, 2175, 2175, 2175
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2175, 2175, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2275, sellCostBuyPrice =sellCostBuyPrice+2175
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2175, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2175
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2175, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2175
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2175
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2175
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2175
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '319', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '770';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('770', '1', '5', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '324', '319', '3', '2026-10-14 10:35:50','0','0'); -- id=5289
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('430','09127', '501', '30', '973', '5', '450', '2250', '0', '', '0', '2026-10-14 10:35:50', '973', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','450','2250','0','','0','0.00','0','0','0','0'); -- id=1781
UPDATE sellbilldetail SET  lastbuyprice = 430.00 , meanbuyprice = 430.00, lastbuyprice_withDiscount = 430.00, meanbuyprice_withDiscount = 430.00
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 430
                where sellbilldetailid = 1781;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (973, '2026-10-14', 2250, 2150, 2150
                    , 2150, 2150, 2150, 2150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 2150, 2150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2250, sellCostBuyPrice =sellCostBuyPrice+2150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2250, 2150, 2150
                    , 2150, 2150, 2150, 2150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2150, 2150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2250, sellCostBuyPrice =sellCostBuyPrice+2150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '40', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '973';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('973', '1', '5', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '45', '40', '3', '2026-10-14 10:35:50','0','0'); -- id=5290
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('430','08757', '501', '26', '902', '5', '450', '2250', '0', '', '0', '2026-10-14 10:35:50', '902', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','450','2250','0','','0','0.00','0','0','0','0'); -- id=1782
UPDATE sellbilldetail SET  lastbuyprice = 430.00 , meanbuyprice = 430.00, lastbuyprice_withDiscount = 430.00, meanbuyprice_withDiscount = 430.00
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 430
                where sellbilldetailid = 1782;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (902, '2026-10-14', 2250, 2150, 2150
                    , 2150, 2150, 2150, 2150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 2150, 2150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2250, sellCostBuyPrice =sellCostBuyPrice+2150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2250, 2150, 2150
                    , 2150, 2150, 2150, 2150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2150, 2150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2250, sellCostBuyPrice =sellCostBuyPrice+2150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '90', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '902';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('902', '1', '5', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '95', '90', '3', '2026-10-14 10:35:50','0','0'); -- id=5291
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 997;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('423.2','01903', '501', '149', '1903', '6', '460', '2760', '0', '', '0', '2026-10-14 10:35:50', '1903', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','997-6,','1','1','0','0','460','2760','0','','0','0.00','0','0','0','0'); -- id=1783
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 423.20, meanbuyprice_withDiscount = 441.60
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 230, lastbuyprice_withDiscountAndTax = 423.2
                where sellbilldetailid = 1783;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1903, '2026-10-14', 2760, 2760, 2760
                    , 2760, 2539.2, 2649.6, 2539.2
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2760, 1380, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2760, sellCostBuyPrice =sellCostBuyPrice+2760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2539.2, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2649.6
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2539.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1380
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2760, 2760, 2760
                    , 2760, 2539.2, 2649.6, 2539.2
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2760, 1380, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2760, sellCostBuyPrice =sellCostBuyPrice+2760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2539.2, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2649.6
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2539.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1380
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '18', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '2920';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1903', '1', '6', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '18', '3', '2026-10-14 10:35:50','0','0'); -- id=5292
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 992;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('441.6','01898', '501', '149', '1898', '6', '480', '2880', '0', '', '0', '2026-10-14 10:35:50', '1898', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','992-6,','1','1','0','0','480','2880','0','','0','0.00','0','0','0','0'); -- id=1784
UPDATE sellbilldetail SET  lastbuyprice = 480.00 , meanbuyprice = 480.00, lastbuyprice_withDiscount = 441.60, meanbuyprice_withDiscount = 460.80
        , lastbuyprice_withTax = 480, meanbuyprice_withTax = 240, lastbuyprice_withDiscountAndTax = 441.6
                where sellbilldetailid = 1784;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1898, '2026-10-14', 2880, 2880, 2880
                    , 2880, 2649.6, 2764.8, 2649.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2880, 1440, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2880, sellCostBuyPrice =sellCostBuyPrice+2880
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2880, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2880
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2649.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2764.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2649.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2880
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1440
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2880, 2880, 2880
                    , 2880, 2649.6, 2764.8, 2649.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2880, 1440, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2880, sellCostBuyPrice =sellCostBuyPrice+2880
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2880, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2880
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2649.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2764.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2649.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2880
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1440
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '12', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '2915';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1898', '1', '6', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '18', '12', '3', '2026-10-14 10:35:50','0','0'); -- id=5293
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 72;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('350','01380', '501', '94', '1380', '3', '390', '1170', '0', '', '0', '2026-10-14 10:35:50', '1380', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','72-3,','1','1','0','0','390','1170','0','','0','0.00','0','0','0','0'); -- id=1785
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 350.00, meanbuyprice_withDiscount = 350.00
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 350
                where sellbilldetailid = 1785;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1380, '2026-10-14', 1170, 1050, 1050
                    , 1050, 1050, 1050, 1050
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1050, 1050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1050
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1050, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1050
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1050, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1050
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1050
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1050
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1050
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1170, 1050, 1050
                    , 1050, 1050, 1050, 1050
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1050, 1050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1050
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1050, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1050
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1050, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1050
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1050
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1050
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1050
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '543', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '1380';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1380', '1', '3', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '546', '543', '3', '2026-10-14 10:35:50','0','0'); -- id=5294
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 71;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01379', '501', '94', '1379', '6', '300', '1800', '0', '', '0', '2026-10-14 10:35:50', '1379', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','71-6,','1','1','0','0','300','1800','0','','0','0.00','0','0','0','0'); -- id=1786
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1786;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1379, '2026-10-14', 1800, 1620, 1620
                    , 1620, 1620, 1620, 1620
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1620, 1620, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1800, sellCostBuyPrice =sellCostBuyPrice+1620
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1620, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1620
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1620, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1620
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1620
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1620
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1620
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1800, 1620, 1620
                    , 1620, 1620, 1620, 1620
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1620, 1620, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1800, sellCostBuyPrice =sellCostBuyPrice+1620
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1620, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1620
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1620, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1620
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1620
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1620
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1620
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '504', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '1379';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1379', '1', '6', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '510', '504', '3', '2026-10-14 10:35:50','0','0'); -- id=5295
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 70;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('320','01378', '501', '94', '1378', '6', '360', '2160', '0', '', '0', '2026-10-14 10:35:50', '1378', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','70-6,','1','1','0','0','360','2160','0','','0','0.00','0','0','0','0'); -- id=1787
UPDATE sellbilldetail SET  lastbuyprice = 320.00 , meanbuyprice = 320.00, lastbuyprice_withDiscount = 320.00, meanbuyprice_withDiscount = 320.00
        , lastbuyprice_withTax = 320, meanbuyprice_withTax = 320, lastbuyprice_withDiscountAndTax = 320
                where sellbilldetailid = 1787;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1378, '2026-10-14', 2160, 1920, 1920
                    , 1920, 1920, 1920, 1920
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1920, 1920, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2160, sellCostBuyPrice =sellCostBuyPrice+1920
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1920, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1920
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1920, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1920
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1920
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1920
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1920
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2160, 1920, 1920
                    , 1920, 1920, 1920, 1920
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1920, 1920, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2160, sellCostBuyPrice =sellCostBuyPrice+1920
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1920, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1920
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1920, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1920
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1920
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1920
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1920
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '552', userid = '3', storedetaildate = '2026-10-14 10:35:50' WHERE storedetailid = '1378';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1378', '1', '6', '1', '501', 'اضافة فاتورة مبيعات', 'sellbillController.php', '558', '552', '3', '2026-10-14 10:35:50','0','0'); -- id=5296
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3107190',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('2904860','202330', '0', '2', 'اضافة فاتورة مبيعات', '501', '3107190', '2026-10-14 10:35:50', '3',  'sellbillController.php','1','','0'); -- id=638
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '202330', '202330', '2026-10-14', '3', '0', '0', '2026-10-14 10:35:50','اضافة فاتورة مبيعات رقم 501','1','0',null,'0','501','sellbillController.php?do=showDetail&sellbillid=501'); -- id=2330
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2330', '419', '202330', '','0'); -- id=2379
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3107190', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2330', '143', '202330', '','0'); -- id=2332
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5224805', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '188048.53', '188048.53', '2026-10-14', '3', '0', '0', '2026-10-14 10:35:50','اضافة فاتورة مبيعات رقم 501 - صرف البضاعة من المخزن','1','0',null,'0','501','sellbillController.php?do=showDetail&sellbillid=501'); -- id=2331
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2331', '402', '188048.53', '','0'); -- id=2380
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '4879919.67', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2331', '382', '188048.53', '','0'); -- id=2333
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21271825.63', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2330,0,2331' where sellbillid=501;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 202330, 192485, 192500
                    , 192492.5, 188048.53, 189584.92, 188048.53
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,192492.5, 170841.2, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+202330, sellCostBuyPrice =sellCostBuyPrice+192485
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+192500, sellCostMeanBuyPrice = sellCostMeanBuyPrice+192492.5
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+188048.53, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+189584.92
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+188048.53
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+192492.5
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+170841.2
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 202330, 192485, 192500
                    , 192492.5, 188048.53, 189584.92, 188048.53
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,192492.5, 170841.2, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+202330, sellCostBuyPrice =sellCostBuyPrice+192485
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+192500, sellCostMeanBuyPrice = sellCostMeanBuyPrice+192492.5
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+188048.53, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+189584.92
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+188048.53
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+192492.5
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+170841.2
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 202330, 192485, 192500
                    , 192492.5, 188048.53, 189584.92, 188048.53, 192492.5, 170841.2)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+202330, netSellCostBuyPrice = netSellCostBuyPrice+192485
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+192500
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+192492.5
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+188048.53
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+189584.92
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+188048.53
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+192492.5
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+170841.2;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf2328929f1 and sellbillId = 501 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:05:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:35:50", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:35:50', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8979
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:06:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:36:22", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:36:22', '3', 'showDetail', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=showDetail&sellbillid=501'); -- id=8980
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:06:48";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:36:48", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:36:48', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8981
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:06:58";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:36:59", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 10:36:59', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8982
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 07:06:59";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 10:36:59', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8983
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:07:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:37:01", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:37:01', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8984
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:08:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:38:54", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:38:54', '6', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=8985

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf2e806b995
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 10:38:54', '06acf2e806b995', '1', '0.00', '0', '0', '1', '18720.00', '18720', '18720', '0', '1', '2026-10-14 10:38:54', '', '6', '0', 'نقدي', '4', '0', '3', '0', 'نقدي', '29' ,'0','','','','','-1','0','0','0','0','0','18720','0','','0','0','18720','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=502
UPDATE client SET  clientdebt = '0', userid = '6' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','502', '0', '2026-10-14 10:38:54', '6', 'sellbillController.php', 'اضافة فاتورة مبيعات', '18720', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 10:38:54','0','0','',''); -- id=647
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 950;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('600','01861', '502', '108', '1861', '6', '625', '3750', '0', '', '0', '2026-10-14 10:38:54', '1861', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','950-6,','1','1','0','0','625','3750','0','','0','0.00','0','0','0','0'); -- id=1788
UPDATE sellbilldetail SET  lastbuyprice = 600.00 , meanbuyprice = 600.00, lastbuyprice_withDiscount = 600.00, meanbuyprice_withDiscount = 600.00
        , lastbuyprice_withTax = 600, meanbuyprice_withTax = 600, lastbuyprice_withDiscountAndTax = 600
                where sellbilldetailid = 1788;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1861, '2026-10-14', 3750, 3600, 3600
                    , 3600, 3600, 3600, 3600
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 3600, 3600, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3750, sellCostBuyPrice =sellCostBuyPrice+3600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3600
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3750, 3600, 3600
                    , 3600, 3600, 3600, 3600
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3600, 3600, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3750, sellCostBuyPrice =sellCostBuyPrice+3600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3600
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '51', userid = '6', storedetaildate = '2026-10-14 10:38:54' WHERE storedetailid = '2878';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1861', '1', '6', '1', '502', 'اضافة فاتورة مبيعات', 'sellbillController.php', '57', '51', '6', '2026-10-14 10:38:54','0','0'); -- id=5297
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 648;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('900','01735', '502', '133', '1735', '4', '900', '3600', '0', '', '0', '2026-10-14 10:38:54', '1735', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','648-4,','1','1','0','0','900','3600','0','','0','0.00','0','0','0','0'); -- id=1789
UPDATE sellbilldetail SET  lastbuyprice = 900.00 , meanbuyprice = 900.00, lastbuyprice_withDiscount = 900.00, meanbuyprice_withDiscount = 900.00
        , lastbuyprice_withTax = 900, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 900
                where sellbilldetailid = 1789;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1735, '2026-10-14', 3600, 3600, 3600
                    , 3600, 3600, 3600, 3600
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 3600, 1800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3600, sellCostBuyPrice =sellCostBuyPrice+3600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3600, 3600, 3600
                    , 3600, 3600, 3600, 3600
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3600, 1800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3600, sellCostBuyPrice =sellCostBuyPrice+3600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '12', userid = '6', storedetaildate = '2026-10-14 10:38:54' WHERE storedetailid = '2748';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1735', '1', '4', '1', '502', 'اضافة فاتورة مبيعات', 'sellbillController.php', '16', '12', '6', '2026-10-14 10:38:54','0','0'); -- id=5298
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 949;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('430','01497', '502', '108', '1497', '6', '450', '2700', '0', '', '0', '2026-10-14 10:38:54', '1497', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','949-6,','1','1','0','0','450','2700','0','','0','0.00','0','0','0','0'); -- id=1790
UPDATE sellbilldetail SET  lastbuyprice = 430.00 , meanbuyprice = 430.00, lastbuyprice_withDiscount = 430.00, meanbuyprice_withDiscount = 430.00
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 430
                where sellbilldetailid = 1790;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1497, '2026-10-14', 2700, 2580, 2580
                    , 2580, 2580, 2580, 2580
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2580, 2580, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2580
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2580, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2580
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2580, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2580
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2580
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2580
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2580
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2580, 2580
                    , 2580, 2580, 2580, 2580
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2580, 2580, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2580
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2580, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2580
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2580, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2580
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2580
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2580
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2580
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '24', userid = '6', storedetaildate = '2026-10-14 10:38:54' WHERE storedetailid = '1522';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1497', '1', '6', '1', '502', 'اضافة فاتورة مبيعات', 'sellbillController.php', '30', '24', '6', '2026-10-14 10:38:54','0','0'); -- id=5299
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 951;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('580','01862', '502', '108', '1862', '3', '600', '1800', '0', '', '0', '2026-10-14 10:38:54', '1862', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','951-3,','1','1','0','0','600','1800','0','','0','0.00','0','0','0','0'); -- id=1791
UPDATE sellbilldetail SET  lastbuyprice = 580.00 , meanbuyprice = 580.00, lastbuyprice_withDiscount = 580.00, meanbuyprice_withDiscount = 580.00
        , lastbuyprice_withTax = 580, meanbuyprice_withTax = 580, lastbuyprice_withDiscountAndTax = 580
                where sellbilldetailid = 1791;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1862, '2026-10-14', 1800, 1740, 1740
                    , 1740, 1740, 1740, 1740
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1740, 1740, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1800, sellCostBuyPrice =sellCostBuyPrice+1740
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1740, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1740
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1740, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1740
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1740
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1740
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1740
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1800, 1740, 1740
                    , 1740, 1740, 1740, 1740
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1740, 1740, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1800, sellCostBuyPrice =sellCostBuyPrice+1740
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1740, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1740
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1740, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1740
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1740
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1740
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1740
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '24', userid = '6', storedetaildate = '2026-10-14 10:38:54' WHERE storedetailid = '2879';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1862', '1', '3', '1', '502', 'اضافة فاتورة مبيعات', 'sellbillController.php', '27', '24', '6', '2026-10-14 10:38:54','0','0'); -- id=5300
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 950;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('600','01861', '502', '108', '1861', '6', '625', '3750', '0', '', '0', '2026-10-14 10:38:54', '1861', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','950-6,','1','1','0','0','625','3750','0','','0','0.00','0','0','0','0'); -- id=1792
UPDATE sellbilldetail SET  lastbuyprice = 600.00 , meanbuyprice = 600.00, lastbuyprice_withDiscount = 600.00, meanbuyprice_withDiscount = 600.00
        , lastbuyprice_withTax = 600, meanbuyprice_withTax = 600, lastbuyprice_withDiscountAndTax = 600
                where sellbilldetailid = 1792;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1861, '2026-10-14', 3750, 3600, 3600
                    , 3600, 3600, 3600, 3600
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 3600, 3600, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3750, sellCostBuyPrice =sellCostBuyPrice+3600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3600
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3750, 3600, 3600
                    , 3600, 3600, 3600, 3600
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3600, 3600, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3750, sellCostBuyPrice =sellCostBuyPrice+3600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3600
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '45', userid = '6', storedetaildate = '2026-10-14 10:38:54' WHERE storedetailid = '2878';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1861', '1', '6', '1', '502', 'اضافة فاتورة مبيعات', 'sellbillController.php', '51', '45', '6', '2026-10-14 10:38:54','0','0'); -- id=5301
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 894;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('750','01847', '502', '143', '1847', '4', '780', '3120', '0', '', '0', '2026-10-14 10:38:54', '1847', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','894-4,','1','1','0','0','780','3120','0','','0','0.00','0','0','0','0'); -- id=1793
UPDATE sellbilldetail SET  lastbuyprice = 750.00 , meanbuyprice = 750.00, lastbuyprice_withDiscount = 750.00, meanbuyprice_withDiscount = 750.00
        , lastbuyprice_withTax = 750, meanbuyprice_withTax = 375, lastbuyprice_withDiscountAndTax = 750
                where sellbilldetailid = 1793;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1847, '2026-10-14', 3120, 3000, 3000
                    , 3000, 3000, 3000, 3000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 3000, 1500, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3120, sellCostBuyPrice =sellCostBuyPrice+3000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1500
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3120, 3000, 3000
                    , 3000, 3000, 3000, 3000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3000, 1500, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3120, sellCostBuyPrice =sellCostBuyPrice+3000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1500
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '20', userid = '6', storedetaildate = '2026-10-14 10:38:54' WHERE storedetailid = '2864';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1847', '1', '4', '1', '502', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '20', '6', '2026-10-14 10:38:54','0','0'); -- id=5302
CALL saveInUse(4,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '234720',  userid = '6' WHERE saveid = '4';
UPDATE save SET  inUse = 0 where saveid = 4;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('216000','18720', '0', '4', 'اضافة فاتورة مبيعات', '502', '234720', '2026-10-14 10:38:54', '6',  'sellbillController.php','1','','0'); -- id=639
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '18720', '18720', '2026-10-14', '6', '0', '0', '2026-10-14 10:38:54','اضافة فاتورة مبيعات رقم 502','1','0',null,'0','502','sellbillController.php?do=showDetail&sellbillid=502'); -- id=2332
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2332', '568', '18720', '','0'); -- id=2381
UPDATE accountstree SET name = 'خزنة شروال', customName = 'خزنة شروال', customNameEn = 'خزنة شروال', nameEn = 'خزنة شروال', parent = '40', accountNature = '0', theValue = '234720', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-06 13:37:54' WHERE id = '568';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2332', '143', '18720', '','0'); -- id=2334
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5243525', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '18120', '18120', '2026-10-14', '6', '0', '0', '2026-10-14 10:38:54','اضافة فاتورة مبيعات رقم 502 - صرف البضاعة من المخزن','1','0',null,'0','502','sellbillController.php?do=showDetail&sellbillid=502'); -- id=2333
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2333', '402', '18120', '','0'); -- id=2382
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '4898039.67', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2333', '382', '18120', '','0'); -- id=2335
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21253705.63', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2332,0,2333' where sellbillid=502;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 18720, 18120, 18120
                    , 18120, 18120, 18120, 18120
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,18120, 14820, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+18720, sellCostBuyPrice =sellCostBuyPrice+18120
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+18120, sellCostMeanBuyPrice = sellCostMeanBuyPrice+18120
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+18120, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+18120
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+18120
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+18120
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+14820
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 18720, 18120, 18120
                    , 18120, 18120, 18120, 18120
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,18120, 14820, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+18720, sellCostBuyPrice =sellCostBuyPrice+18120
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+18120, sellCostMeanBuyPrice = sellCostMeanBuyPrice+18120
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+18120, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+18120
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+18120
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+18120
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+14820
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 18720, 18120, 18120
                    , 18120, 18120, 18120, 18120, 18120, 14820)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+18720, netSellCostBuyPrice = netSellCostBuyPrice+18120
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+18120
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+18120
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+18120
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+18120
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+18120
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+18120
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+14820;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf2e806b995 and sellbillId = 502 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:08:55";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:38:55", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:38:55', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8986
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:16:40";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:46:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 10:46:40', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=136&type=2'); -- id=8987
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:16:51";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:46:51", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 10:46:51', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8988
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 07:16:52";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 10:46:52', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8989
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:16:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:46:57", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:46:57', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=8990

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf311d31deb
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 10:46:57', '06acf311d31deb', '1', '0.00', '0', '0', '1', '12275.00', '12275', '12275', '0', '1', '2026-10-14 10:46:57', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '34' ,'0','','','','','-1','0','0','0','0','0','12275','0','','0','0','12275','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=503
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','503', '0', '2026-10-14 10:46:57', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '12275', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 10:46:57','0','0','',''); -- id=648
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 329;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('310','01459', '503', '103', '1459', '3', '330', '990', '0', '', '0', '2026-10-14 10:46:57', '1459', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','329-3,','1','1','0','0','330','990','0','','0','0.00','0','0','0','0'); -- id=1794
UPDATE sellbilldetail SET  lastbuyprice = 310.00 , meanbuyprice = 310.00, lastbuyprice_withDiscount = 310.00, meanbuyprice_withDiscount = 310.00
        , lastbuyprice_withTax = 310, meanbuyprice_withTax = 310, lastbuyprice_withDiscountAndTax = 310
                where sellbilldetailid = 1794;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1459, '2026-10-14', 990, 930, 930
                    , 930, 930, 930, 930
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 930, 930, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+990, sellCostBuyPrice =sellCostBuyPrice+930
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+930, sellCostMeanBuyPrice = sellCostMeanBuyPrice+930
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+930, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+930
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+930
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+930
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+930
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 990, 930, 930
                    , 930, 930, 930, 930
                    , 0, 0, 0, 0
                    , 0, 0, 0, 930, 930, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+990, sellCostBuyPrice =sellCostBuyPrice+930
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+930, sellCostMeanBuyPrice = sellCostMeanBuyPrice+930
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+930, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+930
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+930
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+930
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+930
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '79', userid = '3', storedetaildate = '2026-10-14 10:46:57' WHERE storedetailid = '1484';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1459', '1', '3', '1', '503', 'اضافة فاتورة مبيعات', 'sellbillController.php', '82', '79', '3', '2026-10-14 10:46:57','0','0'); -- id=5303
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 656;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('300','01743', '503', '134', '1743', '4', '320', '1280', '0', '', '0', '2026-10-14 10:46:57', '1743', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','656-4,','1','1','0','0','320','1280','0','','0','0.00','0','0','0','0'); -- id=1795
UPDATE sellbilldetail SET  lastbuyprice = 300.00 , meanbuyprice = 300.00, lastbuyprice_withDiscount = 300.00, meanbuyprice_withDiscount = 300.00
        , lastbuyprice_withTax = 300, meanbuyprice_withTax = 300, lastbuyprice_withDiscountAndTax = 300
                where sellbilldetailid = 1795;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1743, '2026-10-14', 1280, 1200, 1200
                    , 1200, 1200, 1200, 1200
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 1200, 1200, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1280, sellCostBuyPrice =sellCostBuyPrice+1200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1200, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1200
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1200
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1200
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1280, 1200, 1200
                    , 1200, 1200, 1200, 1200
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1200, 1200, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1280, sellCostBuyPrice =sellCostBuyPrice+1200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1200, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1200
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1200
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1200
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '32', userid = '3', storedetaildate = '2026-10-14 10:46:57' WHERE storedetailid = '2756';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1743', '1', '4', '1', '503', 'اضافة فاتورة مبيعات', 'sellbillController.php', '36', '32', '3', '2026-10-14 10:46:57','0','0'); -- id=5304
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 71;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01379', '503', '94', '1379', '6', '300', '1800', '0', '', '0', '2026-10-14 10:46:57', '1379', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','71-6,','1','1','0','0','300','1800','0','','0','0.00','0','0','0','0'); -- id=1796
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1796;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1379, '2026-10-14', 1800, 1620, 1620
                    , 1620, 1620, 1620, 1620
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1620, 1620, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1800, sellCostBuyPrice =sellCostBuyPrice+1620
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1620, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1620
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1620, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1620
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1620
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1620
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1620
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1800, 1620, 1620
                    , 1620, 1620, 1620, 1620
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1620, 1620, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1800, sellCostBuyPrice =sellCostBuyPrice+1620
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1620, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1620
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1620, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1620
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1620
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1620
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1620
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '498', userid = '3', storedetaildate = '2026-10-14 10:46:57' WHERE storedetailid = '1379';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1379', '1', '6', '1', '503', 'اضافة فاتورة مبيعات', 'sellbillController.php', '504', '498', '3', '2026-10-14 10:46:57','0','0'); -- id=5305
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 979;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('359','01885', '503', '147', '1885', '3', '390', '1170', '0', '', '0', '2026-10-14 10:46:57', '1885', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','979-3,','1','1','0','0','390','1170','0','','0','0.00','0','0','0','0'); -- id=1797
UPDATE sellbilldetail SET  lastbuyprice = 359.00 , meanbuyprice = 359.00, lastbuyprice_withDiscount = 359.00, meanbuyprice_withDiscount = 359.00
        , lastbuyprice_withTax = 359, meanbuyprice_withTax = 359, lastbuyprice_withDiscountAndTax = 359
                where sellbilldetailid = 1797;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1885, '2026-10-14', 1170, 1077, 1077
                    , 1077, 1077, 1077, 1077
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1077, 1077, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1077
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1077, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1077
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1077, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1077
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1077
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1077
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1077
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1170, 1077, 1077
                    , 1077, 1077, 1077, 1077
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1077, 1077, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1077
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1077, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1077
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1077, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1077
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1077
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1077
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1077
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '22', userid = '3', storedetaildate = '2026-10-14 10:46:57' WHERE storedetailid = '2902';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1885', '1', '3', '1', '503', 'اضافة فاتورة مبيعات', 'sellbillController.php', '25', '22', '3', '2026-10-14 10:46:57','0','0'); -- id=5306
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 982;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('269','01888', '503', '147', '1888', '3', '300', '900', '0', '', '0', '2026-10-14 10:46:57', '1888', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','982-3,','1','1','0','0','300','900','0','','0','0.00','0','0','0','0'); -- id=1798
UPDATE sellbilldetail SET  lastbuyprice = 269.00 , meanbuyprice = 269.00, lastbuyprice_withDiscount = 269.00, meanbuyprice_withDiscount = 269.00
        , lastbuyprice_withTax = 269, meanbuyprice_withTax = 269, lastbuyprice_withDiscountAndTax = 269
                where sellbilldetailid = 1798;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1888, '2026-10-14', 900, 807, 807
                    , 807, 807, 807, 807
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 807, 807, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+900, sellCostBuyPrice =sellCostBuyPrice+807
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+807, sellCostMeanBuyPrice = sellCostMeanBuyPrice+807
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+807, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+807
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+807
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+807
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+807
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 900, 807, 807
                    , 807, 807, 807, 807
                    , 0, 0, 0, 0
                    , 0, 0, 0, 807, 807, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+900, sellCostBuyPrice =sellCostBuyPrice+807
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+807, sellCostMeanBuyPrice = sellCostMeanBuyPrice+807
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+807, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+807
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+807
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+807
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+807
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '411', userid = '3', storedetaildate = '2026-10-14 10:46:57' WHERE storedetailid = '2905';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1888', '1', '3', '1', '503', 'اضافة فاتورة مبيعات', 'sellbillController.php', '414', '411', '3', '2026-10-14 10:46:57','0','0'); -- id=5307
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 977;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('364','01883', '503', '147', '1883', '3', '395', '1185', '0', '', '0', '2026-10-14 10:46:57', '1883', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','977-3,','1','1','0','0','395','1185','0','','0','0.00','0','0','0','0'); -- id=1799
UPDATE sellbilldetail SET  lastbuyprice = 364.00 , meanbuyprice = 364.00, lastbuyprice_withDiscount = 364.00, meanbuyprice_withDiscount = 364.00
        , lastbuyprice_withTax = 364, meanbuyprice_withTax = 364, lastbuyprice_withDiscountAndTax = 364
                where sellbilldetailid = 1799;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1883, '2026-10-14', 1185, 1092, 1092
                    , 1092, 1092, 1092, 1092
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1092, 1092, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1185, sellCostBuyPrice =sellCostBuyPrice+1092
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1092, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1092
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1092, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1092
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1092
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1092
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1092
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1185, 1092, 1092
                    , 1092, 1092, 1092, 1092
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1092, 1092, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1185, sellCostBuyPrice =sellCostBuyPrice+1092
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1092, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1092
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1092, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1092
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1092
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1092
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1092
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '168', userid = '3', storedetaildate = '2026-10-14 10:46:57' WHERE storedetailid = '2900';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1883', '1', '3', '1', '503', 'اضافة فاتورة مبيعات', 'sellbillController.php', '171', '168', '3', '2026-10-14 10:46:57','0','0'); -- id=5308
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 978;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('429','01884', '503', '147', '1884', '3', '460', '1380', '0', '', '0', '2026-10-14 10:46:57', '1884', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','978-3,','1','1','0','0','460','1380','0','','0','0.00','0','0','0','0'); -- id=1800
UPDATE sellbilldetail SET  lastbuyprice = 429.00 , meanbuyprice = 429.00, lastbuyprice_withDiscount = 429.00, meanbuyprice_withDiscount = 429.00
        , lastbuyprice_withTax = 429, meanbuyprice_withTax = 429, lastbuyprice_withDiscountAndTax = 429
                where sellbilldetailid = 1800;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1884, '2026-10-14', 1380, 1287, 1287
                    , 1287, 1287, 1287, 1287
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1287, 1287, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1380, sellCostBuyPrice =sellCostBuyPrice+1287
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1287, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1287
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1287, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1287
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1287
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1287
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1287
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1380, 1287, 1287
                    , 1287, 1287, 1287, 1287
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1287, 1287, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1380, sellCostBuyPrice =sellCostBuyPrice+1287
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1287, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1287
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1287, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1287
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1287
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1287
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1287
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '283', userid = '3', storedetaildate = '2026-10-14 10:46:57' WHERE storedetailid = '2901';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1884', '1', '3', '1', '503', 'اضافة فاتورة مبيعات', 'sellbillController.php', '286', '283', '3', '2026-10-14 10:46:57','0','0'); -- id=5309
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 983;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('319','01889', '503', '147', '1889', '3', '350', '1050', '0', '', '0', '2026-10-14 10:46:57', '1889', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','983-3,','1','1','0','0','350','1050','0','','0','0.00','0','0','0','0'); -- id=1801
UPDATE sellbilldetail SET  lastbuyprice = 319.00 , meanbuyprice = 319.00, lastbuyprice_withDiscount = 319.00, meanbuyprice_withDiscount = 319.00
        , lastbuyprice_withTax = 319, meanbuyprice_withTax = 319, lastbuyprice_withDiscountAndTax = 319
                where sellbilldetailid = 1801;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1889, '2026-10-14', 1050, 957, 957
                    , 957, 957, 957, 957
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 957, 957, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1050, sellCostBuyPrice =sellCostBuyPrice+957
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+957, sellCostMeanBuyPrice = sellCostMeanBuyPrice+957
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+957, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+957
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+957
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+957
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+957
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1050, 957, 957
                    , 957, 957, 957, 957
                    , 0, 0, 0, 0
                    , 0, 0, 0, 957, 957, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1050, sellCostBuyPrice =sellCostBuyPrice+957
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+957, sellCostMeanBuyPrice = sellCostMeanBuyPrice+957
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+957, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+957
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+957
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+957
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+957
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '312', userid = '3', storedetaildate = '2026-10-14 10:46:57' WHERE storedetailid = '2906';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1889', '1', '3', '1', '503', 'اضافة فاتورة مبيعات', 'sellbillController.php', '315', '312', '3', '2026-10-14 10:46:57','0','0'); -- id=5310
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 71;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01379', '503', '94', '1379', '3', '300', '900', '0', '', '0', '2026-10-14 10:46:57', '1379', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','71-3,','1','1','0','0','300','900','0','','0','0.00','0','0','0','0'); -- id=1802
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1802;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1379, '2026-10-14', 900, 810, 810
                    , 810, 810, 810, 810
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 810, 810, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+900, sellCostBuyPrice =sellCostBuyPrice+810
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+810, sellCostMeanBuyPrice = sellCostMeanBuyPrice+810
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+810, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+810
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+810
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+810
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+810
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 900, 810, 810
                    , 810, 810, 810, 810
                    , 0, 0, 0, 0
                    , 0, 0, 0, 810, 810, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+900, sellCostBuyPrice =sellCostBuyPrice+810
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+810, sellCostMeanBuyPrice = sellCostMeanBuyPrice+810
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+810, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+810
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+810
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+810
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+810
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '495', userid = '3', storedetaildate = '2026-10-14 10:46:57' WHERE storedetailid = '1379';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1379', '1', '3', '1', '503', 'اضافة فاتورة مبيعات', 'sellbillController.php', '498', '495', '3', '2026-10-14 10:46:57','0','0'); -- id=5311
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 643;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('496.8','01730', '503', '132', '1730', '3', '540', '1620', '0', '', '0', '2026-10-14 10:46:57', '1730', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','643-3,','1','1','0','0','540','1620','0','','0','0.00','0','0','0','0'); -- id=1803
UPDATE sellbilldetail SET  lastbuyprice = 540.00 , meanbuyprice = 540.00, lastbuyprice_withDiscount = 496.80, meanbuyprice_withDiscount = 496.80
        , lastbuyprice_withTax = 540, meanbuyprice_withTax = 540, lastbuyprice_withDiscountAndTax = 496.8
                where sellbilldetailid = 1803;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1730, '2026-10-14', 1620, 1620, 1620
                    , 1620, 1490.4, 1490.4, 1490.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1620, 1620, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1620, sellCostBuyPrice =sellCostBuyPrice+1620
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1620, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1620
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1490.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1490.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1490.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1620
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1620
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1620, 1620, 1620
                    , 1620, 1490.4, 1490.4, 1490.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1620, 1620, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1620, sellCostBuyPrice =sellCostBuyPrice+1620
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1620, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1620
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1490.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1490.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1490.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1620
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1620
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '15', userid = '3', storedetaildate = '2026-10-14 10:46:57' WHERE storedetailid = '2743';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1730', '1', '3', '1', '503', 'اضافة فاتورة مبيعات', 'sellbillController.php', '18', '15', '3', '2026-10-14 10:46:57','0','0'); -- id=5312
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3119465',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3107190','12275', '0', '2', 'اضافة فاتورة مبيعات', '503', '3119465', '2026-10-14 10:46:57', '3',  'sellbillController.php','1','','0'); -- id=640
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '12275', '12275', '2026-10-14', '3', '0', '0', '2026-10-14 10:46:57','اضافة فاتورة مبيعات رقم 503','1','0',null,'0','503','sellbillController.php?do=showDetail&sellbillid=503'); -- id=2334
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2334', '419', '12275', '','0'); -- id=2383
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3119465', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2334', '143', '12275', '','0'); -- id=2336
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5255800', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '11270.4', '11270.4', '2026-10-14', '3', '0', '0', '2026-10-14 10:46:57','اضافة فاتورة مبيعات رقم 503 - صرف البضاعة من المخزن','1','0',null,'0','503','sellbillController.php?do=showDetail&sellbillid=503'); -- id=2335
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2335', '402', '11270.4', '','0'); -- id=2384
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '4909310.07', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2335', '382', '11270.4', '','0'); -- id=2337
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21242435.23', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2334,0,2335' where sellbillid=503;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 12275, 11400, 11400
                    , 11400, 11270.4, 11270.4, 11270.4
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,11400, 11400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+12275, sellCostBuyPrice =sellCostBuyPrice+11400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+11400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+11400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+11270.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+11270.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+11270.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+11400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+11400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 12275, 11400, 11400
                    , 11400, 11270.4, 11270.4, 11270.4
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,11400, 11400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+12275, sellCostBuyPrice =sellCostBuyPrice+11400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+11400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+11400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+11270.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+11270.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+11270.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+11400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+11400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 12275, 11400, 11400
                    , 11400, 11270.4, 11270.4, 11270.4, 11400, 11400)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+12275, netSellCostBuyPrice = netSellCostBuyPrice+11400
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+11400
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+11400
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+11270.4
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+11270.4
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+11270.4
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+11400
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+11400;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf311d31deb and sellbillId = 503 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:16:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:46:57", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:46:57', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8991
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:17:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:47:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 10:47:32', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=8992
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:17:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:47:41", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 10:47:41', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8993
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 07:17:41";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 10:47:41', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8994
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:17:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:47:45", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:47:45', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8995
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:17:51";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:47:51", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 10:47:51', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=8996
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 07:17:51";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 10:47:52', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=8997
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:17:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:47:54", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:47:54', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=8998
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:18:07";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:48:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 10:48:07', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=8999
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:18:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:48:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 10:48:57', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9000
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('خاص done حنفي','','21','220','235','235','235','2026-10-14','0','1','0','','0','0','0','0','0','220','220','220','220','220','0','6.82','0','0','.','0','0','0','220','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','220','220','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','220','0','0','0','0','0','0','','','0','0','0','0'); -- id=1927
UPDATE product SET productName = 'خاص done حنفي', productDescription = '', productCatId = '21', productBuyPrice = '220', productSellAllPrice = '235', productSellUnitPrice = '235', productSellHalfPrice = '235', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01927',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '220',lastbuyprice_withDiscount = '220',meanbuyprice = '220',meanbuyprice_withDiscount = '220' , productbuypricereal = '220' , buypricereal_precentage = '0' , buytotal_precentage = '6.82' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='220',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='220',meanbuyprice_withTax='220',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='220',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1927';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1927', '1', '2026-10-14', '1', '0','0192701','235','235','235','220','','0','0','0','0','0','0','0','0','0','0'); -- id=1927
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1927', '1', '612', '1', '2026-10-14'); -- id=2944
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1927', '1', '612', '0', '1927', 'إضافة منتج', 'productController.php', '0', '612', '1', '2026-10-14','0','0'); -- id=5313
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1927, 1,'2026-10-14 10:48:57',1)
                ON DUPLICATE KEY UPDATE productid = 1927, edited = 1, sysdate = '2026-10-14 10:48:57', userid = 1; -- id=2865
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '134640', '134640', '2026-10-14', '1', '0', '0', '2026-10-14 10:48:57','إضافة منتج خاص done حنفي الكمية 612','1','0','0','0','1927','productController.php?do=edit&id=1927'); -- id=2336
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2336', '382', '134640', '','0'); -- id=2385
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21377075.23', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2336', '121', '134640', '','0'); -- id=2338
UPDATE accountstree SET name = 'حساب وسيط للارصدة الافتتاحية', customName = 'حساب وسيط للارصدة الافتتاحية', customNameEn = 'Paid Capital', nameEn = 'Paid Capital', parent = '119', accountNature = '1', theValue = '10618104.65', theOrder = '0', layingOrder = '3102', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '4', itemtype2 = '0', itemtype3 = 'Equity ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:37' WHERE id = '121';
UPDATE product SET productName = 'خاص done حنفي', productDescription = '', productCatId = '21', productBuyPrice = '220.00', productSellAllPrice = '235.00', productSellUnitPrice = '235.00', productSellHalfPrice = '235.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01927',type ='0', expireDate = '0' , dailyentryId = '2336',isService = '0',isOptic = '0',lastbuyprice = '220',lastbuyprice_withDiscount = '220',meanbuyprice = '220',meanbuyprice_withDiscount = '220' , productbuypricereal = '220' , buypricereal_precentage = '0' , buytotal_precentage = '6.82' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='220',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='220',meanbuyprice_withTax='220',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='220',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1927';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:18:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:48:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 10:48:59', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9001
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:20:08";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:50:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 10:50:08', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9002
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:20:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:50:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 10:50:15', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9003
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:20:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:50:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 10:50:32', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9004
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:21:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:51:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 10:51:11', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=show'); -- id=9005
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:21:21";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:51:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 10:51:21', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=show'); -- id=9006
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:26:19";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:56:19", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-10-14 10:56:19', '6', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/savedailyController.php'); -- id=9007
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:26:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:56:52", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:56:52', '6', 'showDetail', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=showDetail&sellbillid=500'); -- id=9008
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:27:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:57:00", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-10-14 10:57:00', '6', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/savedailyController.php'); -- id=9009
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:27:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 10:57:32", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 10:57:32', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9010
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:30:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:00:56", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 11:00:56', '6', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9011

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf35ec67d4c
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 11:00:56', '06acf35ec67d4c', '1', '0.00', '0', '0', '1', '9360.00', '9360', '9360', '0', '1', '2026-10-14 11:00:56', '', '6', '0', 'نقدي', '4', '0', '3', '0', 'نقدي', '12' ,'0','','','','','-1','0','0','0','0','0','9360','0','','0','0','9360','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=504
UPDATE client SET  clientdebt = '0', userid = '6' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','504', '0', '2026-10-14 11:00:56', '6', 'sellbillController.php', 'اضافة فاتورة مبيعات', '9360', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 11:00:56','0','0','',''); -- id=649
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 899;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('750','01852', '504', '143', '1852', '12', '780', '9360', '0', '', '0', '2026-10-14 11:00:56', '1852', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','899-12,','1','1','0','0','780','9360','0','','0','0.00','0','0','0','0'); -- id=1804
UPDATE sellbilldetail SET  lastbuyprice = 750.00 , meanbuyprice = 750.00, lastbuyprice_withDiscount = 750.00, meanbuyprice_withDiscount = 750.00
        , lastbuyprice_withTax = 750, meanbuyprice_withTax = 375, lastbuyprice_withDiscountAndTax = 750
                where sellbilldetailid = 1804;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1852, '2026-10-14', 9360, 9000, 9000
                    , 9000, 9000, 9000, 9000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 9000, 4500, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+9360, sellCostBuyPrice =sellCostBuyPrice+9000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+9000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+9000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+9000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+9000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+9000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+9000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4500
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 9360, 9000, 9000
                    , 9000, 9000, 9000, 9000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9000, 4500, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+9360, sellCostBuyPrice =sellCostBuyPrice+9000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+9000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+9000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+9000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+9000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+9000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+9000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4500
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '8', userid = '6', storedetaildate = '2026-10-14 11:00:56' WHERE storedetailid = '2869';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1852', '1', '12', '1', '504', 'اضافة فاتورة مبيعات', 'sellbillController.php', '20', '8', '6', '2026-10-14 11:00:56','0','0'); -- id=5314
CALL saveInUse(4,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '244080',  userid = '6' WHERE saveid = '4';
UPDATE save SET  inUse = 0 where saveid = 4;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('234720','9360', '0', '4', 'اضافة فاتورة مبيعات', '504', '244080', '2026-10-14 11:00:56', '6',  'sellbillController.php','1','','0'); -- id=641
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '9360', '9360', '2026-10-14', '6', '0', '0', '2026-10-14 11:00:56','اضافة فاتورة مبيعات رقم 504','1','0',null,'0','504','sellbillController.php?do=showDetail&sellbillid=504'); -- id=2337
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2337', '568', '9360', '','0'); -- id=2386
UPDATE accountstree SET name = 'خزنة شروال', customName = 'خزنة شروال', customNameEn = 'خزنة شروال', nameEn = 'خزنة شروال', parent = '40', accountNature = '0', theValue = '244080', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-06 13:37:54' WHERE id = '568';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2337', '143', '9360', '','0'); -- id=2339
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5265160', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '9000', '9000', '2026-10-14', '6', '0', '0', '2026-10-14 11:00:56','اضافة فاتورة مبيعات رقم 504 - صرف البضاعة من المخزن','1','0',null,'0','504','sellbillController.php?do=showDetail&sellbillid=504'); -- id=2338
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2338', '402', '9000', '','0'); -- id=2387
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '4918310.07', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2338', '382', '9000', '','0'); -- id=2340
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21368075.23', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2337,0,2338' where sellbillid=504;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 9360, 9000, 9000
                    , 9000, 9000, 9000, 9000
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,9000, 4500, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+9360, sellCostBuyPrice =sellCostBuyPrice+9000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+9000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+9000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+9000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+9000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+9000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+9000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4500
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 9360, 9000, 9000
                    , 9000, 9000, 9000, 9000
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,9000, 4500, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+9360, sellCostBuyPrice =sellCostBuyPrice+9000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+9000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+9000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+9000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+9000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+9000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+9000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4500
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 9360, 9000, 9000
                    , 9000, 9000, 9000, 9000, 9000, 4500)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+9360, netSellCostBuyPrice = netSellCostBuyPrice+9000
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+9000
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+9000
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+9000
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+9000
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+9000
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+9000
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+4500;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf35ec67d4c and sellbillId = 504 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:30:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:00:57", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 11:00:57', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9012
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:32:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:02:05", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 11:02:05', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9013
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 07:32:05";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 11:02:05', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9014
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:32:07";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:02:07", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 11:02:07', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9015
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:32:19";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:02:19", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 11:02:19', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9016
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:36:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:06:29", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 11:06:29', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9017
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 07:36:30";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 11:06:30', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9018
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:36:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:06:33", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 11:06:33', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9019
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:44:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:14:29", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 11:14:29', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9020
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 07:44:29";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 11:14:29', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9021
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:46:58";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:16:58", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 11:16:58', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9022

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf3809ab98c
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 11:16:58', '06acf3809ab98c', '1', '0.00', '0', '170', '1', '24370.00', '24200', '24200', '0', '1', '2026-10-14 11:16:58', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '75' ,'0','','','','','-1','0','0','0','0','0','24200','0','','0','0','24200','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=505
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','505', '0', '2026-10-14 11:16:58', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '24200', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 11:16:58','0','0','',''); -- id=650
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('225','09681', '505', '68', '1240', '4', '245', '980', '0', '', '0', '2026-10-14 11:16:58', '1240', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','245','980','0','','0','0.00','0','0','0','0'); -- id=1805
UPDATE sellbilldetail SET  lastbuyprice = 225.00 , meanbuyprice = 225.00, lastbuyprice_withDiscount = 225.00, meanbuyprice_withDiscount = 225.00
        , lastbuyprice_withTax = 225, meanbuyprice_withTax = 225, lastbuyprice_withDiscountAndTax = 225
                where sellbilldetailid = 1805;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1240, '2026-10-14', 973.16372589249, 900, 900
                    , 900, 900, 900, 900
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 900, 900, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+973.16372589249, sellCostBuyPrice =sellCostBuyPrice+900
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+900, sellCostMeanBuyPrice = sellCostMeanBuyPrice+900
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+900, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+900
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+900
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+900
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+900
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 973.16372589249, 900, 900
                    , 900, 900, 900, 900
                    , 0, 0, 0, 0
                    , 0, 0, 0, 900, 900, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+973.16372589249, sellCostBuyPrice =sellCostBuyPrice+900
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+900, sellCostMeanBuyPrice = sellCostMeanBuyPrice+900
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+900, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+900
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+900
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+900
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+900
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '48', userid = '3', storedetaildate = '2026-10-14 11:16:58' WHERE storedetailid = '1240';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1240', '1', '4', '1', '505', 'اضافة فاتورة مبيعات', 'sellbillController.php', '52', '48', '3', '2026-10-14 11:16:58','0','0'); -- id=5315
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('250','09568', '505', '56', '1201', '12', '270', '3240', '0', '', '0', '2026-10-14 11:16:58', '1201', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','270','3240','0','','0','0.00','0','0','0','0'); -- id=1806
UPDATE sellbilldetail SET  lastbuyprice = 250.00 , meanbuyprice = 250.00, lastbuyprice_withDiscount = 250.00, meanbuyprice_withDiscount = 250.00
        , lastbuyprice_withTax = 250, meanbuyprice_withTax = 250, lastbuyprice_withDiscountAndTax = 250
                where sellbilldetailid = 1806;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1201, '2026-10-14', 3217.3984407058, 3000, 3000
                    , 3000, 3000, 3000, 3000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 3000, 3000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3217.3984407058, sellCostBuyPrice =sellCostBuyPrice+3000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3217.3984407058, 3000, 3000
                    , 3000, 3000, 3000, 3000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3000, 3000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3217.3984407058, sellCostBuyPrice =sellCostBuyPrice+3000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '50', userid = '3', storedetaildate = '2026-10-14 11:16:58' WHERE storedetailid = '1201';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1201', '1', '12', '1', '505', 'اضافة فاتورة مبيعات', 'sellbillController.php', '62', '50', '3', '2026-10-14 11:16:58','0','0'); -- id=5316
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('260','06310', '505', '76', '1268', '6', '280', '1680', '0', '', '0', '2026-10-14 11:16:58', '1268', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','280','1680','0','','0','0.00','0','0','0','0'); -- id=1807
UPDATE sellbilldetail SET  lastbuyprice = 260.00 , meanbuyprice = 260.00, lastbuyprice_withDiscount = 260.00, meanbuyprice_withDiscount = 260.00
        , lastbuyprice_withTax = 260, meanbuyprice_withTax = 260, lastbuyprice_withDiscountAndTax = 260
                where sellbilldetailid = 1807;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1268, '2026-10-14', 1668.2806729586, 1560, 1560
                    , 1560, 1560, 1560, 1560
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1560, 1560, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1668.2806729586, sellCostBuyPrice =sellCostBuyPrice+1560
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1560, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1560
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1560, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1560
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1560
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1560
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1560
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1668.2806729586, 1560, 1560
                    , 1560, 1560, 1560, 1560
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1560, 1560, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1668.2806729586, sellCostBuyPrice =sellCostBuyPrice+1560
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1560, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1560
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1560, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1560
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1560
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1560
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1560
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 11:16:58' WHERE storedetailid = '1268';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1268', '1', '6', '1', '505', 'اضافة فاتورة مبيعات', 'sellbillController.php', '6', '0', '3', '2026-10-14 11:16:58','0','0'); -- id=5317
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('230','08703', '505', '68', '1233', '4', '250', '1000', '0', '', '0', '2026-10-14 11:16:58', '1233', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','250','1000','0','','0','0.00','0','0','0','0'); -- id=1808
UPDATE sellbilldetail SET  lastbuyprice = 230.00 , meanbuyprice = 230.00, lastbuyprice_withDiscount = 230.00, meanbuyprice_withDiscount = 230.00
        , lastbuyprice_withTax = 230, meanbuyprice_withTax = 230, lastbuyprice_withDiscountAndTax = 230
                where sellbilldetailid = 1808;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1233, '2026-10-14', 993.02421009438, 920, 920
                    , 920, 920, 920, 920
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 920, 920, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+993.02421009438, sellCostBuyPrice =sellCostBuyPrice+920
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+920, sellCostMeanBuyPrice = sellCostMeanBuyPrice+920
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+920, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+920
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+920
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+920
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+920
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 993.02421009438, 920, 920
                    , 920, 920, 920, 920
                    , 0, 0, 0, 0
                    , 0, 0, 0, 920, 920, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+993.02421009438, sellCostBuyPrice =sellCostBuyPrice+920
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+920, sellCostMeanBuyPrice = sellCostMeanBuyPrice+920
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+920, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+920
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+920
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+920
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+920
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '27', userid = '3', storedetaildate = '2026-10-14 11:16:58' WHERE storedetailid = '1233';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1233', '1', '4', '1', '505', 'اضافة فاتورة مبيعات', 'sellbillController.php', '31', '27', '3', '2026-10-14 11:16:58','0','0'); -- id=5318
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('235','06307', '505', '76', '1266', '3', '255', '765', '0', '', '0', '2026-10-14 11:16:58', '1266', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','255','765','0','','0','0.00','0','0','0','0'); -- id=1809
UPDATE sellbilldetail SET  lastbuyprice = 235.00 , meanbuyprice = 235.00, lastbuyprice_withDiscount = 235.00, meanbuyprice_withDiscount = 235.00
        , lastbuyprice_withTax = 235, meanbuyprice_withTax = 235, lastbuyprice_withDiscountAndTax = 235
                where sellbilldetailid = 1809;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1266, '2026-10-14', 759.6635207222, 705, 705
                    , 705, 705, 705, 705
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 705, 705, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+759.6635207222, sellCostBuyPrice =sellCostBuyPrice+705
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+705, sellCostMeanBuyPrice = sellCostMeanBuyPrice+705
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+705, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+705
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+705
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+705
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+705
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 759.6635207222, 705, 705
                    , 705, 705, 705, 705
                    , 0, 0, 0, 0
                    , 0, 0, 0, 705, 705, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+759.6635207222, sellCostBuyPrice =sellCostBuyPrice+705
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+705, sellCostMeanBuyPrice = sellCostMeanBuyPrice+705
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+705, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+705
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+705
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+705
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+705
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '29', userid = '3', storedetaildate = '2026-10-14 11:16:58' WHERE storedetailid = '1266';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1266', '1', '3', '1', '505', 'اضافة فاتورة مبيعات', 'sellbillController.php', '32', '29', '3', '2026-10-14 11:16:58','0','0'); -- id=5319
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 63;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('190','i0001247', '505', '71', '1247', '3', '260', '780', '0', '', '0', '2026-10-14 11:16:58', '1247', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','63-3,','1','1','0','0','260','780','0','','0','0.00','0','0','0','0'); -- id=1810
UPDATE sellbilldetail SET  lastbuyprice = 190.00 , meanbuyprice = 190.00, lastbuyprice_withDiscount = 190.00, meanbuyprice_withDiscount = 190.00
        , lastbuyprice_withTax = 190, meanbuyprice_withTax = 190, lastbuyprice_withDiscountAndTax = 190
                where sellbilldetailid = 1810;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1247, '2026-10-14', 774.55888387362, 570, 570
                    , 570, 570, 570, 570
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 570, 570, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+774.55888387362, sellCostBuyPrice =sellCostBuyPrice+570
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+570, sellCostMeanBuyPrice = sellCostMeanBuyPrice+570
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+570, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+570
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+570
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+570
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+570
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 774.55888387362, 570, 570
                    , 570, 570, 570, 570
                    , 0, 0, 0, 0
                    , 0, 0, 0, 570, 570, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+774.55888387362, sellCostBuyPrice =sellCostBuyPrice+570
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+570, sellCostMeanBuyPrice = sellCostMeanBuyPrice+570
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+570, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+570
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+570
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+570
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+570
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '8', userid = '3', storedetaildate = '2026-10-14 11:16:58' WHERE storedetailid = '1247';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1247', '1', '3', '1', '505', 'اضافة فاتورة مبيعات', 'sellbillController.php', '11', '8', '3', '2026-10-14 11:16:58','0','0'); -- id=5320
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 63;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('190','i0001247', '505', '71', '1247', '4', '250', '1000', '0', '', '0', '2026-10-14 11:16:58', '1247', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','63-4,','1','1','0','0','250','1000','0','','0','0.00','0','0','0','0'); -- id=1811
UPDATE sellbilldetail SET  lastbuyprice = 190.00 , meanbuyprice = 190.00, lastbuyprice_withDiscount = 190.00, meanbuyprice_withDiscount = 190.00
        , lastbuyprice_withTax = 190, meanbuyprice_withTax = 190, lastbuyprice_withDiscountAndTax = 190
                where sellbilldetailid = 1811;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1247, '2026-10-14', 993.02421009438, 760, 760
                    , 760, 760, 760, 760
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 760, 760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+993.02421009438, sellCostBuyPrice =sellCostBuyPrice+760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+760, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+760
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+760
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 993.02421009438, 760, 760
                    , 760, 760, 760, 760
                    , 0, 0, 0, 0
                    , 0, 0, 0, 760, 760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+993.02421009438, sellCostBuyPrice =sellCostBuyPrice+760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+760, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+760
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+760
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '4', userid = '3', storedetaildate = '2026-10-14 11:16:58' WHERE storedetailid = '1247';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1247', '1', '4', '1', '505', 'اضافة فاتورة مبيعات', 'sellbillController.php', '8', '4', '3', '2026-10-14 11:16:58','0','0'); -- id=5321
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('200','08917', '505', '47', '1162', '3', '220', '660', '0', '', '0', '2026-10-14 11:16:58', '1162', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','220','660','0','','0','0.00','0','0','0','0'); -- id=1812
UPDATE sellbilldetail SET  lastbuyprice = 200.00 , meanbuyprice = 200.00, lastbuyprice_withDiscount = 200.00, meanbuyprice_withDiscount = 200.00
        , lastbuyprice_withTax = 200, meanbuyprice_withTax = 200, lastbuyprice_withDiscountAndTax = 200
                where sellbilldetailid = 1812;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1162, '2026-10-14', 655.39597866229, 600, 600
                    , 600, 600, 600, 600
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 600, 600, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+655.39597866229, sellCostBuyPrice =sellCostBuyPrice+600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+600
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 655.39597866229, 600, 600
                    , 600, 600, 600, 600
                    , 0, 0, 0, 0
                    , 0, 0, 0, 600, 600, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+655.39597866229, sellCostBuyPrice =sellCostBuyPrice+600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+600
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '21', userid = '3', storedetaildate = '2026-10-14 11:16:58' WHERE storedetailid = '1162';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1162', '1', '3', '1', '505', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '21', '3', '2026-10-14 11:16:58','0','0'); -- id=5322
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+15 where id = 985;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('364','01891', '505', '147', '1891', '15', '395', '5925', '0', '', '0', '2026-10-14 11:16:58', '1891', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','985-15,','1','1','0','0','395','5925','0','','0','0.00','0','0','0','0'); -- id=1813
UPDATE sellbilldetail SET  lastbuyprice = 364.00 , meanbuyprice = 364.00, lastbuyprice_withDiscount = 364.00, meanbuyprice_withDiscount = 364.00
        , lastbuyprice_withTax = 364, meanbuyprice_withTax = 364, lastbuyprice_withDiscountAndTax = 364
                where sellbilldetailid = 1813;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1891, '2026-10-14', 5883.6684448092, 5460, 5460
                    , 5460, 5460, 5460, 5460
                    , 0, 0, 0, 0
                    , 0, 0, 0, 15, 0, 5460, 5460, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5883.6684448092, sellCostBuyPrice =sellCostBuyPrice+5460
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5460, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5460
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5460, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5460
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5460
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5460
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5460
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+15
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5883.6684448092, 5460, 5460
                    , 5460, 5460, 5460, 5460
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5460, 5460, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5883.6684448092, sellCostBuyPrice =sellCostBuyPrice+5460
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5460, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5460
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5460, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5460
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5460
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5460
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5460
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '297', userid = '3', storedetaildate = '2026-10-14 11:16:58' WHERE storedetailid = '2908';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1891', '1', '15', '1', '505', 'اضافة فاتورة مبيعات', 'sellbillController.php', '312', '297', '3', '2026-10-14 11:16:58','0','0'); -- id=5323
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 623;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('349.6','01724', '505', '132', '1724', '6', '380', '2280', '0', '', '0', '2026-10-14 11:16:58', '1724', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','623-6,','1','1','0','0','380','2280','0','','0','0.00','0','0','0','0'); -- id=1814
UPDATE sellbilldetail SET  lastbuyprice = 380.00 , meanbuyprice = 380.00, lastbuyprice_withDiscount = 349.60, meanbuyprice_withDiscount = 364.80
        , lastbuyprice_withTax = 380, meanbuyprice_withTax = 190, lastbuyprice_withDiscountAndTax = 349.6
                where sellbilldetailid = 1814;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1724, '2026-10-14', 2264.0951990152, 2280, 2280
                    , 2280, 2097.6, 2188.8, 2097.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2280, 1140, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2264.0951990152, sellCostBuyPrice =sellCostBuyPrice+2280
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2280, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2280
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2097.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2188.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2097.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2280
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1140
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2264.0951990152, 2280, 2280
                    , 2280, 2097.6, 2188.8, 2097.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2280, 1140, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2264.0951990152, sellCostBuyPrice =sellCostBuyPrice+2280
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2280, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2280
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2097.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2188.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2097.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2280
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1140
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '18', userid = '3', storedetaildate = '2026-10-14 11:16:58' WHERE storedetailid = '2737';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1724', '1', '6', '1', '505', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '18', '3', '2026-10-14 11:16:58','0','0'); -- id=5324
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 977;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('364','01883', '505', '147', '1883', '6', '395', '2370', '0', '', '0', '2026-10-14 11:16:58', '1883', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','977-6,','1','1','0','0','395','2370','0','','0','0.00','0','0','0','0'); -- id=1815
UPDATE sellbilldetail SET  lastbuyprice = 364.00 , meanbuyprice = 364.00, lastbuyprice_withDiscount = 364.00, meanbuyprice_withDiscount = 364.00
        , lastbuyprice_withTax = 364, meanbuyprice_withTax = 364, lastbuyprice_withDiscountAndTax = 364
                where sellbilldetailid = 1815;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1883, '2026-10-14', 2353.4673779237, 2184, 2184
                    , 2184, 2184, 2184, 2184
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2184, 2184, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2353.4673779237, sellCostBuyPrice =sellCostBuyPrice+2184
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2184, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2184
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2184, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2184
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2184
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2184
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2184
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2353.4673779237, 2184, 2184
                    , 2184, 2184, 2184, 2184
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2184, 2184, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2353.4673779237, sellCostBuyPrice =sellCostBuyPrice+2184
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2184, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2184
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2184, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2184
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2184
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2184
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2184
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '162', userid = '3', storedetaildate = '2026-10-14 11:16:58' WHERE storedetailid = '2900';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1883', '1', '6', '1', '505', 'اضافة فاتورة مبيعات', 'sellbillController.php', '168', '162', '3', '2026-10-14 11:16:58','0','0'); -- id=5325
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 622;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('340.4','01723', '505', '132', '1723', '6', '370', '2220', '0', '', '0', '2026-10-14 11:16:58', '1723', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','622-6,','1','1','0','0','370','2220','0','','0','0.00','0','0','0','0'); -- id=1816
UPDATE sellbilldetail SET  lastbuyprice = 370.00 , meanbuyprice = 370.00, lastbuyprice_withDiscount = 340.40, meanbuyprice_withDiscount = 355.20
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 185, lastbuyprice_withDiscountAndTax = 340.4
                where sellbilldetailid = 1816;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1723, '2026-10-14', 2204.5137464095, 2220, 2220
                    , 2220, 2042.4, 2131.2, 2042.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2220, 1110, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2204.5137464095, sellCostBuyPrice =sellCostBuyPrice+2220
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2220, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2220
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2042.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2131.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2042.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2220
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1110
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2204.5137464095, 2220, 2220
                    , 2220, 2042.4, 2131.2, 2042.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2220, 1110, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2204.5137464095, sellCostBuyPrice =sellCostBuyPrice+2220
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2220, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2220
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2042.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2131.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2042.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2220
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1110
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '18', userid = '3', storedetaildate = '2026-10-14 11:16:58' WHERE storedetailid = '2736';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1723', '1', '6', '1', '505', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '18', '3', '2026-10-14 11:16:58','0','0'); -- id=5326
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 543;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('441','01641', '505', '122', '1641', '3', '490', '1470', '0', '', '0', '2026-10-14 11:16:58', '1641', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','543-3,','1','1','0','0','490','1470','0','','0','0.00','0','0','0','0'); -- id=1817
UPDATE sellbilldetail SET  lastbuyprice = 490.00 , meanbuyprice = 490.00, lastbuyprice_withDiscount = 441.00, meanbuyprice_withDiscount = 441.00
        , lastbuyprice_withTax = 490, meanbuyprice_withTax = 490, lastbuyprice_withDiscountAndTax = 441
                where sellbilldetailid = 1817;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1641, '2026-10-14', 1459.7455888387, 1470, 1470
                    , 1470, 1323, 1323, 1323
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1470, 1470, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1459.7455888387, sellCostBuyPrice =sellCostBuyPrice+1470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1323, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1323
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1323
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1470
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1459.7455888387, 1470, 1470
                    , 1470, 1323, 1323, 1323
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1470, 1470, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1459.7455888387, sellCostBuyPrice =sellCostBuyPrice+1470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1323, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1323
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1323
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1470
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '6', userid = '3', storedetaildate = '2026-10-14 11:16:58' WHERE storedetailid = '1666';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1641', '1', '3', '1', '505', 'اضافة فاتورة مبيعات', 'sellbillController.php', '9', '6', '3', '2026-10-14 11:16:58','0','0'); -- id=5327
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3143665',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3119465','24200', '0', '2', 'اضافة فاتورة مبيعات', '505', '3143665', '2026-10-14 11:16:58', '3',  'sellbillController.php','1','','0'); -- id=642
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '24370', '24370', '2026-10-14', '3', '0', '0', '2026-10-14 11:16:58','اضافة فاتورة مبيعات رقم 505','1','0',null,'0','505','sellbillController.php?do=showDetail&sellbillid=505'); -- id=2339
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2339', '419', '24200', '','0'); -- id=2388
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3143665', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2339', '398', '170', '','0'); -- id=2389
UPDATE accountstree SET name = 'خصم مسموح به', customName = 'خصم مسموح به', customNameEn = '', nameEn = '', parent = '158', accountNature = '0', theValue = '464990', theOrder = '0', layingOrder = '51', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-08-08 17:58:26' WHERE id = '398';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2339', '143', '24370', '','0'); -- id=2341
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5289530', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '22122', '22122', '2026-10-14', '3', '0', '0', '2026-10-14 11:16:58','اضافة فاتورة مبيعات رقم 505 - صرف البضاعة من المخزن','1','0',null,'0','505','sellbillController.php?do=showDetail&sellbillid=505'); -- id=2340
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2340', '402', '22122', '','0'); -- id=2390
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '4940432.07', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2340', '382', '22122', '','0'); -- id=2342
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21345953.23', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2339,0,2340' where sellbillid=505;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 24200, 22629, 22629
                    , 22629, 22122, 22302, 22122
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,22629, 20379, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+24200, sellCostBuyPrice =sellCostBuyPrice+22629
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+22629, sellCostMeanBuyPrice = sellCostMeanBuyPrice+22629
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+22122, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+22302
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+22122
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+22629
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+20379
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 24200, 22629, 22629
                    , 22629, 22122, 22302, 22122
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,22629, 20379, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+24200, sellCostBuyPrice =sellCostBuyPrice+22629
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+22629, sellCostMeanBuyPrice = sellCostMeanBuyPrice+22629
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+22122, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+22302
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+22122
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+22629
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+20379
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 24200, 22629, 22629
                    , 22629, 22122, 22302, 22122, 22629, 20379)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+24200, netSellCostBuyPrice = netSellCostBuyPrice+22629
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+22629
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+22629
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+22122
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+22302
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+22122
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+22629
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+20379;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf3809ab98c and sellbillId = 505 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:46:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:16:59", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 11:16:59', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9023
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:50:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:20:05", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 11:20:05', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9024
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 07:50:06";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 11:20:06', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9025
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:50:07";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:20:07", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 11:20:07', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9026
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:54:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:24:30", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-10-14 11:24:30', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/savedailyController.php'); -- id=9027
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:55:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:25:26", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 11:25:26', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9028
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:56:20";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:26:20", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 11:26:20', '3', 'showDetail', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=showDetail&sellbillid=505'); -- id=9029
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:56:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:26:30", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 11:26:30', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9030
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 07:58:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:28:09", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-10-14 11:28:09', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/savedailyController.php'); -- id=9031
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:00:17";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:30:17", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 11:30:17', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9032
UPDATE user SET loginip = "" WHERE userid = 6;
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:04:38";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:34:38", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 11:34:38', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9033
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 08:04:38";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 11:34:38', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9034
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:04:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:34:54", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 11:34:54', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9035

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf3d9937d1e
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 11:34:54', '06acf3d9937d1e', '1', '0.00', '0', '0', '1', '4200.00', '4200', '4200', '0', '1', '2026-10-14 11:34:54', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '12' ,'0','','','','','-1','0','0','0','0','0','4200','0','','0','0','4200','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=506
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','506', '0', '2026-10-14 11:34:54', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '4200', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 11:34:54','0','0','',''); -- id=651
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 855;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('315','01830', '506', '48', '1830', '12', '350', '4200', '0', '', '0', '2026-10-14 11:34:54', '1830', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','855-12,','1','1','0','0','350','4200','0','','0','0.00','0','0','0','0'); -- id=1818
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 315.00, meanbuyprice_withDiscount = 332.50
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 175, lastbuyprice_withDiscountAndTax = 315
                where sellbilldetailid = 1818;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1830, '2026-10-14', 4200, 4200, 4200
                    , 4200, 3780, 3990, 3780
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 4200, 2100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4200, sellCostBuyPrice =sellCostBuyPrice+4200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3780, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3990
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3780
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4200, 4200, 4200
                    , 4200, 3780, 3990, 3780
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4200, 2100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4200, sellCostBuyPrice =sellCostBuyPrice+4200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3780, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3990
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3780
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '24', userid = '3', storedetaildate = '2026-10-14 11:34:54' WHERE storedetailid = '2845';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1830', '1', '12', '1', '506', 'اضافة فاتورة مبيعات', 'sellbillController.php', '36', '24', '3', '2026-10-14 11:34:54','0','0'); -- id=5328
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3147865',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3143665','4200', '0', '2', 'اضافة فاتورة مبيعات', '506', '3147865', '2026-10-14 11:34:54', '3',  'sellbillController.php','1','','0'); -- id=643
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '4200', '4200', '2026-10-14', '3', '0', '0', '2026-10-14 11:34:54','اضافة فاتورة مبيعات رقم 506','1','0',null,'0','506','sellbillController.php?do=showDetail&sellbillid=506'); -- id=2341
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2341', '419', '4200', '','0'); -- id=2391
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3147865', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2341', '143', '4200', '','0'); -- id=2343
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5293730', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '3780', '3780', '2026-10-14', '3', '0', '0', '2026-10-14 11:34:54','اضافة فاتورة مبيعات رقم 506 - صرف البضاعة من المخزن','1','0',null,'0','506','sellbillController.php?do=showDetail&sellbillid=506'); -- id=2342
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2342', '402', '3780', '','0'); -- id=2392
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '4944212.07', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2342', '382', '3780', '','0'); -- id=2344
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21342173.23', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2341,0,2342' where sellbillid=506;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 4200, 4200, 4200
                    , 4200, 3780, 3990, 3780
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,4200, 2100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4200, sellCostBuyPrice =sellCostBuyPrice+4200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3780, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3990
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3780
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4200, 4200, 4200
                    , 4200, 3780, 3990, 3780
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,4200, 2100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4200, sellCostBuyPrice =sellCostBuyPrice+4200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3780, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3990
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3780
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 4200, 4200, 4200
                    , 4200, 3780, 3990, 3780, 4200, 2100)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+4200, netSellCostBuyPrice = netSellCostBuyPrice+4200
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+4200
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+4200
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+3780
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+3990
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+3780
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+4200
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+2100;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf3d9937d1e and sellbillId = 506 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:04:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:34:54", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 11:34:54', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9036
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:21:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 11:51:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 11:51:05', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9037
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:33:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:03:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 12:03:23', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9038
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:33:27";
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:33:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:03:29", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 12:03:29', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9039
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 08:33:29";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 12:03:29', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9040
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:33:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:03:31", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 12:03:31', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9041
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:34:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:04:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 12:04:22', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9042
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('تي شيرت خالد الدولي','2026-10-14','','93', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=155
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (155, 1,'2026-10-14 12:04:22',1)
                ON DUPLICATE KEY UPDATE catid = 155, edited = 1, sysdate = '2026-10-14 12:04:22', userid = 1; -- id=167
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '155', '1', '2026-10-14', '1', '0'); -- id=60
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:34:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:04:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 12:04:22', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9043
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:34:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:04:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 12:04:24', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9044
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:34:27";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:04:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:04:27', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9045
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:35:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:05:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:05:35', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9046
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:36:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:06:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:06:12', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9047
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:38:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:08:33", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 12:08:33', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9048

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf456394c43
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 12:08:33', '06acf456394c43', '1', '0.00', '0', '10', '1', '9060.00', '9050', '9050', '0', '1', '2026-10-14 12:08:33', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '27' ,'0','','','','','-1','0','0','0','0','0','9050','0','','0','0','9050','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=507
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','507', '0', '2026-10-14 12:08:33', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '9050', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 12:08:33','0','0','',''); -- id=652
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 235;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('320','01456', '507', '94', '1456', '6', '360', '2160', '0', '', '0', '2026-10-14 12:08:33', '1456', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','235-6,','1','1','0','0','360','2160','0','','0','0.00','0','0','0','0'); -- id=1819
UPDATE sellbilldetail SET  lastbuyprice = 320.00 , meanbuyprice = 320.00, lastbuyprice_withDiscount = 320.00, meanbuyprice_withDiscount = 320.00
        , lastbuyprice_withTax = 320, meanbuyprice_withTax = 320, lastbuyprice_withDiscountAndTax = 320
                where sellbilldetailid = 1819;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1456, '2026-10-14', 2157.6158940397, 1920, 1920
                    , 1920, 1920, 1920, 1920
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1920, 1920, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2157.6158940397, sellCostBuyPrice =sellCostBuyPrice+1920
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1920, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1920
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1920, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1920
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1920
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1920
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1920
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2157.6158940397, 1920, 1920
                    , 1920, 1920, 1920, 1920
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1920, 1920, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2157.6158940397, sellCostBuyPrice =sellCostBuyPrice+1920
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1920, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1920
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1920, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1920
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1920
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1920
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1920
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '105', userid = '3', storedetaildate = '2026-10-14 12:08:33' WHERE storedetailid = '1481';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1456', '1', '6', '1', '507', 'اضافة فاتورة مبيعات', 'sellbillController.php', '111', '105', '3', '2026-10-14 12:08:33','0','0'); -- id=5329
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 575;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('427.8','01712', '507', '128', '1712', '3', '465', '1395', '0', '', '0', '2026-10-14 12:08:33', '1712', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','575-3,','1','1','0','0','465','1395','0','','0','0.00','0','0','0','0'); -- id=1820
UPDATE sellbilldetail SET  lastbuyprice = 465.00 , meanbuyprice = 465.00, lastbuyprice_withDiscount = 427.80, meanbuyprice_withDiscount = 446.40
        , lastbuyprice_withTax = 465, meanbuyprice_withTax = 232.5, lastbuyprice_withDiscountAndTax = 427.8
                where sellbilldetailid = 1820;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1712, '2026-10-14', 1393.4602649007, 1395, 1395
                    , 1395, 1283.4, 1339.2, 1283.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1395, 697.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1393.4602649007, sellCostBuyPrice =sellCostBuyPrice+1395
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1395, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1395
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1283.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1339.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1283.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1395
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+697.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1393.4602649007, 1395, 1395
                    , 1395, 1283.4, 1339.2, 1283.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1395, 697.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1393.4602649007, sellCostBuyPrice =sellCostBuyPrice+1395
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1395, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1395
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1283.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1339.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1283.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1395
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+697.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '24', userid = '3', storedetaildate = '2026-10-14 12:08:33' WHERE storedetailid = '2724';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1712', '1', '3', '1', '507', 'اضافة فاتورة مبيعات', 'sellbillController.php', '27', '24', '3', '2026-10-14 12:08:33','0','0'); -- id=5330
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 234;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01455', '507', '94', '1455', '9', '300', '2700', '0', '', '0', '2026-10-14 12:08:33', '1455', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','234-9,','1','1','0','0','300','2700','0','','0','0.00','0','0','0','0'); -- id=1821
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1821;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1455, '2026-10-14', 2697.0198675497, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2697.0198675497, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2697.0198675497, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2697.0198675497, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '39', userid = '3', storedetaildate = '2026-10-14 12:08:33' WHERE storedetailid = '1480';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1455', '1', '9', '1', '507', 'اضافة فاتورة مبيعات', 'sellbillController.php', '48', '39', '3', '2026-10-14 12:08:33','0','0'); -- id=5331
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 73;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('260','01381', '507', '94', '1381', '3', '295', '885', '0', '', '0', '2026-10-14 12:08:33', '1381', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','73-3,','1','1','0','0','295','885','0','','0','0.00','0','0','0','0'); -- id=1822
UPDATE sellbilldetail SET  lastbuyprice = 260.00 , meanbuyprice = 260.00, lastbuyprice_withDiscount = 260.00, meanbuyprice_withDiscount = 260.00
        , lastbuyprice_withTax = 260, meanbuyprice_withTax = 260, lastbuyprice_withDiscountAndTax = 260
                where sellbilldetailid = 1822;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1381, '2026-10-14', 884.02317880795, 780, 780
                    , 780, 780, 780, 780
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 780, 780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+884.02317880795, sellCostBuyPrice =sellCostBuyPrice+780
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+780, sellCostMeanBuyPrice = sellCostMeanBuyPrice+780
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+780, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+780
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+780
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+780
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 884.02317880795, 780, 780
                    , 780, 780, 780, 780
                    , 0, 0, 0, 0
                    , 0, 0, 0, 780, 780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+884.02317880795, sellCostBuyPrice =sellCostBuyPrice+780
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+780, sellCostMeanBuyPrice = sellCostMeanBuyPrice+780
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+780, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+780
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+780
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+780
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '279', userid = '3', storedetaildate = '2026-10-14 12:08:33' WHERE storedetailid = '1381';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1381', '1', '3', '1', '507', 'اضافة فاتورة مبيعات', 'sellbillController.php', '282', '279', '3', '2026-10-14 12:08:33','0','0'); -- id=5332
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 980;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('289','01886', '507', '147', '1886', '6', '320', '1920', '0', '', '0', '2026-10-14 12:08:33', '1886', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','980-6,','1','1','0','0','320','1920','0','','0','0.00','0','0','0','0'); -- id=1823
UPDATE sellbilldetail SET  lastbuyprice = 289.00 , meanbuyprice = 289.00, lastbuyprice_withDiscount = 289.00, meanbuyprice_withDiscount = 289.00
        , lastbuyprice_withTax = 289, meanbuyprice_withTax = 289, lastbuyprice_withDiscountAndTax = 289
                where sellbilldetailid = 1823;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1886, '2026-10-14', 1917.880794702, 1734, 1734
                    , 1734, 1734, 1734, 1734
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1734, 1734, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1917.880794702, sellCostBuyPrice =sellCostBuyPrice+1734
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1734, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1734
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1734, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1734
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1734
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1734
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1734
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1917.880794702, 1734, 1734
                    , 1734, 1734, 1734, 1734
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1734, 1734, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1917.880794702, sellCostBuyPrice =sellCostBuyPrice+1734
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1734, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1734
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1734, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1734
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1734
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1734
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1734
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '104', userid = '3', storedetaildate = '2026-10-14 12:08:33' WHERE storedetailid = '2903';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1886', '1', '6', '1', '507', 'اضافة فاتورة مبيعات', 'sellbillController.php', '110', '104', '3', '2026-10-14 12:08:33','0','0'); -- id=5333
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3156915',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3147865','9050', '0', '2', 'اضافة فاتورة مبيعات', '507', '3156915', '2026-10-14 12:08:33', '3',  'sellbillController.php','1','','0'); -- id=644
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '9060', '9060', '2026-10-14', '3', '0', '0', '2026-10-14 12:08:33','اضافة فاتورة مبيعات رقم 507','1','0',null,'0','507','sellbillController.php?do=showDetail&sellbillid=507'); -- id=2343
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2343', '419', '9050', '','0'); -- id=2393
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3156915', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2343', '398', '10', '','0'); -- id=2394
UPDATE accountstree SET name = 'خصم مسموح به', customName = 'خصم مسموح به', customNameEn = '', nameEn = '', parent = '158', accountNature = '0', theValue = '465000', theOrder = '0', layingOrder = '51', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-08-08 17:58:26' WHERE id = '398';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2343', '143', '9060', '','0'); -- id=2345
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5302790', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '8147.4', '8147.4', '2026-10-14', '3', '0', '0', '2026-10-14 12:08:33','اضافة فاتورة مبيعات رقم 507 - صرف البضاعة من المخزن','1','0',null,'0','507','sellbillController.php?do=showDetail&sellbillid=507'); -- id=2344
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2344', '402', '8147.4', '','0'); -- id=2395
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '4952359.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2344', '382', '8147.4', '','0'); -- id=2346
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21334025.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2343,0,2344' where sellbillid=507;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 9050, 8259, 8259
                    , 8259, 8147.4, 8203.2, 8147.4
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,8259, 7561.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+9050, sellCostBuyPrice =sellCostBuyPrice+8259
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8259, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8259
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+8147.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+8203.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+8147.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8259
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7561.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 9050, 8259, 8259
                    , 8259, 8147.4, 8203.2, 8147.4
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,8259, 7561.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+9050, sellCostBuyPrice =sellCostBuyPrice+8259
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8259, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8259
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+8147.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+8203.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+8147.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8259
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7561.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 9050, 8259, 8259
                    , 8259, 8147.4, 8203.2, 8147.4, 8259, 7561.5)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+9050, netSellCostBuyPrice = netSellCostBuyPrice+8259
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+8259
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+8259
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+8147.4
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+8203.2
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+8147.4
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+8259
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+7561.5;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf456394c43 and sellbillId = 507 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:38:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:08:33", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 12:08:33', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9049
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:40:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:10:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:10:39', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9050
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('ترنج ملتون خالد الدولي','','155','850','900','900','900','2026-10-14','0','1','0','','0','0','0','0','0','850','850','850','850','850','0','5.88','0','0','.','0','0','0','850','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','850','850','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','850','0','0','0','0','0','0','','','0','0','0','0'); -- id=1928
UPDATE product SET productName = 'ترنج ملتون خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '850', productSellAllPrice = '900', productSellUnitPrice = '900', productSellHalfPrice = '900', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01928',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '850',meanbuyprice = '850',meanbuyprice_withDiscount = '850' , productbuypricereal = '850' , buypricereal_precentage = '0' , buytotal_precentage = '5.88' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1928';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1928', '1.00', '2026-10-14', '1', '0','0192801','900','900','900','850','','0','0','0','0','0','0','0','0','0','0'); -- id=1928
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1928', '1', '0', '1', '2026-10-14'); -- id=2945
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1928', '1', '0', '0', '1928', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5334
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1928, 1,'2026-10-14 12:10:39',1)
                ON DUPLICATE KEY UPDATE productid = 1928, edited = 1, sysdate = '2026-10-14 12:10:39', userid = 1; -- id=2866
UPDATE product SET productName = 'ترنج ملتون خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '850.00', productSellAllPrice = '900.00', productSellUnitPrice = '900.00', productSellHalfPrice = '900.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01928',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '850',meanbuyprice = '850',meanbuyprice_withDiscount = '850' , productbuypricereal = '850' , buypricereal_precentage = '0' , buytotal_precentage = '5.88' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1928';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('سوسته هودي براند خالد الدولي','','155','425','445','445','445','2026-10-14','0','1','0','','0','0','0','0','0','425','425','425','425','425','0','4.71','0','0','.','0','0','0','425','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','425','425','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','425','0','0','0','0','0','0','','','0','0','0','0'); -- id=1929
UPDATE product SET productName = 'سوسته هودي براند خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '425', productSellAllPrice = '445', productSellUnitPrice = '445', productSellHalfPrice = '445', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01929',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '425',lastbuyprice_withDiscount = '425',meanbuyprice = '425',meanbuyprice_withDiscount = '425' , productbuypricereal = '425' , buypricereal_precentage = '0' , buytotal_precentage = '4.71' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='425',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='425',meanbuyprice_withTax='425',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='425',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1929';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1929', '1.00', '2026-10-14', '1', '0','0192901','445','445','445','425','','0','0','0','0','0','0','0','0','0','0'); -- id=1929
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1929', '1', '0', '1', '2026-10-14'); -- id=2946
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1929', '1', '0', '0', '1929', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5335
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1929, 1,'2026-10-14 12:10:39',1)
                ON DUPLICATE KEY UPDATE productid = 1929, edited = 1, sysdate = '2026-10-14 12:10:39', userid = 1; -- id=2867
UPDATE product SET productName = 'سوسته هودي براند خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '425.00', productSellAllPrice = '445.00', productSellUnitPrice = '445.00', productSellHalfPrice = '445.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01929',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '425',lastbuyprice_withDiscount = '425',meanbuyprice = '425',meanbuyprice_withDiscount = '425' , productbuypricereal = '425' , buypricereal_precentage = '0' , buytotal_precentage = '4.71' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='425',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='425',meanbuyprice_withTax='425',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='425',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1929';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('هودي طباعه خالد الدولي','','155','395','415','415','415','2026-10-14','0','1','0','','0','0','0','0','0','395','395','395','395','395','0','5.06','0','0','.','0','0','0','395','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','395','395','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','395','0','0','0','0','0','0','','','0','0','0','0'); -- id=1930
UPDATE product SET productName = 'هودي طباعه خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '395', productSellAllPrice = '415', productSellUnitPrice = '415', productSellHalfPrice = '415', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01930',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '395',lastbuyprice_withDiscount = '395',meanbuyprice = '395',meanbuyprice_withDiscount = '395' , productbuypricereal = '395' , buypricereal_precentage = '0' , buytotal_precentage = '5.06' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='395',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='395',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1930';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1930', '1.00', '2026-10-14', '1', '0','0193001','415','415','415','395','','0','0','0','0','0','0','0','0','0','0'); -- id=1930
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1930', '1', '0', '1', '2026-10-14'); -- id=2947
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1930', '1', '0', '0', '1930', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5336
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1930, 1,'2026-10-14 12:10:39',1)
                ON DUPLICATE KEY UPDATE productid = 1930, edited = 1, sysdate = '2026-10-14 12:10:39', userid = 1; -- id=2868
UPDATE product SET productName = 'هودي طباعه خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '395.00', productSellAllPrice = '415.00', productSellUnitPrice = '415.00', productSellHalfPrice = '415.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01930',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '395',lastbuyprice_withDiscount = '395',meanbuyprice = '395',meanbuyprice_withDiscount = '395' , productbuypricereal = '395' , buypricereal_precentage = '0' , buytotal_precentage = '5.06' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='395',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='395',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1930';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تيشرت راوند خالد الدولي','','155','350','370','370','370','2026-10-14','0','1','0','','0','0','0','0','0','350','350','350','350','350','0','5.71','0','0','.','0','0','0','350','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','350','350','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','350','0','0','0','0','0','0','','','0','0','0','0'); -- id=1931
UPDATE product SET productName = 'تيشرت راوند خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '350', productSellAllPrice = '370', productSellUnitPrice = '370', productSellHalfPrice = '370', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01931',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '350',meanbuyprice = '350',meanbuyprice_withDiscount = '350' , productbuypricereal = '350' , buypricereal_precentage = '0' , buytotal_precentage = '5.71' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='350',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1931';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1931', '1.00', '2026-10-14', '1', '0','0193101','370','370','370','350','','0','0','0','0','0','0','0','0','0','0'); -- id=1931
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1931', '1', '0', '1', '2026-10-14'); -- id=2948
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1931', '1', '0', '0', '1931', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5337
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1931, 1,'2026-10-14 12:10:39',1)
                ON DUPLICATE KEY UPDATE productid = 1931, edited = 1, sysdate = '2026-10-14 12:10:39', userid = 1; -- id=2869
UPDATE product SET productName = 'تيشرت راوند خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '350.00', productSellAllPrice = '370.00', productSellUnitPrice = '370.00', productSellHalfPrice = '370.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01931',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '350',meanbuyprice = '350',meanbuyprice_withDiscount = '350' , productbuypricereal = '350' , buypricereal_precentage = '0' , buytotal_precentage = '5.71' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='350',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1931';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:40:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:10:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:10:41', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9051
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:41:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:11:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:11:29', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9052
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:43:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:13:34", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 12:13:34', '4', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9053
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:43:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:13:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:13:47', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9054
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf474115f23', '2026-10-14 12:11:29', '7', '188965.00', '237745', '0', '0', '48780.00',  '48780.00', '0', '48780', '1', '2026-10-14 12:13:47', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=137
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01928', '137', '155', '1928', '12', '850', '10200.00', '0', '', '2026-10-14 12:13:47', '1928','','','0','0','0','0','0',null,'850','10200','0','0','0','0','0','0','0','0','1'); -- id=838
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:11:29', 1, 1928, 0, 0
                    , 850, 12, 0, 0, 1, '2026-10-14 12:13:47')
                ON DUPLICATE KEY UPDATE buyprice = 850,
                        buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:13:47' ; -- id=1115
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1928', '850', '12', '0', 'buyBillController.php', '838', '', '0', '0'); -- id=625
UPDATE product SET  productBuyPrice = "850" WHERE productId = 1928 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 838 ;
UPDATE product SET productName = 'ترنج ملتون خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '850.00', productSellAllPrice = '900.00', productSellUnitPrice = '900.00', productSellHalfPrice = '900.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01928',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '850',meanbuyprice = '850',meanbuyprice_withDiscount = '850' , productbuypricereal = '850.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.88' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1928';
UPDATE buybilldetail SET  lastbuyprice = 850 , meanbuyprice = 850, lastbuyprice_withDiscount = 850, meanbuyprice_withDiscount = 850
        , lastbuyprice_withTax = 850, meanbuyprice_withTax = 850, lastbuyprice_withDiscountAndTax = 850
                where buybilldetailid = 838;
UPDATE productunit SET proUnitBuyPrice  = 850 * productnumber WHERE productid = 1928;
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2945';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1928', '1', '12', '0', '137', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '12', '1', '2026-10-14 12:11:29','0','0'); -- id=5338
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01929', '137', '155', '1929', '24', '425', '10200.00', '0', '', '2026-10-14 12:13:47', '1929','','','0','0','0','0','0',null,'425','10200','0','0','0','0','0','0','0','0','1'); -- id=839
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:11:29', 1, 1929, 0, 0
                    , 425, 24, 0, 0, 1, '2026-10-14 12:13:47')
                ON DUPLICATE KEY UPDATE buyprice = 425,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:13:47' ; -- id=1116
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1929', '425', '24', '0', 'buyBillController.php', '839', '', '0', '0'); -- id=626
UPDATE product SET  productBuyPrice = "425" WHERE productId = 1929 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 839 ;
UPDATE product SET productName = 'سوسته هودي براند خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '425.00', productSellAllPrice = '445.00', productSellUnitPrice = '445.00', productSellHalfPrice = '445.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01929',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '425',lastbuyprice_withDiscount = '425',meanbuyprice = '425',meanbuyprice_withDiscount = '425' , productbuypricereal = '425.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.71' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='425',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='425',meanbuyprice_withTax='425',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='425',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1929';
UPDATE buybilldetail SET  lastbuyprice = 425 , meanbuyprice = 425, lastbuyprice_withDiscount = 425, meanbuyprice_withDiscount = 425
        , lastbuyprice_withTax = 425, meanbuyprice_withTax = 425, lastbuyprice_withDiscountAndTax = 425
                where buybilldetailid = 839;
UPDATE productunit SET proUnitBuyPrice  = 425 * productnumber WHERE productid = 1929;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2946';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1929', '1', '24', '0', '137', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 12:11:29','0','0'); -- id=5339
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01930', '137', '155', '1930', '24', '395', '9480.00', '0', '', '2026-10-14 12:13:47', '1930','','','0','0','0','0','0',null,'395','9480','0','0','0','0','0','0','0','0','1'); -- id=840
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:11:29', 1, 1930, 0, 0
                    , 395, 24, 0, 0, 1, '2026-10-14 12:13:47')
                ON DUPLICATE KEY UPDATE buyprice = 395,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:13:47' ; -- id=1117
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1930', '395', '24', '0', 'buyBillController.php', '840', '', '0', '0'); -- id=627
UPDATE product SET  productBuyPrice = "395" WHERE productId = 1930 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 840 ;
UPDATE product SET productName = 'هودي طباعه خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '395.00', productSellAllPrice = '415.00', productSellUnitPrice = '415.00', productSellHalfPrice = '415.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01930',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '395',lastbuyprice_withDiscount = '395',meanbuyprice = '395',meanbuyprice_withDiscount = '395' , productbuypricereal = '395.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.06' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='395',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='395',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1930';
UPDATE buybilldetail SET  lastbuyprice = 395 , meanbuyprice = 395, lastbuyprice_withDiscount = 395, meanbuyprice_withDiscount = 395
        , lastbuyprice_withTax = 395, meanbuyprice_withTax = 395, lastbuyprice_withDiscountAndTax = 395
                where buybilldetailid = 840;
UPDATE productunit SET proUnitBuyPrice  = 395 * productnumber WHERE productid = 1930;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2947';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1930', '1', '24', '0', '137', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 12:11:29','0','0'); -- id=5340
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01931', '137', '155', '1931', '54', '350', '18900.00', '0', '', '2026-10-14 12:13:47', '1931','','','0','0','0','0','0',null,'350','18900','0','0','0','0','0','0','0','0','1'); -- id=841
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:11:29', 1, 1931, 0, 0
                    , 350, 54, 0, 0, 1, '2026-10-14 12:13:47')
                ON DUPLICATE KEY UPDATE buyprice = 350,
                        buyQuantity =buyQuantity+54, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:13:47' ; -- id=1118
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1931', '350', '54', '0', 'buyBillController.php', '841', '', '0', '0'); -- id=628
UPDATE product SET  productBuyPrice = "350" WHERE productId = 1931 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 841 ;
UPDATE product SET productName = 'تيشرت راوند خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '350.00', productSellAllPrice = '370.00', productSellUnitPrice = '370.00', productSellHalfPrice = '370.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01931',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '350',meanbuyprice = '350',meanbuyprice_withDiscount = '350' , productbuypricereal = '350.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.71' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='350',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1931';
UPDATE buybilldetail SET  lastbuyprice = 350 , meanbuyprice = 350, lastbuyprice_withDiscount = 350, meanbuyprice_withDiscount = 350
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 350
                where buybilldetailid = 841;
UPDATE productunit SET proUnitBuyPrice  = 350 * productnumber WHERE productid = 1931;
UPDATE storedetail SET  productquantity = '54', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2948';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1931', '1', '54', '0', '137', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '54', '1', '2026-10-14 12:11:29','0','0'); -- id=5341
UPDATE supplier SET  suppliercurrentDebt = '237745',suppliercurrentDebtInCurrency= '237745' , userid = '1', supplierdate = '2026-10-14 12:13:47'   WHERE supplierid = '7';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('7', '188965.00', '48780', '0', 'اضافة فاتورة مشتريات', '137', '237745', '2026-10-14 12:11:29', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','48780','1','188965','48780','237745','0',''); -- id=463
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '48780', '48780', '2026-10-14', '1', '0', '0', '2026-10-14 12:13:47','اضافة فاتورة مشتريات رقم 137','1','0',null,'0','137','buyBillController.php?do=details&id=137'); -- id=2345
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2345', '382', '48780', '','0'); -- id=2396
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21382805.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2345', '426', '48780', '','0'); -- id=2347
UPDATE accountstree SET name = 'خالد الدولي - مورد', customName = 'خالد الدولي - مورد', customNameEn = 'خالد الدولي - مورد', nameEn = 'خالد الدولي - مورد', parent = '81', accountNature = '1', theValue = '49100', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '426';
update buybill set dailyentryid='2345,0' where buybillid=137;
COMMIT;
UPDATE product SET overAllAveragePrice = 850 WHERE productId = 1928;UPDATE product SET overAllAveragePrice = 425 WHERE productId = 1929;UPDATE product SET overAllAveragePrice = 395 WHERE productId = 1930;UPDATE product SET overAllAveragePrice = 350 WHERE productId = 1931;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:43:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:13:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:13:47', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=137'); -- id=9055
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:43:49";
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:43:58";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:13:58", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 12:13:58', '4', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9056
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 08:43:58";
UPDATE user SET loginip = "51.89.20.165", lastactivetime = "2026-10-14 12:13:58", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 12:13:58', '4', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9057
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:44:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:14:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:14:02', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=137&type=2'); -- id=9058
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:44:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:14:02", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 12:14:02', '4', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9059
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:47:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:17:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:17:35', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=137&type=2'); -- id=9060
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:47:36";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:17:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:17:36', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=137'); -- id=9061
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:47:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:17:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 12:17:42', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9062
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:48:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:18:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:18:11', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9063
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:48:38";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:18:38", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 12:18:38', '4', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9064

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf47da4b809
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 12:18:38', '06acf47da4b809', '1', '0.00', '0', '0', '1', '2340.00', '2340', '2340', '0', '2', '2026-10-14 12:18:38', '', '4', '0', 'نقدي', '3', '0', '3', '0', 'نقدي', '6' ,'0','','','','','-1','0','0','0','0','0','2340','0','','0','0','2340','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=508
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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','508', '0', '2026-10-14 12:18:38', '4', 'sellbillController.php', 'اضافة فاتورة مبيعات', '2340', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 12:18:38','0','0','',''); -- id=653
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 131;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('350','01324', '508', '86', '1324', '6', '390', '2340', '0', '', '0', '2026-10-14 12:18:38', '1324', '0.00', '-1', '2','0.00','','','0','0','0','0','0','0','0','0','','131-6,','1','1','0','0','390','2340','0','','0','0.00','0','0','0','0'); -- id=1824
UPDATE sellbilldetail SET  lastbuyprice = 360.00 , meanbuyprice = 355.63, lastbuyprice_withDiscount = 360.00, meanbuyprice_withDiscount = 355.63
        , lastbuyprice_withTax = 360, meanbuyprice_withTax = 355.63, lastbuyprice_withDiscountAndTax = 360
                where sellbilldetailid = 1824;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1324, '2026-10-14', 2340, 2160, 2160
                    , 2133.78, 2160, 2133.78, 2131.2
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2160, 2133.78, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2340, sellCostBuyPrice =sellCostBuyPrice+2160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2133.78
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2133.78
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2131.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2133.78
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (2, '2026-10-14', 2340, 2160, 2160
                    , 2133.78, 2160, 2133.78, 2131.2
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2160, 2133.78, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2340, sellCostBuyPrice =sellCostBuyPrice+2160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2133.78
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2133.78
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2131.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2133.78
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '1428', userid = '4', storedetaildate = '2026-10-14 12:18:38' WHERE storedetailid = '1405';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1324', '2', '6', '1', '508', 'اضافة فاتورة مبيعات', 'sellbillController.php', '1434', '1428', '4', '2026-10-14 12:18:38','0','0'); -- id=5342
CALL saveInUse(3,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '558750',  userid = '4' WHERE saveid = '3';
UPDATE save SET  inUse = 0 where saveid = 3;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('556410','2340', '0', '3', 'اضافة فاتورة مبيعات', '508', '558750', '2026-10-14 12:18:38', '4',  'sellbillController.php','1','','0'); -- id=645
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '2340', '2340', '2026-10-14', '4', '0', '0', '2026-10-14 12:18:38','اضافة فاتورة مبيعات رقم 508','1','0',null,'0','508','sellbillController.php?do=showDetail&sellbillid=508'); -- id=2346
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2346', '501', '2340', '','0'); -- id=2397
UPDATE accountstree SET name = 'خزينه المحل الارضي', customName = 'خزينه المحل الارضي', customNameEn = 'خزينه المحل الارضي', nameEn = 'خزينه المحل الارضي', parent = '40', accountNature = '0', theValue = '558750', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-30 21:35:47' WHERE id = '501';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2346', '143', '2340', '','0'); -- id=2348
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5305130', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '2160', '2160', '2026-10-14', '4', '0', '0', '2026-10-14 12:18:38','اضافة فاتورة مبيعات رقم 508 - صرف البضاعة من المخزن','1','0',null,'0','508','sellbillController.php?do=showDetail&sellbillid=508'); -- id=2347
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2347', '402', '2160', '','0'); -- id=2398
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '4954519.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2347', '492', '2160', '','0'); -- id=2349
UPDATE accountstree SET name = 'مخزن المحل', customName = 'مخزن المحل', customNameEn = 'مخزن المحل', nameEn = 'مخزن المحل', parent = '49', accountNature = '0', theValue = '1095070', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 19:38:59' WHERE id = '492';
update sellbill set dailyentryid='2346,0,2347' where sellbillid=508;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 2340, 2160, 2160
                    , 2133.78, 2160, 2133.78, 2131.2
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,2160, 2133.78, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2340, sellCostBuyPrice =sellCostBuyPrice+2160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2133.78
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2133.78
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2131.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2133.78
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2340, 2160, 2160
                    , 2133.78, 2160, 2133.78, 2131.2
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,2160, 2133.78, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2340, sellCostBuyPrice =sellCostBuyPrice+2160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2133.78
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2133.78
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2131.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2133.78
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 2340, 2160, 2160
                    , 2133.78, 2160, 2133.78, 2131.2, 2160, 2133.78)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+2340, netSellCostBuyPrice = netSellCostBuyPrice+2160
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+2160
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+2133.78
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+2160
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+2133.78
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+2131.2
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+2160
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+2133.78;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf47da4b809 and sellbillId = 508 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:48:38";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:18:38", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 12:18:38', '4', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9065
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:50:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:20:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:20:47', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9066
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('حوض فراري','','102','310','330','330','330','2026-10-14','0','1','0','','0','0','0','0','0','310','310','310','310','310','0','6.45','0','0','.','0','0','0','310','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','310','310','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','310','0','0','0','0','0','0','','','0','0','0','0'); -- id=1932
UPDATE product SET productName = 'حوض فراري', productDescription = '', productCatId = '102', productBuyPrice = '310', productSellAllPrice = '330', productSellUnitPrice = '330', productSellHalfPrice = '330', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01932',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310',lastbuyprice_withDiscount = '310',meanbuyprice = '310',meanbuyprice_withDiscount = '310' , productbuypricereal = '310' , buypricereal_precentage = '0' , buytotal_precentage = '6.45' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1932';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1932', '1.00', '2026-10-14', '1', '0','0193201','330','330','330','310','','0','0','0','0','0','0','0','0','0','0'); -- id=1932
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1932', '1', '0', '1', '2026-10-14'); -- id=2949
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1932', '1', '0', '0', '1932', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5343
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1932, 1,'2026-10-14 12:20:47',1)
                ON DUPLICATE KEY UPDATE productid = 1932, edited = 1, sysdate = '2026-10-14 12:20:47', userid = 1; -- id=2870
UPDATE product SET productName = 'حوض فراري', productDescription = '', productCatId = '102', productBuyPrice = '310.00', productSellAllPrice = '330.00', productSellUnitPrice = '330.00', productSellHalfPrice = '330.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01932',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310',lastbuyprice_withDiscount = '310',meanbuyprice = '310',meanbuyprice_withDiscount = '310' , productbuypricereal = '310' , buypricereal_precentage = '0' , buytotal_precentage = '6.45' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1932';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('سوستة فراري','','102','400','430','430','430','2026-10-14','0','1','0','','0','0','0','0','0','400','400','400','400','400','0','7.5','0','0','.','0','0','0','400','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','400','400','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','400','0','0','0','0','0','0','','','0','0','0','0'); -- id=1933
UPDATE product SET productName = 'سوستة فراري', productDescription = '', productCatId = '102', productBuyPrice = '400', productSellAllPrice = '430', productSellUnitPrice = '430', productSellHalfPrice = '430', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01933',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '400',lastbuyprice_withDiscount = '400',meanbuyprice = '400',meanbuyprice_withDiscount = '400' , productbuypricereal = '400' , buypricereal_precentage = '0' , buytotal_precentage = '7.5' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='400',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='400',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='400',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1933';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1933', '1.00', '2026-10-14', '1', '0','0193301','430','430','430','400','','0','0','0','0','0','0','0','0','0','0'); -- id=1933
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1933', '1', '0', '1', '2026-10-14'); -- id=2950
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1933', '1', '0', '0', '1933', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5344
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1933, 1,'2026-10-14 12:20:47',1)
                ON DUPLICATE KEY UPDATE productid = 1933, edited = 1, sysdate = '2026-10-14 12:20:47', userid = 1; -- id=2871
UPDATE product SET productName = 'سوستة فراري', productDescription = '', productCatId = '102', productBuyPrice = '400.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01933',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '400',lastbuyprice_withDiscount = '400',meanbuyprice = '400',meanbuyprice_withDiscount = '400' , productbuypricereal = '400' , buypricereal_precentage = '0' , buytotal_precentage = '7.5' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='400',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='400',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='400',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1933';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:50:48";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:20:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:20:48', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9067
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:50:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:20:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:20:52', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9068
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:52:06";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:22:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:22:06', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9069
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf497466da8', '2026-10-14 12:20:52', '87', '224700.00', '307440', '0', '0', '82740.00',  '82740.00', '0', '82740', '1', '2026-10-14 12:22:06', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=138
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01932', '138', '102', '1932', '174', '310', '53940.00', '0', '', '2026-10-14 12:22:06', '1932','','','0','0','0','0','0',null,'310','53940','0','0','0','0','0','0','0','0','1'); -- id=842
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:20:52', 1, 1932, 0, 0
                    , 310, 174, 0, 0, 1, '2026-10-14 12:22:06')
                ON DUPLICATE KEY UPDATE buyprice = 310,
                        buyQuantity =buyQuantity+174, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:22:06' ; -- id=1119
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1932', '310', '174', '0', 'buyBillController.php', '842', '', '0', '0'); -- id=629
UPDATE product SET  productBuyPrice = "310" WHERE productId = 1932 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 842 ;
UPDATE product SET productName = 'حوض فراري', productDescription = '', productCatId = '102', productBuyPrice = '310.00', productSellAllPrice = '330.00', productSellUnitPrice = '330.00', productSellHalfPrice = '330.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01932',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310',lastbuyprice_withDiscount = '310',meanbuyprice = '310',meanbuyprice_withDiscount = '310' , productbuypricereal = '310.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.45' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1932';
UPDATE buybilldetail SET  lastbuyprice = 310 , meanbuyprice = 310, lastbuyprice_withDiscount = 310, meanbuyprice_withDiscount = 310
        , lastbuyprice_withTax = 310, meanbuyprice_withTax = 310, lastbuyprice_withDiscountAndTax = 310
                where buybilldetailid = 842;
UPDATE productunit SET proUnitBuyPrice  = 310 * productnumber WHERE productid = 1932;
UPDATE storedetail SET  productquantity = '174', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2949';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1932', '1', '174', '0', '138', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '174', '1', '2026-10-14 12:20:52','0','0'); -- id=5345
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01933', '138', '102', '1933', '72', '400', '28800.00', '0', '', '2026-10-14 12:22:06', '1933','','','0','0','0','0','0',null,'400','28800','0','0','0','0','0','0','0','0','1'); -- id=843
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:20:52', 1, 1933, 0, 0
                    , 400, 72, 0, 0, 1, '2026-10-14 12:22:06')
                ON DUPLICATE KEY UPDATE buyprice = 400,
                        buyQuantity =buyQuantity+72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:22:06' ; -- id=1120
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1933', '400', '72', '0', 'buyBillController.php', '843', '', '0', '0'); -- id=630
UPDATE product SET  productBuyPrice = "400" WHERE productId = 1933 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 843 ;
UPDATE product SET productName = 'سوستة فراري', productDescription = '', productCatId = '102', productBuyPrice = '400.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01933',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '400',lastbuyprice_withDiscount = '400',meanbuyprice = '400',meanbuyprice_withDiscount = '400' , productbuypricereal = '400.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '7.50' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='400',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='400',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='400',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1933';
UPDATE buybilldetail SET  lastbuyprice = 400 , meanbuyprice = 400, lastbuyprice_withDiscount = 400, meanbuyprice_withDiscount = 400
        , lastbuyprice_withTax = 400, meanbuyprice_withTax = 400, lastbuyprice_withDiscountAndTax = 400
                where buybilldetailid = 843;
UPDATE productunit SET proUnitBuyPrice  = 400 * productnumber WHERE productid = 1933;
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2950';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1933', '1', '72', '0', '138', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '72', '1', '2026-10-14 12:20:52','0','0'); -- id=5346
UPDATE supplier SET  suppliercurrentDebt = '307440',suppliercurrentDebtInCurrency= '307440' , userid = '1', supplierdate = '2026-10-14 12:22:06'   WHERE supplierid = '87';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('87', '224700.00', '82740', '0', 'اضافة فاتورة مشتريات', '138', '307440', '2026-10-14 12:20:52', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','82740','1','224700','82740','307440','0',''); -- id=464
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '82740', '82740', '2026-10-14', '1', '0', '0', '2026-10-14 12:22:06','اضافة فاتورة مشتريات رقم 138','1','0',null,'0','138','buyBillController.php?do=details&id=138'); -- id=2348
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2348', '382', '82740', '','0'); -- id=2399
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21465545.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2348', '567', '82740', '','0'); -- id=2350
UPDATE accountstree SET name = 'فيراري - مورد', customName = 'فيراري - مورد', customNameEn = 'فيراري - مورد', nameEn = 'فيراري - مورد', parent = '81', accountNature = '1', theValue = '307440', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-05 19:15:51' WHERE id = '567';
update buybill set dailyentryid='2348,0' where buybillid=138;
COMMIT;
UPDATE product SET overAllAveragePrice = 310 WHERE productId = 1932;UPDATE product SET overAllAveragePrice = 400 WHERE productId = 1933;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:52:06";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:22:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:22:06', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=138'); -- id=9070
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:52:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:22:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:22:15', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=138&type=2'); -- id=9071
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:53:08";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:23:08", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 12:23:08', '3', 'showDetail', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=showDetail&sellbillid=507'); -- id=9072
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:53:36";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:23:36", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 12:23:36', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9073
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:53:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:23:45", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 12:23:45', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9074
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:53:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:23:56", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 12:23:56', '4', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9075

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf48ef069b7
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 12:23:56', '06acf48ef069b7', '1', '0.00', '0', '0', '1', '3690.00', '3690', '3690', '0', '2', '2026-10-14 12:23:56', '', '4', '0', 'نقدي', '3', '0', '3', '0', 'نقدي', '9' ,'0','','','','','-1','0','0','0','0','0','3690','0','','0','0','3690','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=509
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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','509', '0', '2026-10-14 12:23:56', '4', 'sellbillController.php', 'اضافة فاتورة مبيعات', '3690', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 12:23:56','0','0','',''); -- id=654
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 135;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('380','01326', '509', '87', '1326', '6', '420', '2520', '0', '', '0', '2026-10-14 12:23:56', '1326', '0.00', '-1', '2','0.00','','','0','0','0','0','0','0','0','0','','135-6,','1','1','0','0','420','2520','0','','0','0.00','0','0','0','0'); -- id=1825
UPDATE sellbilldetail SET  lastbuyprice = 380.00 , meanbuyprice = 380.00, lastbuyprice_withDiscount = 380.00, meanbuyprice_withDiscount = 380.00
        , lastbuyprice_withTax = 380, meanbuyprice_withTax = 380, lastbuyprice_withDiscountAndTax = 380
                where sellbilldetailid = 1825;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1326, '2026-10-14', 2520, 2280, 2280
                    , 2280, 2280, 2280, 2280
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2280, 2280, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2520, sellCostBuyPrice =sellCostBuyPrice+2280
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2280, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2280
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2280, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2280
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2280
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2280
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2280
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (2, '2026-10-14', 2520, 2280, 2280
                    , 2280, 2280, 2280, 2280
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2280, 2280, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2520, sellCostBuyPrice =sellCostBuyPrice+2280
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2280, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2280
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2280, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2280
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2280
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2280
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2280
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '140', userid = '4', storedetaildate = '2026-10-14 12:23:56' WHERE storedetailid = '1407';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1326', '2', '6', '1', '509', 'اضافة فاتورة مبيعات', 'sellbillController.php', '146', '140', '4', '2026-10-14 12:23:56','0','0'); -- id=5347
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 131;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('350','01324', '509', '86', '1324', '3', '390', '1170', '0', '', '0', '2026-10-14 12:23:56', '1324', '0.00', '-1', '2','0.00','','','0','0','0','0','0','0','0','0','','131-3,','1','1','0','0','390','1170','0','','0','0.00','0','0','0','0'); -- id=1826
UPDATE sellbilldetail SET  lastbuyprice = 360.00 , meanbuyprice = 355.63, lastbuyprice_withDiscount = 360.00, meanbuyprice_withDiscount = 355.63
        , lastbuyprice_withTax = 360, meanbuyprice_withTax = 355.63, lastbuyprice_withDiscountAndTax = 360
                where sellbilldetailid = 1826;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1324, '2026-10-14', 1170, 1080, 1080
                    , 1066.89, 1080, 1066.89, 1065.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1080, 1066.89, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1080
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1080, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1066.89
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1080, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1066.89
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1065.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1080
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1066.89
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (2, '2026-10-14', 1170, 1080, 1080
                    , 1066.89, 1080, 1066.89, 1065.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1080, 1066.89, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1080
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1080, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1066.89
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1080, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1066.89
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1065.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1080
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1066.89
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '1425', userid = '4', storedetaildate = '2026-10-14 12:23:56' WHERE storedetailid = '1405';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1324', '2', '3', '1', '509', 'اضافة فاتورة مبيعات', 'sellbillController.php', '1428', '1425', '4', '2026-10-14 12:23:56','0','0'); -- id=5348
CALL saveInUse(3,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '562440',  userid = '4' WHERE saveid = '3';
UPDATE save SET  inUse = 0 where saveid = 3;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('558750','3690', '0', '3', 'اضافة فاتورة مبيعات', '509', '562440', '2026-10-14 12:23:56', '4',  'sellbillController.php','1','','0'); -- id=646
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '3690', '3690', '2026-10-14', '4', '0', '0', '2026-10-14 12:23:56','اضافة فاتورة مبيعات رقم 509','1','0',null,'0','509','sellbillController.php?do=showDetail&sellbillid=509'); -- id=2349
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2349', '501', '3690', '','0'); -- id=2400
UPDATE accountstree SET name = 'خزينه المحل الارضي', customName = 'خزينه المحل الارضي', customNameEn = 'خزينه المحل الارضي', nameEn = 'خزينه المحل الارضي', parent = '40', accountNature = '0', theValue = '562440', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-30 21:35:47' WHERE id = '501';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2349', '143', '3690', '','0'); -- id=2351
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5308820', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '3360', '3360', '2026-10-14', '4', '0', '0', '2026-10-14 12:23:56','اضافة فاتورة مبيعات رقم 509 - صرف البضاعة من المخزن','1','0',null,'0','509','sellbillController.php?do=showDetail&sellbillid=509'); -- id=2350
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2350', '402', '3360', '','0'); -- id=2401
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '4957879.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2350', '492', '3360', '','0'); -- id=2352
UPDATE accountstree SET name = 'مخزن المحل', customName = 'مخزن المحل', customNameEn = 'مخزن المحل', nameEn = 'مخزن المحل', parent = '49', accountNature = '0', theValue = '1091710', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 19:38:59' WHERE id = '492';
update sellbill set dailyentryid='2349,0,2350' where sellbillid=509;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 3690, 3360, 3360
                    , 3346.89, 3360, 3346.89, 3345.6
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,3360, 3346.89, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3690, sellCostBuyPrice =sellCostBuyPrice+3360
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3360, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3346.89
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3360, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3346.89
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3345.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3360
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3346.89
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3690, 3360, 3360
                    , 3346.89, 3360, 3346.89, 3345.6
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,3360, 3346.89, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3690, sellCostBuyPrice =sellCostBuyPrice+3360
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3360, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3346.89
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3360, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3346.89
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3345.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3360
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3346.89
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 3690, 3360, 3360
                    , 3346.89, 3360, 3346.89, 3345.6, 3360, 3346.89)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+3690, netSellCostBuyPrice = netSellCostBuyPrice+3360
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+3360
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+3346.89
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+3360
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+3346.89
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+3345.6
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+3360
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+3346.89;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf48ef069b7 and sellbillId = 509 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:53:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:23:57", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 12:23:57', '4', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9076
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:54:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:24:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:24:00', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=138&type=2'); -- id=9077
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:54:06";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:24:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:24:06', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9078
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:54:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:24:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:24:35', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9079
UPDATE product SET productName = 'حوض فيراري', productDescription = '', productCatId = '102', productBuyPrice = '310.00', productSellAllPrice = '330.00', productSellUnitPrice = '330.00', productSellHalfPrice = '330.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01932',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310.00',lastbuyprice_withDiscount = '310',meanbuyprice = '310.00',meanbuyprice_withDiscount = '310' , productbuypricereal = '310.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.45' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1932';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1932, 1,'2026-10-14 12:24:47',1)
                ON DUPLICATE KEY UPDATE productid = 1932, edited = 1, sysdate = '2026-10-14 12:24:47', userid = 1; -- id=2870
UPDATE product SET productName = 'سوستة فيراري', productDescription = '', productCatId = '102', productBuyPrice = '400.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01933',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '400.00',lastbuyprice_withDiscount = '400',meanbuyprice = '400.00',meanbuyprice_withDiscount = '400' , productbuypricereal = '400.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '7.50' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='400',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='400',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='400',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1933';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1933, 1,'2026-10-14 12:25:06',1)
                ON DUPLICATE KEY UPDATE productid = 1933, edited = 1, sysdate = '2026-10-14 12:25:06', userid = 1; -- id=2871
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:55:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:25:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:25:12', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9080
UPDATE product SET productName = 'جلد و تطريز فيراري', productDescription = '', productCatId = '102', productBuyPrice = '500.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-05', conditions = '0', userId = '1', limitamount = '0', parcode = '01454',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500.00',lastbuyprice_withDiscount = '500',meanbuyprice = '500.00',meanbuyprice_withDiscount = '500' , productbuypricereal = '500.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '10.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1454';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1454, 1,'2026-10-14 12:25:12',1)
                ON DUPLICATE KEY UPDATE productid = 1454, edited = 1, sysdate = '2026-10-14 12:25:12', userid = 1; -- id=2219
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:58:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:28:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:28:54', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9081
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:59:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:29:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 12:29:05', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9082
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:59:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:29:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:29:11', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9083
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:59:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:29:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:29:14', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9084
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:59:19";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:29:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 12:29:19', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9085
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:59:21";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:29:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:29:21', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9086
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:59:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:29:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:29:24', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9087
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 08:59:27";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:29:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 12:29:27', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9088
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:04:19";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:34:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:34:19', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9089
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:04:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:34:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 12:34:31', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9090
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 09:04:31";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 12:34:31', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9091
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:04:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:34:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 12:34:32', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9092
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 09:04:32";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 12:34:32', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9093
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:04:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:34:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:34:35', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9094
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:04:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:34:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:34:49', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9095
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:05:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:35:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:35:39', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9096
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:06:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:36:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:36:37', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9097
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:07:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:37:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:37:15', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9098
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:07:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:37:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:37:22', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9099
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:07:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:37:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:37:29', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9100
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:07:48";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:37:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:37:48', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9101
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:09:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:39:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:39:10', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9102
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf4d5976a36', '2026-10-14 12:37:29', '1', '0.00', '19320', '0', '0', '19320.00',  '19320.00', '', '19320', '1', '2026-10-14 12:39:10', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=139
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01921', '139', '153', '1921', '42', '460', '19320.00', '0', '', '2026-10-14 12:39:10', '1921','','','0','0','0','0','0',null,'460','19320','0','0','0','0','0','0','0','0','1'); -- id=844
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:37:29', 1, 1921, 0, 0
                    , 460, 42, 0, 0, 1, '2026-10-14 12:39:10')
                ON DUPLICATE KEY UPDATE buyprice = 460,
                        buyQuantity =buyQuantity+42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:39:10' ; -- id=1121
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1921', '460', '42', '0', 'buyBillController.php', '844', '', '0', '0'); -- id=631
UPDATE product SET  productBuyPrice = "460" WHERE productId = 1921 ;
UPDATE buybilldetail SET  quantitybefore = 237 WHERE buybilldetailid = 844 ;
UPDATE product SET productName = 'سويت شيرت 485', productDescription = '', productCatId = '153', productBuyPrice = '460.00', productSellAllPrice = '485.00', productSellUnitPrice = '485.00', productSellHalfPrice = '485.00', productDate = '2026-10-13', conditions = '0', userId = '1', limitamount = '0', parcode = '01921',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.43' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1921';
UPDATE buybilldetail SET  lastbuyprice = 460 , meanbuyprice = 460, lastbuyprice_withDiscount = 460, meanbuyprice_withDiscount = 460
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where buybilldetailid = 844;
UPDATE productunit SET proUnitBuyPrice  = 460 * productnumber WHERE productid = 1921;
UPDATE storedetail SET  productquantity = '279', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '42', '0', '139', 'اضافة فاتورة مشتريات', 'buyBillController.php', '237', '279', '1', '2026-10-14 12:37:29','0','0'); -- id=5349
UPDATE supplier SET  suppliercurrentDebt = '19320',suppliercurrentDebtInCurrency= '19320' , userid = '1', supplierdate = '2026-10-14 12:39:10'   WHERE supplierid = '1';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('1', '0.00', '19320', '0', 'اضافة فاتورة مشتريات', '139', '19320', '2026-10-14 12:37:29', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','19320','1','0','19320','19320','0',''); -- id=465
update buybill set dailyentryid='0,0' where buybillid=139;
COMMIT;
UPDATE product SET overAllAveragePrice = 460 WHERE productId = 1921;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:09:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:39:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:39:11', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=139'); -- id=9103
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:10:19";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:40:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 12:40:19', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9104
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:12:25";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:42:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 12:42:25', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9105
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('انيرجي ','2026-10-14','','90', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=156
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (156, 1,'2026-10-14 12:42:25',1)
                ON DUPLICATE KEY UPDATE catid = 156, edited = 1, sysdate = '2026-10-14 12:42:25', userid = 1; -- id=168
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '156', '1', '2026-10-14', '1', '0'); -- id=61
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:12:25";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:42:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 12:42:25', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9106
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:12:27";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:42:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 12:42:27', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9107
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:12:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:42:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:42:31', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9108
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:12:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:42:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 12:42:33', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9109
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:12:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:42:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:42:34', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9110
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:12:38";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:42:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:42:38', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9111
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('الدولي جينز 622','','8','592','620','620','620','2026-10-14','0','1','0','','0','0','0','0','0','592','592','592','592','592','0','4.73','0','0','.','0','0','0','592','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','592','592','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','592','0','0','0','0','0','0','','','0','0','0','0'); -- id=1934
UPDATE product SET productName = 'الدولي جينز 622', productDescription = '', productCatId = '8', productBuyPrice = '592', productSellAllPrice = '620', productSellUnitPrice = '620', productSellHalfPrice = '620', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01934',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '592',lastbuyprice_withDiscount = '592',meanbuyprice = '592',meanbuyprice_withDiscount = '592' , productbuypricereal = '592' , buypricereal_precentage = '0' , buytotal_precentage = '4.73' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='592',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='592',meanbuyprice_withTax='592',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='592',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1934';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1934', '1', '2026-10-14', '1', '0','0193401','620','620','620','592','','0','0','0','0','0','0','0','0','0','0'); -- id=1934
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1934', '1', '0', '1', '2026-10-14'); -- id=2951
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1934', '1', '0', '0', '1934', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5350
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1934, 1,'2026-10-14 12:42:38',1)
                ON DUPLICATE KEY UPDATE productid = 1934, edited = 1, sysdate = '2026-10-14 12:42:38', userid = 1; -- id=2875
UPDATE product SET productName = 'الدولي جينز 622', productDescription = '', productCatId = '8', productBuyPrice = '592.00', productSellAllPrice = '620.00', productSellUnitPrice = '620.00', productSellHalfPrice = '620.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01934',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '592',lastbuyprice_withDiscount = '592',meanbuyprice = '592',meanbuyprice_withDiscount = '592' , productbuypricereal = '592' , buypricereal_precentage = '0' , buytotal_precentage = '4.73' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='592',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='592',meanbuyprice_withTax='592',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='592',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1934';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('الدولي جينز 623','','8','522','550','550','550','2026-10-14','0','1','0','','0','0','0','0','0','522','522','522','522','522','0','5.36','0','0','.','0','0','0','522','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','522','522','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','522','0','0','0','0','0','0','','','0','0','0','0'); -- id=1935
UPDATE product SET productName = 'الدولي جينز 623', productDescription = '', productCatId = '8', productBuyPrice = '522', productSellAllPrice = '550', productSellUnitPrice = '550', productSellHalfPrice = '550', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01935',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '522',lastbuyprice_withDiscount = '522',meanbuyprice = '522',meanbuyprice_withDiscount = '522' , productbuypricereal = '522' , buypricereal_precentage = '0' , buytotal_precentage = '5.36' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='522',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='522',meanbuyprice_withTax='522',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='522',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1935';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1935', '1', '2026-10-14', '1', '0','0193501','550','550','550','522','','0','0','0','0','0','0','0','0','0','0'); -- id=1935
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1935', '1', '0', '1', '2026-10-14'); -- id=2952
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1935', '1', '0', '0', '1935', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5351
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1935, 1,'2026-10-14 12:42:38',1)
                ON DUPLICATE KEY UPDATE productid = 1935, edited = 1, sysdate = '2026-10-14 12:42:38', userid = 1; -- id=2876
UPDATE product SET productName = 'الدولي جينز 623', productDescription = '', productCatId = '8', productBuyPrice = '522.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01935',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '522',lastbuyprice_withDiscount = '522',meanbuyprice = '522',meanbuyprice_withDiscount = '522' , productbuypricereal = '522' , buypricereal_precentage = '0' , buytotal_precentage = '5.36' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='522',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='522',meanbuyprice_withTax='522',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='522',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1935';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('الدولي جينز 624','','8','617','645','645','645','2026-10-14','0','1','0','','0','0','0','0','0','617','617','617','617','617','0','4.54','0','0','.','0','0','0','617','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','617','617','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','617','0','0','0','0','0','0','','','0','0','0','0'); -- id=1936
UPDATE product SET productName = 'الدولي جينز 624', productDescription = '', productCatId = '8', productBuyPrice = '617', productSellAllPrice = '645', productSellUnitPrice = '645', productSellHalfPrice = '645', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01936',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '617',lastbuyprice_withDiscount = '617',meanbuyprice = '617',meanbuyprice_withDiscount = '617' , productbuypricereal = '617' , buypricereal_precentage = '0' , buytotal_precentage = '4.54' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='617',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='617',meanbuyprice_withTax='617',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='617',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1936';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1936', '1', '2026-10-14', '1', '0','0193601','645','645','645','617','','0','0','0','0','0','0','0','0','0','0'); -- id=1936
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1936', '1', '0', '1', '2026-10-14'); -- id=2953
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1936', '1', '0', '0', '1936', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5352
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1936, 1,'2026-10-14 12:42:38',1)
                ON DUPLICATE KEY UPDATE productid = 1936, edited = 1, sysdate = '2026-10-14 12:42:38', userid = 1; -- id=2877
UPDATE product SET productName = 'الدولي جينز 624', productDescription = '', productCatId = '8', productBuyPrice = '617.00', productSellAllPrice = '645.00', productSellUnitPrice = '645.00', productSellHalfPrice = '645.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01936',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '617',lastbuyprice_withDiscount = '617',meanbuyprice = '617',meanbuyprice_withDiscount = '617' , productbuypricereal = '617' , buypricereal_precentage = '0' , buytotal_precentage = '4.54' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='617',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='617',meanbuyprice_withTax='617',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='617',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1936';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('الدولي جينز 625','','8','652','680','680','680','2026-10-14','0','1','0','','0','0','0','0','0','652','652','652','652','652','0','4.29','0','0','.','0','0','0','652','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','652','652','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','652','0','0','0','0','0','0','','','0','0','0','0'); -- id=1937
UPDATE product SET productName = 'الدولي جينز 625', productDescription = '', productCatId = '8', productBuyPrice = '652', productSellAllPrice = '680', productSellUnitPrice = '680', productSellHalfPrice = '680', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01937',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '652',lastbuyprice_withDiscount = '652',meanbuyprice = '652',meanbuyprice_withDiscount = '652' , productbuypricereal = '652' , buypricereal_precentage = '0' , buytotal_precentage = '4.29' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='652',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='652',meanbuyprice_withTax='652',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='652',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1937';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1937', '1', '2026-10-14', '1', '0','0193701','680','680','680','652','','0','0','0','0','0','0','0','0','0','0'); -- id=1937
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1937', '1', '0', '1', '2026-10-14'); -- id=2954
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1937', '1', '0', '0', '1937', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5353
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1937, 1,'2026-10-14 12:42:38',1)
                ON DUPLICATE KEY UPDATE productid = 1937, edited = 1, sysdate = '2026-10-14 12:42:38', userid = 1; -- id=2878
UPDATE product SET productName = 'الدولي جينز 625', productDescription = '', productCatId = '8', productBuyPrice = '652.00', productSellAllPrice = '680.00', productSellUnitPrice = '680.00', productSellHalfPrice = '680.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01937',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '652',lastbuyprice_withDiscount = '652',meanbuyprice = '652',meanbuyprice_withDiscount = '652' , productbuypricereal = '652' , buypricereal_precentage = '0' , buytotal_precentage = '4.29' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='652',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='652',meanbuyprice_withTax='652',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='652',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1937';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('الدولي جينز 620','','8','697','725','725','725','2026-10-14','0','1','0','','0','0','0','0','0','697','697','697','697','697','0','4.02','0','0','.','0','0','0','697','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','697','697','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','697','0','0','0','0','0','0','','','0','0','0','0'); -- id=1938
UPDATE product SET productName = 'الدولي جينز 620', productDescription = '', productCatId = '8', productBuyPrice = '697', productSellAllPrice = '725', productSellUnitPrice = '725', productSellHalfPrice = '725', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01938',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '697',lastbuyprice_withDiscount = '697',meanbuyprice = '697',meanbuyprice_withDiscount = '697' , productbuypricereal = '697' , buypricereal_precentage = '0' , buytotal_precentage = '4.02' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='697',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='697',meanbuyprice_withTax='697',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='697',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1938';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1938', '1', '2026-10-14', '1', '0','0193801','725','725','725','697','','0','0','0','0','0','0','0','0','0','0'); -- id=1938
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1938', '1', '0', '1', '2026-10-14'); -- id=2955
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1938', '1', '0', '0', '1938', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5354
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1938, 1,'2026-10-14 12:42:38',1)
                ON DUPLICATE KEY UPDATE productid = 1938, edited = 1, sysdate = '2026-10-14 12:42:38', userid = 1; -- id=2879
UPDATE product SET productName = 'الدولي جينز 620', productDescription = '', productCatId = '8', productBuyPrice = '697.00', productSellAllPrice = '725.00', productSellUnitPrice = '725.00', productSellHalfPrice = '725.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01938',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '697',lastbuyprice_withDiscount = '697',meanbuyprice = '697',meanbuyprice_withDiscount = '697' , productbuypricereal = '697' , buypricereal_precentage = '0' , buytotal_precentage = '4.02' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='697',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='697',meanbuyprice_withTax='697',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='697',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1938';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('الدولي جينز 626','','8','532','560','560','560','2026-10-14','0','1','0','','0','0','0','0','0','532','532','532','532','532','0','5.26','0','0','.','0','0','0','532','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','532','532','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','532','0','0','0','0','0','0','','','0','0','0','0'); -- id=1939
UPDATE product SET productName = 'الدولي جينز 626', productDescription = '', productCatId = '8', productBuyPrice = '532', productSellAllPrice = '560', productSellUnitPrice = '560', productSellHalfPrice = '560', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01939',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '532',lastbuyprice_withDiscount = '532',meanbuyprice = '532',meanbuyprice_withDiscount = '532' , productbuypricereal = '532' , buypricereal_precentage = '0' , buytotal_precentage = '5.26' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='532',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='532',meanbuyprice_withTax='532',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='532',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1939';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1939', '1', '2026-10-14', '1', '0','0193901','560','560','560','532','','0','0','0','0','0','0','0','0','0','0'); -- id=1939
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1939', '1', '0', '1', '2026-10-14'); -- id=2956
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1939', '1', '0', '0', '1939', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5355
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1939, 1,'2026-10-14 12:42:38',1)
                ON DUPLICATE KEY UPDATE productid = 1939, edited = 1, sysdate = '2026-10-14 12:42:38', userid = 1; -- id=2880
UPDATE product SET productName = 'الدولي جينز 626', productDescription = '', productCatId = '8', productBuyPrice = '532.00', productSellAllPrice = '560.00', productSellUnitPrice = '560.00', productSellHalfPrice = '560.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01939',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '532',lastbuyprice_withDiscount = '532',meanbuyprice = '532',meanbuyprice_withDiscount = '532' , productbuypricereal = '532' , buypricereal_precentage = '0' , buytotal_precentage = '5.26' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='532',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='532',meanbuyprice_withTax='532',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='532',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1939';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:12:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:42:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:42:39', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9112
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:12:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:42:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:42:42', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9113
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:14:40";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:44:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:44:40', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9114
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf4e92e3010', '2026-10-14 12:42:42', '26', '849040.00', '934170', '0', '0', '85130.00',  '85130.00', '0', '85130', '1', '2026-10-14 12:44:40', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=140
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01934', '140', '8', '1934', '30', '592', '17760.00', '0', '', '2026-10-14 12:44:40', '1934','','','0','0','0','0','0',null,'592','17760','0','0','0','0','0','0','0','0','1'); -- id=845
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:42:42', 1, 1934, 0, 0
                    , 592, 30, 0, 0, 1, '2026-10-14 12:44:40')
                ON DUPLICATE KEY UPDATE buyprice = 592,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:44:40' ; -- id=1122
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1934', '592', '30', '0', 'buyBillController.php', '845', '', '0', '0'); -- id=632
UPDATE product SET  productBuyPrice = "592" WHERE productId = 1934 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 845 ;
UPDATE product SET productName = 'الدولي جينز 622', productDescription = '', productCatId = '8', productBuyPrice = '592.00', productSellAllPrice = '620.00', productSellUnitPrice = '620.00', productSellHalfPrice = '620.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01934',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '592',lastbuyprice_withDiscount = '592',meanbuyprice = '592',meanbuyprice_withDiscount = '592' , productbuypricereal = '592.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.73' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='592',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='592',meanbuyprice_withTax='592',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='592',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1934';
UPDATE buybilldetail SET  lastbuyprice = 592 , meanbuyprice = 592, lastbuyprice_withDiscount = 592, meanbuyprice_withDiscount = 592
        , lastbuyprice_withTax = 592, meanbuyprice_withTax = 592, lastbuyprice_withDiscountAndTax = 592
                where buybilldetailid = 845;
UPDATE productunit SET proUnitBuyPrice  = 592 * productnumber WHERE productid = 1934;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2951';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1934', '1', '30', '0', '140', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 12:42:42','0','0'); -- id=5356
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01935', '140', '8', '1935', '20', '522', '10440.00', '0', '', '2026-10-14 12:44:40', '1935','','','0','0','0','0','0',null,'522','10440','0','0','0','0','0','0','0','0','1'); -- id=846
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:42:42', 1, 1935, 0, 0
                    , 522, 20, 0, 0, 1, '2026-10-14 12:44:40')
                ON DUPLICATE KEY UPDATE buyprice = 522,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:44:40' ; -- id=1123
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1935', '522', '20', '0', 'buyBillController.php', '846', '', '0', '0'); -- id=633
UPDATE product SET  productBuyPrice = "522" WHERE productId = 1935 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 846 ;
UPDATE product SET productName = 'الدولي جينز 623', productDescription = '', productCatId = '8', productBuyPrice = '522.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01935',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '522',lastbuyprice_withDiscount = '522',meanbuyprice = '522',meanbuyprice_withDiscount = '522' , productbuypricereal = '522.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.36' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='522',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='522',meanbuyprice_withTax='522',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='522',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1935';
UPDATE buybilldetail SET  lastbuyprice = 522 , meanbuyprice = 522, lastbuyprice_withDiscount = 522, meanbuyprice_withDiscount = 522
        , lastbuyprice_withTax = 522, meanbuyprice_withTax = 522, lastbuyprice_withDiscountAndTax = 522
                where buybilldetailid = 846;
UPDATE productunit SET proUnitBuyPrice  = 522 * productnumber WHERE productid = 1935;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2952';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1935', '1', '20', '0', '140', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 12:42:42','0','0'); -- id=5357
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01936', '140', '8', '1936', '20', '617', '12340.00', '0', '', '2026-10-14 12:44:40', '1936','','','0','0','0','0','0',null,'617','12340','0','0','0','0','0','0','0','0','1'); -- id=847
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:42:42', 1, 1936, 0, 0
                    , 617, 20, 0, 0, 1, '2026-10-14 12:44:40')
                ON DUPLICATE KEY UPDATE buyprice = 617,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:44:40' ; -- id=1124
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1936', '617', '20', '0', 'buyBillController.php', '847', '', '0', '0'); -- id=634
UPDATE product SET  productBuyPrice = "617" WHERE productId = 1936 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 847 ;
UPDATE product SET productName = 'الدولي جينز 624', productDescription = '', productCatId = '8', productBuyPrice = '617.00', productSellAllPrice = '645.00', productSellUnitPrice = '645.00', productSellHalfPrice = '645.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01936',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '617',lastbuyprice_withDiscount = '617',meanbuyprice = '617',meanbuyprice_withDiscount = '617' , productbuypricereal = '617.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.54' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='617',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='617',meanbuyprice_withTax='617',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='617',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1936';
UPDATE buybilldetail SET  lastbuyprice = 617 , meanbuyprice = 617, lastbuyprice_withDiscount = 617, meanbuyprice_withDiscount = 617
        , lastbuyprice_withTax = 617, meanbuyprice_withTax = 617, lastbuyprice_withDiscountAndTax = 617
                where buybilldetailid = 847;
UPDATE productunit SET proUnitBuyPrice  = 617 * productnumber WHERE productid = 1936;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2953';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1936', '1', '20', '0', '140', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 12:42:42','0','0'); -- id=5358
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01937', '140', '8', '1937', '20', '652', '13040.00', '0', '', '2026-10-14 12:44:40', '1937','','','0','0','0','0','0',null,'652','13040','0','0','0','0','0','0','0','0','1'); -- id=848
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:42:42', 1, 1937, 0, 0
                    , 652, 20, 0, 0, 1, '2026-10-14 12:44:40')
                ON DUPLICATE KEY UPDATE buyprice = 652,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:44:40' ; -- id=1125
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1937', '652', '20', '0', 'buyBillController.php', '848', '', '0', '0'); -- id=635
UPDATE product SET  productBuyPrice = "652" WHERE productId = 1937 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 848 ;
UPDATE product SET productName = 'الدولي جينز 625', productDescription = '', productCatId = '8', productBuyPrice = '652.00', productSellAllPrice = '680.00', productSellUnitPrice = '680.00', productSellHalfPrice = '680.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01937',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '652',lastbuyprice_withDiscount = '652',meanbuyprice = '652',meanbuyprice_withDiscount = '652' , productbuypricereal = '652.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.29' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='652',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='652',meanbuyprice_withTax='652',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='652',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1937';
UPDATE buybilldetail SET  lastbuyprice = 652 , meanbuyprice = 652, lastbuyprice_withDiscount = 652, meanbuyprice_withDiscount = 652
        , lastbuyprice_withTax = 652, meanbuyprice_withTax = 652, lastbuyprice_withDiscountAndTax = 652
                where buybilldetailid = 848;
UPDATE productunit SET proUnitBuyPrice  = 652 * productnumber WHERE productid = 1937;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2954';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1937', '1', '20', '0', '140', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 12:42:42','0','0'); -- id=5359
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01938', '140', '8', '1938', '30', '697', '20910.00', '0', '', '2026-10-14 12:44:40', '1938','','','0','0','0','0','0',null,'697','20910','0','0','0','0','0','0','0','0','1'); -- id=849
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:42:42', 1, 1938, 0, 0
                    , 697, 30, 0, 0, 1, '2026-10-14 12:44:40')
                ON DUPLICATE KEY UPDATE buyprice = 697,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:44:40' ; -- id=1126
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1938', '697', '30', '0', 'buyBillController.php', '849', '', '0', '0'); -- id=636
UPDATE product SET  productBuyPrice = "697" WHERE productId = 1938 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 849 ;
UPDATE product SET productName = 'الدولي جينز 620', productDescription = '', productCatId = '8', productBuyPrice = '697.00', productSellAllPrice = '725.00', productSellUnitPrice = '725.00', productSellHalfPrice = '725.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01938',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '697',lastbuyprice_withDiscount = '697',meanbuyprice = '697',meanbuyprice_withDiscount = '697' , productbuypricereal = '697.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.02' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='697',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='697',meanbuyprice_withTax='697',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='697',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1938';
UPDATE buybilldetail SET  lastbuyprice = 697 , meanbuyprice = 697, lastbuyprice_withDiscount = 697, meanbuyprice_withDiscount = 697
        , lastbuyprice_withTax = 697, meanbuyprice_withTax = 697, lastbuyprice_withDiscountAndTax = 697
                where buybilldetailid = 849;
UPDATE productunit SET proUnitBuyPrice  = 697 * productnumber WHERE productid = 1938;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2955';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1938', '1', '30', '0', '140', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 12:42:42','0','0'); -- id=5360
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01939', '140', '8', '1939', '20', '532', '10640.00', '0', '', '2026-10-14 12:44:40', '1939','','','0','0','0','0','0',null,'532','10640','0','0','0','0','0','0','0','0','1'); -- id=850
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:42:42', 1, 1939, 0, 0
                    , 532, 20, 0, 0, 1, '2026-10-14 12:44:40')
                ON DUPLICATE KEY UPDATE buyprice = 532,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:44:40' ; -- id=1127
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1939', '532', '20', '0', 'buyBillController.php', '850', '', '0', '0'); -- id=637
UPDATE product SET  productBuyPrice = "532" WHERE productId = 1939 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 850 ;
UPDATE product SET productName = 'الدولي جينز 626', productDescription = '', productCatId = '8', productBuyPrice = '532.00', productSellAllPrice = '560.00', productSellUnitPrice = '560.00', productSellHalfPrice = '560.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01939',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '532',lastbuyprice_withDiscount = '532',meanbuyprice = '532',meanbuyprice_withDiscount = '532' , productbuypricereal = '532.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.26' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='532',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='532',meanbuyprice_withTax='532',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='532',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1939';
UPDATE buybilldetail SET  lastbuyprice = 532 , meanbuyprice = 532, lastbuyprice_withDiscount = 532, meanbuyprice_withDiscount = 532
        , lastbuyprice_withTax = 532, meanbuyprice_withTax = 532, lastbuyprice_withDiscountAndTax = 532
                where buybilldetailid = 850;
UPDATE productunit SET proUnitBuyPrice  = 532 * productnumber WHERE productid = 1939;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2956';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1939', '1', '20', '0', '140', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 12:42:42','0','0'); -- id=5361
UPDATE supplier SET  suppliercurrentDebt = '934170',suppliercurrentDebtInCurrency= '934170' , userid = '1', supplierdate = '2026-10-14 12:44:40'   WHERE supplierid = '26';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('26', '849040.00', '85130', '0', 'اضافة فاتورة مشتريات', '140', '934170', '2026-10-14 12:42:42', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','85130','1','849040','85130','934170','0',''); -- id=466
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '85130', '85130', '2026-10-14', '1', '0', '0', '2026-10-14 12:44:40','اضافة فاتورة مشتريات رقم 140','1','0',null,'0','140','buyBillController.php?do=details&id=140'); -- id=2351
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2351', '382', '85130', '','0'); -- id=2402
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21550675.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2351', '445', '85130', '','0'); -- id=2353
UPDATE accountstree SET name = 'الدولي - مورد', customName = 'الدولي - مورد', customNameEn = 'الدولي - مورد', nameEn = 'الدولي - مورد', parent = '81', accountNature = '1', theValue = '125375', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '445';
update buybill set dailyentryid='2351,0' where buybillid=140;
COMMIT;
UPDATE product SET overAllAveragePrice = 592 WHERE productId = 1934;UPDATE product SET overAllAveragePrice = 522 WHERE productId = 1935;UPDATE product SET overAllAveragePrice = 617 WHERE productId = 1936;UPDATE product SET overAllAveragePrice = 652 WHERE productId = 1937;UPDATE product SET overAllAveragePrice = 697 WHERE productId = 1938;UPDATE product SET overAllAveragePrice = 532 WHERE productId = 1939;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:14:40";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:44:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:44:40', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=140'); -- id=9115
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:14:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:44:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:44:47', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=140&type=2'); -- id=9116
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:14:58";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:44:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:44:58', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9117
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكت جلد 1001 انيرجي ','','156','850','850','850','850','2026-10-14','0','1','0','','0','0','0','0','0','850','850','850','850','850','0','0','0','0','.','0','0','0','850','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','850','850','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','850','0','0','0','0','0','0','','','0','0','0','0'); -- id=1940
UPDATE product SET productName = 'جاكت جلد 1001 انيرجي ', productDescription = '', productCatId = '156', productBuyPrice = '850', productSellAllPrice = '850', productSellUnitPrice = '850', productSellHalfPrice = '850', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01940',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '850',meanbuyprice = '850',meanbuyprice_withDiscount = '850' , productbuypricereal = '850' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1940';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1940', '1.00', '2026-10-14', '1', '0','0194001','850','850','850','850','','0','0','0','0','0','0','0','0','0','0'); -- id=1940
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1940', '1', '0', '1', '2026-10-14'); -- id=2957
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1940', '1', '0', '0', '1940', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5362
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1940, 1,'2026-10-14 12:44:58',1)
                ON DUPLICATE KEY UPDATE productid = 1940, edited = 1, sysdate = '2026-10-14 12:44:58', userid = 1; -- id=2881
UPDATE product SET productName = 'جاكت جلد 1001 انيرجي ', productDescription = '', productCatId = '156', productBuyPrice = '850.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01940',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '850',meanbuyprice = '850',meanbuyprice_withDiscount = '850' , productbuypricereal = '850' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1940';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكت جلد 1002 انيرجي ','','156','850','850','850','850','2026-10-14','0','1','0','','0','0','0','0','0','850','850','850','850','850','0','0','0','0','.','0','0','0','850','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','850','850','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','850','0','0','0','0','0','0','','','0','0','0','0'); -- id=1941
UPDATE product SET productName = 'جاكت جلد 1002 انيرجي ', productDescription = '', productCatId = '156', productBuyPrice = '850', productSellAllPrice = '850', productSellUnitPrice = '850', productSellHalfPrice = '850', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01941',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '850',meanbuyprice = '850',meanbuyprice_withDiscount = '850' , productbuypricereal = '850' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1941';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1941', '1.00', '2026-10-14', '1', '0','0194101','850','850','850','850','','0','0','0','0','0','0','0','0','0','0'); -- id=1941
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1941', '1', '0', '1', '2026-10-14'); -- id=2958
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1941', '1', '0', '0', '1941', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5363
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1941, 1,'2026-10-14 12:44:58',1)
                ON DUPLICATE KEY UPDATE productid = 1941, edited = 1, sysdate = '2026-10-14 12:44:58', userid = 1; -- id=2882
UPDATE product SET productName = 'جاكت جلد 1002 انيرجي ', productDescription = '', productCatId = '156', productBuyPrice = '850.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01941',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '850',meanbuyprice = '850',meanbuyprice_withDiscount = '850' , productbuypricereal = '850' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1941';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:14:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:44:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:44:59', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9118
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:15:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:45:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:45:43', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9119
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:15:51";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:45:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:45:51', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9120
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:17:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:47:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:47:33', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9121
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكت جلد 1003 انيرجي','','156','850','850','850','850','2026-10-14','0','1','0','','0','0','0','0','0','850 ','850','850 ','850','850','0','0','0','0','.','0','0','0','850','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','850','850','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','850','0','0','0','0','0','0','','','0','0','0','0'); -- id=1942
UPDATE product SET productName = 'جاكت جلد 1003 انيرجي', productDescription = '', productCatId = '156', productBuyPrice = '850', productSellAllPrice = '850', productSellUnitPrice = '850', productSellHalfPrice = '850', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01942',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850 ',lastbuyprice_withDiscount = '850',meanbuyprice = '850 ',meanbuyprice_withDiscount = '850' , productbuypricereal = '850' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1942';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1942', '1.00', '2026-10-14', '1', '0','0194201','850','850','850','850','','0','0','0','0','0','0','0','0','0','0'); -- id=1942
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1942', '1', '0', '1', '2026-10-14'); -- id=2959
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1942', '1', '0', '0', '1942', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5364
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1942, 1,'2026-10-14 12:47:33',1)
                ON DUPLICATE KEY UPDATE productid = 1942, edited = 1, sysdate = '2026-10-14 12:47:33', userid = 1; -- id=2883
UPDATE product SET productName = 'جاكت جلد 1003 انيرجي', productDescription = '', productCatId = '156', productBuyPrice = '850.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01942',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850 ',lastbuyprice_withDiscount = '850',meanbuyprice = '850 ',meanbuyprice_withDiscount = '850' , productbuypricereal = '850' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1942';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكت جلد 1004 انيرجي','','156','850','850','850','850','2026-10-14','0','1','0','','0','0','0','0','0','850','850','850','850','850','0','0','0','0','.','0','0','0','850','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','850','850','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','850','0','0','0','0','0','0','','','0','0','0','0'); -- id=1943
UPDATE product SET productName = 'جاكت جلد 1004 انيرجي', productDescription = '', productCatId = '156', productBuyPrice = '850', productSellAllPrice = '850', productSellUnitPrice = '850', productSellHalfPrice = '850', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01943',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '850',meanbuyprice = '850',meanbuyprice_withDiscount = '850' , productbuypricereal = '850' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1943';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1943', '1.00', '2026-10-14', '1', '0','0194301','850','850','850','850','','0','0','0','0','0','0','0','0','0','0'); -- id=1943
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1943', '1', '0', '1', '2026-10-14'); -- id=2960
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1943', '1', '0', '0', '1943', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5365
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1943, 1,'2026-10-14 12:47:33',1)
                ON DUPLICATE KEY UPDATE productid = 1943, edited = 1, sysdate = '2026-10-14 12:47:33', userid = 1; -- id=2884
UPDATE product SET productName = 'جاكت جلد 1004 انيرجي', productDescription = '', productCatId = '156', productBuyPrice = '850.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01943',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '850',meanbuyprice = '850',meanbuyprice_withDiscount = '850' , productbuypricereal = '850' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1943';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكت جلد 1005 انيرجي','','156','850','850','850','850','2026-10-14','0','1','0','','0','0','0','0','0','850','850','850','850','850','0','0','0','0','.','0','0','0','850','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','850','850','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','850','0','0','0','0','0','0','','','0','0','0','0'); -- id=1944
UPDATE product SET productName = 'جاكت جلد 1005 انيرجي', productDescription = '', productCatId = '156', productBuyPrice = '850', productSellAllPrice = '850', productSellUnitPrice = '850', productSellHalfPrice = '850', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01944',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '850',meanbuyprice = '850',meanbuyprice_withDiscount = '850' , productbuypricereal = '850' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1944';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1944', '1.00', '2026-10-14', '1', '0','0194401','850','850','850','850','','0','0','0','0','0','0','0','0','0','0'); -- id=1944
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1944', '1', '0', '1', '2026-10-14'); -- id=2961
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1944', '1', '0', '0', '1944', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5366
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1944, 1,'2026-10-14 12:47:33',1)
                ON DUPLICATE KEY UPDATE productid = 1944, edited = 1, sysdate = '2026-10-14 12:47:33', userid = 1; -- id=2885
UPDATE product SET productName = 'جاكت جلد 1005 انيرجي', productDescription = '', productCatId = '156', productBuyPrice = '850.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01944',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '850',meanbuyprice = '850',meanbuyprice_withDiscount = '850' , productbuypricereal = '850' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1944';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكت جلد 1006 انيرجي','','156','850','850','850','850','2026-10-14','0','1','0','','0','0','0','0','0','850','850','850','850','850','0','0','0','0','.','0','0','0','850','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','850','850','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','850','0','0','0','0','0','0','','','0','0','0','0'); -- id=1945
UPDATE product SET productName = 'جاكت جلد 1006 انيرجي', productDescription = '', productCatId = '156', productBuyPrice = '850', productSellAllPrice = '850', productSellUnitPrice = '850', productSellHalfPrice = '850', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01945',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '850',meanbuyprice = '850',meanbuyprice_withDiscount = '850' , productbuypricereal = '850' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1945';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1945', '1.00', '2026-10-14', '1', '0','0194501','850','850','850','850','','0','0','0','0','0','0','0','0','0','0'); -- id=1945
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1945', '1', '0', '1', '2026-10-14'); -- id=2962
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1945', '1', '0', '0', '1945', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5367
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1945, 1,'2026-10-14 12:47:33',1)
                ON DUPLICATE KEY UPDATE productid = 1945, edited = 1, sysdate = '2026-10-14 12:47:33', userid = 1; -- id=2886
UPDATE product SET productName = 'جاكت جلد 1006 انيرجي', productDescription = '', productCatId = '156', productBuyPrice = '850.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01945',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '850',meanbuyprice = '850',meanbuyprice_withDiscount = '850' , productbuypricereal = '850' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1945';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:17:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:47:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:47:35', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9122
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:17:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:47:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:47:37', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9123
INSERT INTO supplier (suppliername, supplieraddress, supplierphone, suppliercurrentDebt, supplierdetails, conditions, userid, supplierdate, dailyentryid, category_id, typesupplier_id,linkedClientId,inUse,suppliercode,goverareaid,namepayeecheck,suppliermobile,warrantyOfficer,warrantymobile,sellername,sellermobile,taxnumber,supplierTypeForTree,treeId,sullpierCurrencyid,suppliercurrentDebtInCurrency,webApiId,shippingDiscountPer) VALUES ('انيرجي', '', '', '', '', '0', '1', '2026-10-14 12:48:25', '0', '', '','0','0','','','','','','','','','','0','0','1','0','0','0'); -- id=171
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('171', '0', '', '0', 'إضافة مورد جديد', '171', '', '2026-10-14 12:48:25', '1', 'supplierController.php', '', '0','', '0','1','1','0','1','0','0','0','0',''); -- id=467
INSERT INTO accountstree (name, customName, customNameEn, nameEn, parent, accountNature, theValue, theOrder, layingOrder, reportid, listId, notes, itemfrom, itemtype, itemtype2, itemtype3, userid, del, sysdate) VALUES ('انيرجي', 'انيرجي', 'انيرجي', 'انيرجي', '81', '1', '0', '0', '', '1', '1', '', '0', '1', '1', '', '1', '0', '2026-10-14 12:48:25'); -- id=654
UPDATE supplier SET suppliername = 'انيرجي', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '0.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-10-14', dailyentryid = '0', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='654',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='0',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '171';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:21:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:51:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:51:22', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9124
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf4fb9e92bd', '2026-10-14 12:47:37', '171', '0.00', '90712', '8', '1', '98600.00',  '90712.00', '0', '90712', '1', '2026-10-14 12:51:22', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=141
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01940', '141', '156', '1940', '24', '850', '20400.00', '0', '', '2026-10-14 12:51:22', '1940','','','0','0','0','0','0',null,'850','20400','0','0','0','0','0','0','0','0','1'); -- id=851
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:47:37', 1, 1940, 0, 0
                    , 782, 24, 0, 0, 1, '2026-10-14 12:51:22')
                ON DUPLICATE KEY UPDATE buyprice = 782,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:51:22' ; -- id=1128
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1940', '850', '24', '0', 'buyBillController.php', '851', '', '0', '0'); -- id=638
UPDATE product SET  productBuyPrice = "850" WHERE productId = 1940 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 851 ;
UPDATE product SET productName = 'جاكت جلد 1001 انيرجي ', productDescription = '', productCatId = '156', productBuyPrice = '850.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01940',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '782',meanbuyprice = '850',meanbuyprice_withDiscount = '782' , productbuypricereal = '850.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='782',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1940';
UPDATE buybilldetail SET  lastbuyprice = 850 , meanbuyprice = 850, lastbuyprice_withDiscount = 782, meanbuyprice_withDiscount = 782
        , lastbuyprice_withTax = 850, meanbuyprice_withTax = 850, lastbuyprice_withDiscountAndTax = 782
                where buybilldetailid = 851;
UPDATE productunit SET proUnitBuyPrice  = 850 * productnumber WHERE productid = 1940;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2957';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1940', '1', '24', '0', '141', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 12:47:37','0','0'); -- id=5368
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01941', '141', '156', '1941', '20', '850', '17000.00', '0', '', '2026-10-14 12:51:22', '1941','','','0','0','0','0','0',null,'850','17000','0','0','0','0','0','0','0','0','1'); -- id=852
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:47:37', 1, 1941, 0, 0
                    , 782, 20, 0, 0, 1, '2026-10-14 12:51:22')
                ON DUPLICATE KEY UPDATE buyprice = 782,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:51:22' ; -- id=1129
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1941', '850', '20', '0', 'buyBillController.php', '852', '', '0', '0'); -- id=639
UPDATE product SET  productBuyPrice = "850" WHERE productId = 1941 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 852 ;
UPDATE product SET productName = 'جاكت جلد 1002 انيرجي ', productDescription = '', productCatId = '156', productBuyPrice = '850.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01941',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '782',meanbuyprice = '850',meanbuyprice_withDiscount = '782' , productbuypricereal = '850.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='782',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1941';
UPDATE buybilldetail SET  lastbuyprice = 850 , meanbuyprice = 850, lastbuyprice_withDiscount = 782, meanbuyprice_withDiscount = 782
        , lastbuyprice_withTax = 850, meanbuyprice_withTax = 850, lastbuyprice_withDiscountAndTax = 782
                where buybilldetailid = 852;
UPDATE productunit SET proUnitBuyPrice  = 850 * productnumber WHERE productid = 1941;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2958';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1941', '1', '20', '0', '141', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 12:47:37','0','0'); -- id=5369
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01942', '141', '156', '1942', '16', '850', '13600.00', '0', '', '2026-10-14 12:51:22', '1942','','','0','0','0','0','0',null,'850','13600','0','0','0','0','0','0','0','0','1'); -- id=853
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:47:37', 1, 1942, 0, 0
                    , 782, 16, 0, 0, 1, '2026-10-14 12:51:22')
                ON DUPLICATE KEY UPDATE buyprice = 782,
                        buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:51:22' ; -- id=1130
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1942', '850', '16', '0', 'buyBillController.php', '853', '', '0', '0'); -- id=640
UPDATE product SET  productBuyPrice = "850" WHERE productId = 1942 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 853 ;
UPDATE product SET productName = 'جاكت جلد 1003 انيرجي', productDescription = '', productCatId = '156', productBuyPrice = '850.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01942',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '782',meanbuyprice = '850',meanbuyprice_withDiscount = '782' , productbuypricereal = '850.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='782',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1942';
UPDATE buybilldetail SET  lastbuyprice = 850 , meanbuyprice = 850, lastbuyprice_withDiscount = 782, meanbuyprice_withDiscount = 782
        , lastbuyprice_withTax = 850, meanbuyprice_withTax = 850, lastbuyprice_withDiscountAndTax = 782
                where buybilldetailid = 853;
UPDATE productunit SET proUnitBuyPrice  = 850 * productnumber WHERE productid = 1942;
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2959';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1942', '1', '16', '0', '141', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '16', '1', '2026-10-14 12:47:37','0','0'); -- id=5370
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01943', '141', '156', '1943', '20', '850', '17000.00', '0', '', '2026-10-14 12:51:22', '1943','','','0','0','0','0','0',null,'850','17000','0','0','0','0','0','0','0','0','1'); -- id=854
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:47:37', 1, 1943, 0, 0
                    , 782, 20, 0, 0, 1, '2026-10-14 12:51:22')
                ON DUPLICATE KEY UPDATE buyprice = 782,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:51:22' ; -- id=1131
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1943', '850', '20', '0', 'buyBillController.php', '854', '', '0', '0'); -- id=641
UPDATE product SET  productBuyPrice = "850" WHERE productId = 1943 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 854 ;
UPDATE product SET productName = 'جاكت جلد 1004 انيرجي', productDescription = '', productCatId = '156', productBuyPrice = '850.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01943',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '782',meanbuyprice = '850',meanbuyprice_withDiscount = '782' , productbuypricereal = '850.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='782',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1943';
UPDATE buybilldetail SET  lastbuyprice = 850 , meanbuyprice = 850, lastbuyprice_withDiscount = 782, meanbuyprice_withDiscount = 782
        , lastbuyprice_withTax = 850, meanbuyprice_withTax = 850, lastbuyprice_withDiscountAndTax = 782
                where buybilldetailid = 854;
UPDATE productunit SET proUnitBuyPrice  = 850 * productnumber WHERE productid = 1943;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2960';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1943', '1', '20', '0', '141', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 12:47:37','0','0'); -- id=5371
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01944', '141', '156', '1944', '20', '850', '17000.00', '0', '', '2026-10-14 12:51:22', '1944','','','0','0','0','0','0',null,'850','17000','0','0','0','0','0','0','0','0','1'); -- id=855
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:47:37', 1, 1944, 0, 0
                    , 782, 20, 0, 0, 1, '2026-10-14 12:51:22')
                ON DUPLICATE KEY UPDATE buyprice = 782,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:51:22' ; -- id=1132
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1944', '850', '20', '0', 'buyBillController.php', '855', '', '0', '0'); -- id=642
UPDATE product SET  productBuyPrice = "850" WHERE productId = 1944 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 855 ;
UPDATE product SET productName = 'جاكت جلد 1005 انيرجي', productDescription = '', productCatId = '156', productBuyPrice = '850.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01944',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '782',meanbuyprice = '850',meanbuyprice_withDiscount = '782' , productbuypricereal = '850.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='782',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1944';
UPDATE buybilldetail SET  lastbuyprice = 850 , meanbuyprice = 850, lastbuyprice_withDiscount = 782, meanbuyprice_withDiscount = 782
        , lastbuyprice_withTax = 850, meanbuyprice_withTax = 850, lastbuyprice_withDiscountAndTax = 782
                where buybilldetailid = 855;
UPDATE productunit SET proUnitBuyPrice  = 850 * productnumber WHERE productid = 1944;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2961';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1944', '1', '20', '0', '141', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 12:47:37','0','0'); -- id=5372
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01945', '141', '156', '1945', '16', '850', '13600.00', '0', '', '2026-10-14 12:51:22', '1945','','','0','0','0','0','0',null,'850','13600','0','0','0','0','0','0','0','0','1'); -- id=856
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:47:37', 1, 1945, 0, 0
                    , 782, 16, 0, 0, 1, '2026-10-14 12:51:22')
                ON DUPLICATE KEY UPDATE buyprice = 782,
                        buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 12:51:22' ; -- id=1133
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1945', '850', '16', '0', 'buyBillController.php', '856', '', '0', '0'); -- id=643
UPDATE product SET  productBuyPrice = "850" WHERE productId = 1945 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 856 ;
UPDATE product SET productName = 'جاكت جلد 1006 انيرجي', productDescription = '', productCatId = '156', productBuyPrice = '850.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01945',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '782',meanbuyprice = '850',meanbuyprice_withDiscount = '782' , productbuypricereal = '850.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='850',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='782',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1945';
UPDATE buybilldetail SET  lastbuyprice = 850 , meanbuyprice = 850, lastbuyprice_withDiscount = 782, meanbuyprice_withDiscount = 782
        , lastbuyprice_withTax = 850, meanbuyprice_withTax = 850, lastbuyprice_withDiscountAndTax = 782
                where buybilldetailid = 856;
UPDATE productunit SET proUnitBuyPrice  = 850 * productnumber WHERE productid = 1945;
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2962';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1945', '1', '16', '0', '141', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '16', '1', '2026-10-14 12:47:37','0','0'); -- id=5373
UPDATE supplier SET  suppliercurrentDebt = '90712',suppliercurrentDebtInCurrency= '90712' , userid = '1', supplierdate = '2026-10-14 12:51:22'   WHERE supplierid = '171';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('171', '0.00', '90712', '0', 'اضافة فاتورة مشتريات', '141', '90712', '2026-10-14 12:47:37', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','90712','1','0','90712','90712','0',''); -- id=468
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '90712', '90712', '2026-10-14', '1', '0', '0', '2026-10-14 12:51:22','اضافة فاتورة مشتريات رقم 141','1','0',null,'0','141','buyBillController.php?do=details&id=141'); -- id=2352
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2352', '382', '90712', '','0'); -- id=2403
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21641387.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2352', '654', '90712', '','0'); -- id=2354
UPDATE accountstree SET name = 'انيرجي', customName = 'انيرجي', customNameEn = 'انيرجي', nameEn = 'انيرجي', parent = '81', accountNature = '1', theValue = '90712', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-14 12:48:25' WHERE id = '654';
update buybill set dailyentryid='2352,0' where buybillid=141;
COMMIT;
UPDATE product SET overAllAveragePrice = 782 WHERE productId = 1940;UPDATE product SET overAllAveragePrice = 782 WHERE productId = 1941;UPDATE product SET overAllAveragePrice = 782 WHERE productId = 1942;UPDATE product SET overAllAveragePrice = 782 WHERE productId = 1943;UPDATE product SET overAllAveragePrice = 782 WHERE productId = 1944;UPDATE product SET overAllAveragePrice = 782 WHERE productId = 1945;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:21:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:51:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:51:22', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=141'); -- id=9125
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:21:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:51:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:51:34', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=141&type=2'); -- id=9126
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:27:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:57:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:57:02', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=141&type=2'); -- id=9127
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:28:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:58:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 12:58:04', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=141'); -- id=9128
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:28:25";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:58:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 12:58:25', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9129
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:28:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 12:58:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 12:58:28', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9130
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:32:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:02:02", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 13:02:02', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9131

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf4a218a7ca
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 13:02:02', '06acf4a218a7ca', '1', '0.00', '0', '5', '1', '17985.00', '17980', '17980', '0', '1', '2026-10-14 13:02:02', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '45' ,'0','','','','','-1','0','0','0','0','0','17980','0','','0','0','17980','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=510
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','510', '0', '2026-10-14 13:02:02', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '17980', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 13:02:02','0','0','',''); -- id=655
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+18 where id = 980;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('289','01886', '510', '147', '1886', '18', '320', '5760', '0', '', '0', '2026-10-14 13:02:02', '1886', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','980-18,','1','1','0','0','320','5760','0','','0','0.00','0','0','0','0'); -- id=1827
UPDATE sellbilldetail SET  lastbuyprice = 289.00 , meanbuyprice = 289.00, lastbuyprice_withDiscount = 289.00, meanbuyprice_withDiscount = 289.00
        , lastbuyprice_withTax = 289, meanbuyprice_withTax = 289, lastbuyprice_withDiscountAndTax = 289
                where sellbilldetailid = 1827;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1886, '2026-10-14', 5758.3986655546, 5202, 5202
                    , 5202, 5202, 5202, 5202
                    , 0, 0, 0, 0
                    , 0, 0, 0, 18, 0, 5202, 5202, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5758.3986655546, sellCostBuyPrice =sellCostBuyPrice+5202
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5202, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5202
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5202, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5202
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5202
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5202
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5202
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+18
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5758.3986655546, 5202, 5202
                    , 5202, 5202, 5202, 5202
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5202, 5202, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5758.3986655546, sellCostBuyPrice =sellCostBuyPrice+5202
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5202, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5202
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5202, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5202
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5202
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5202
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5202
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '86', userid = '3', storedetaildate = '2026-10-14 13:02:02' WHERE storedetailid = '2903';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1886', '1', '18', '1', '510', 'اضافة فاتورة مبيعات', 'sellbillController.php', '104', '86', '3', '2026-10-14 13:02:02','0','0'); -- id=5374
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 332;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('410','01462', '510', '103', '1462', '9', '430', '3870', '0', '', '0', '2026-10-14 13:02:02', '1462', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','332-9,','1','1','0','0','430','3870','0','','0','0.00','0','0','0','0'); -- id=1828
UPDATE sellbilldetail SET  lastbuyprice = 410.00 , meanbuyprice = 410.00, lastbuyprice_withDiscount = 410.00, meanbuyprice_withDiscount = 410.00
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 410, lastbuyprice_withDiscountAndTax = 410
                where sellbilldetailid = 1828;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1462, '2026-10-14', 3868.9241034195, 3690, 3690
                    , 3690, 3690, 3690, 3690
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3690, 3690, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3868.9241034195, sellCostBuyPrice =sellCostBuyPrice+3690
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3690, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3690
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3690, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3690
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3690
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3690
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3690
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3868.9241034195, 3690, 3690
                    , 3690, 3690, 3690, 3690
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3690, 3690, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3868.9241034195, sellCostBuyPrice =sellCostBuyPrice+3690
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3690, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3690
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3690, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3690
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3690
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3690
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3690
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '207', userid = '3', storedetaildate = '2026-10-14 13:02:02' WHERE storedetailid = '1487';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1462', '1', '9', '1', '510', 'اضافة فاتورة مبيعات', 'sellbillController.php', '216', '207', '3', '2026-10-14 13:02:02','0','0'); -- id=5375
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+15 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '510', '153', '1921', '15', '485', '7275', '0', '', '0', '2026-10-14 13:02:02', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-15,','1','1','0','0','485','7275','0','','0','0.00','0','0','0','0'); -- id=1829
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1829;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 7272.9774812344, 6900, 6900
                    , 6900, 6900, 6900, 6900
                    , 0, 0, 0, 0
                    , 0, 0, 0, 15, 0, 6900, 6900, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+7272.9774812344, sellCostBuyPrice =sellCostBuyPrice+6900
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6900, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6900
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6900, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6900
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6900
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6900
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6900
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+15
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 7272.9774812344, 6900, 6900
                    , 6900, 6900, 6900, 6900
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6900, 6900, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+7272.9774812344, sellCostBuyPrice =sellCostBuyPrice+6900
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6900, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6900
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6900, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6900
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6900
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6900
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6900
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '264', userid = '3', storedetaildate = '2026-10-14 13:02:02' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '15', '1', '510', 'اضافة فاتورة مبيعات', 'sellbillController.php', '279', '264', '3', '2026-10-14 13:02:02','0','0'); -- id=5376
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 931;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('325','01858', '510', '145', '1858', '3', '360', '1080', '0', '', '0', '2026-10-14 13:02:02', '1858', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','931-3,','1','1','0','0','360','1080','0','','0','0.00','0','0','0','0'); -- id=1830
UPDATE sellbilldetail SET  lastbuyprice = 325.00 , meanbuyprice = 325.00, lastbuyprice_withDiscount = 325.00, meanbuyprice_withDiscount = 325.00
        , lastbuyprice_withTax = 325, meanbuyprice_withTax = 325, lastbuyprice_withDiscountAndTax = 325
                where sellbilldetailid = 1830;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1858, '2026-10-14', 1079.6997497915, 975, 975
                    , 975, 975, 975, 975
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 975, 975, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1079.6997497915, sellCostBuyPrice =sellCostBuyPrice+975
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+975, sellCostMeanBuyPrice = sellCostMeanBuyPrice+975
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+975, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+975
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+975
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+975
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+975
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1079.6997497915, 975, 975
                    , 975, 975, 975, 975
                    , 0, 0, 0, 0
                    , 0, 0, 0, 975, 975, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1079.6997497915, sellCostBuyPrice =sellCostBuyPrice+975
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+975, sellCostMeanBuyPrice = sellCostMeanBuyPrice+975
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+975, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+975
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+975
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+975
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+975
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '12', userid = '3', storedetaildate = '2026-10-14 13:02:02' WHERE storedetailid = '2875';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1858', '1', '3', '1', '510', 'اضافة فاتورة مبيعات', 'sellbillController.php', '15', '12', '3', '2026-10-14 13:02:02','0','0'); -- id=5377
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3174895',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3156915','17980', '0', '2', 'اضافة فاتورة مبيعات', '510', '3174895', '2026-10-14 13:02:02', '3',  'sellbillController.php','1','','0'); -- id=647
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '17985', '17985', '2026-10-14', '3', '0', '0', '2026-10-14 13:02:02','اضافة فاتورة مبيعات رقم 510','1','0',null,'0','510','sellbillController.php?do=showDetail&sellbillid=510'); -- id=2353
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2353', '419', '17980', '','0'); -- id=2404
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3174895', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2353', '398', '5', '','0'); -- id=2405
UPDATE accountstree SET name = 'خصم مسموح به', customName = 'خصم مسموح به', customNameEn = '', nameEn = '', parent = '158', accountNature = '0', theValue = '465005', theOrder = '0', layingOrder = '51', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-08-08 17:58:26' WHERE id = '398';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2353', '143', '17985', '','0'); -- id=2355
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5326805', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '16767', '16767', '2026-10-14', '3', '0', '0', '2026-10-14 13:02:02','اضافة فاتورة مبيعات رقم 510 - صرف البضاعة من المخزن','1','0',null,'0','510','sellbillController.php?do=showDetail&sellbillid=510'); -- id=2354
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2354', '402', '16767', '','0'); -- id=2406
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '4974646.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2354', '382', '16767', '','0'); -- id=2356
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21624620.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2353,0,2354' where sellbillid=510;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 17980, 16767, 16767
                    , 16767, 16767, 16767, 16767
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,16767, 16767, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+17980, sellCostBuyPrice =sellCostBuyPrice+16767
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+16767, sellCostMeanBuyPrice = sellCostMeanBuyPrice+16767
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+16767, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+16767
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+16767
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+16767
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+16767
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 17980, 16767, 16767
                    , 16767, 16767, 16767, 16767
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,16767, 16767, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+17980, sellCostBuyPrice =sellCostBuyPrice+16767
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+16767, sellCostMeanBuyPrice = sellCostMeanBuyPrice+16767
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+16767, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+16767
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+16767
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+16767
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+16767
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 17980, 16767, 16767
                    , 16767, 16767, 16767, 16767, 16767, 16767)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+17980, netSellCostBuyPrice = netSellCostBuyPrice+16767
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+16767
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+16767
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+16767
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+16767
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+16767
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+16767
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+16767;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf4a218a7ca and sellbillId = 510 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:32:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:02:02", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 13:02:02', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9132
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:32:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:02:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 13:02:03', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9133
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('اكسلانس','2026-10-14','','93', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=157
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (157, 1,'2026-10-14 13:02:03',1)
                ON DUPLICATE KEY UPDATE catid = 157, edited = 1, sysdate = '2026-10-14 13:02:03', userid = 1; -- id=169
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '157', '1', '2026-10-14', '1', '0'); -- id=62
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:32:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:02:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 13:02:03', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9134
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:32:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:02:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 13:02:05', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9135
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:32:08";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:02:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:02:08', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9136
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:37:25";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:07:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:07:25', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9137
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تطريز اوفر سايز اكسلانس','','157','460','480','480','480','2026-10-14','0','1','0','','0','0','0','0','0','460','460','460','460','460','0','4.35','0','0','.','0','0','0','460','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','460','460','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','460','0','0','0','0','0','0','','','0','0','0','0'); -- id=1946
UPDATE product SET productName = 'تطريز اوفر سايز اكسلانس', productDescription = '', productCatId = '157', productBuyPrice = '460', productSellAllPrice = '480', productSellUnitPrice = '480', productSellHalfPrice = '480', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01946',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460' , buypricereal_precentage = '0' , buytotal_precentage = '4.35' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1946';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1946', '1.00', '2026-10-14', '1', '0','0194601','480','480','480','460','','0','0','0','0','0','0','0','0','0','0'); -- id=1946
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1946', '1', '0', '1', '2026-10-14'); -- id=2963
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1946', '1', '0', '0', '1946', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5378
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1946, 1,'2026-10-14 13:07:25',1)
                ON DUPLICATE KEY UPDATE productid = 1946, edited = 1, sysdate = '2026-10-14 13:07:25', userid = 1; -- id=2887
UPDATE product SET productName = 'تطريز اوفر سايز اكسلانس', productDescription = '', productCatId = '157', productBuyPrice = '460.00', productSellAllPrice = '480.00', productSellUnitPrice = '480.00', productSellHalfPrice = '480.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01946',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460' , buypricereal_precentage = '0' , buytotal_precentage = '4.35' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1946';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تطعيم هاند ميد اكسلانس','','157','540','560','560','560','2026-10-14','0','1','0','','0','0','0','0','0','540','540','540','540','540','0','3.7','0','0','.','0','0','0','540','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','540','540','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','540','0','0','0','0','0','0','','','0','0','0','0'); -- id=1947
UPDATE product SET productName = 'تطعيم هاند ميد اكسلانس', productDescription = '', productCatId = '157', productBuyPrice = '540', productSellAllPrice = '560', productSellUnitPrice = '560', productSellHalfPrice = '560', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01947',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '540',meanbuyprice = '540',meanbuyprice_withDiscount = '540' , productbuypricereal = '540' , buypricereal_precentage = '0' , buytotal_precentage = '3.7' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='540',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='540',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1947';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1947', '1.00', '2026-10-14', '1', '0','0194701','560','560','560','540','','0','0','0','0','0','0','0','0','0','0'); -- id=1947
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1947', '1', '0', '1', '2026-10-14'); -- id=2964
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1947', '1', '0', '0', '1947', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5379
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1947, 1,'2026-10-14 13:07:25',1)
                ON DUPLICATE KEY UPDATE productid = 1947, edited = 1, sysdate = '2026-10-14 13:07:25', userid = 1; -- id=2888
UPDATE product SET productName = 'تطعيم هاند ميد اكسلانس', productDescription = '', productCatId = '157', productBuyPrice = '540.00', productSellAllPrice = '560.00', productSellUnitPrice = '560.00', productSellHalfPrice = '560.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01947',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '540',meanbuyprice = '540',meanbuyprice_withDiscount = '540' , productbuypricereal = '540' , buypricereal_precentage = '0' , buytotal_precentage = '3.7' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='540',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='540',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1947';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('6 موديلات اكسلانس','','157','500','520','520','520','2026-10-14','0','1','0','','0','0','0','0','0','500','500','500','500','500','0','4','0','0','.','0','0','0','500','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','500','500','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','500','0','0','0','0','0','0','','','0','0','0','0'); -- id=1948
UPDATE product SET productName = '6 موديلات اكسلانس', productDescription = '', productCatId = '157', productBuyPrice = '500', productSellAllPrice = '520', productSellUnitPrice = '520', productSellHalfPrice = '520', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01948',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500' , buypricereal_precentage = '0' , buytotal_precentage = '4' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1948';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1948', '1.00', '2026-10-14', '1', '0','0194801','520','520','520','500','','0','0','0','0','0','0','0','0','0','0'); -- id=1948
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1948', '1', '0', '1', '2026-10-14'); -- id=2965
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1948', '1', '0', '0', '1948', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5380
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1948, 1,'2026-10-14 13:07:25',1)
                ON DUPLICATE KEY UPDATE productid = 1948, edited = 1, sysdate = '2026-10-14 13:07:25', userid = 1; -- id=2889
UPDATE product SET productName = '6 موديلات اكسلانس', productDescription = '', productCatId = '157', productBuyPrice = '500.00', productSellAllPrice = '520.00', productSellUnitPrice = '520.00', productSellHalfPrice = '520.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01948',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500' , buypricereal_precentage = '0' , buytotal_precentage = '4' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1948';
COMMIT;
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:37:26";
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:37:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:07:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:07:26', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9138
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:07:26", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 13:07:26', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9139
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 09:37:26";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 13:07:26', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9140
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:37:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:07:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 13:07:29', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9141
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:37:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:07:31", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 13:07:31', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9142

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf531b0851b
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 13:07:31', '06acf531b0851b', '1', '0.00', '0', '100', '1', '29100.00', '29000', '29000', '0', '1', '2026-10-14 13:07:31', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '60' ,'0','','','','','-1','0','0','0','0','0','29000','0','','0','0','29000','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=511
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','511', '0', '2026-10-14 13:07:31', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '29000', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 13:07:31','0','0','',''); -- id=656
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+60 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '511', '153', '1921', '60', '485', '29100', '0', '', '0', '2026-10-14 13:07:31', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-60,','1','1','0','0','485','29100','0','','0','0.00','0','0','0','0'); -- id=1831
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1831;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 29000, 27600, 27600
                    , 27600, 27600, 27600, 27600
                    , 0, 0, 0, 0
                    , 0, 0, 0, 60, 0, 27600, 27600, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+29000, sellCostBuyPrice =sellCostBuyPrice+27600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+27600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+27600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+27600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+27600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+27600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+27600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+27600
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+60
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 29000, 27600, 27600
                    , 27600, 27600, 27600, 27600
                    , 0, 0, 0, 0
                    , 0, 0, 0, 27600, 27600, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+29000, sellCostBuyPrice =sellCostBuyPrice+27600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+27600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+27600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+27600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+27600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+27600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+27600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+27600
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '204', userid = '3', storedetaildate = '2026-10-14 13:07:31' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '60', '1', '511', 'اضافة فاتورة مبيعات', 'sellbillController.php', '264', '204', '3', '2026-10-14 13:07:31','0','0'); -- id=5381
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3203895',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3174895','29000', '0', '2', 'اضافة فاتورة مبيعات', '511', '3203895', '2026-10-14 13:07:31', '3',  'sellbillController.php','1','','0'); -- id=648
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '29100', '29100', '2026-10-14', '3', '0', '0', '2026-10-14 13:07:31','اضافة فاتورة مبيعات رقم 511','1','0',null,'0','511','sellbillController.php?do=showDetail&sellbillid=511'); -- id=2355
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2355', '419', '29000', '','0'); -- id=2407
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3203895', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2355', '398', '100', '','0'); -- id=2408
UPDATE accountstree SET name = 'خصم مسموح به', customName = 'خصم مسموح به', customNameEn = '', nameEn = '', parent = '158', accountNature = '0', theValue = '465105', theOrder = '0', layingOrder = '51', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-08-08 17:58:26' WHERE id = '398';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2355', '143', '29100', '','0'); -- id=2357
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5355905', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '27600', '27600', '2026-10-14', '3', '0', '0', '2026-10-14 13:07:31','اضافة فاتورة مبيعات رقم 511 - صرف البضاعة من المخزن','1','0',null,'0','511','sellbillController.php?do=showDetail&sellbillid=511'); -- id=2356
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2356', '402', '27600', '','0'); -- id=2409
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5002246.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2356', '382', '27600', '','0'); -- id=2358
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21597020.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2355,0,2356' where sellbillid=511;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 29000, 27600, 27600
                    , 27600, 27600, 27600, 27600
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,27600, 27600, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+29000, sellCostBuyPrice =sellCostBuyPrice+27600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+27600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+27600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+27600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+27600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+27600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+27600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+27600
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 29000, 27600, 27600
                    , 27600, 27600, 27600, 27600
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,27600, 27600, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+29000, sellCostBuyPrice =sellCostBuyPrice+27600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+27600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+27600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+27600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+27600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+27600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+27600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+27600
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 29000, 27600, 27600
                    , 27600, 27600, 27600, 27600, 27600, 27600)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+29000, netSellCostBuyPrice = netSellCostBuyPrice+27600
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+27600
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+27600
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+27600
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+27600
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+27600
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+27600
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+27600;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf531b0851b and sellbillId = 511 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:37:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:07:31", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 13:07:31', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9143
INSERT INTO supplier (suppliername, supplieraddress, supplierphone, suppliercurrentDebt, supplierdetails, conditions, userid, supplierdate, dailyentryid, category_id, typesupplier_id,linkedClientId,inUse,suppliercode,goverareaid,namepayeecheck,suppliermobile,warrantyOfficer,warrantymobile,sellername,sellermobile,taxnumber,supplierTypeForTree,treeId,sullpierCurrencyid,suppliercurrentDebtInCurrency,webApiId,shippingDiscountPer) VALUES ('اكسلانس', '', '', '', '', '0', '1', '2026-10-14 13:07:53', '0', '', '','0','0','','','','','','','','','','0','0','1','0','0','0'); -- id=172
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('172', '0', '', '0', 'إضافة مورد جديد', '172', '', '2026-10-14 13:07:53', '1', 'supplierController.php', '', '0','', '0','1','1','0','1','0','0','0','0',''); -- id=469
INSERT INTO accountstree (name, customName, customNameEn, nameEn, parent, accountNature, theValue, theOrder, layingOrder, reportid, listId, notes, itemfrom, itemtype, itemtype2, itemtype3, userid, del, sysdate) VALUES ('اكسلانس', 'اكسلانس', 'اكسلانس', 'اكسلانس', '81', '1', '0', '0', '', '1', '1', '', '0', '1', '1', '', '1', '0', '2026-10-14 13:07:53'); -- id=655
UPDATE supplier SET suppliername = 'اكسلانس', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '0.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-10-14', dailyentryid = '0', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='655',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='0',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '172';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:40:13";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:10:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 13:10:13', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9144
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf546173445', '2026-10-14 13:07:29', '172', '0.00', '228000', '0', '0', '228000.00',  '228000.00', '0', '228000', '1', '2026-10-14 13:10:13', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=142
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01946', '142', '157', '1946', '240', '460', '110400.00', '0', '', '2026-10-14 13:10:13', '1946','','','0','0','0','0','0',null,'460','110400','0','0','0','0','0','0','0','0','1'); -- id=857
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:07:29', 1, 1946, 0, 0
                    , 460, 240, 0, 0, 1, '2026-10-14 13:10:13')
                ON DUPLICATE KEY UPDATE buyprice = 460,
                        buyQuantity =buyQuantity+240, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:10:13' ; -- id=1134
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1946', '460', '240', '0', 'buyBillController.php', '857', '', '0', '0'); -- id=644
UPDATE product SET  productBuyPrice = "460" WHERE productId = 1946 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 857 ;
UPDATE product SET productName = 'تطريز اوفر سايز اكسلانس', productDescription = '', productCatId = '157', productBuyPrice = '460.00', productSellAllPrice = '480.00', productSellUnitPrice = '480.00', productSellHalfPrice = '480.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01946',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.35' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1946';
UPDATE buybilldetail SET  lastbuyprice = 460 , meanbuyprice = 460, lastbuyprice_withDiscount = 460, meanbuyprice_withDiscount = 460
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where buybilldetailid = 857;
UPDATE productunit SET proUnitBuyPrice  = 460 * productnumber WHERE productid = 1946;
UPDATE storedetail SET  productquantity = '240', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2963';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1946', '1', '240', '0', '142', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '240', '1', '2026-10-14 13:07:29','0','0'); -- id=5382
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01947', '142', '157', '1947', '40', '540', '21600.00', '0', '', '2026-10-14 13:10:13', '1947','','','0','0','0','0','0',null,'540','21600','0','0','0','0','0','0','0','0','1'); -- id=858
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:07:29', 1, 1947, 0, 0
                    , 540, 40, 0, 0, 1, '2026-10-14 13:10:13')
                ON DUPLICATE KEY UPDATE buyprice = 540,
                        buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:10:13' ; -- id=1135
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1947', '540', '40', '0', 'buyBillController.php', '858', '', '0', '0'); -- id=645
UPDATE product SET  productBuyPrice = "540" WHERE productId = 1947 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 858 ;
UPDATE product SET productName = 'تطعيم هاند ميد اكسلانس', productDescription = '', productCatId = '157', productBuyPrice = '540.00', productSellAllPrice = '560.00', productSellUnitPrice = '560.00', productSellHalfPrice = '560.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01947',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '540',meanbuyprice = '540',meanbuyprice_withDiscount = '540' , productbuypricereal = '540.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.70' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='540',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='540',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1947';
UPDATE buybilldetail SET  lastbuyprice = 540 , meanbuyprice = 540, lastbuyprice_withDiscount = 540, meanbuyprice_withDiscount = 540
        , lastbuyprice_withTax = 540, meanbuyprice_withTax = 540, lastbuyprice_withDiscountAndTax = 540
                where buybilldetailid = 858;
UPDATE productunit SET proUnitBuyPrice  = 540 * productnumber WHERE productid = 1947;
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2964';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1947', '1', '40', '0', '142', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '40', '1', '2026-10-14 13:07:29','0','0'); -- id=5383
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01948', '142', '157', '1948', '192', '500', '96000.00', '0', '', '2026-10-14 13:10:13', '1948','','','0','0','0','0','0',null,'500','96000','0','0','0','0','0','0','0','0','1'); -- id=859
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:07:29', 1, 1948, 0, 0
                    , 500, 192, 0, 0, 1, '2026-10-14 13:10:13')
                ON DUPLICATE KEY UPDATE buyprice = 500,
                        buyQuantity =buyQuantity+192, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:10:13' ; -- id=1136
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1948', '500', '192', '0', 'buyBillController.php', '859', '', '0', '0'); -- id=646
UPDATE product SET  productBuyPrice = "500" WHERE productId = 1948 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 859 ;
UPDATE product SET productName = '6 موديلات اكسلانس', productDescription = '', productCatId = '157', productBuyPrice = '500.00', productSellAllPrice = '520.00', productSellUnitPrice = '520.00', productSellHalfPrice = '520.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01948',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1948';
UPDATE buybilldetail SET  lastbuyprice = 500 , meanbuyprice = 500, lastbuyprice_withDiscount = 500, meanbuyprice_withDiscount = 500
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 500
                where buybilldetailid = 859;
UPDATE productunit SET proUnitBuyPrice  = 500 * productnumber WHERE productid = 1948;
UPDATE storedetail SET  productquantity = '192', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2965';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1948', '1', '192', '0', '142', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '192', '1', '2026-10-14 13:07:29','0','0'); -- id=5384
UPDATE supplier SET  suppliercurrentDebt = '228000',suppliercurrentDebtInCurrency= '228000' , userid = '1', supplierdate = '2026-10-14 13:10:13'   WHERE supplierid = '172';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('172', '0.00', '228000', '0', 'اضافة فاتورة مشتريات', '142', '228000', '2026-10-14 13:07:29', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','228000','1','0','228000','228000','0',''); -- id=470
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '228000', '228000', '2026-10-14', '1', '0', '0', '2026-10-14 13:10:13','اضافة فاتورة مشتريات رقم 142','1','0',null,'0','142','buyBillController.php?do=details&id=142'); -- id=2357
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2357', '382', '228000', '','0'); -- id=2410
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21825020.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2357', '655', '228000', '','0'); -- id=2359
UPDATE accountstree SET name = 'اكسلانس', customName = 'اكسلانس', customNameEn = 'اكسلانس', nameEn = 'اكسلانس', parent = '81', accountNature = '1', theValue = '228000', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-14 13:07:53' WHERE id = '655';
update buybill set dailyentryid='2357,0' where buybillid=142;
COMMIT;
UPDATE product SET overAllAveragePrice = 460 WHERE productId = 1946;UPDATE product SET overAllAveragePrice = 540 WHERE productId = 1947;UPDATE product SET overAllAveragePrice = 500 WHERE productId = 1948;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:40:13";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:10:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 13:10:13', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=142'); -- id=9145
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:40:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:10:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:10:22', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=142&type=2'); -- id=9146
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:42:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:12:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:12:43', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=142&type=2'); -- id=9147
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:42:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:12:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 13:12:43', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=142'); -- id=9148
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:42:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:12:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 13:12:57', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9149
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:43:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:13:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 13:13:26', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9150
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('برو','2026-10-14','','93', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=158
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (158, 1,'2026-10-14 13:13:26',1)
                ON DUPLICATE KEY UPDATE catid = 158, edited = 1, sysdate = '2026-10-14 13:13:26', userid = 1; -- id=170
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '158', '1', '2026-10-14', '1', '0'); -- id=63
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:43:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:13:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 13:13:26', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9151
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:43:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:13:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 13:13:28', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9152
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:43:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:13:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:13:28', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9153
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:49:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:19:32", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 13:19:32', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9154

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf54638cb75
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 13:19:32', '06acf54638cb75', '1', '0.00', '0', '0', '1', '16560.00', '16560', '16560', '0', '1', '2026-10-14 13:19:32', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '42' ,'0','','','','','-1','0','0','0','0','0','16560','0','','0','0','16560','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=512
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','512', '0', '2026-10-14 13:19:32', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '16560', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 13:19:32','0','0','',''); -- id=657
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 857;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('324','01832', '512', '48', '1832', '6', '360', '2160', '0', '', '0', '2026-10-14 13:19:32', '1832', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','857-6,','1','1','0','0','360','2160','0','','0','0.00','0','0','0','0'); -- id=1832
UPDATE sellbilldetail SET  lastbuyprice = 360.00 , meanbuyprice = 360.00, lastbuyprice_withDiscount = 324.00, meanbuyprice_withDiscount = 342.00
        , lastbuyprice_withTax = 360, meanbuyprice_withTax = 180, lastbuyprice_withDiscountAndTax = 324
                where sellbilldetailid = 1832;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1832, '2026-10-14', 2160, 2160, 2160
                    , 2160, 1944, 2052, 1944
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2160, 1080, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2160, sellCostBuyPrice =sellCostBuyPrice+2160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2160
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1944, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2052
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1944
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1080
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2160, 2160, 2160
                    , 2160, 1944, 2052, 1944
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2160, 1080, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2160, sellCostBuyPrice =sellCostBuyPrice+2160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2160
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1944, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2052
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1944
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1080
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '24', userid = '3', storedetaildate = '2026-10-14 13:19:32' WHERE storedetailid = '2847';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1832', '1', '6', '1', '512', 'اضافة فاتورة مبيعات', 'sellbillController.php', '30', '24', '3', '2026-10-14 13:19:32','0','0'); -- id=5385
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 858;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('333','01833', '512', '48', '1833', '6', '370', '2220', '0', '', '0', '2026-10-14 13:19:32', '1833', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','858-6,','1','1','0','0','370','2220','0','','0','0.00','0','0','0','0'); -- id=1833
UPDATE sellbilldetail SET  lastbuyprice = 370.00 , meanbuyprice = 370.00, lastbuyprice_withDiscount = 333.00, meanbuyprice_withDiscount = 351.50
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 185, lastbuyprice_withDiscountAndTax = 333
                where sellbilldetailid = 1833;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1833, '2026-10-14', 2220, 2220, 2220
                    , 2220, 1998, 2109, 1998
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2220, 1110, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2220, sellCostBuyPrice =sellCostBuyPrice+2220
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2220, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2220
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1998, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2109
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1998
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2220
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1110
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2220, 2220, 2220
                    , 2220, 1998, 2109, 1998
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2220, 1110, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2220, sellCostBuyPrice =sellCostBuyPrice+2220
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2220, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2220
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1998, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2109
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1998
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2220
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1110
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '18', userid = '3', storedetaildate = '2026-10-14 13:19:32' WHERE storedetailid = '2848';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1833', '1', '6', '1', '512', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '18', '3', '2026-10-14 13:19:32','0','0'); -- id=5386
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 856;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('315','01831', '512', '48', '1831', '6', '350', '2100', '0', '', '0', '2026-10-14 13:19:32', '1831', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','856-6,','1','1','0','0','350','2100','0','','0','0.00','0','0','0','0'); -- id=1834
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 315.00, meanbuyprice_withDiscount = 332.50
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 175, lastbuyprice_withDiscountAndTax = 315
                where sellbilldetailid = 1834;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1831, '2026-10-14', 2100, 2100, 2100
                    , 2100, 1890, 1995, 1890
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2100, 1050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2100, sellCostBuyPrice =sellCostBuyPrice+2100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1890, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1995
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1890
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1050
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2100, 2100, 2100
                    , 2100, 1890, 1995, 1890
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2100, 1050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2100, sellCostBuyPrice =sellCostBuyPrice+2100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1890, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1995
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1890
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1050
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '24', userid = '3', storedetaildate = '2026-10-14 13:19:32' WHERE storedetailid = '2846';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1831', '1', '6', '1', '512', 'اضافة فاتورة مبيعات', 'sellbillController.php', '30', '24', '3', '2026-10-14 13:19:32','0','0'); -- id=5387
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+24 where id = 1114;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('395','01926', '512', '73', '1926', '24', '420', '10080', '0', '', '0', '2026-10-14 13:19:32', '1926', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1114-24,','1','1','0','0','420','10080','0','','0','0.00','0','0','0','0'); -- id=1835
UPDATE sellbilldetail SET  lastbuyprice = 395.00 , meanbuyprice = 395.00, lastbuyprice_withDiscount = 395.00, meanbuyprice_withDiscount = 395.00
        , lastbuyprice_withTax = 395, meanbuyprice_withTax = 395, lastbuyprice_withDiscountAndTax = 395
                where sellbilldetailid = 1835;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1926, '2026-10-14', 10080, 9480, 9480
                    , 9480, 9480, 9480, 9480
                    , 0, 0, 0, 0
                    , 0, 0, 0, 24, 0, 9480, 9480, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+10080, sellCostBuyPrice =sellCostBuyPrice+9480
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+9480, sellCostMeanBuyPrice = sellCostMeanBuyPrice+9480
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+9480, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+9480
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+9480
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+9480
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+9480
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+24
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 10080, 9480, 9480
                    , 9480, 9480, 9480, 9480
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9480, 9480, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+10080, sellCostBuyPrice =sellCostBuyPrice+9480
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+9480, sellCostMeanBuyPrice = sellCostMeanBuyPrice+9480
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+9480, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+9480
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+9480
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+9480
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+9480
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '348', userid = '3', storedetaildate = '2026-10-14 13:19:32' WHERE storedetailid = '2943';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1926', '1', '24', '1', '512', 'اضافة فاتورة مبيعات', 'sellbillController.php', '372', '348', '3', '2026-10-14 13:19:32','0','0'); -- id=5388
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3220455',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3203895','16560', '0', '2', 'اضافة فاتورة مبيعات', '512', '3220455', '2026-10-14 13:19:32', '3',  'sellbillController.php','1','','0'); -- id=649
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '16560', '16560', '2026-10-14', '3', '0', '0', '2026-10-14 13:19:32','اضافة فاتورة مبيعات رقم 512','1','0',null,'0','512','sellbillController.php?do=showDetail&sellbillid=512'); -- id=2358
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2358', '419', '16560', '','0'); -- id=2411
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3220455', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2358', '143', '16560', '','0'); -- id=2360
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5372465', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '15312', '15312', '2026-10-14', '3', '0', '0', '2026-10-14 13:19:32','اضافة فاتورة مبيعات رقم 512 - صرف البضاعة من المخزن','1','0',null,'0','512','sellbillController.php?do=showDetail&sellbillid=512'); -- id=2359
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2359', '402', '15312', '','0'); -- id=2412
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5017558.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2359', '382', '15312', '','0'); -- id=2361
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21809708.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2358,0,2359' where sellbillid=512;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 16560, 15960, 15960
                    , 15960, 15312, 15636, 15312
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,15960, 12720, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+16560, sellCostBuyPrice =sellCostBuyPrice+15960
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+15960, sellCostMeanBuyPrice = sellCostMeanBuyPrice+15960
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+15312, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+15636
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+15312
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+15960
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+12720
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 16560, 15960, 15960
                    , 15960, 15312, 15636, 15312
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,15960, 12720, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+16560, sellCostBuyPrice =sellCostBuyPrice+15960
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+15960, sellCostMeanBuyPrice = sellCostMeanBuyPrice+15960
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+15312, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+15636
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+15312
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+15960
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+12720
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 16560, 15960, 15960
                    , 15960, 15312, 15636, 15312, 15960, 12720)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+16560, netSellCostBuyPrice = netSellCostBuyPrice+15960
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+15960
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+15960
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+15312
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+15636
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+15312
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+15960
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+12720;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf54638cb75 and sellbillId = 512 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:49:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:19:32", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 13:19:32', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9155
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:50:55";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:20:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:20:55', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9156
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 1002 برو','','158','480','510','510','510','2026-10-14','0','1','0','','0','0','0','0','0','480','480','480','480','480','0','6.25','0','0','.','0','0','0','480','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','480','480','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','480','0','0','0','0','0','0','','','0','0','0','0'); -- id=1949
UPDATE product SET productName = 'كود 1002 برو', productDescription = '', productCatId = '158', productBuyPrice = '480', productSellAllPrice = '510', productSellUnitPrice = '510', productSellHalfPrice = '510', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01949',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 = '6.25' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='480',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='480',meanbuyprice_withTax='480',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='480',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1949';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1949', '1.00', '2026-10-14', '1', '0','0194901','510','510','510','480','','0','0','0','0','0','0','0','0','0','0'); -- id=1949
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1949', '1', '0', '1', '2026-10-14'); -- id=2966
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1949', '1', '0', '0', '1949', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5389
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1949, 1,'2026-10-14 13:20:55',1)
                ON DUPLICATE KEY UPDATE productid = 1949, edited = 1, sysdate = '2026-10-14 13:20:55', userid = 1; -- id=2890
UPDATE product SET productName = 'كود 1002 برو', productDescription = '', productCatId = '158', productBuyPrice = '480.00', productSellAllPrice = '510.00', productSellUnitPrice = '510.00', productSellHalfPrice = '510.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01949',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 = '6.25' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='480',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='480',meanbuyprice_withTax='480',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='480',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1949';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 1005 برو','','158','500','530','530','530','2026-10-14','0','1','0','','0','0','0','0','0','500','500','500','500','500','0','6','0','0','.','0','0','0','500','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','500','500','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','500','0','0','0','0','0','0','','','0','0','0','0'); -- id=1950
UPDATE product SET productName = 'كود 1005 برو', productDescription = '', productCatId = '158', productBuyPrice = '500', productSellAllPrice = '530', productSellUnitPrice = '530', productSellHalfPrice = '530', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01950',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500' , buypricereal_precentage = '0' , buytotal_precentage = '6' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1950';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1950', '1.00', '2026-10-14', '1', '0','0195001','530','530','530','500','','0','0','0','0','0','0','0','0','0','0'); -- id=1950
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1950', '1', '0', '1', '2026-10-14'); -- id=2967
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1950', '1', '0', '0', '1950', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5390
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1950, 1,'2026-10-14 13:20:55',1)
                ON DUPLICATE KEY UPDATE productid = 1950, edited = 1, sysdate = '2026-10-14 13:20:55', userid = 1; -- id=2891
UPDATE product SET productName = 'كود 1005 برو', productDescription = '', productCatId = '158', productBuyPrice = '500.00', productSellAllPrice = '530.00', productSellUnitPrice = '530.00', productSellHalfPrice = '530.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01950',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500' , buypricereal_precentage = '0' , buytotal_precentage = '6' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1950';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 1015 برو','','158','450','480','480','480','2026-10-14','0','1','0','','0','0','0','0','0','450','450','450','450','450','0','6.67','0','0','.','0','0','0','450','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','450','450','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','450','0','0','0','0','0','0','','','0','0','0','0'); -- id=1951
UPDATE product SET productName = 'كود 1015 برو', productDescription = '', productCatId = '158', productBuyPrice = '450', productSellAllPrice = '480', productSellUnitPrice = '480', productSellHalfPrice = '480', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01951',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 = '6.67' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1951';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1951', '1.00', '2026-10-14', '1', '0','0195101','480','480','480','450','','0','0','0','0','0','0','0','0','0','0'); -- id=1951
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1951', '1', '0', '1', '2026-10-14'); -- id=2968
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1951', '1', '0', '0', '1951', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5391
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1951, 1,'2026-10-14 13:20:55',1)
                ON DUPLICATE KEY UPDATE productid = 1951, edited = 1, sysdate = '2026-10-14 13:20:55', userid = 1; -- id=2892
UPDATE product SET productName = 'كود 1015 برو', productDescription = '', productCatId = '158', productBuyPrice = '450.00', productSellAllPrice = '480.00', productSellUnitPrice = '480.00', productSellHalfPrice = '480.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01951',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 = '6.67' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1951';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 1014 برو','','158','570','600','600','600','2026-10-14','0','1','0','','0','0','0','0','0','570','570','570','570','570','0','5.26','0','0','.','0','0','0','570','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','570','570','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','570','0','0','0','0','0','0','','','0','0','0','0'); -- id=1952
UPDATE product SET productName = 'كود 1014 برو', productDescription = '', productCatId = '158', productBuyPrice = '570', productSellAllPrice = '600', productSellUnitPrice = '600', productSellHalfPrice = '600', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01952',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '570',lastbuyprice_withDiscount = '570',meanbuyprice = '570',meanbuyprice_withDiscount = '570' , productbuypricereal = '570' , buypricereal_precentage = '0' , buytotal_precentage = '5.26' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='570',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='570',meanbuyprice_withTax='570',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='570',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1952';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1952', '1.00', '2026-10-14', '1', '0','0195201','600','600','600','570','','0','0','0','0','0','0','0','0','0','0'); -- id=1952
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1952', '1', '0', '1', '2026-10-14'); -- id=2969
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1952', '1', '0', '0', '1952', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5392
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1952, 1,'2026-10-14 13:20:55',1)
                ON DUPLICATE KEY UPDATE productid = 1952, edited = 1, sysdate = '2026-10-14 13:20:55', userid = 1; -- id=2893
UPDATE product SET productName = 'كود 1014 برو', productDescription = '', productCatId = '158', productBuyPrice = '570.00', productSellAllPrice = '600.00', productSellUnitPrice = '600.00', productSellHalfPrice = '600.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01952',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '570',lastbuyprice_withDiscount = '570',meanbuyprice = '570',meanbuyprice_withDiscount = '570' , productbuypricereal = '570' , buypricereal_precentage = '0' , buytotal_precentage = '5.26' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='570',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='570',meanbuyprice_withTax='570',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='570',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1952';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديلات 550 برو','','158','520','550','550','550','2026-10-14','0','1','0','','0','0','0','0','0','520','520','520','520','520','0','5.77','0','0','.','0','0','0','520','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','520','520','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','520','0','0','0','0','0','0','','','0','0','0','0'); -- id=1953
UPDATE product SET productName = 'موديلات 550 برو', productDescription = '', productCatId = '158', productBuyPrice = '520', productSellAllPrice = '550', productSellUnitPrice = '550', productSellHalfPrice = '550', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01953',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '520',lastbuyprice_withDiscount = '520',meanbuyprice = '520',meanbuyprice_withDiscount = '520' , productbuypricereal = '520' , buypricereal_precentage = '0' , buytotal_precentage = '5.77' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='520',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='520',meanbuyprice_withTax='520',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='520',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1953';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1953', '1.00', '2026-10-14', '1', '0','0195301','550','550','550','520','','0','0','0','0','0','0','0','0','0','0'); -- id=1953
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1953', '1', '0', '1', '2026-10-14'); -- id=2970
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1953', '1', '0', '0', '1953', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5393
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1953, 1,'2026-10-14 13:20:55',1)
                ON DUPLICATE KEY UPDATE productid = 1953, edited = 1, sysdate = '2026-10-14 13:20:55', userid = 1; -- id=2894
UPDATE product SET productName = 'موديلات 550 برو', productDescription = '', productCatId = '158', productBuyPrice = '520.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01953',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '520',lastbuyprice_withDiscount = '520',meanbuyprice = '520',meanbuyprice_withDiscount = '520' , productbuypricereal = '520' , buypricereal_precentage = '0' , buytotal_precentage = '5.77' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='520',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='520',meanbuyprice_withTax='520',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='520',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1953';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديلات 620 برو','','158','620','650','650','650','2026-10-14','0','1','0','','0','0','0','0','0','620','620','620','620','620','0','4.84','0','0','.','0','0','0','620','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','620','620','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','620','0','0','0','0','0','0','','','0','0','0','0'); -- id=1954
UPDATE product SET productName = 'موديلات 620 برو', productDescription = '', productCatId = '158', productBuyPrice = '620', productSellAllPrice = '650', productSellUnitPrice = '650', productSellHalfPrice = '650', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01954',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '620',lastbuyprice_withDiscount = '620',meanbuyprice = '620',meanbuyprice_withDiscount = '620' , productbuypricereal = '620' , buypricereal_precentage = '0' , buytotal_precentage = '4.84' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='620',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='620',meanbuyprice_withTax='620',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='620',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1954';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1954', '1.00', '2026-10-14', '1', '0','0195401','650','650','650','620','','0','0','0','0','0','0','0','0','0','0'); -- id=1954
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1954', '1', '0', '1', '2026-10-14'); -- id=2971
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1954', '1', '0', '0', '1954', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5394
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1954, 1,'2026-10-14 13:20:55',1)
                ON DUPLICATE KEY UPDATE productid = 1954, edited = 1, sysdate = '2026-10-14 13:20:55', userid = 1; -- id=2895
UPDATE product SET productName = 'موديلات 620 برو', productDescription = '', productCatId = '158', productBuyPrice = '620.00', productSellAllPrice = '650.00', productSellUnitPrice = '650.00', productSellHalfPrice = '650.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01954',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '620',lastbuyprice_withDiscount = '620',meanbuyprice = '620',meanbuyprice_withDiscount = '620' , productbuypricereal = '620' , buypricereal_precentage = '0' , buytotal_precentage = '4.84' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='620',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='620',meanbuyprice_withTax='620',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='620',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1954';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 1036 برو','','158','650','680','680','680','2026-10-14','0','1','0','','0','0','0','0','0','650','650','650','650','650','0','4.62','0','0','.','0','0','0','650','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','650','650','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','650','0','0','0','0','0','0','','','0','0','0','0'); -- id=1955
UPDATE product SET productName = 'كود 1036 برو', productDescription = '', productCatId = '158', productBuyPrice = '650', productSellAllPrice = '680', productSellUnitPrice = '680', productSellHalfPrice = '680', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01955',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '650',lastbuyprice_withDiscount = '650',meanbuyprice = '650',meanbuyprice_withDiscount = '650' , productbuypricereal = '650' , buypricereal_precentage = '0' , buytotal_precentage = '4.62' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='650',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='650',meanbuyprice_withTax='650',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='650',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1955';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1955', '1.00', '2026-10-14', '1', '0','0195501','680','680','680','650','','0','0','0','0','0','0','0','0','0','0'); -- id=1955
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1955', '1', '0', '1', '2026-10-14'); -- id=2972
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1955', '1', '0', '0', '1955', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5395
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1955, 1,'2026-10-14 13:20:55',1)
                ON DUPLICATE KEY UPDATE productid = 1955, edited = 1, sysdate = '2026-10-14 13:20:55', userid = 1; -- id=2896
UPDATE product SET productName = 'كود 1036 برو', productDescription = '', productCatId = '158', productBuyPrice = '650.00', productSellAllPrice = '680.00', productSellUnitPrice = '680.00', productSellHalfPrice = '680.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01955',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '650',lastbuyprice_withDiscount = '650',meanbuyprice = '650',meanbuyprice_withDiscount = '650' , productbuypricereal = '650' , buypricereal_precentage = '0' , buytotal_precentage = '4.62' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='650',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='650',meanbuyprice_withTax='650',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='650',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1955';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديلات 580 برو','','158','550','580','580','580','2026-10-14','0','1','0','','0','0','0','0','0','550','550','550','550','550','0','5.45','0','0','.','0','0','0','550','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','550','550','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','550','0','0','0','0','0','0','','','0','0','0','0'); -- id=1956
UPDATE product SET productName = 'موديلات 580 برو', productDescription = '', productCatId = '158', productBuyPrice = '550', productSellAllPrice = '580', productSellUnitPrice = '580', productSellHalfPrice = '580', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01956',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '550',meanbuyprice = '550',meanbuyprice_withDiscount = '550' , productbuypricereal = '550' , buypricereal_precentage = '0' , buytotal_precentage = '5.45' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='550',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1956';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1956', '1.00', '2026-10-14', '1', '0','0195601','580','580','580','550','','0','0','0','0','0','0','0','0','0','0'); -- id=1956
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1956', '1', '0', '1', '2026-10-14'); -- id=2973
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1956', '1', '0', '0', '1956', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5396
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1956, 1,'2026-10-14 13:20:55',1)
                ON DUPLICATE KEY UPDATE productid = 1956, edited = 1, sysdate = '2026-10-14 13:20:55', userid = 1; -- id=2897
UPDATE product SET productName = 'موديلات 580 برو', productDescription = '', productCatId = '158', productBuyPrice = '550.00', productSellAllPrice = '580.00', productSellUnitPrice = '580.00', productSellHalfPrice = '580.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01956',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '550',meanbuyprice = '550',meanbuyprice_withDiscount = '550' , productbuypricereal = '550' , buypricereal_precentage = '0' , buytotal_precentage = '5.45' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='550',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1956';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 1008 برو','','158','630','660','660','660','2026-10-14','0','1','0','','0','0','0','0','0','630','630','630','630','630','0','4.76','0','0','.','0','0','0','630','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','630','630','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','630','0','0','0','0','0','0','','','0','0','0','0'); -- id=1957
UPDATE product SET productName = 'كود 1008 برو', productDescription = '', productCatId = '158', productBuyPrice = '630', productSellAllPrice = '660', productSellUnitPrice = '660', productSellHalfPrice = '660', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01957',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '630',lastbuyprice_withDiscount = '630',meanbuyprice = '630',meanbuyprice_withDiscount = '630' , productbuypricereal = '630' , buypricereal_precentage = '0' , buytotal_precentage = '4.76' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='630',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='630',meanbuyprice_withTax='630',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='630',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1957';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1957', '1.00', '2026-10-14', '1', '0','0195701','660','660','660','630','','0','0','0','0','0','0','0','0','0','0'); -- id=1957
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1957', '1', '0', '1', '2026-10-14'); -- id=2974
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1957', '1', '0', '0', '1957', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5397
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1957, 1,'2026-10-14 13:20:55',1)
                ON DUPLICATE KEY UPDATE productid = 1957, edited = 1, sysdate = '2026-10-14 13:20:55', userid = 1; -- id=2898
UPDATE product SET productName = 'كود 1008 برو', productDescription = '', productCatId = '158', productBuyPrice = '630.00', productSellAllPrice = '660.00', productSellUnitPrice = '660.00', productSellHalfPrice = '660.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01957',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '630',lastbuyprice_withDiscount = '630',meanbuyprice = '630',meanbuyprice_withDiscount = '630' , productbuypricereal = '630' , buypricereal_precentage = '0' , buytotal_precentage = '4.76' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='630',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='630',meanbuyprice_withTax='630',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='630',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1957';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 1031 برو','','158','470','500','500','500','2026-10-14','0','1','0','','0','0','0','0','0','470','470','470','470','470','0','6.38','0','0','.','0','0','0','470','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','470','470','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','470','0','0','0','0','0','0','','','0','0','0','0'); -- id=1958
UPDATE product SET productName = 'كود 1031 برو', productDescription = '', productCatId = '158', productBuyPrice = '470', productSellAllPrice = '500', productSellUnitPrice = '500', productSellHalfPrice = '500', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01958',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '470',lastbuyprice_withDiscount = '470',meanbuyprice = '470',meanbuyprice_withDiscount = '470' , productbuypricereal = '470' , buypricereal_precentage = '0' , buytotal_precentage = '6.38' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='470',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='470',meanbuyprice_withTax='470',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='470',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1958';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1958', '1.00', '2026-10-14', '1', '0','0195801','500','500','500','470','','0','0','0','0','0','0','0','0','0','0'); -- id=1958
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1958', '1', '0', '1', '2026-10-14'); -- id=2975
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1958', '1', '0', '0', '1958', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5398
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1958, 1,'2026-10-14 13:20:55',1)
                ON DUPLICATE KEY UPDATE productid = 1958, edited = 1, sysdate = '2026-10-14 13:20:55', userid = 1; -- id=2899
UPDATE product SET productName = 'كود 1031 برو', productDescription = '', productCatId = '158', productBuyPrice = '470.00', productSellAllPrice = '500.00', productSellUnitPrice = '500.00', productSellHalfPrice = '500.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01958',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '470',lastbuyprice_withDiscount = '470',meanbuyprice = '470',meanbuyprice_withDiscount = '470' , productbuypricereal = '470' , buypricereal_precentage = '0' , buytotal_precentage = '6.38' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='470',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='470',meanbuyprice_withTax='470',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='470',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1958';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 1023 برو','','158','490','520','520','520','2026-10-14','0','1','0','','0','0','0','0','0','490','490','490','490','490','0','6.12','0','0','.','0','0','0','490','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','490','490','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','490','0','0','0','0','0','0','','','0','0','0','0'); -- id=1959
UPDATE product SET productName = 'كود 1023 برو', productDescription = '', productCatId = '158', productBuyPrice = '490', productSellAllPrice = '520', productSellUnitPrice = '520', productSellHalfPrice = '520', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01959',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '490',lastbuyprice_withDiscount = '490',meanbuyprice = '490',meanbuyprice_withDiscount = '490' , productbuypricereal = '490' , buypricereal_precentage = '0' , buytotal_precentage = '6.12' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='490',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='490',meanbuyprice_withTax='490',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='490',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1959';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1959', '1.00', '2026-10-14', '1', '0','0195901','520','520','520','490','','0','0','0','0','0','0','0','0','0','0'); -- id=1959
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1959', '1', '0', '1', '2026-10-14'); -- id=2976
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1959', '1', '0', '0', '1959', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5399
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1959, 1,'2026-10-14 13:20:55',1)
                ON DUPLICATE KEY UPDATE productid = 1959, edited = 1, sysdate = '2026-10-14 13:20:55', userid = 1; -- id=2900
UPDATE product SET productName = 'كود 1023 برو', productDescription = '', productCatId = '158', productBuyPrice = '490.00', productSellAllPrice = '520.00', productSellUnitPrice = '520.00', productSellHalfPrice = '520.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01959',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '490',lastbuyprice_withDiscount = '490',meanbuyprice = '490',meanbuyprice_withDiscount = '490' , productbuypricereal = '490' , buypricereal_precentage = '0' , buytotal_precentage = '6.12' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='490',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='490',meanbuyprice_withTax='490',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='490',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1959';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:50:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:20:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:20:56', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9157
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:50:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:20:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 13:20:59', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9158
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:56:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:26:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:26:00', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9159
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:56:13";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:26:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:26:13', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9160
UPDATE product SET productName = 'موديلات 650 برو', productDescription = '', productCatId = '158', productBuyPrice = '620.00', productSellAllPrice = '650.00', productSellUnitPrice = '650.00', productSellHalfPrice = '650.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01954',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '620.00',lastbuyprice_withDiscount = '620',meanbuyprice = '620.00',meanbuyprice_withDiscount = '620' , productbuypricereal = '620.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.84' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='620',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='620',meanbuyprice_withTax='620',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='620',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1954';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1954, 1,'2026-10-14 13:26:30',1)
                ON DUPLICATE KEY UPDATE productid = 1954, edited = 1, sysdate = '2026-10-14 13:26:30', userid = 1; -- id=2895
UPDATE product SET productName = 'كود 1036 برو', productDescription = '', productCatId = '158', productBuyPrice = '650.00', productSellAllPrice = '680.00', productSellUnitPrice = '680.00', productSellHalfPrice = '680.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01955',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '650.00',lastbuyprice_withDiscount = '650',meanbuyprice = '650.00',meanbuyprice_withDiscount = '650' , productbuypricereal = '650.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.62' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='650',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='650',meanbuyprice_withTax='650',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='650',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1955';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1955, 1,'2026-10-14 13:26:33',1)
                ON DUPLICATE KEY UPDATE productid = 1955, edited = 1, sysdate = '2026-10-14 13:26:33', userid = 1; -- id=2896
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:56:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:26:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:26:37', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9161
UPDATE product SET productName = 'كود 1014 برو', productDescription = '', productCatId = '158', productBuyPrice = '570.00', productSellAllPrice = '600.00', productSellUnitPrice = '600.00', productSellHalfPrice = '600.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01952',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '570.00',lastbuyprice_withDiscount = '570',meanbuyprice = '570.00',meanbuyprice_withDiscount = '570' , productbuypricereal = '570.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.26' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='570',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='570',meanbuyprice_withTax='570',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='570',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1952';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1952, 1,'2026-10-14 13:26:38',1)
                ON DUPLICATE KEY UPDATE productid = 1952, edited = 1, sysdate = '2026-10-14 13:26:38', userid = 1; -- id=2893
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:57:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:27:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:27:56', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9162
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:58:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:28:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 13:28:00', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9163
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:58:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:28:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 13:28:47', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9164
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('برو تريكو','2026-10-14','','85', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=159
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (159, 1,'2026-10-14 13:28:47',1)
                ON DUPLICATE KEY UPDATE catid = 159, edited = 1, sysdate = '2026-10-14 13:28:47', userid = 1; -- id=171
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '159', '1', '2026-10-14', '1', '0'); -- id=64
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:58:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:28:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 13:28:47', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9165
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:58:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:28:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 13:28:49', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9166
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:58:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:28:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:28:49', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9167
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:59:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:29:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:29:10', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9168
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تريكو برو','','159','475','495','495','495','2026-10-14','0','1','0','','0','0','0','0','0','475','475','475','475','475','0','4.21','0','0','.','0','0','0','475','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','475','475','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','475','0','0','0','0','0','0','','','0','0','0','0'); -- id=1960
UPDATE product SET productName = 'تريكو برو', productDescription = '', productCatId = '159', productBuyPrice = '475', productSellAllPrice = '495', productSellUnitPrice = '495', productSellHalfPrice = '495', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01960',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '475',lastbuyprice_withDiscount = '475',meanbuyprice = '475',meanbuyprice_withDiscount = '475' , productbuypricereal = '475' , buypricereal_precentage = '0' , buytotal_precentage = '4.21' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='475',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='475',meanbuyprice_withTax='475',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='475',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1960';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1960', '1.00', '2026-10-14', '1', '0','0196001','495','495','495','475','','0','0','0','0','0','0','0','0','0','0'); -- id=1960
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1960', '1', '0', '1', '2026-10-14'); -- id=2977
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1960', '1', '0', '0', '1960', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5400
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1960, 1,'2026-10-14 13:29:10',1)
                ON DUPLICATE KEY UPDATE productid = 1960, edited = 1, sysdate = '2026-10-14 13:29:10', userid = 1; -- id=2904
UPDATE product SET productName = 'تريكو برو', productDescription = '', productCatId = '159', productBuyPrice = '475.00', productSellAllPrice = '495.00', productSellUnitPrice = '495.00', productSellHalfPrice = '495.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01960',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '475',lastbuyprice_withDiscount = '475',meanbuyprice = '475',meanbuyprice_withDiscount = '475' , productbuypricereal = '475' , buypricereal_precentage = '0' , buytotal_precentage = '4.21' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='475',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='475',meanbuyprice_withTax='475',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='475',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1960';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:59:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:29:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:29:11', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9169
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 09:59:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:29:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 13:29:15', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9170
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:00:17";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:30:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 13:30:17', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9171
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf597bb4a63', '2026-10-14 13:29:15', '137', '-100000.00', '-62000', '0', '0', '38000.00',  '38000.00', '0', '38000', '1', '2026-10-14 13:30:17', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=143
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01960', '143', '159', '1960', '80', '475', '38000.00', '0', '', '2026-10-14 13:30:17', '1960','','','0','0','0','0','0',null,'475','38000','0','0','0','0','0','0','0','0','1'); -- id=860
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:29:15', 1, 1960, 0, 0
                    , 475, 80, 0, 0, 1, '2026-10-14 13:30:17')
                ON DUPLICATE KEY UPDATE buyprice = 475,
                        buyQuantity =buyQuantity+80, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:30:17' ; -- id=1137
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1960', '475', '80', '0', 'buyBillController.php', '860', '', '0', '0'); -- id=647
UPDATE product SET  productBuyPrice = "475" WHERE productId = 1960 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 860 ;
UPDATE product SET productName = 'تريكو برو', productDescription = '', productCatId = '159', productBuyPrice = '475.00', productSellAllPrice = '495.00', productSellUnitPrice = '495.00', productSellHalfPrice = '495.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01960',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '475',lastbuyprice_withDiscount = '475',meanbuyprice = '475',meanbuyprice_withDiscount = '475' , productbuypricereal = '475.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.21' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='475',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='475',meanbuyprice_withTax='475',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='475',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1960';
UPDATE buybilldetail SET  lastbuyprice = 475 , meanbuyprice = 475, lastbuyprice_withDiscount = 475, meanbuyprice_withDiscount = 475
        , lastbuyprice_withTax = 475, meanbuyprice_withTax = 475, lastbuyprice_withDiscountAndTax = 475
                where buybilldetailid = 860;
UPDATE productunit SET proUnitBuyPrice  = 475 * productnumber WHERE productid = 1960;
UPDATE storedetail SET  productquantity = '80', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2977';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1960', '1', '80', '0', '143', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '80', '1', '2026-10-14 13:29:15','0','0'); -- id=5401
UPDATE supplier SET  suppliercurrentDebt = '-62000',suppliercurrentDebtInCurrency= '-62000' , userid = '1', supplierdate = '2026-10-14 13:30:17'   WHERE supplierid = '137';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('137', '-100000.00', '38000', '0', 'اضافة فاتورة مشتريات', '143', '-62000', '2026-10-14 13:29:15', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','38000','1','-100000','38000','-62000','0',''); -- id=471
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '38000', '38000', '2026-10-14', '1', '0', '0', '2026-10-14 13:30:17','اضافة فاتورة مشتريات رقم 143','1','0',null,'0','143','buyBillController.php?do=details&id=143'); -- id=2360
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2360', '382', '38000', '','0'); -- id=2413
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21847708.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2360', '620', '38000', '','0'); -- id=2362
UPDATE accountstree SET name = 'برو', customName = 'برو', customNameEn = 'برو', nameEn = 'برو', parent = '81', accountNature = '1', theValue = '-62000', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-09 21:09:52' WHERE id = '620';
update buybill set dailyentryid='2360,0' where buybillid=143;
COMMIT;
UPDATE product SET overAllAveragePrice = 475 WHERE productId = 1960;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:00:17";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:30:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 13:30:17', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=143'); -- id=9172
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:00:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:30:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:30:29', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=143&type=2'); -- id=9173
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:01:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:31:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 13:31:23', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9174
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf578b5b9db', '2026-10-14 13:20:59', '137', '-62000.00', '107160', '0', '0', '169160.00',  '169160.00', '0', '169160', '1', '2026-10-14 13:31:23', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=144
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01949', '144', '158', '1949', '12', '480', '5760.00', '0', '', '2026-10-14 13:31:23', '1949','','','0','0','0','0','0',null,'480','5760','0','0','0','0','0','0','0','0','1'); -- id=861
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:20:59', 1, 1949, 0, 0
                    , 480, 12, 0, 0, 1, '2026-10-14 13:31:23')
                ON DUPLICATE KEY UPDATE buyprice = 480,
                        buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:31:23' ; -- id=1138
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1949', '480', '12', '0', 'buyBillController.php', '861', '', '0', '0'); -- id=648
UPDATE product SET  productBuyPrice = "480" WHERE productId = 1949 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 861 ;
UPDATE product SET productName = 'كود 1002 برو', productDescription = '', productCatId = '158', productBuyPrice = '480.00', productSellAllPrice = '510.00', productSellUnitPrice = '510.00', productSellHalfPrice = '510.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01949',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '480',lastbuyprice_withDiscount = '480',meanbuyprice = '480',meanbuyprice_withDiscount = '480' , productbuypricereal = '480.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.25' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='480',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='480',meanbuyprice_withTax='480',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='480',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1949';
UPDATE buybilldetail SET  lastbuyprice = 480 , meanbuyprice = 480, lastbuyprice_withDiscount = 480, meanbuyprice_withDiscount = 480
        , lastbuyprice_withTax = 480, meanbuyprice_withTax = 480, lastbuyprice_withDiscountAndTax = 480
                where buybilldetailid = 861;
UPDATE productunit SET proUnitBuyPrice  = 480 * productnumber WHERE productid = 1949;
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2966';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1949', '1', '12', '0', '144', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '12', '1', '2026-10-14 13:20:59','0','0'); -- id=5402
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01950', '144', '158', '1950', '24', '500', '12000.00', '0', '', '2026-10-14 13:31:23', '1950','','','0','0','0','0','0',null,'500','12000','0','0','0','0','0','0','0','0','1'); -- id=862
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:20:59', 1, 1950, 0, 0
                    , 500, 24, 0, 0, 1, '2026-10-14 13:31:23')
                ON DUPLICATE KEY UPDATE buyprice = 500,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:31:23' ; -- id=1139
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1950', '500', '24', '0', 'buyBillController.php', '862', '', '0', '0'); -- id=649
UPDATE product SET  productBuyPrice = "500" WHERE productId = 1950 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 862 ;
UPDATE product SET productName = 'كود 1005 برو', productDescription = '', productCatId = '158', productBuyPrice = '500.00', productSellAllPrice = '530.00', productSellUnitPrice = '530.00', productSellHalfPrice = '530.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01950',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1950';
UPDATE buybilldetail SET  lastbuyprice = 500 , meanbuyprice = 500, lastbuyprice_withDiscount = 500, meanbuyprice_withDiscount = 500
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 500
                where buybilldetailid = 862;
UPDATE productunit SET proUnitBuyPrice  = 500 * productnumber WHERE productid = 1950;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2967';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1950', '1', '24', '0', '144', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 13:20:59','0','0'); -- id=5403
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01951', '144', '158', '1951', '20', '450', '9000.00', '0', '', '2026-10-14 13:31:23', '1951','','','0','0','0','0','0',null,'450','9000','0','0','0','0','0','0','0','0','1'); -- id=863
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:20:59', 1, 1951, 0, 0
                    , 450, 20, 0, 0, 1, '2026-10-14 13:31:23')
                ON DUPLICATE KEY UPDATE buyprice = 450,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:31:23' ; -- id=1140
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1951', '450', '20', '0', 'buyBillController.php', '863', '', '0', '0'); -- id=650
UPDATE product SET  productBuyPrice = "450" WHERE productId = 1951 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 863 ;
UPDATE product SET productName = 'كود 1015 برو', productDescription = '', productCatId = '158', productBuyPrice = '450.00', productSellAllPrice = '480.00', productSellUnitPrice = '480.00', productSellHalfPrice = '480.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01951',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '450',meanbuyprice = '450',meanbuyprice_withDiscount = '450' , productbuypricereal = '450.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.67' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1951';
UPDATE buybilldetail SET  lastbuyprice = 450 , meanbuyprice = 450, lastbuyprice_withDiscount = 450, meanbuyprice_withDiscount = 450
        , lastbuyprice_withTax = 450, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 450
                where buybilldetailid = 863;
UPDATE productunit SET proUnitBuyPrice  = 450 * productnumber WHERE productid = 1951;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2968';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1951', '1', '20', '0', '144', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 13:20:59','0','0'); -- id=5404
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01952', '144', '158', '1952', '20', '570', '11400.00', '0', '', '2026-10-14 13:31:23', '1952','','','0','0','0','0','0',null,'570','11400','0','0','0','0','0','0','0','0','1'); -- id=864
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:20:59', 1, 1952, 0, 0
                    , 570, 20, 0, 0, 1, '2026-10-14 13:31:23')
                ON DUPLICATE KEY UPDATE buyprice = 570,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:31:23' ; -- id=1141
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1952', '570', '20', '0', 'buyBillController.php', '864', '', '0', '0'); -- id=651
UPDATE product SET  productBuyPrice = "570" WHERE productId = 1952 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 864 ;
UPDATE product SET productName = 'كود 1014 برو', productDescription = '', productCatId = '158', productBuyPrice = '570.00', productSellAllPrice = '600.00', productSellUnitPrice = '600.00', productSellHalfPrice = '600.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01952',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '570',lastbuyprice_withDiscount = '570',meanbuyprice = '570',meanbuyprice_withDiscount = '570' , productbuypricereal = '570.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.26' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='570',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='570',meanbuyprice_withTax='570',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='570',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1952';
UPDATE buybilldetail SET  lastbuyprice = 570 , meanbuyprice = 570, lastbuyprice_withDiscount = 570, meanbuyprice_withDiscount = 570
        , lastbuyprice_withTax = 570, meanbuyprice_withTax = 570, lastbuyprice_withDiscountAndTax = 570
                where buybilldetailid = 864;
UPDATE productunit SET proUnitBuyPrice  = 570 * productnumber WHERE productid = 1952;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2969';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1952', '1', '20', '0', '144', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 13:20:59','0','0'); -- id=5405
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01953', '144', '158', '1953', '20', '520', '10400.00', '0', '', '2026-10-14 13:31:23', '1953','','','0','0','0','0','0',null,'520','10400','0','0','0','0','0','0','0','0','1'); -- id=865
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:20:59', 1, 1953, 0, 0
                    , 520, 20, 0, 0, 1, '2026-10-14 13:31:23')
                ON DUPLICATE KEY UPDATE buyprice = 520,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:31:23' ; -- id=1142
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1953', '520', '20', '0', 'buyBillController.php', '865', '', '0', '0'); -- id=652
UPDATE product SET  productBuyPrice = "520" WHERE productId = 1953 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 865 ;
UPDATE product SET productName = 'موديلات 550 برو', productDescription = '', productCatId = '158', productBuyPrice = '520.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01953',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '520',lastbuyprice_withDiscount = '520',meanbuyprice = '520',meanbuyprice_withDiscount = '520' , productbuypricereal = '520.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.77' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='520',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='520',meanbuyprice_withTax='520',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='520',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1953';
UPDATE buybilldetail SET  lastbuyprice = 520 , meanbuyprice = 520, lastbuyprice_withDiscount = 520, meanbuyprice_withDiscount = 520
        , lastbuyprice_withTax = 520, meanbuyprice_withTax = 520, lastbuyprice_withDiscountAndTax = 520
                where buybilldetailid = 865;
UPDATE productunit SET proUnitBuyPrice  = 520 * productnumber WHERE productid = 1953;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2970';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1953', '1', '20', '0', '144', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 13:20:59','0','0'); -- id=5406
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01954', '144', '158', '1954', '20', '620', '12400.00', '0', '', '2026-10-14 13:31:23', '1954','','','0','0','0','0','0',null,'620','12400','0','0','0','0','0','0','0','0','1'); -- id=866
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:20:59', 1, 1954, 0, 0
                    , 620, 20, 0, 0, 1, '2026-10-14 13:31:23')
                ON DUPLICATE KEY UPDATE buyprice = 620,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:31:23' ; -- id=1143
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1954', '620', '20', '0', 'buyBillController.php', '866', '', '0', '0'); -- id=653
UPDATE product SET  productBuyPrice = "620" WHERE productId = 1954 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 866 ;
UPDATE product SET productName = 'موديلات 650 برو', productDescription = '', productCatId = '158', productBuyPrice = '620.00', productSellAllPrice = '650.00', productSellUnitPrice = '650.00', productSellHalfPrice = '650.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01954',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '620',lastbuyprice_withDiscount = '620',meanbuyprice = '620',meanbuyprice_withDiscount = '620' , productbuypricereal = '620.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.84' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='620',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='620',meanbuyprice_withTax='620',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='620',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1954';
UPDATE buybilldetail SET  lastbuyprice = 620 , meanbuyprice = 620, lastbuyprice_withDiscount = 620, meanbuyprice_withDiscount = 620
        , lastbuyprice_withTax = 620, meanbuyprice_withTax = 620, lastbuyprice_withDiscountAndTax = 620
                where buybilldetailid = 866;
UPDATE productunit SET proUnitBuyPrice  = 620 * productnumber WHERE productid = 1954;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2971';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1954', '1', '20', '0', '144', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 13:20:59','0','0'); -- id=5407
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01954', '144', '158', '1954', '16', '620', '9920.00', '0', '', '2026-10-14 13:31:23', '1954','','','0','0','0','0','0',null,'620','9920','0','0','0','0','0','0','0','0','1'); -- id=867
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:20:59', 1, 1954, 0, 0
                    , 620, 16, 0, 0, 1, '2026-10-14 13:31:23')
                ON DUPLICATE KEY UPDATE buyprice = 620,
                        buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:31:23' ; -- id=1143
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1954', '620', '16', '0', 'buyBillController.php', '867', '', '0', '0'); -- id=654
UPDATE product SET  productBuyPrice = "620" WHERE productId = 1954 ;
UPDATE buybilldetail SET  quantitybefore = 20 WHERE buybilldetailid = 867 ;
UPDATE product SET productName = 'موديلات 650 برو', productDescription = '', productCatId = '158', productBuyPrice = '620.00', productSellAllPrice = '650.00', productSellUnitPrice = '650.00', productSellHalfPrice = '650.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01954',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '620',lastbuyprice_withDiscount = '620',meanbuyprice = '620',meanbuyprice_withDiscount = '620' , productbuypricereal = '620.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.84' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='620',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='620',meanbuyprice_withTax='620',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='620',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1954';
UPDATE buybilldetail SET  lastbuyprice = 620 , meanbuyprice = 620, lastbuyprice_withDiscount = 620, meanbuyprice_withDiscount = 620
        , lastbuyprice_withTax = 620, meanbuyprice_withTax = 620, lastbuyprice_withDiscountAndTax = 620
                where buybilldetailid = 867;
UPDATE productunit SET proUnitBuyPrice  = 620 * productnumber WHERE productid = 1954;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2971';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1954', '1', '16', '0', '144', 'اضافة فاتورة مشتريات', 'buyBillController.php', '20', '36', '1', '2026-10-14 13:20:59','0','0'); -- id=5408
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01954', '144', '158', '1954', '20', '620', '12400.00', '0', '', '2026-10-14 13:31:23', '1954','','','0','0','0','0','0',null,'620','12400','0','0','0','0','0','0','0','0','1'); -- id=868
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:20:59', 1, 1954, 0, 0
                    , 620, 20, 0, 0, 1, '2026-10-14 13:31:23')
                ON DUPLICATE KEY UPDATE buyprice = 620,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:31:23' ; -- id=1143
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1954', '620', '20', '0', 'buyBillController.php', '868', '', '0', '0'); -- id=655
UPDATE product SET  productBuyPrice = "620" WHERE productId = 1954 ;
UPDATE buybilldetail SET  quantitybefore = 36 WHERE buybilldetailid = 868 ;
UPDATE product SET productName = 'موديلات 650 برو', productDescription = '', productCatId = '158', productBuyPrice = '620.00', productSellAllPrice = '650.00', productSellUnitPrice = '650.00', productSellHalfPrice = '650.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01954',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '620',lastbuyprice_withDiscount = '620',meanbuyprice = '620',meanbuyprice_withDiscount = '620' , productbuypricereal = '620.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.84' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='620',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='620',meanbuyprice_withTax='620',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='620',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1954';
UPDATE buybilldetail SET  lastbuyprice = 620 , meanbuyprice = 620, lastbuyprice_withDiscount = 620, meanbuyprice_withDiscount = 620
        , lastbuyprice_withTax = 620, meanbuyprice_withTax = 620, lastbuyprice_withDiscountAndTax = 620
                where buybilldetailid = 868;
UPDATE productunit SET proUnitBuyPrice  = 620 * productnumber WHERE productid = 1954;
UPDATE storedetail SET  productquantity = '56', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2971';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1954', '1', '20', '0', '144', 'اضافة فاتورة مشتريات', 'buyBillController.php', '36', '56', '1', '2026-10-14 13:20:59','0','0'); -- id=5409
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01955', '144', '158', '1955', '20', '650', '13000.00', '0', '', '2026-10-14 13:31:23', '1955','','','0','0','0','0','0',null,'650','13000','0','0','0','0','0','0','0','0','1'); -- id=869
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:20:59', 1, 1955, 0, 0
                    , 650, 20, 0, 0, 1, '2026-10-14 13:31:23')
                ON DUPLICATE KEY UPDATE buyprice = 650,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:31:23' ; -- id=1146
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1955', '650', '20', '0', 'buyBillController.php', '869', '', '0', '0'); -- id=656
UPDATE product SET  productBuyPrice = "650" WHERE productId = 1955 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 869 ;
UPDATE product SET productName = 'كود 1036 برو', productDescription = '', productCatId = '158', productBuyPrice = '650.00', productSellAllPrice = '680.00', productSellUnitPrice = '680.00', productSellHalfPrice = '680.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01955',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '650',lastbuyprice_withDiscount = '650',meanbuyprice = '650',meanbuyprice_withDiscount = '650' , productbuypricereal = '650.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.62' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='650',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='650',meanbuyprice_withTax='650',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='650',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1955';
UPDATE buybilldetail SET  lastbuyprice = 650 , meanbuyprice = 650, lastbuyprice_withDiscount = 650, meanbuyprice_withDiscount = 650
        , lastbuyprice_withTax = 650, meanbuyprice_withTax = 650, lastbuyprice_withDiscountAndTax = 650
                where buybilldetailid = 869;
UPDATE productunit SET proUnitBuyPrice  = 650 * productnumber WHERE productid = 1955;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2972';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1955', '1', '20', '0', '144', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 13:20:59','0','0'); -- id=5410
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01956', '144', '158', '1956', '24', '550', '13200.00', '0', '', '2026-10-14 13:31:23', '1956','','','0','0','0','0','0',null,'550','13200','0','0','0','0','0','0','0','0','1'); -- id=870
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:20:59', 1, 1956, 0, 0
                    , 550, 24, 0, 0, 1, '2026-10-14 13:31:23')
                ON DUPLICATE KEY UPDATE buyprice = 550,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:31:23' ; -- id=1147
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1956', '550', '24', '0', 'buyBillController.php', '870', '', '0', '0'); -- id=657
UPDATE product SET  productBuyPrice = "550" WHERE productId = 1956 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 870 ;
UPDATE product SET productName = 'موديلات 580 برو', productDescription = '', productCatId = '158', productBuyPrice = '550.00', productSellAllPrice = '580.00', productSellUnitPrice = '580.00', productSellHalfPrice = '580.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01956',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '550',meanbuyprice = '550',meanbuyprice_withDiscount = '550' , productbuypricereal = '550.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.45' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='550',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1956';
UPDATE buybilldetail SET  lastbuyprice = 550 , meanbuyprice = 550, lastbuyprice_withDiscount = 550, meanbuyprice_withDiscount = 550
        , lastbuyprice_withTax = 550, meanbuyprice_withTax = 550, lastbuyprice_withDiscountAndTax = 550
                where buybilldetailid = 870;
UPDATE productunit SET proUnitBuyPrice  = 550 * productnumber WHERE productid = 1956;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2973';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1956', '1', '24', '0', '144', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 13:20:59','0','0'); -- id=5411
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01956', '144', '158', '1956', '24', '550', '13200.00', '0', '', '2026-10-14 13:31:23', '1956','','','0','0','0','0','0',null,'550','13200','0','0','0','0','0','0','0','0','1'); -- id=871
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:20:59', 1, 1956, 0, 0
                    , 550, 24, 0, 0, 1, '2026-10-14 13:31:23')
                ON DUPLICATE KEY UPDATE buyprice = 550,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:31:23' ; -- id=1147
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1956', '550', '24', '0', 'buyBillController.php', '871', '', '0', '0'); -- id=658
UPDATE product SET  productBuyPrice = "550" WHERE productId = 1956 ;
UPDATE buybilldetail SET  quantitybefore = 24 WHERE buybilldetailid = 871 ;
UPDATE product SET productName = 'موديلات 580 برو', productDescription = '', productCatId = '158', productBuyPrice = '550.00', productSellAllPrice = '580.00', productSellUnitPrice = '580.00', productSellHalfPrice = '580.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01956',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '550',meanbuyprice = '550',meanbuyprice_withDiscount = '550' , productbuypricereal = '550.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.45' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='550',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1956';
UPDATE buybilldetail SET  lastbuyprice = 550 , meanbuyprice = 550, lastbuyprice_withDiscount = 550, meanbuyprice_withDiscount = 550
        , lastbuyprice_withTax = 550, meanbuyprice_withTax = 550, lastbuyprice_withDiscountAndTax = 550
                where buybilldetailid = 871;
UPDATE productunit SET proUnitBuyPrice  = 550 * productnumber WHERE productid = 1956;
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2973';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1956', '1', '24', '0', '144', 'اضافة فاتورة مشتريات', 'buyBillController.php', '24', '48', '1', '2026-10-14 13:20:59','0','0'); -- id=5412
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01957', '144', '158', '1957', '20', '630', '12600.00', '0', '', '2026-10-14 13:31:23', '1957','','','0','0','0','0','0',null,'630','12600','0','0','0','0','0','0','0','0','1'); -- id=872
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:20:59', 1, 1957, 0, 0
                    , 630, 20, 0, 0, 1, '2026-10-14 13:31:23')
                ON DUPLICATE KEY UPDATE buyprice = 630,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:31:23' ; -- id=1149
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1957', '630', '20', '0', 'buyBillController.php', '872', '', '0', '0'); -- id=659
UPDATE product SET  productBuyPrice = "630" WHERE productId = 1957 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 872 ;
UPDATE product SET productName = 'كود 1008 برو', productDescription = '', productCatId = '158', productBuyPrice = '630.00', productSellAllPrice = '660.00', productSellUnitPrice = '660.00', productSellHalfPrice = '660.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01957',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '630',lastbuyprice_withDiscount = '630',meanbuyprice = '630',meanbuyprice_withDiscount = '630' , productbuypricereal = '630.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.76' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='630',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='630',meanbuyprice_withTax='630',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='630',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1957';
UPDATE buybilldetail SET  lastbuyprice = 630 , meanbuyprice = 630, lastbuyprice_withDiscount = 630, meanbuyprice_withDiscount = 630
        , lastbuyprice_withTax = 630, meanbuyprice_withTax = 630, lastbuyprice_withDiscountAndTax = 630
                where buybilldetailid = 872;
UPDATE productunit SET proUnitBuyPrice  = 630 * productnumber WHERE productid = 1957;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2974';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1957', '1', '20', '0', '144', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 13:20:59','0','0'); -- id=5413
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01953', '144', '158', '1953', '32', '520', '16640.00', '0', '', '2026-10-14 13:31:23', '1953','','','0','0','0','0','0',null,'520','16640','0','0','0','0','0','0','0','0','1'); -- id=873
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:20:59', 1, 1953, 0, 0
                    , 520, 32, 0, 0, 1, '2026-10-14 13:31:23')
                ON DUPLICATE KEY UPDATE buyprice = 520,
                        buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:31:23' ; -- id=1142
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1953', '520', '32', '0', 'buyBillController.php', '873', '', '0', '0'); -- id=660
UPDATE product SET  productBuyPrice = "520" WHERE productId = 1953 ;
UPDATE buybilldetail SET  quantitybefore = 20 WHERE buybilldetailid = 873 ;
UPDATE product SET productName = 'موديلات 550 برو', productDescription = '', productCatId = '158', productBuyPrice = '520.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01953',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '520',lastbuyprice_withDiscount = '520',meanbuyprice = '520',meanbuyprice_withDiscount = '520' , productbuypricereal = '520.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.77' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='520',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='520',meanbuyprice_withTax='520',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='520',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1953';
UPDATE buybilldetail SET  lastbuyprice = 520 , meanbuyprice = 520, lastbuyprice_withDiscount = 520, meanbuyprice_withDiscount = 520
        , lastbuyprice_withTax = 520, meanbuyprice_withTax = 520, lastbuyprice_withDiscountAndTax = 520
                where buybilldetailid = 873;
UPDATE productunit SET proUnitBuyPrice  = 520 * productnumber WHERE productid = 1953;
UPDATE storedetail SET  productquantity = '52', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2970';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1953', '1', '32', '0', '144', 'اضافة فاتورة مشتريات', 'buyBillController.php', '20', '52', '1', '2026-10-14 13:20:59','0','0'); -- id=5414
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01958', '144', '158', '1958', '20', '470', '9400.00', '0', '', '2026-10-14 13:31:23', '1958','','','0','0','0','0','0',null,'470','9400','0','0','0','0','0','0','0','0','1'); -- id=874
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:20:59', 1, 1958, 0, 0
                    , 470, 20, 0, 0, 1, '2026-10-14 13:31:23')
                ON DUPLICATE KEY UPDATE buyprice = 470,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:31:23' ; -- id=1151
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1958', '470', '20', '0', 'buyBillController.php', '874', '', '0', '0'); -- id=661
UPDATE product SET  productBuyPrice = "470" WHERE productId = 1958 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 874 ;
UPDATE product SET productName = 'كود 1031 برو', productDescription = '', productCatId = '158', productBuyPrice = '470.00', productSellAllPrice = '500.00', productSellUnitPrice = '500.00', productSellHalfPrice = '500.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01958',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '470',lastbuyprice_withDiscount = '470',meanbuyprice = '470',meanbuyprice_withDiscount = '470' , productbuypricereal = '470.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.38' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='470',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='470',meanbuyprice_withTax='470',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='470',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1958';
UPDATE buybilldetail SET  lastbuyprice = 470 , meanbuyprice = 470, lastbuyprice_withDiscount = 470, meanbuyprice_withDiscount = 470
        , lastbuyprice_withTax = 470, meanbuyprice_withTax = 470, lastbuyprice_withDiscountAndTax = 470
                where buybilldetailid = 874;
UPDATE productunit SET proUnitBuyPrice  = 470 * productnumber WHERE productid = 1958;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2975';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1958', '1', '20', '0', '144', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 13:20:59','0','0'); -- id=5415
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01959', '144', '158', '1959', '16', '490', '7840.00', '0', '', '2026-10-14 13:31:23', '1959','','','0','0','0','0','0',null,'490','7840','0','0','0','0','0','0','0','0','1'); -- id=875
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 13:20:59', 1, 1959, 0, 0
                    , 490, 16, 0, 0, 1, '2026-10-14 13:31:23')
                ON DUPLICATE KEY UPDATE buyprice = 490,
                        buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 13:31:23' ; -- id=1152
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1959', '490', '16', '0', 'buyBillController.php', '875', '', '0', '0'); -- id=662
UPDATE product SET  productBuyPrice = "490" WHERE productId = 1959 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 875 ;
UPDATE product SET productName = 'كود 1023 برو', productDescription = '', productCatId = '158', productBuyPrice = '490.00', productSellAllPrice = '520.00', productSellUnitPrice = '520.00', productSellHalfPrice = '520.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01959',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '490',lastbuyprice_withDiscount = '490',meanbuyprice = '490',meanbuyprice_withDiscount = '490' , productbuypricereal = '490.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.12' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='490',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='490',meanbuyprice_withTax='490',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='490',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1959';
UPDATE buybilldetail SET  lastbuyprice = 490 , meanbuyprice = 490, lastbuyprice_withDiscount = 490, meanbuyprice_withDiscount = 490
        , lastbuyprice_withTax = 490, meanbuyprice_withTax = 490, lastbuyprice_withDiscountAndTax = 490
                where buybilldetailid = 875;
UPDATE productunit SET proUnitBuyPrice  = 490 * productnumber WHERE productid = 1959;
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2976';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1959', '1', '16', '0', '144', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '16', '1', '2026-10-14 13:20:59','0','0'); -- id=5416
UPDATE supplier SET  suppliercurrentDebt = '107160',suppliercurrentDebtInCurrency= '107160' , userid = '1', supplierdate = '2026-10-14 13:31:23'   WHERE supplierid = '137';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('137', '-62000.00', '169160', '0', 'اضافة فاتورة مشتريات', '144', '107160', '2026-10-14 13:20:59', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','169160','1','-62000','169160','107160','0',''); -- id=472
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '169160', '169160', '2026-10-14', '1', '0', '0', '2026-10-14 13:31:23','اضافة فاتورة مشتريات رقم 144','1','0',null,'0','144','buyBillController.php?do=details&id=144'); -- id=2361
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2361', '382', '169160', '','0'); -- id=2414
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22016868.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2361', '620', '169160', '','0'); -- id=2363
UPDATE accountstree SET name = 'برو', customName = 'برو', customNameEn = 'برو', nameEn = 'برو', parent = '81', accountNature = '1', theValue = '107160', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-09 21:09:52' WHERE id = '620';
update buybill set dailyentryid='2361,0' where buybillid=144;
COMMIT;
UPDATE product SET overAllAveragePrice = 480 WHERE productId = 1949;UPDATE product SET overAllAveragePrice = 500 WHERE productId = 1950;UPDATE product SET overAllAveragePrice = 450 WHERE productId = 1951;UPDATE product SET overAllAveragePrice = 570 WHERE productId = 1952;UPDATE product SET overAllAveragePrice = 520 WHERE productId = 1953;UPDATE product SET overAllAveragePrice = 620 WHERE productId = 1954;UPDATE product SET overAllAveragePrice = 650 WHERE productId = 1955;UPDATE product SET overAllAveragePrice = 550 WHERE productId = 1956;UPDATE product SET overAllAveragePrice = 630 WHERE productId = 1957;UPDATE product SET overAllAveragePrice = 470 WHERE productId = 1958;UPDATE product SET overAllAveragePrice = 490 WHERE productId = 1959;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:01:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:31:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 13:31:23', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=144'); -- id=9175
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:01:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:31:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:31:32', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=144&type=2'); -- id=9176
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:02:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:32:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:32:10', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9177
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:04:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:34:52", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 13:34:52', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9178

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf5734d0f50
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 13:34:52', '06acf5734d0f50', '1', '0.00', '0', '0', '1', '4950.00', '4950', '4950', '0', '1', '2026-10-14 13:34:52', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '12' ,'0','','','','','-1','0','0','0','0','0','4950','0','','0','0','4950','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=513
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','513', '0', '2026-10-14 13:34:52', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '4950', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 13:34:52','0','0','',''); -- id=658
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 72;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('350','i0001380', '513', '94', '1380', '9', '400', '3600', '0', '', '0', '2026-10-14 13:34:52', '1380', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','72-9,','1','1','0','0','400','3600','0','','0','0.00','0','0','0','0'); -- id=1836
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 350.00, meanbuyprice_withDiscount = 350.00
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 350
                where sellbilldetailid = 1836;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1380, '2026-10-14', 3600, 3150, 3150
                    , 3150, 3150, 3150, 3150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3150, 3150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3600, sellCostBuyPrice =sellCostBuyPrice+3150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3600, 3150, 3150
                    , 3150, 3150, 3150, 3150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3150, 3150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3600, sellCostBuyPrice =sellCostBuyPrice+3150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '534', userid = '3', storedetaildate = '2026-10-14 13:34:52' WHERE storedetailid = '1380';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1380', '1', '9', '1', '513', 'اضافة فاتورة مبيعات', 'sellbillController.php', '543', '534', '3', '2026-10-14 13:34:52','0','0'); -- id=5417
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 1080;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('425','01919', '513', '153', '1919', '3', '450', '1350', '0', '', '0', '2026-10-14 13:34:52', '1919', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1080-3,','1','1','0','0','450','1350','0','','0','0.00','0','0','0','0'); -- id=1837
UPDATE sellbilldetail SET  lastbuyprice = 425.00 , meanbuyprice = 425.00, lastbuyprice_withDiscount = 425.00, meanbuyprice_withDiscount = 425.00
        , lastbuyprice_withTax = 425, meanbuyprice_withTax = 425, lastbuyprice_withDiscountAndTax = 425
                where sellbilldetailid = 1837;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1919, '2026-10-14', 1350, 1275, 1275
                    , 1275, 1275, 1275, 1275
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1275, 1275, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1350, sellCostBuyPrice =sellCostBuyPrice+1275
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1275, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1275
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1275, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1275
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1275
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1275
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1275
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1350, 1275, 1275
                    , 1275, 1275, 1275, 1275
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1275, 1275, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1350, sellCostBuyPrice =sellCostBuyPrice+1275
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1275, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1275
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1275, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1275
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1275
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1275
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1275
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '318', userid = '3', storedetaildate = '2026-10-14 13:34:52' WHERE storedetailid = '2936';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '1', '3', '1', '513', 'اضافة فاتورة مبيعات', 'sellbillController.php', '321', '318', '3', '2026-10-14 13:34:52','0','0'); -- id=5418
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3225405',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3220455','4950', '0', '2', 'اضافة فاتورة مبيعات', '513', '3225405', '2026-10-14 13:34:52', '3',  'sellbillController.php','1','','0'); -- id=650
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '4950', '4950', '2026-10-14', '3', '0', '0', '2026-10-14 13:34:52','اضافة فاتورة مبيعات رقم 513','1','0',null,'0','513','sellbillController.php?do=showDetail&sellbillid=513'); -- id=2362
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2362', '419', '4950', '','0'); -- id=2415
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3225405', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2362', '143', '4950', '','0'); -- id=2364
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5377415', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '4425', '4425', '2026-10-14', '3', '0', '0', '2026-10-14 13:34:52','اضافة فاتورة مبيعات رقم 513 - صرف البضاعة من المخزن','1','0',null,'0','513','sellbillController.php?do=showDetail&sellbillid=513'); -- id=2363
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2363', '402', '4425', '','0'); -- id=2416
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5021983.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2363', '382', '4425', '','0'); -- id=2365
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22012443.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2362,0,2363' where sellbillid=513;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 4950, 4425, 4425
                    , 4425, 4425, 4425, 4425
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,4425, 4425, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4950, sellCostBuyPrice =sellCostBuyPrice+4425
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4425, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4425
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4425, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4425
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4425
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4425
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4425
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4950, 4425, 4425
                    , 4425, 4425, 4425, 4425
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,4425, 4425, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4950, sellCostBuyPrice =sellCostBuyPrice+4425
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4425, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4425
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4425, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4425
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4425
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4425
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4425
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 4950, 4425, 4425
                    , 4425, 4425, 4425, 4425, 4425, 4425)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+4950, netSellCostBuyPrice = netSellCostBuyPrice+4425
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+4425
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+4425
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+4425
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+4425
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+4425
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+4425
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+4425;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf5734d0f50 and sellbillId = 513 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:04:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:34:52", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 13:34:52', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9179
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:09:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:39:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:39:47', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=144&type=2'); -- id=9180
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:09:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:39:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 13:39:57', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=144'); -- id=9181
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:10:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:40:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 13:40:04', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9182
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:23:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:53:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:53:23', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9183
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:23:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:53:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:53:28', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9184
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:24:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:54:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 13:54:24', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9185
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:24:36";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:54:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 13:54:36', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9186
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:24:40";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:54:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 13:54:40', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9187
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:28:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:58:30", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 13:58:30', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9188
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 10:28:30";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 13:58:30', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9189
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:29:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:59:04", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 13:59:04', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9190

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf5acc74623
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 13:59:04', '06acf5acc74623', '1', '0.00', '0', '0', '1', '3540.00', '3540', '3540', '0', '1', '2026-10-14 13:59:04', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '12' ,'0','','','','','-1','0','0','0','0','0','3540','0','','0','0','3540','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=514
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','514', '0', '2026-10-14 13:59:04', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '3540', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 13:59:04','0','0','',''); -- id=659
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 73;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('260','01381', '514', '94', '1381', '12', '295', '3540', '0', '', '0', '2026-10-14 13:59:04', '1381', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','73-12,','1','1','0','0','295','3540','0','','0','0.00','0','0','0','0'); -- id=1838
UPDATE sellbilldetail SET  lastbuyprice = 260.00 , meanbuyprice = 260.00, lastbuyprice_withDiscount = 260.00, meanbuyprice_withDiscount = 260.00
        , lastbuyprice_withTax = 260, meanbuyprice_withTax = 260, lastbuyprice_withDiscountAndTax = 260
                where sellbilldetailid = 1838;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1381, '2026-10-14', 3540, 3120, 3120
                    , 3120, 3120, 3120, 3120
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 3120, 3120, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3540, sellCostBuyPrice =sellCostBuyPrice+3120
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3120, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3120
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3120, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3120
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3120
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3120
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3120
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3540, 3120, 3120
                    , 3120, 3120, 3120, 3120
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3120, 3120, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3540, sellCostBuyPrice =sellCostBuyPrice+3120
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3120, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3120
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3120, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3120
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3120
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3120
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3120
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '267', userid = '3', storedetaildate = '2026-10-14 13:59:04' WHERE storedetailid = '1381';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1381', '1', '12', '1', '514', 'اضافة فاتورة مبيعات', 'sellbillController.php', '279', '267', '3', '2026-10-14 13:59:04','0','0'); -- id=5419
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3228945',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3225405','3540', '0', '2', 'اضافة فاتورة مبيعات', '514', '3228945', '2026-10-14 13:59:04', '3',  'sellbillController.php','1','','0'); -- id=651
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '3540', '3540', '2026-10-14', '3', '0', '0', '2026-10-14 13:59:04','اضافة فاتورة مبيعات رقم 514','1','0',null,'0','514','sellbillController.php?do=showDetail&sellbillid=514'); -- id=2364
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2364', '419', '3540', '','0'); -- id=2417
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3228945', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2364', '143', '3540', '','0'); -- id=2366
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5380955', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '3120', '3120', '2026-10-14', '3', '0', '0', '2026-10-14 13:59:04','اضافة فاتورة مبيعات رقم 514 - صرف البضاعة من المخزن','1','0',null,'0','514','sellbillController.php?do=showDetail&sellbillid=514'); -- id=2365
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2365', '402', '3120', '','0'); -- id=2418
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5025103.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2365', '382', '3120', '','0'); -- id=2367
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22009323.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2364,0,2365' where sellbillid=514;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 3540, 3120, 3120
                    , 3120, 3120, 3120, 3120
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,3120, 3120, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3540, sellCostBuyPrice =sellCostBuyPrice+3120
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3120, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3120
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3120, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3120
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3120
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3120
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3120
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3540, 3120, 3120
                    , 3120, 3120, 3120, 3120
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,3120, 3120, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3540, sellCostBuyPrice =sellCostBuyPrice+3120
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3120, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3120
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3120, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3120
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3120
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3120
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3120
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 3540, 3120, 3120
                    , 3120, 3120, 3120, 3120, 3120, 3120)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+3540, netSellCostBuyPrice = netSellCostBuyPrice+3120
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+3120
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+3120
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+3120
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+3120
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+3120
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+3120
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+3120;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf5acc74623 and sellbillId = 514 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:29:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:59:04", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 13:59:04', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9191
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:29:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:59:16", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 13:59:16', '3', 'showDetail', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=showDetail&sellbillid=514'); -- id=9192
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:29:21";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 13:59:21", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 13:59:21', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9193
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:30:51";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:00:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:00:51', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9194
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:33:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:03:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 14:03:03', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9195
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 10:33:03";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 14:03:03', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9196
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:33:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:03:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 14:03:11', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9197
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:33:18";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:03:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 14:03:18', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9198
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:33:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:03:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 14:03:43', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9199
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:33:51";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:03:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 14:03:51', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9200
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:35:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:05:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 14:05:16', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9201
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 10:35:16";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 14:05:16', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9202
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:35:18";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:05:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:05:18', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9203
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:35:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:05:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:05:59', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9204
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:40:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:10:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 14:10:34', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9205
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:40:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:10:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 14:10:42', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9206
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:40:53";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:10:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 14:10:53', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9207
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:40:58";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:10:58", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-10-14 14:10:58', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/savedailyController.php'); -- id=9208
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:40:58";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:10:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 14:10:58', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9209
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:41:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:11:35", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 14:11:35', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9210
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:42:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:12:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierDeficitController.php', '2026-10-14 14:12:45', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierDeficitController.php'); -- id=9211
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:43:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:13:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierDeficitController.php', '2026-10-14 14:13:04', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierDeficitController.php?do=add'); -- id=9212
BEGIN;
CALL supplierInUse(68,@supplierdebt,@suppliername,@dailyentryid,@treeIdis);
UPDATE supplier SET  suppliercurrentDebt = '162185',suppliercurrentDebtInCurrency= '162185' , userid = '1', supplierdate = '26-10-14'   WHERE supplierid = '68';
UPDATE supplier SET  inUse = 0 where supplierid = 68;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '24000', '24000', '2026-10-14', '1', '0', '0', '2026-10-14 14:13:04','تسوية عجز مورد بالخصم','1','0','0','0','0',''); -- id=2366
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2366', '487', '24000', '','0'); -- id=2419
UPDATE accountstree SET name = 'بريشكا - مورد', customName = 'بريشكا - مورد', customNameEn = 'بريشكا - مورد', nameEn = 'بريشكا - مورد', parent = '81', accountNature = '1', theValue = '-44000', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '487';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2366', '146', '24000', '','0'); -- id=2368
UPDATE accountstree SET name = 'ايرادات الخصم المكتسب', customName = 'ايرادات الخصم المكتسب', customNameEn = 'Acquired Discount Revenues', nameEn = 'Acquired Discount Revenues', parent = '147', accountNature = '1', theValue = '5528395', theOrder = '0', layingOrder = '4203', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Other Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:41' WHERE id = '146';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('68', '186185.00', '24000', '1', 'تسوية عجز مورد بالخصم', '-1', '162185', '2026-10-14 14:13:04', '1', 'supplierDeficitController.php', 'خصم مكتب + رجاله', '2366','', '0','1','1','24000','1','0','0','0','0',''); -- id=473
UPDATE supplierdebtchange SET supplierid = '68', supplierdebtchangebefore = '186185.00', supplierdebtchangeamount = '24000', supplierdebtchangetype = '1', processname = 'تسوية عجز مورد بالخصم', supplierdebtchangemodelid = '-1', supplierdebtchangeafter = '162185', supplierdebtchangedate = '2026-10-14 14:13:04', userid = '1', tablename = 'supplierDeficitController.php', comment = 'خصم مكتب + رجاله', dailyentryid = '2366',saveid = '',currencyId='1',conversionFactor='1',payedInCurrency='24000',saveConversionFactor='1',debtchangbeforeInSupplierCurrency='162185',debtchangamountInSupplierCurrency='24000',debtchangafterInSupplierCurrency='162185', paySerialNo='0',tagids='' WHERE supplierdebtchangeid = '473';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:43:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:13:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierDeficitController.php', '2026-10-14 14:13:05', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierDeficitController.php?do=sucess'); -- id=9213
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:43:06";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:13:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierDeficitController.php', '2026-10-14 14:13:06', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierDeficitController.php?do=show'); -- id=9214
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:43:20";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:13:20", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-10-14 14:13:20', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/savedailyController.php'); -- id=9215
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:43:20";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:13:20", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 14:13:20', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9216
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:43:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:13:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 14:13:26', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9217
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:45:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:15:23", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 14:15:23', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9218
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:50:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:20:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:20:02', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9219
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:50:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:20:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:20:14', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9220
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:51:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:21:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 14:21:31', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php'); -- id=9221
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:51:36";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:21:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:21:36', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9222
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:51:46";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:21:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:21:46', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9223
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:53:55";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:23:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:23:55', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9224
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:54:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:24:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:24:34', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9225
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:54:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:24:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:24:50', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9226
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:55:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:25:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:25:12', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9227
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:55:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:25:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:25:52', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9228
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:57:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:27:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:27:12', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9229
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:58:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:28:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 14:28:56', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php'); -- id=9230
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:59:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:29:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 14:29:24', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php?do=show'); -- id=9231
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 10:59:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:29:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 14:29:32', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php'); -- id=9232
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:01:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:31:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:31:30', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9233
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('فولكانو جينز 1254','','28','500','520','520','520','2026-10-14','0','1','0','','0','0','0','0','0','500','500','500','500','500','0','4','0','0','.','0','0','0','500','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','500','500','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','500','0','0','0','0','0','0','','','0','0','0','0'); -- id=1961
UPDATE product SET productName = 'فولكانو جينز 1254', productDescription = '', productCatId = '28', productBuyPrice = '500', productSellAllPrice = '520', productSellUnitPrice = '520', productSellHalfPrice = '520', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01961',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500' , buypricereal_precentage = '0' , buytotal_precentage = '4' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1961';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1961', '1', '2026-10-14', '1', '0','0196101','520','520','520','500','','0','0','0','0','0','0','0','0','0','0'); -- id=1961
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1961', '1', '0', '1', '2026-10-14'); -- id=2978
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1961', '1', '0', '0', '1961', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5420
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1961, 1,'2026-10-14 14:31:30',1)
                ON DUPLICATE KEY UPDATE productid = 1961, edited = 1, sysdate = '2026-10-14 14:31:30', userid = 1; -- id=2905
UPDATE product SET productName = 'فولكانو جينز 1254', productDescription = '', productCatId = '28', productBuyPrice = '500.00', productSellAllPrice = '520.00', productSellUnitPrice = '520.00', productSellHalfPrice = '520.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01961',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500' , buypricereal_precentage = '0' , buytotal_precentage = '4' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1961';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('فولكانو جينز 730','','28','650','670','670','670','2026-10-14','0','1','0','','0','0','0','0','0','650','650','650','650','650','0','3.08','0','0','.','0','0','0','650','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','650','650','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','650','0','0','0','0','0','0','','','0','0','0','0'); -- id=1962
UPDATE product SET productName = 'فولكانو جينز 730', productDescription = '', productCatId = '28', productBuyPrice = '650', productSellAllPrice = '670', productSellUnitPrice = '670', productSellHalfPrice = '670', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01962',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '650',lastbuyprice_withDiscount = '650',meanbuyprice = '650',meanbuyprice_withDiscount = '650' , productbuypricereal = '650' , buypricereal_precentage = '0' , buytotal_precentage = '3.08' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='650',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='650',meanbuyprice_withTax='650',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='650',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1962';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1962', '1', '2026-10-14', '1', '0','0196201','670','670','670','650','','0','0','0','0','0','0','0','0','0','0'); -- id=1962
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1962', '1', '0', '1', '2026-10-14'); -- id=2979
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1962', '1', '0', '0', '1962', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5421
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1962, 1,'2026-10-14 14:31:31',1)
                ON DUPLICATE KEY UPDATE productid = 1962, edited = 1, sysdate = '2026-10-14 14:31:31', userid = 1; -- id=2906
UPDATE product SET productName = 'فولكانو جينز 730', productDescription = '', productCatId = '28', productBuyPrice = '650.00', productSellAllPrice = '670.00', productSellUnitPrice = '670.00', productSellHalfPrice = '670.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01962',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '650',lastbuyprice_withDiscount = '650',meanbuyprice = '650',meanbuyprice_withDiscount = '650' , productbuypricereal = '650' , buypricereal_precentage = '0' , buytotal_precentage = '3.08' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='650',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='650',meanbuyprice_withTax='650',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='650',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1962';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('فولكانو جينز 710','','28','700','720','720','720','2026-10-14','0','1','0','','0','0','0','0','0','700','700','700','700','700','0','2.86','0','0','.','0','0','0','700','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','700','700','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','700','0','0','0','0','0','0','','','0','0','0','0'); -- id=1963
UPDATE product SET productName = 'فولكانو جينز 710', productDescription = '', productCatId = '28', productBuyPrice = '700', productSellAllPrice = '720', productSellUnitPrice = '720', productSellHalfPrice = '720', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01963',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '700',lastbuyprice_withDiscount = '700',meanbuyprice = '700',meanbuyprice_withDiscount = '700' , productbuypricereal = '700' , buypricereal_precentage = '0' , buytotal_precentage = '2.86' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='700',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='700',meanbuyprice_withTax='700',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='700',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1963';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1963', '1', '2026-10-14', '1', '0','0196301','720','720','720','700','','0','0','0','0','0','0','0','0','0','0'); -- id=1963
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1963', '1', '0', '1', '2026-10-14'); -- id=2980
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1963', '1', '0', '0', '1963', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5422
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1963, 1,'2026-10-14 14:31:31',1)
                ON DUPLICATE KEY UPDATE productid = 1963, edited = 1, sysdate = '2026-10-14 14:31:31', userid = 1; -- id=2907
UPDATE product SET productName = 'فولكانو جينز 710', productDescription = '', productCatId = '28', productBuyPrice = '700.00', productSellAllPrice = '720.00', productSellUnitPrice = '720.00', productSellHalfPrice = '720.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01963',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '700',lastbuyprice_withDiscount = '700',meanbuyprice = '700',meanbuyprice_withDiscount = '700' , productbuypricereal = '700' , buypricereal_precentage = '0' , buytotal_precentage = '2.86' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='700',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='700',meanbuyprice_withTax='700',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='700',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1963';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('فولكانو جينز 1557','','28','600','620','620','620','2026-10-14','0','1','0','','0','0','0','0','0','600','600','600','600','600','0','3.33','0','0','.','0','0','0','600','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','600','600','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','600','0','0','0','0','0','0','','','0','0','0','0'); -- id=1964
UPDATE product SET productName = 'فولكانو جينز 1557', productDescription = '', productCatId = '28', productBuyPrice = '600', productSellAllPrice = '620', productSellUnitPrice = '620', productSellHalfPrice = '620', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01964',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '600',meanbuyprice = '600',meanbuyprice_withDiscount = '600' , productbuypricereal = '600' , buypricereal_precentage = '0' , buytotal_precentage = '3.33' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='600',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1964';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1964', '1', '2026-10-14', '1', '0','0196401','620','620','620','600','','0','0','0','0','0','0','0','0','0','0'); -- id=1964
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1964', '1', '0', '1', '2026-10-14'); -- id=2981
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1964', '1', '0', '0', '1964', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5423
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1964, 1,'2026-10-14 14:31:31',1)
                ON DUPLICATE KEY UPDATE productid = 1964, edited = 1, sysdate = '2026-10-14 14:31:31', userid = 1; -- id=2908
UPDATE product SET productName = 'فولكانو جينز 1557', productDescription = '', productCatId = '28', productBuyPrice = '600.00', productSellAllPrice = '620.00', productSellUnitPrice = '620.00', productSellHalfPrice = '620.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01964',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '600',meanbuyprice = '600',meanbuyprice_withDiscount = '600' , productbuypricereal = '600' , buypricereal_precentage = '0' , buytotal_precentage = '3.33' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='600',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1964';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('فولكانو جينز 729','','28','580','600','600','600','2026-10-14','0','1','0','','0','0','0','0','0','580','580','580','580','580','0','3.45','0','0','.','0','0','0','580','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','580','580','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','580','0','0','0','0','0','0','','','0','0','0','0'); -- id=1965
UPDATE product SET productName = 'فولكانو جينز 729', productDescription = '', productCatId = '28', productBuyPrice = '580', productSellAllPrice = '600', productSellUnitPrice = '600', productSellHalfPrice = '600', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01965',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '580',lastbuyprice_withDiscount = '580',meanbuyprice = '580',meanbuyprice_withDiscount = '580' , productbuypricereal = '580' , buypricereal_precentage = '0' , buytotal_precentage = '3.45' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='580',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='580',meanbuyprice_withTax='580',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='580',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1965';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1965', '1', '2026-10-14', '1', '0','0196501','600','600','600','580','','0','0','0','0','0','0','0','0','0','0'); -- id=1965
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1965', '1', '0', '1', '2026-10-14'); -- id=2982
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1965', '1', '0', '0', '1965', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5424
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1965, 1,'2026-10-14 14:31:31',1)
                ON DUPLICATE KEY UPDATE productid = 1965, edited = 1, sysdate = '2026-10-14 14:31:31', userid = 1; -- id=2909
UPDATE product SET productName = 'فولكانو جينز 729', productDescription = '', productCatId = '28', productBuyPrice = '580.00', productSellAllPrice = '600.00', productSellUnitPrice = '600.00', productSellHalfPrice = '600.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01965',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '580',lastbuyprice_withDiscount = '580',meanbuyprice = '580',meanbuyprice_withDiscount = '580' , productbuypricereal = '580' , buypricereal_precentage = '0' , buytotal_precentage = '3.45' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='580',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='580',meanbuyprice_withTax='580',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='580',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1965';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('فولكانو جينز 1509','','28','580','600','600','600','2026-10-14','0','1','0','','0','0','0','0','0','580','580','580','580','580','0','3.45','0','0','.','0','0','0','580','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','580','580','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','580','0','0','0','0','0','0','','','0','0','0','0'); -- id=1966
UPDATE product SET productName = 'فولكانو جينز 1509', productDescription = '', productCatId = '28', productBuyPrice = '580', productSellAllPrice = '600', productSellUnitPrice = '600', productSellHalfPrice = '600', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01966',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '580',lastbuyprice_withDiscount = '580',meanbuyprice = '580',meanbuyprice_withDiscount = '580' , productbuypricereal = '580' , buypricereal_precentage = '0' , buytotal_precentage = '3.45' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='580',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='580',meanbuyprice_withTax='580',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='580',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1966';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1966', '1', '2026-10-14', '1', '0','0196601','600','600','600','580','','0','0','0','0','0','0','0','0','0','0'); -- id=1966
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1966', '1', '0', '1', '2026-10-14'); -- id=2983
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1966', '1', '0', '0', '1966', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5425
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1966, 1,'2026-10-14 14:31:31',1)
                ON DUPLICATE KEY UPDATE productid = 1966, edited = 1, sysdate = '2026-10-14 14:31:31', userid = 1; -- id=2910
UPDATE product SET productName = 'فولكانو جينز 1509', productDescription = '', productCatId = '28', productBuyPrice = '580.00', productSellAllPrice = '600.00', productSellUnitPrice = '600.00', productSellHalfPrice = '600.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01966',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '580',lastbuyprice_withDiscount = '580',meanbuyprice = '580',meanbuyprice_withDiscount = '580' , productbuypricereal = '580' , buypricereal_precentage = '0' , buytotal_precentage = '3.45' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='580',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='580',meanbuyprice_withTax='580',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='580',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1966';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('فولكانو جينز 1321','','28','540','560','560','560','2026-10-14','0','1','0','','0','0','0','0','0','540','540','540','540','540','0','3.7','0','0','.','0','0','0','540','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','540','540','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','540','0','0','0','0','0','0','','','0','0','0','0'); -- id=1967
UPDATE product SET productName = 'فولكانو جينز 1321', productDescription = '', productCatId = '28', productBuyPrice = '540', productSellAllPrice = '560', productSellUnitPrice = '560', productSellHalfPrice = '560', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01967',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '540',meanbuyprice = '540',meanbuyprice_withDiscount = '540' , productbuypricereal = '540' , buypricereal_precentage = '0' , buytotal_precentage = '3.7' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='540',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='540',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1967';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1967', '1', '2026-10-14', '1', '0','0196701','560','560','560','540','','0','0','0','0','0','0','0','0','0','0'); -- id=1967
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1967', '1', '0', '1', '2026-10-14'); -- id=2984
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1967', '1', '0', '0', '1967', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5426
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1967, 1,'2026-10-14 14:31:31',1)
                ON DUPLICATE KEY UPDATE productid = 1967, edited = 1, sysdate = '2026-10-14 14:31:31', userid = 1; -- id=2911
UPDATE product SET productName = 'فولكانو جينز 1321', productDescription = '', productCatId = '28', productBuyPrice = '540.00', productSellAllPrice = '560.00', productSellUnitPrice = '560.00', productSellHalfPrice = '560.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01967',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '540',meanbuyprice = '540',meanbuyprice_withDiscount = '540' , productbuypricereal = '540' , buypricereal_precentage = '0' , buytotal_precentage = '3.7' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='540',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='540',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1967';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('فولكانو جينز 1555','','28','600','620','620','620','2026-10-14','0','1','0','','0','0','0','0','0','600','600','600','600','600','0','3.33','0','0','.','0','0','0','600','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','600','600','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','600','0','0','0','0','0','0','','','0','0','0','0'); -- id=1968
UPDATE product SET productName = 'فولكانو جينز 1555', productDescription = '', productCatId = '28', productBuyPrice = '600', productSellAllPrice = '620', productSellUnitPrice = '620', productSellHalfPrice = '620', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01968',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '600',meanbuyprice = '600',meanbuyprice_withDiscount = '600' , productbuypricereal = '600' , buypricereal_precentage = '0' , buytotal_precentage = '3.33' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='600',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1968';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1968', '1', '2026-10-14', '1', '0','0196801','620','620','620','600','','0','0','0','0','0','0','0','0','0','0'); -- id=1968
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1968', '1', '0', '1', '2026-10-14'); -- id=2985
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1968', '1', '0', '0', '1968', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5427
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1968, 1,'2026-10-14 14:31:31',1)
                ON DUPLICATE KEY UPDATE productid = 1968, edited = 1, sysdate = '2026-10-14 14:31:31', userid = 1; -- id=2912
UPDATE product SET productName = 'فولكانو جينز 1555', productDescription = '', productCatId = '28', productBuyPrice = '600.00', productSellAllPrice = '620.00', productSellUnitPrice = '620.00', productSellHalfPrice = '620.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01968',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '600',meanbuyprice = '600',meanbuyprice_withDiscount = '600' , productbuypricereal = '600' , buypricereal_precentage = '0' , buytotal_precentage = '3.33' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='600',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1968';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('فولكانو جينز 1559','','28','530','550','550','550','2026-10-14','0','1','0','','0','0','0','0','0','530','530','530','530','530','0','3.77','0','0','.','0','0','0','530','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','530','530','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','530','0','0','0','0','0','0','','','0','0','0','0'); -- id=1969
UPDATE product SET productName = 'فولكانو جينز 1559', productDescription = '', productCatId = '28', productBuyPrice = '530', productSellAllPrice = '550', productSellUnitPrice = '550', productSellHalfPrice = '550', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01969',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '530',lastbuyprice_withDiscount = '530',meanbuyprice = '530',meanbuyprice_withDiscount = '530' , productbuypricereal = '530' , buypricereal_precentage = '0' , buytotal_precentage = '3.77' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='530',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='530',meanbuyprice_withTax='530',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='530',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1969';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1969', '1', '2026-10-14', '1', '0','0196901','550','550','550','530','','0','0','0','0','0','0','0','0','0','0'); -- id=1969
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1969', '1', '0', '1', '2026-10-14'); -- id=2986
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1969', '1', '0', '0', '1969', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5428
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1969, 1,'2026-10-14 14:31:31',1)
                ON DUPLICATE KEY UPDATE productid = 1969, edited = 1, sysdate = '2026-10-14 14:31:31', userid = 1; -- id=2913
UPDATE product SET productName = 'فولكانو جينز 1559', productDescription = '', productCatId = '28', productBuyPrice = '530.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01969',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '530',lastbuyprice_withDiscount = '530',meanbuyprice = '530',meanbuyprice_withDiscount = '530' , productbuypricereal = '530' , buypricereal_precentage = '0' , buytotal_precentage = '3.77' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='530',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='530',meanbuyprice_withTax='530',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='530',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1969';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('فولكانو جينز 731','','28','740','760','760','760','2026-10-14','0','1','0','','0','0','0','0','0','740','740','740','740','740','0','2.7','0','0','.','0','0','0','740','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','740','740','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','740','0','0','0','0','0','0','','','0','0','0','0'); -- id=1970
UPDATE product SET productName = 'فولكانو جينز 731', productDescription = '', productCatId = '28', productBuyPrice = '740', productSellAllPrice = '760', productSellUnitPrice = '760', productSellHalfPrice = '760', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01970',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '740',lastbuyprice_withDiscount = '740',meanbuyprice = '740',meanbuyprice_withDiscount = '740' , productbuypricereal = '740' , buypricereal_precentage = '0' , buytotal_precentage = '2.7' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='740',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='740',meanbuyprice_withTax='740',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='740',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1970';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1970', '1', '2026-10-14', '1', '0','0197001','760','760','760','740','','0','0','0','0','0','0','0','0','0','0'); -- id=1970
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1970', '1', '0', '1', '2026-10-14'); -- id=2987
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1970', '1', '0', '0', '1970', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5429
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1970, 1,'2026-10-14 14:31:31',1)
                ON DUPLICATE KEY UPDATE productid = 1970, edited = 1, sysdate = '2026-10-14 14:31:31', userid = 1; -- id=2914
UPDATE product SET productName = 'فولكانو جينز 731', productDescription = '', productCatId = '28', productBuyPrice = '740.00', productSellAllPrice = '760.00', productSellUnitPrice = '760.00', productSellHalfPrice = '760.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01970',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '740',lastbuyprice_withDiscount = '740',meanbuyprice = '740',meanbuyprice_withDiscount = '740' , productbuypricereal = '740' , buypricereal_precentage = '0' , buytotal_precentage = '2.7' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='740',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='740',meanbuyprice_withTax='740',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='740',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1970';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('فولكانو جينز 1560','','28','600','620','620','620','2026-10-14','0','1','0','','0','0','0','0','0','600','600','600','600','600','0','3.33','0','0','.','0','0','0','600','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','600','600','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','600','0','0','0','0','0','0','','','0','0','0','0'); -- id=1971
UPDATE product SET productName = 'فولكانو جينز 1560', productDescription = '', productCatId = '28', productBuyPrice = '600', productSellAllPrice = '620', productSellUnitPrice = '620', productSellHalfPrice = '620', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01971',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '600',meanbuyprice = '600',meanbuyprice_withDiscount = '600' , productbuypricereal = '600' , buypricereal_precentage = '0' , buytotal_precentage = '3.33' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='600',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1971';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1971', '1', '2026-10-14', '1', '0','0197101','620','620','620','600','','0','0','0','0','0','0','0','0','0','0'); -- id=1971
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1971', '1', '0', '1', '2026-10-14'); -- id=2988
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1971', '1', '0', '0', '1971', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5430
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1971, 1,'2026-10-14 14:31:31',1)
                ON DUPLICATE KEY UPDATE productid = 1971, edited = 1, sysdate = '2026-10-14 14:31:31', userid = 1; -- id=2915
UPDATE product SET productName = 'فولكانو جينز 1560', productDescription = '', productCatId = '28', productBuyPrice = '600.00', productSellAllPrice = '620.00', productSellUnitPrice = '620.00', productSellHalfPrice = '620.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01971',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '600',meanbuyprice = '600',meanbuyprice_withDiscount = '600' , productbuypricereal = '600' , buypricereal_precentage = '0' , buytotal_precentage = '3.33' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='600',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1971';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:01:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:31:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:31:32', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9234
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:01:40";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:31:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 14:31:40', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9235
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:02:55";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:32:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:32:55', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9236
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:03:38";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:33:38", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 14:33:38', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9237
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 11:03:38";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 14:33:38', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9238
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:03:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:33:42", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 14:33:42', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9239
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:07:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:37:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:37:01', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9240
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:07:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:37:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:37:14', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9241
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:08:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:38:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:38:24', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9242
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:08:46";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:38:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:38:46', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9243
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:10:09";
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:10:13";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:40:13", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 14:40:13', '6', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9244
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 11:10:13";
UPDATE user SET loginip = "51.89.20.165", lastactivetime = "2026-10-14 14:40:13", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 14:40:13', '6', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9245
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:10:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:40:16", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-10-14 14:40:16', '6', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/savedailyController.php'); -- id=9246
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:10:20";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:40:20", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 14:40:20', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9247
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:10:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:40:39", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 14:40:39', '6', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9248

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf6a242068c
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 14:40:39', '06acf6a242068c', '1', '0.00', '0', '0', '1', '2800.00', '2800', '2800', '0', '1', '2026-10-14 14:40:39', '', '6', '0', 'نقدي', '4', '0', '3', '0', 'نقدي', '4' ,'0','','','','','-1','0','0','0','0','0','2800','0','','0','0','2800','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=515
UPDATE client SET  clientdebt = '0', userid = '6' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','515', '0', '2026-10-14 14:40:39', '6', 'sellbillController.php', 'اضافة فاتورة مبيعات', '2800', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 14:40:39','0','0','',''); -- id=660
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 649;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('700','01736', '515', '133', '1736', '4', '700', '2800', '0', '', '0', '2026-10-14 14:40:39', '1736', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','649-4,','1','1','0','0','700','2800','0','','0','0.00','0','0','0','0'); -- id=1839
UPDATE sellbilldetail SET  lastbuyprice = 700.00 , meanbuyprice = 700.00, lastbuyprice_withDiscount = 700.00, meanbuyprice_withDiscount = 700.00
        , lastbuyprice_withTax = 700, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 700
                where sellbilldetailid = 1839;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1736, '2026-10-14', 2800, 2800, 2800
                    , 2800, 2800, 2800, 2800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 2800, 1400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2800, sellCostBuyPrice =sellCostBuyPrice+2800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2800, 2800, 2800
                    , 2800, 2800, 2800, 2800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2800, 1400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2800, sellCostBuyPrice =sellCostBuyPrice+2800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '36', userid = '6', storedetaildate = '2026-10-14 14:40:39' WHERE storedetailid = '2749';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1736', '1', '4', '1', '515', 'اضافة فاتورة مبيعات', 'sellbillController.php', '40', '36', '6', '2026-10-14 14:40:39','0','0'); -- id=5431
CALL saveInUse(4,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '246880',  userid = '6' WHERE saveid = '4';
UPDATE save SET  inUse = 0 where saveid = 4;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('244080','2800', '0', '4', 'اضافة فاتورة مبيعات', '515', '246880', '2026-10-14 14:40:39', '6',  'sellbillController.php','1','','0'); -- id=652
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '2800', '2800', '2026-10-14', '6', '0', '0', '2026-10-14 14:40:39','اضافة فاتورة مبيعات رقم 515','1','0',null,'0','515','sellbillController.php?do=showDetail&sellbillid=515'); -- id=2367
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2367', '568', '2800', '','0'); -- id=2420
UPDATE accountstree SET name = 'خزنة شروال', customName = 'خزنة شروال', customNameEn = 'خزنة شروال', nameEn = 'خزنة شروال', parent = '40', accountNature = '0', theValue = '246880', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-06 13:37:54' WHERE id = '568';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2367', '143', '2800', '','0'); -- id=2369
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5383755', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '2800', '2800', '2026-10-14', '6', '0', '0', '2026-10-14 14:40:39','اضافة فاتورة مبيعات رقم 515 - صرف البضاعة من المخزن','1','0',null,'0','515','sellbillController.php?do=showDetail&sellbillid=515'); -- id=2368
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2368', '402', '2800', '','0'); -- id=2421
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5027903.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2368', '382', '2800', '','0'); -- id=2370
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22006523.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2367,0,2368' where sellbillid=515;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 2800, 2800, 2800
                    , 2800, 2800, 2800, 2800
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,2800, 1400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2800, sellCostBuyPrice =sellCostBuyPrice+2800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2800, 2800, 2800
                    , 2800, 2800, 2800, 2800
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,2800, 1400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2800, sellCostBuyPrice =sellCostBuyPrice+2800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 2800, 2800, 2800
                    , 2800, 2800, 2800, 2800, 2800, 1400)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+2800, netSellCostBuyPrice = netSellCostBuyPrice+2800
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+2800
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+2800
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+2800
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+2800
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+2800
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+2800
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+1400;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf6a242068c and sellbillId = 515 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:10:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:40:39", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 14:40:39', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9249
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:10:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:40:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 14:40:43', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9250
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf681cef64b', '2026-10-14 14:31:40', '20', '440530.00', '581180', '0', '0', '140650.00',  '140650.00', '0', '140650', '1', '2026-10-14 14:40:43', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=145
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01961', '145', '28', '1961', '30', '500', '15000.00', '0', '', '2026-10-14 14:40:43', '1961','','','0','0','0','0','0',null,'500','15000','0','0','0','0','0','0','0','0','1'); -- id=876
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 14:31:40', 1, 1961, 0, 0
                    , 500, 30, 0, 0, 1, '2026-10-14 14:40:43')
                ON DUPLICATE KEY UPDATE buyprice = 500,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 14:40:43' ; -- id=1153
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1961', '500', '30', '0', 'buyBillController.php', '876', '', '0', '0'); -- id=663
UPDATE product SET  productBuyPrice = "500" WHERE productId = 1961 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 876 ;
UPDATE product SET productName = 'فولكانو جينز 1254', productDescription = '', productCatId = '28', productBuyPrice = '500.00', productSellAllPrice = '520.00', productSellUnitPrice = '520.00', productSellHalfPrice = '520.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01961',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1961';
UPDATE buybilldetail SET  lastbuyprice = 500 , meanbuyprice = 500, lastbuyprice_withDiscount = 500, meanbuyprice_withDiscount = 500
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 500
                where buybilldetailid = 876;
UPDATE productunit SET proUnitBuyPrice  = 500 * productnumber WHERE productid = 1961;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2978';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1961', '1', '30', '0', '145', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 14:31:40','0','0'); -- id=5432
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01962', '145', '28', '1962', '15', '650', '9750.00', '0', '', '2026-10-14 14:40:43', '1962','','','0','0','0','0','0',null,'650','9750','0','0','0','0','0','0','0','0','1'); -- id=877
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 14:31:40', 1, 1962, 0, 0
                    , 650, 15, 0, 0, 1, '2026-10-14 14:40:43')
                ON DUPLICATE KEY UPDATE buyprice = 650,
                        buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 14:40:43' ; -- id=1154
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1962', '650', '15', '0', 'buyBillController.php', '877', '', '0', '0'); -- id=664
UPDATE product SET  productBuyPrice = "650" WHERE productId = 1962 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 877 ;
UPDATE product SET productName = 'فولكانو جينز 730', productDescription = '', productCatId = '28', productBuyPrice = '650.00', productSellAllPrice = '670.00', productSellUnitPrice = '670.00', productSellHalfPrice = '670.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01962',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '650',lastbuyprice_withDiscount = '650',meanbuyprice = '650',meanbuyprice_withDiscount = '650' , productbuypricereal = '650.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.08' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='650',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='650',meanbuyprice_withTax='650',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='650',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1962';
UPDATE buybilldetail SET  lastbuyprice = 650 , meanbuyprice = 650, lastbuyprice_withDiscount = 650, meanbuyprice_withDiscount = 650
        , lastbuyprice_withTax = 650, meanbuyprice_withTax = 650, lastbuyprice_withDiscountAndTax = 650
                where buybilldetailid = 877;
UPDATE productunit SET proUnitBuyPrice  = 650 * productnumber WHERE productid = 1962;
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2979';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1962', '1', '15', '0', '145', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '15', '1', '2026-10-14 14:31:40','0','0'); -- id=5433
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01963', '145', '28', '1963', '10', '700', '7000.00', '0', '', '2026-10-14 14:40:43', '1963','','','0','0','0','0','0',null,'700','7000','0','0','0','0','0','0','0','0','1'); -- id=878
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 14:31:40', 1, 1963, 0, 0
                    , 700, 10, 0, 0, 1, '2026-10-14 14:40:43')
                ON DUPLICATE KEY UPDATE buyprice = 700,
                        buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 14:40:43' ; -- id=1155
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1963', '700', '10', '0', 'buyBillController.php', '878', '', '0', '0'); -- id=665
UPDATE product SET  productBuyPrice = "700" WHERE productId = 1963 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 878 ;
UPDATE product SET productName = 'فولكانو جينز 710', productDescription = '', productCatId = '28', productBuyPrice = '700.00', productSellAllPrice = '720.00', productSellUnitPrice = '720.00', productSellHalfPrice = '720.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01963',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '700',lastbuyprice_withDiscount = '700',meanbuyprice = '700',meanbuyprice_withDiscount = '700' , productbuypricereal = '700.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '2.86' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='700',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='700',meanbuyprice_withTax='700',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='700',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1963';
UPDATE buybilldetail SET  lastbuyprice = 700 , meanbuyprice = 700, lastbuyprice_withDiscount = 700, meanbuyprice_withDiscount = 700
        , lastbuyprice_withTax = 700, meanbuyprice_withTax = 700, lastbuyprice_withDiscountAndTax = 700
                where buybilldetailid = 878;
UPDATE productunit SET proUnitBuyPrice  = 700 * productnumber WHERE productid = 1963;
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2980';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1963', '1', '10', '0', '145', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '10', '1', '2026-10-14 14:31:40','0','0'); -- id=5434
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01964', '145', '28', '1964', '20', '600', '12000.00', '0', '', '2026-10-14 14:40:43', '1964','','','0','0','0','0','0',null,'600','12000','0','0','0','0','0','0','0','0','1'); -- id=879
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 14:31:40', 1, 1964, 0, 0
                    , 600, 20, 0, 0, 1, '2026-10-14 14:40:43')
                ON DUPLICATE KEY UPDATE buyprice = 600,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 14:40:43' ; -- id=1156
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1964', '600', '20', '0', 'buyBillController.php', '879', '', '0', '0'); -- id=666
UPDATE product SET  productBuyPrice = "600" WHERE productId = 1964 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 879 ;
UPDATE product SET productName = 'فولكانو جينز 1557', productDescription = '', productCatId = '28', productBuyPrice = '600.00', productSellAllPrice = '620.00', productSellUnitPrice = '620.00', productSellHalfPrice = '620.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01964',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '600',meanbuyprice = '600',meanbuyprice_withDiscount = '600' , productbuypricereal = '600.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.33' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='600',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1964';
UPDATE buybilldetail SET  lastbuyprice = 600 , meanbuyprice = 600, lastbuyprice_withDiscount = 600, meanbuyprice_withDiscount = 600
        , lastbuyprice_withTax = 600, meanbuyprice_withTax = 600, lastbuyprice_withDiscountAndTax = 600
                where buybilldetailid = 879;
UPDATE productunit SET proUnitBuyPrice  = 600 * productnumber WHERE productid = 1964;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2981';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1964', '1', '20', '0', '145', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 14:31:40','0','0'); -- id=5435
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01965', '145', '28', '1965', '20', '580', '11600.00', '0', '', '2026-10-14 14:40:43', '1965','','','0','0','0','0','0',null,'580','11600','0','0','0','0','0','0','0','0','1'); -- id=880
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 14:31:40', 1, 1965, 0, 0
                    , 580, 20, 0, 0, 1, '2026-10-14 14:40:43')
                ON DUPLICATE KEY UPDATE buyprice = 580,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 14:40:43' ; -- id=1157
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1965', '580', '20', '0', 'buyBillController.php', '880', '', '0', '0'); -- id=667
UPDATE product SET  productBuyPrice = "580" WHERE productId = 1965 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 880 ;
UPDATE product SET productName = 'فولكانو جينز 729', productDescription = '', productCatId = '28', productBuyPrice = '580.00', productSellAllPrice = '600.00', productSellUnitPrice = '600.00', productSellHalfPrice = '600.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01965',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '580',lastbuyprice_withDiscount = '580',meanbuyprice = '580',meanbuyprice_withDiscount = '580' , productbuypricereal = '580.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.45' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='580',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='580',meanbuyprice_withTax='580',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='580',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1965';
UPDATE buybilldetail SET  lastbuyprice = 580 , meanbuyprice = 580, lastbuyprice_withDiscount = 580, meanbuyprice_withDiscount = 580
        , lastbuyprice_withTax = 580, meanbuyprice_withTax = 580, lastbuyprice_withDiscountAndTax = 580
                where buybilldetailid = 880;
UPDATE productunit SET proUnitBuyPrice  = 580 * productnumber WHERE productid = 1965;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2982';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1965', '1', '20', '0', '145', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 14:31:40','0','0'); -- id=5436
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01966', '145', '28', '1966', '20', '580', '11600.00', '0', '', '2026-10-14 14:40:43', '1966','','','0','0','0','0','0',null,'580','11600','0','0','0','0','0','0','0','0','1'); -- id=881
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 14:31:40', 1, 1966, 0, 0
                    , 580, 20, 0, 0, 1, '2026-10-14 14:40:43')
                ON DUPLICATE KEY UPDATE buyprice = 580,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 14:40:43' ; -- id=1158
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1966', '580', '20', '0', 'buyBillController.php', '881', '', '0', '0'); -- id=668
UPDATE product SET  productBuyPrice = "580" WHERE productId = 1966 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 881 ;
UPDATE product SET productName = 'فولكانو جينز 1509', productDescription = '', productCatId = '28', productBuyPrice = '580.00', productSellAllPrice = '600.00', productSellUnitPrice = '600.00', productSellHalfPrice = '600.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01966',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '580',lastbuyprice_withDiscount = '580',meanbuyprice = '580',meanbuyprice_withDiscount = '580' , productbuypricereal = '580.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.45' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='580',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='580',meanbuyprice_withTax='580',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='580',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1966';
UPDATE buybilldetail SET  lastbuyprice = 580 , meanbuyprice = 580, lastbuyprice_withDiscount = 580, meanbuyprice_withDiscount = 580
        , lastbuyprice_withTax = 580, meanbuyprice_withTax = 580, lastbuyprice_withDiscountAndTax = 580
                where buybilldetailid = 881;
UPDATE productunit SET proUnitBuyPrice  = 580 * productnumber WHERE productid = 1966;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2983';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1966', '1', '20', '0', '145', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 14:31:40','0','0'); -- id=5437
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01967', '145', '28', '1967', '15', '540', '8100.00', '0', '', '2026-10-14 14:40:43', '1967','','','0','0','0','0','0',null,'540','8100','0','0','0','0','0','0','0','0','1'); -- id=882
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 14:31:40', 1, 1967, 0, 0
                    , 540, 15, 0, 0, 1, '2026-10-14 14:40:43')
                ON DUPLICATE KEY UPDATE buyprice = 540,
                        buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 14:40:43' ; -- id=1159
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1967', '540', '15', '0', 'buyBillController.php', '882', '', '0', '0'); -- id=669
UPDATE product SET  productBuyPrice = "540" WHERE productId = 1967 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 882 ;
UPDATE product SET productName = 'فولكانو جينز 1321', productDescription = '', productCatId = '28', productBuyPrice = '540.00', productSellAllPrice = '560.00', productSellUnitPrice = '560.00', productSellHalfPrice = '560.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01967',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '540',meanbuyprice = '540',meanbuyprice_withDiscount = '540' , productbuypricereal = '540.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.70' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='540',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='540',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1967';
UPDATE buybilldetail SET  lastbuyprice = 540 , meanbuyprice = 540, lastbuyprice_withDiscount = 540, meanbuyprice_withDiscount = 540
        , lastbuyprice_withTax = 540, meanbuyprice_withTax = 540, lastbuyprice_withDiscountAndTax = 540
                where buybilldetailid = 882;
UPDATE productunit SET proUnitBuyPrice  = 540 * productnumber WHERE productid = 1967;
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2984';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1967', '1', '15', '0', '145', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '15', '1', '2026-10-14 14:31:40','0','0'); -- id=5438
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01968', '145', '28', '1968', '20', '600', '12000.00', '0', '', '2026-10-14 14:40:43', '1968','','','0','0','0','0','0',null,'600','12000','0','0','0','0','0','0','0','0','1'); -- id=883
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 14:31:40', 1, 1968, 0, 0
                    , 600, 20, 0, 0, 1, '2026-10-14 14:40:43')
                ON DUPLICATE KEY UPDATE buyprice = 600,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 14:40:43' ; -- id=1160
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1968', '600', '20', '0', 'buyBillController.php', '883', '', '0', '0'); -- id=670
UPDATE product SET  productBuyPrice = "600" WHERE productId = 1968 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 883 ;
UPDATE product SET productName = 'فولكانو جينز 1555', productDescription = '', productCatId = '28', productBuyPrice = '600.00', productSellAllPrice = '620.00', productSellUnitPrice = '620.00', productSellHalfPrice = '620.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01968',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '600',meanbuyprice = '600',meanbuyprice_withDiscount = '600' , productbuypricereal = '600.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.33' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='600',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1968';
UPDATE buybilldetail SET  lastbuyprice = 600 , meanbuyprice = 600, lastbuyprice_withDiscount = 600, meanbuyprice_withDiscount = 600
        , lastbuyprice_withTax = 600, meanbuyprice_withTax = 600, lastbuyprice_withDiscountAndTax = 600
                where buybilldetailid = 883;
UPDATE productunit SET proUnitBuyPrice  = 600 * productnumber WHERE productid = 1968;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2985';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1968', '1', '20', '0', '145', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 14:31:40','0','0'); -- id=5439
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01969', '145', '28', '1969', '20', '530', '10600.00', '0', '', '2026-10-14 14:40:43', '1969','','','0','0','0','0','0',null,'530','10600','0','0','0','0','0','0','0','0','1'); -- id=884
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 14:31:40', 1, 1969, 0, 0
                    , 530, 20, 0, 0, 1, '2026-10-14 14:40:43')
                ON DUPLICATE KEY UPDATE buyprice = 530,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 14:40:43' ; -- id=1161
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1969', '530', '20', '0', 'buyBillController.php', '884', '', '0', '0'); -- id=671
UPDATE product SET  productBuyPrice = "530" WHERE productId = 1969 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 884 ;
UPDATE product SET productName = 'فولكانو جينز 1559', productDescription = '', productCatId = '28', productBuyPrice = '530.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01969',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '530',lastbuyprice_withDiscount = '530',meanbuyprice = '530',meanbuyprice_withDiscount = '530' , productbuypricereal = '530.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.77' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='530',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='530',meanbuyprice_withTax='530',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='530',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1969';
UPDATE buybilldetail SET  lastbuyprice = 530 , meanbuyprice = 530, lastbuyprice_withDiscount = 530, meanbuyprice_withDiscount = 530
        , lastbuyprice_withTax = 530, meanbuyprice_withTax = 530, lastbuyprice_withDiscountAndTax = 530
                where buybilldetailid = 884;
UPDATE productunit SET proUnitBuyPrice  = 530 * productnumber WHERE productid = 1969;
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2986';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1969', '1', '20', '0', '145', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '20', '1', '2026-10-14 14:31:40','0','0'); -- id=5440
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01970', '145', '28', '1970', '15', '740', '11100.00', '0', '', '2026-10-14 14:40:43', '1970','','','0','0','0','0','0',null,'740','11100','0','0','0','0','0','0','0','0','1'); -- id=885
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 14:31:40', 1, 1970, 0, 0
                    , 740, 15, 0, 0, 1, '2026-10-14 14:40:43')
                ON DUPLICATE KEY UPDATE buyprice = 740,
                        buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 14:40:43' ; -- id=1162
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1970', '740', '15', '0', 'buyBillController.php', '885', '', '0', '0'); -- id=672
UPDATE product SET  productBuyPrice = "740" WHERE productId = 1970 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 885 ;
UPDATE product SET productName = 'فولكانو جينز 731', productDescription = '', productCatId = '28', productBuyPrice = '740.00', productSellAllPrice = '760.00', productSellUnitPrice = '760.00', productSellHalfPrice = '760.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01970',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '740',lastbuyprice_withDiscount = '740',meanbuyprice = '740',meanbuyprice_withDiscount = '740' , productbuypricereal = '740.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '2.70' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='740',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='740',meanbuyprice_withTax='740',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='740',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1970';
UPDATE buybilldetail SET  lastbuyprice = 740 , meanbuyprice = 740, lastbuyprice_withDiscount = 740, meanbuyprice_withDiscount = 740
        , lastbuyprice_withTax = 740, meanbuyprice_withTax = 740, lastbuyprice_withDiscountAndTax = 740
                where buybilldetailid = 885;
UPDATE productunit SET proUnitBuyPrice  = 740 * productnumber WHERE productid = 1970;
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2987';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1970', '1', '15', '0', '145', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '15', '1', '2026-10-14 14:31:40','0','0'); -- id=5441
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01971', '145', '28', '1971', '10', '600', '6000.00', '0', '', '2026-10-14 14:40:43', '1971','','','0','0','0','0','0',null,'600','6000','0','0','0','0','0','0','0','0','1'); -- id=886
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 14:31:40', 1, 1971, 0, 0
                    , 600, 10, 0, 0, 1, '2026-10-14 14:40:43')
                ON DUPLICATE KEY UPDATE buyprice = 600,
                        buyQuantity =buyQuantity+10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 14:40:43' ; -- id=1163
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1971', '600', '10', '0', 'buyBillController.php', '886', '', '0', '0'); -- id=673
UPDATE product SET  productBuyPrice = "600" WHERE productId = 1971 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 886 ;
UPDATE product SET productName = 'فولكانو جينز 1560', productDescription = '', productCatId = '28', productBuyPrice = '600.00', productSellAllPrice = '620.00', productSellUnitPrice = '620.00', productSellHalfPrice = '620.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01971',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '600',meanbuyprice = '600',meanbuyprice_withDiscount = '600' , productbuypricereal = '600.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.33' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='600',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1971';
UPDATE buybilldetail SET  lastbuyprice = 600 , meanbuyprice = 600, lastbuyprice_withDiscount = 600, meanbuyprice_withDiscount = 600
        , lastbuyprice_withTax = 600, meanbuyprice_withTax = 600, lastbuyprice_withDiscountAndTax = 600
                where buybilldetailid = 886;
UPDATE productunit SET proUnitBuyPrice  = 600 * productnumber WHERE productid = 1971;
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2988';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1971', '1', '10', '0', '145', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '10', '1', '2026-10-14 14:31:40','0','0'); -- id=5442
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01339', '145', '28', '1339', '30', '430', '12900.00', '0', '', '2026-10-14 14:40:43', '1339','','','0','0','0','0','0',null,'430','12900','0','0','0','0','0','0','0','0','1'); -- id=887
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 14:31:40', 1, 1339, 0, 0
                    , 430, 30, 0, 0, 1, '2026-10-14 14:40:43')
                ON DUPLICATE KEY UPDATE buyprice = 430,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 14:40:43' ; -- id=1164
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1339', '430', '30', '0', 'buyBillController.php', '887', '', '0', '0'); -- id=674
UPDATE product SET  productBuyPrice = "430" WHERE productId = 1339 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 887 ;
UPDATE product SET productName = 'فولكانو جينز 1250', productDescription = '', productCatId = '28', productBuyPrice = '430.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-09-30', conditions = '0', userId = '1', limitamount = '0', parcode = '01339',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '430',lastbuyprice_withDiscount = '430',meanbuyprice = '430',meanbuyprice_withDiscount = '430' , productbuypricereal = '430.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.65' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='430',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1339';
UPDATE buybilldetail SET  lastbuyprice = 430 , meanbuyprice = 430, lastbuyprice_withDiscount = 430, meanbuyprice_withDiscount = 430
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 430
                where buybilldetailid = 887;
UPDATE productunit SET proUnitBuyPrice  = 430 * productnumber WHERE productid = 1339;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1339';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1339', '1', '30', '0', '145', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 14:31:40','0','0'); -- id=5443
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01563', '145', '28', '1563', '20', '650', '13000.00', '0', '', '2026-10-14 14:40:43', '1563','','','0','0','0','0','0',null,'650','13000','0','0','0','0','0','0','0','0','1'); -- id=888
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 14:31:40', 1, 1563, 0, 0
                    , 650, 20, 0, 0, 1, '2026-10-14 14:40:43')
                ON DUPLICATE KEY UPDATE buyprice = 650,
                        buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 14:40:43' ; -- id=1165
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1563', '650', '20', '0', 'buyBillController.php', '888', '', '0', '0'); -- id=675
UPDATE product SET  productBuyPrice = "650" WHERE productId = 1563 ;
UPDATE buybilldetail SET  quantitybefore = 15 WHERE buybilldetailid = 888 ;
UPDATE product SET productName = 'فولكانو جينز 726', productDescription = '', productCatId = '28', productBuyPrice = '650.00', productSellAllPrice = '670.00', productSellUnitPrice = '670.00', productSellHalfPrice = '670.00', productDate = '2026-10-07', conditions = '0', userId = '1', limitamount = '0', parcode = '01563',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '650',lastbuyprice_withDiscount = '650',meanbuyprice = '650',meanbuyprice_withDiscount = '650' , productbuypricereal = '650.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.08' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='650',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='650',meanbuyprice_withTax='650',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='650',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1563';
UPDATE buybilldetail SET  lastbuyprice = 650 , meanbuyprice = 650, lastbuyprice_withDiscount = 650, meanbuyprice_withDiscount = 650
        , lastbuyprice_withTax = 650, meanbuyprice_withTax = 650, lastbuyprice_withDiscountAndTax = 650
                where buybilldetailid = 888;
UPDATE productunit SET proUnitBuyPrice  = 650 * productnumber WHERE productid = 1563;
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1588';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1563', '1', '20', '0', '145', 'اضافة فاتورة مشتريات', 'buyBillController.php', '15', '35', '1', '2026-10-14 14:31:40','0','0'); -- id=5444
UPDATE supplier SET  suppliercurrentDebt = '581180',suppliercurrentDebtInCurrency= '581180' , userid = '1', supplierdate = '2026-10-14 14:40:43'   WHERE supplierid = '20';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('20', '440530.00', '140650', '0', 'اضافة فاتورة مشتريات', '145', '581180', '2026-10-14 14:31:40', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','140650','1','440530','140650','581180','0',''); -- id=474
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '140650', '140650', '2026-10-14', '1', '0', '0', '2026-10-14 14:40:43','اضافة فاتورة مشتريات رقم 145','1','0',null,'0','145','buyBillController.php?do=details&id=145'); -- id=2369
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2369', '382', '140650', '','0'); -- id=2422
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22147173.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2369', '439', '140650', '','0'); -- id=2371
UPDATE accountstree SET name = 'فولكانو جينز - مورد', customName = 'فولكانو جينز - مورد', customNameEn = 'فولكانو جينز - مورد', nameEn = 'فولكانو جينز - مورد', parent = '81', accountNature = '1', theValue = '242825', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '439';
update buybill set dailyentryid='2369,0' where buybillid=145;
COMMIT;
UPDATE product SET overAllAveragePrice = 430 WHERE productId = 1339;UPDATE product SET overAllAveragePrice = 650 WHERE productId = 1563;UPDATE product SET overAllAveragePrice = 500 WHERE productId = 1961;UPDATE product SET overAllAveragePrice = 650 WHERE productId = 1962;UPDATE product SET overAllAveragePrice = 700 WHERE productId = 1963;UPDATE product SET overAllAveragePrice = 600 WHERE productId = 1964;UPDATE product SET overAllAveragePrice = 580 WHERE productId = 1965;UPDATE product SET overAllAveragePrice = 580 WHERE productId = 1966;UPDATE product SET overAllAveragePrice = 540 WHERE productId = 1967;UPDATE product SET overAllAveragePrice = 600 WHERE productId = 1968;UPDATE product SET overAllAveragePrice = 530 WHERE productId = 1969;UPDATE product SET overAllAveragePrice = 740 WHERE productId = 1970;UPDATE product SET overAllAveragePrice = 600 WHERE productId = 1971;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:10:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:40:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 14:40:44', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=145'); -- id=9251
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:11:36";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:41:36", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 14:41:36', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9252

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf6896c26ea
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 14:41:36', '06acf6896c26ea', '1', '0.00', '0', '0', '1', '6800.00', '6800', '6800', '0', '1', '2026-10-14 14:41:36', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '20' ,'0','','','','','-1','0','0','0','0','0','6800','0','','0','0','6800','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=516
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','516', '0', '2026-10-14 14:41:36', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '6800', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 14:41:36','0','0','',''); -- id=661
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+20 where id = 688;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('276','01467', '516', '104', '1467', '20', '340', '6800', '0', '', '0', '2026-10-14 14:41:36', '1467', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','688-20,','1','1','0','0','340','6800','0','','0','0.00','0','0','0','0'); -- id=1840
UPDATE sellbilldetail SET  lastbuyprice = 276.00 , meanbuyprice = 276.00, lastbuyprice_withDiscount = 276.00, meanbuyprice_withDiscount = 276.00
        , lastbuyprice_withTax = 276, meanbuyprice_withTax = 276, lastbuyprice_withDiscountAndTax = 276
                where sellbilldetailid = 1840;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1467, '2026-10-14', 6800, 5520, 5520
                    , 5520, 5520, 5520, 5520
                    , 0, 0, 0, 0
                    , 0, 0, 0, 20, 0, 5520, 5520, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6800, sellCostBuyPrice =sellCostBuyPrice+5520
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5520, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5520
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5520, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5520
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5520
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5520
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5520
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+20
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 6800, 5520, 5520
                    , 5520, 5520, 5520, 5520
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5520, 5520, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6800, sellCostBuyPrice =sellCostBuyPrice+5520
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5520, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5520
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5520, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5520
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5520
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5520
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5520
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '520', userid = '3', storedetaildate = '2026-10-14 14:41:36' WHERE storedetailid = '1492';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1467', '1', '20', '1', '516', 'اضافة فاتورة مبيعات', 'sellbillController.php', '540', '520', '3', '2026-10-14 14:41:36','0','0'); -- id=5445
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3235745',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3228945','6800', '0', '2', 'اضافة فاتورة مبيعات', '516', '3235745', '2026-10-14 14:41:36', '3',  'sellbillController.php','1','','0'); -- id=653
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '6800', '6800', '2026-10-14', '3', '0', '0', '2026-10-14 14:41:36','اضافة فاتورة مبيعات رقم 516','1','0',null,'0','516','sellbillController.php?do=showDetail&sellbillid=516'); -- id=2370
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2370', '419', '6800', '','0'); -- id=2423
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3235745', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2370', '143', '6800', '','0'); -- id=2372
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5390555', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '5520', '5520', '2026-10-14', '3', '0', '0', '2026-10-14 14:41:36','اضافة فاتورة مبيعات رقم 516 - صرف البضاعة من المخزن','1','0',null,'0','516','sellbillController.php?do=showDetail&sellbillid=516'); -- id=2371
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2371', '402', '5520', '','0'); -- id=2424
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5033423.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2371', '382', '5520', '','0'); -- id=2373
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22141653.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2370,0,2371' where sellbillid=516;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 6800, 5520, 5520
                    , 5520, 5520, 5520, 5520
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,5520, 5520, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6800, sellCostBuyPrice =sellCostBuyPrice+5520
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5520, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5520
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5520, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5520
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5520
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5520
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5520
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 6800, 5520, 5520
                    , 5520, 5520, 5520, 5520
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,5520, 5520, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6800, sellCostBuyPrice =sellCostBuyPrice+5520
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5520, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5520
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5520, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5520
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5520
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5520
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5520
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 6800, 5520, 5520
                    , 5520, 5520, 5520, 5520, 5520, 5520)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+6800, netSellCostBuyPrice = netSellCostBuyPrice+5520
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+5520
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+5520
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+5520
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+5520
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+5520
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+5520
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+5520;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf6896c26ea and sellbillId = 516 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:11:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:41:37", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 14:41:37', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9253
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:12:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:42:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:42:16', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=145&type=2'); -- id=9254
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:21:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:51:10", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 14:51:10', '6', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9255

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf6a3767bef
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 14:51:10', '06acf6a3767bef', '1', '0.00', '0', '0', '1', '8100.00', '8100', '8100', '0', '1', '2026-10-14 14:51:10', '', '6', '0', 'نقدي', '4', '0', '3', '0', 'نقدي', '18' ,'0','','','','','-1','0','0','0','0','0','8100','0','','0','0','8100','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=517
UPDATE client SET  clientdebt = '0', userid = '6' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','517', '0', '2026-10-14 14:51:10', '6', 'sellbillController.php', 'اضافة فاتورة مبيعات', '8100', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 14:51:10','0','0','',''); -- id=662
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+18 where id = 560;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('405','01696', '517', '129', '1696', '18', '450', '8100', '0', '', '0', '2026-10-14 14:51:10', '1696', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','560-18,','1','1','0','0','450','8100','0','','0','0.00','0','0','0','0'); -- id=1841
UPDATE sellbilldetail SET  lastbuyprice = 450.00 , meanbuyprice = 450.00, lastbuyprice_withDiscount = 405.00, meanbuyprice_withDiscount = 405.00
        , lastbuyprice_withTax = 450, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 405
                where sellbilldetailid = 1841;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1696, '2026-10-14', 8100, 8100, 8100
                    , 8100, 7290, 7290, 7290
                    , 0, 0, 0, 0
                    , 0, 0, 0, 18, 0, 8100, 8100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8100, sellCostBuyPrice =sellCostBuyPrice+8100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7290, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7290
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7290
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+8100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+18
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 8100, 8100, 8100
                    , 8100, 7290, 7290, 7290
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8100, 8100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8100, sellCostBuyPrice =sellCostBuyPrice+8100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7290, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7290
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7290
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+8100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '93', userid = '6', storedetaildate = '2026-10-14 14:51:10' WHERE storedetailid = '2708';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1696', '1', '18', '1', '517', 'اضافة فاتورة مبيعات', 'sellbillController.php', '111', '93', '6', '2026-10-14 14:51:10','0','0'); -- id=5446
CALL saveInUse(4,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '254980',  userid = '6' WHERE saveid = '4';
UPDATE save SET  inUse = 0 where saveid = 4;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('246880','8100', '0', '4', 'اضافة فاتورة مبيعات', '517', '254980', '2026-10-14 14:51:10', '6',  'sellbillController.php','1','','0'); -- id=654
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '8100', '8100', '2026-10-14', '6', '0', '0', '2026-10-14 14:51:10','اضافة فاتورة مبيعات رقم 517','1','0',null,'0','517','sellbillController.php?do=showDetail&sellbillid=517'); -- id=2372
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2372', '568', '8100', '','0'); -- id=2425
UPDATE accountstree SET name = 'خزنة شروال', customName = 'خزنة شروال', customNameEn = 'خزنة شروال', nameEn = 'خزنة شروال', parent = '40', accountNature = '0', theValue = '254980', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-06 13:37:54' WHERE id = '568';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2372', '143', '8100', '','0'); -- id=2374
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5398655', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '7290', '7290', '2026-10-14', '6', '0', '0', '2026-10-14 14:51:10','اضافة فاتورة مبيعات رقم 517 - صرف البضاعة من المخزن','1','0',null,'0','517','sellbillController.php?do=showDetail&sellbillid=517'); -- id=2373
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2373', '402', '7290', '','0'); -- id=2426
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5040713.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2373', '382', '7290', '','0'); -- id=2375
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22134363.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2372,0,2373' where sellbillid=517;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 8100, 8100, 8100
                    , 8100, 7290, 7290, 7290
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,8100, 8100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8100, sellCostBuyPrice =sellCostBuyPrice+8100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7290, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7290
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7290
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+8100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 8100, 8100, 8100
                    , 8100, 7290, 7290, 7290
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,8100, 8100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8100, sellCostBuyPrice =sellCostBuyPrice+8100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7290, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7290
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7290
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+8100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 8100, 8100, 8100
                    , 8100, 7290, 7290, 7290, 8100, 8100)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+8100, netSellCostBuyPrice = netSellCostBuyPrice+8100
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+8100
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+8100
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+7290
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+7290
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+7290
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+8100
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+8100;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf6a3767bef and sellbillId = 517 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:21:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:51:10", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 14:51:10', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9256
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:23:08";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:53:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 14:53:08', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php'); -- id=9257
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:23:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:53:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 14:53:12', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9258
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 11:23:12";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 14:53:12', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9259
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:23:18";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:53:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:53:18', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9260
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:23:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:53:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:53:34', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9261
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '60', '60', '2026-10-14', '1', '0', '0', '2026-10-14 14:54:06','تعديل منتج (جبردين بريشكا 310) السعر من (290.00) الى (300) و الكميه (6)','1','0',null,'0','1205','productController.php?do=edit&id=1205'); -- id=2374
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2374', '382', '60', '','0'); -- id=2427
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22134423.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2374', '53', '60', '','0'); -- id=2376
UPDATE accountstree SET name = 'فروقات اعاده تقييم بضاعه', customName = 'فروقات اعاده تقييم بضاعه', customNameEn = '', nameEn = '', parent = '147', accountNature = '1', theValue = '-235515', theOrder = '0', layingOrder = '4201', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '2', itemtype2 = '0', itemtype3 = '', userid = '-1', del = '0', sysdate = '2024-05-07 12:08:31' WHERE id = '53';
COMMIT;
UPDATE productunit SET proUnitBuyPrice  = 300 * productnumber WHERE productid = 1205;
UPDATE product SET productName = 'جبردين بريشكا 310', productDescription = '', productCatId = '59', productBuyPrice = '300', productSellAllPrice = '310.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09499',type ='0', expireDate = '0' , dailyentryId = '560',isService = '0',isOptic = '0',lastbuyprice = '290.00',lastbuyprice_withDiscount = '290',meanbuyprice = '295',meanbuyprice_withDiscount = '295' , productbuypricereal = '290.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='290',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9499',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='295',meanbuyprice_withTax='295',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='290',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1205';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1205, 1,'2026-10-14 14:54:06',1)
                ON DUPLICATE KEY UPDATE productid = 1205, edited = 1, sysdate = '2026-10-14 14:54:06', userid = 1; -- id=1850
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '300', '300', '2026-10-14', '1', '0', '0', '2026-10-14 14:54:09','تعديل منتج (جبردين جيب بريشكا 340) السعر من (320.00) الى (330) و الكميه (30)','1','0',null,'0','1206','productController.php?do=edit&id=1206'); -- id=2375
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2375', '382', '300', '','0'); -- id=2428
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22134723.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2375', '53', '300', '','0'); -- id=2377
UPDATE accountstree SET name = 'فروقات اعاده تقييم بضاعه', customName = 'فروقات اعاده تقييم بضاعه', customNameEn = '', nameEn = '', parent = '147', accountNature = '1', theValue = '-235215', theOrder = '0', layingOrder = '4201', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '2', itemtype2 = '0', itemtype3 = '', userid = '-1', del = '0', sysdate = '2024-05-07 12:08:31' WHERE id = '53';
COMMIT;
UPDATE productunit SET proUnitBuyPrice  = 330 * productnumber WHERE productid = 1206;
UPDATE product SET productName = 'جبردين جيب بريشكا 340', productDescription = '', productCatId = '59', productBuyPrice = '330', productSellAllPrice = '340.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09631',type ='0', expireDate = '0' , dailyentryId = '561',isService = '0',isOptic = '0',lastbuyprice = '320.00',lastbuyprice_withDiscount = '320',meanbuyprice = '325',meanbuyprice_withDiscount = '325' , productbuypricereal = '320.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='320',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9631',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='325',meanbuyprice_withTax='325',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='320',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1206';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1206, 1,'2026-10-14 14:54:09',1)
                ON DUPLICATE KEY UPDATE productid = 1206, edited = 1, sysdate = '2026-10-14 14:54:09', userid = 1; -- id=1851
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '480', '480', '2026-10-14', '1', '0', '0', '2026-10-14 14:54:13','تعديل منتج (جبردين سوستة بريشكا 350) السعر من (330.00) الى (340) و الكميه (48)','1','0',null,'0','1207','productController.php?do=edit&id=1207'); -- id=2376
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2376', '382', '480', '','0'); -- id=2429
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22135203.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2376', '53', '480', '','0'); -- id=2378
UPDATE accountstree SET name = 'فروقات اعاده تقييم بضاعه', customName = 'فروقات اعاده تقييم بضاعه', customNameEn = '', nameEn = '', parent = '147', accountNature = '1', theValue = '-234735', theOrder = '0', layingOrder = '4201', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '2', itemtype2 = '0', itemtype3 = '', userid = '-1', del = '0', sysdate = '2024-05-07 12:08:31' WHERE id = '53';
COMMIT;
UPDATE productunit SET proUnitBuyPrice  = 340 * productnumber WHERE productid = 1207;
UPDATE product SET productName = 'جبردين سوستة بريشكا 350', productDescription = '', productCatId = '59', productBuyPrice = '340', productSellAllPrice = '350.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09775',type ='0', expireDate = '0' , dailyentryId = '562',isService = '0',isOptic = '0',lastbuyprice = '330.00',lastbuyprice_withDiscount = '330',meanbuyprice = '335',meanbuyprice_withDiscount = '335' , productbuypricereal = '330.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='330',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9775',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='335',meanbuyprice_withTax='335',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='330',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1207';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1207, 1,'2026-10-14 14:54:13',1)
                ON DUPLICATE KEY UPDATE productid = 1207, edited = 1, sysdate = '2026-10-14 14:54:13', userid = 1; -- id=1852
UPDATE product SET productName = 'جبردين بريشكا 310', productDescription = '', productCatId = '59', productBuyPrice = '300.00', productSellAllPrice = '310.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09499',type ='0', expireDate = '0' , dailyentryId = '560',isService = '0',isOptic = '0',lastbuyprice = '290.00',lastbuyprice_withDiscount = '290',meanbuyprice = '295.00',meanbuyprice_withDiscount = '295' , productbuypricereal = '290.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='290',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9499',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='295',meanbuyprice_withTax='295',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='290',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1205';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1205, 1,'2026-10-14 14:54:16',1)
                ON DUPLICATE KEY UPDATE productid = 1205, edited = 1, sysdate = '2026-10-14 14:54:16', userid = 1; -- id=1850
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:25:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:55:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:55:03', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9262
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:25:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:55:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:55:14', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9263
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:25:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:55:42", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 14:55:42', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9264
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 11:25:42";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 14:55:42', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9265
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:25:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:55:47", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 14:55:47', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9266

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf6a7119aee
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 14:55:47', '06acf6a7119aee', '1', '0.00', '0', '0', '1', '36620.00', '36620', '36620', '0', '1', '2026-10-14 14:55:47', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '98' ,'0','','','','','-1','0','0','0','0','0','36620','0','','0','0','36620','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=518
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','518', '0', '2026-10-14 14:55:47', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '36620', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 14:55:47','0','0','',''); -- id=663
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+8 where id = 1137;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('475','01960', '518', '159', '1960', '8', '495', '3960', '0', '', '0', '2026-10-14 14:55:47', '1960', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1137-8,','1','1','0','0','495','3960','0','','0','0.00','0','0','0','0'); -- id=1842
UPDATE sellbilldetail SET  lastbuyprice = 475.00 , meanbuyprice = 475.00, lastbuyprice_withDiscount = 475.00, meanbuyprice_withDiscount = 475.00
        , lastbuyprice_withTax = 475, meanbuyprice_withTax = 475, lastbuyprice_withDiscountAndTax = 475
                where sellbilldetailid = 1842;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1960, '2026-10-14', 3960, 3800, 3800
                    , 3800, 3800, 3800, 3800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8, 0, 3800, 3800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3960, sellCostBuyPrice =sellCostBuyPrice+3800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+8
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3960, 3800, 3800
                    , 3800, 3800, 3800, 3800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3800, 3800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3960, sellCostBuyPrice =sellCostBuyPrice+3800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '72', userid = '3', storedetaildate = '2026-10-14 14:55:47' WHERE storedetailid = '2977';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1960', '1', '8', '1', '518', 'اضافة فاتورة مبيعات', 'sellbillController.php', '80', '72', '3', '2026-10-14 14:55:47','0','0'); -- id=5447
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 1080;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('425','01919', '518', '153', '1919', '6', '450', '2700', '0', '', '0', '2026-10-14 14:55:47', '1919', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1080-6,','1','1','0','0','450','2700','0','','0','0.00','0','0','0','0'); -- id=1843
UPDATE sellbilldetail SET  lastbuyprice = 425.00 , meanbuyprice = 425.00, lastbuyprice_withDiscount = 425.00, meanbuyprice_withDiscount = 425.00
        , lastbuyprice_withTax = 425, meanbuyprice_withTax = 425, lastbuyprice_withDiscountAndTax = 425
                where sellbilldetailid = 1843;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1919, '2026-10-14', 2700, 2550, 2550
                    , 2550, 2550, 2550, 2550
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2550, 2550, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2550, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2550
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2550
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2550
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2550, 2550
                    , 2550, 2550, 2550, 2550
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2550, 2550, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2550, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2550
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2550
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2550
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '312', userid = '3', storedetaildate = '2026-10-14 14:55:47' WHERE storedetailid = '2936';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '1', '6', '1', '518', 'اضافة فاتورة مبيعات', 'sellbillController.php', '318', '312', '3', '2026-10-14 14:55:47','0','0'); -- id=5448
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '518', '153', '1921', '6', '485', '2910', '0', '', '0', '2026-10-14 14:55:47', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-6,','1','1','0','0','485','2910','0','','0','0.00','0','0','0','0'); -- id=1844
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1844;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 2910, 2760, 2760
                    , 2760, 2760, 2760, 2760
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2760, 2760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2910, sellCostBuyPrice =sellCostBuyPrice+2760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2760, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2760
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2760
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2910, 2760, 2760
                    , 2760, 2760, 2760, 2760
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2760, 2760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2910, sellCostBuyPrice =sellCostBuyPrice+2760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2760, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2760
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2760
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '198', userid = '3', storedetaildate = '2026-10-14 14:55:47' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '6', '1', '518', 'اضافة فاتورة مبيعات', 'sellbillController.php', '204', '198', '3', '2026-10-14 14:55:47','0','0'); -- id=5449
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 865;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('297','01840', '518', '141', '1840', '9', '330', '2970', '0', '', '0', '2026-10-14 14:55:47', '1840', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','865-9,','1','1','0','0','330','2970','0','','0','0.00','0','0','0','0'); -- id=1845
UPDATE sellbilldetail SET  lastbuyprice = 330.00 , meanbuyprice = 330.00, lastbuyprice_withDiscount = 297.00, meanbuyprice_withDiscount = 313.50
        , lastbuyprice_withTax = 330, meanbuyprice_withTax = 165, lastbuyprice_withDiscountAndTax = 297
                where sellbilldetailid = 1845;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1840, '2026-10-14', 2970, 2970, 2970
                    , 2970, 2673, 2821.5, 2673
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2970, 1485, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2970, sellCostBuyPrice =sellCostBuyPrice+2970
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2970, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2970
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2673, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2821.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2673
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2970
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1485
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2970, 2970, 2970
                    , 2970, 2673, 2821.5, 2673
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2970, 1485, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2970, sellCostBuyPrice =sellCostBuyPrice+2970
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2970, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2970
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2673, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2821.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2673
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2970
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1485
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '147', userid = '3', storedetaildate = '2026-10-14 14:55:47' WHERE storedetailid = '2855';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1840', '1', '9', '1', '518', 'اضافة فاتورة مبيعات', 'sellbillController.php', '156', '147', '3', '2026-10-14 14:55:47','0','0'); -- id=5450
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 1080;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('425','01919', '518', '153', '1919', '6', '450', '2700', '0', '', '0', '2026-10-14 14:55:47', '1919', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1080-6,','1','1','0','0','450','2700','0','','0','0.00','0','0','0','0'); -- id=1846
UPDATE sellbilldetail SET  lastbuyprice = 425.00 , meanbuyprice = 425.00, lastbuyprice_withDiscount = 425.00, meanbuyprice_withDiscount = 425.00
        , lastbuyprice_withTax = 425, meanbuyprice_withTax = 425, lastbuyprice_withDiscountAndTax = 425
                where sellbilldetailid = 1846;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1919, '2026-10-14', 2700, 2550, 2550
                    , 2550, 2550, 2550, 2550
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2550, 2550, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2550, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2550
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2550
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2550
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2550, 2550
                    , 2550, 2550, 2550, 2550
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2550, 2550, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2550, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2550
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2550
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2550
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '306', userid = '3', storedetaildate = '2026-10-14 14:55:47' WHERE storedetailid = '2936';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '1', '6', '1', '518', 'اضافة فاتورة مبيعات', 'sellbillController.php', '312', '306', '3', '2026-10-14 14:55:47','0','0'); -- id=5451
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 1083;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('325','01922', '518', '153', '1922', '9', '350', '3150', '0', '', '0', '2026-10-14 14:55:47', '1922', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1083-9,','1','1','0','0','350','3150','0','','0','0.00','0','0','0','0'); -- id=1847
UPDATE sellbilldetail SET  lastbuyprice = 325.00 , meanbuyprice = 325.00, lastbuyprice_withDiscount = 325.00, meanbuyprice_withDiscount = 325.00
        , lastbuyprice_withTax = 325, meanbuyprice_withTax = 325, lastbuyprice_withDiscountAndTax = 325
                where sellbilldetailid = 1847;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1922, '2026-10-14', 3150, 2925, 2925
                    , 2925, 2925, 2925, 2925
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2925, 2925, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3150, sellCostBuyPrice =sellCostBuyPrice+2925
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2925, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2925
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2925, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2925
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2925
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2925
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2925
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3150, 2925, 2925
                    , 2925, 2925, 2925, 2925
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2925, 2925, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3150, sellCostBuyPrice =sellCostBuyPrice+2925
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2925, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2925
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2925, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2925
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2925
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2925
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2925
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '27', userid = '3', storedetaildate = '2026-10-14 14:55:47' WHERE storedetailid = '2939';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1922', '1', '9', '1', '518', 'اضافة فاتورة مبيعات', 'sellbillController.php', '36', '27', '3', '2026-10-14 14:55:47','0','0'); -- id=5452
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+16 where id = 735;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('324','01777', '518', '99', '1777', '16', '360', '5760', '0', '', '0', '2026-10-14 14:55:47', '1777', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','735-16,','1','1','0','0','360','5760','0','','0','0.00','0','0','0','0'); -- id=1848
UPDATE sellbilldetail SET  lastbuyprice = 360.00 , meanbuyprice = 360.00, lastbuyprice_withDiscount = 324.00, meanbuyprice_withDiscount = 324.00
        , lastbuyprice_withTax = 360, meanbuyprice_withTax = 360, lastbuyprice_withDiscountAndTax = 324
                where sellbilldetailid = 1848;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1777, '2026-10-14', 5760, 5760, 5760
                    , 5760, 5184, 5184, 5184
                    , 0, 0, 0, 0
                    , 0, 0, 0, 16, 0, 5760, 5760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5760, sellCostBuyPrice =sellCostBuyPrice+5760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5184, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5184
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5184
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+16
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5760, 5760, 5760
                    , 5760, 5184, 5184, 5184
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5760, 5760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5760, sellCostBuyPrice =sellCostBuyPrice+5760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5184, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5184
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5184
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '100', userid = '3', storedetaildate = '2026-10-14 14:55:47' WHERE storedetailid = '2790';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1777', '1', '16', '1', '518', 'اضافة فاتورة مبيعات', 'sellbillController.php', '116', '100', '3', '2026-10-14 14:55:47','0','0'); -- id=5453
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 71;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01379', '518', '94', '1379', '9', '300', '2700', '0', '', '0', '2026-10-14 14:55:47', '1379', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','71-9,','1','1','0','0','300','2700','0','','0','0.00','0','0','0','0'); -- id=1849
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1849;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1379, '2026-10-14', 2700, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '486', userid = '3', storedetaildate = '2026-10-14 14:55:47' WHERE storedetailid = '1379';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1379', '1', '9', '1', '518', 'اضافة فاتورة مبيعات', 'sellbillController.php', '495', '486', '3', '2026-10-14 14:55:47','0','0'); -- id=5454
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 865;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('297','01840', '518', '141', '1840', '9', '330', '2970', '0', '', '0', '2026-10-14 14:55:47', '1840', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','865-9,','1','1','0','0','330','2970','0','','0','0.00','0','0','0','0'); -- id=1850
UPDATE sellbilldetail SET  lastbuyprice = 330.00 , meanbuyprice = 330.00, lastbuyprice_withDiscount = 297.00, meanbuyprice_withDiscount = 313.50
        , lastbuyprice_withTax = 330, meanbuyprice_withTax = 165, lastbuyprice_withDiscountAndTax = 297
                where sellbilldetailid = 1850;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1840, '2026-10-14', 2970, 2970, 2970
                    , 2970, 2673, 2821.5, 2673
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2970, 1485, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2970, sellCostBuyPrice =sellCostBuyPrice+2970
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2970, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2970
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2673, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2821.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2673
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2970
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1485
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2970, 2970, 2970
                    , 2970, 2673, 2821.5, 2673
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2970, 1485, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2970, sellCostBuyPrice =sellCostBuyPrice+2970
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2970, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2970
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2673, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2821.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2673
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2970
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1485
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '138', userid = '3', storedetaildate = '2026-10-14 14:55:47' WHERE storedetailid = '2855';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1840', '1', '9', '1', '518', 'اضافة فاتورة مبيعات', 'sellbillController.php', '147', '138', '3', '2026-10-14 14:55:47','0','0'); -- id=5455
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+20 where id = 688;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('276','01467', '518', '104', '1467', '20', '340', '6800', '0', '', '0', '2026-10-14 14:55:47', '1467', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','688-20,','1','1','0','0','340','6800','0','','0','0.00','0','0','0','0'); -- id=1851
UPDATE sellbilldetail SET  lastbuyprice = 276.00 , meanbuyprice = 276.00, lastbuyprice_withDiscount = 276.00, meanbuyprice_withDiscount = 276.00
        , lastbuyprice_withTax = 276, meanbuyprice_withTax = 276, lastbuyprice_withDiscountAndTax = 276
                where sellbilldetailid = 1851;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1467, '2026-10-14', 6800, 5520, 5520
                    , 5520, 5520, 5520, 5520
                    , 0, 0, 0, 0
                    , 0, 0, 0, 20, 0, 5520, 5520, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6800, sellCostBuyPrice =sellCostBuyPrice+5520
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5520, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5520
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5520, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5520
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5520
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5520
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5520
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+20
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 6800, 5520, 5520
                    , 5520, 5520, 5520, 5520
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5520, 5520, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6800, sellCostBuyPrice =sellCostBuyPrice+5520
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5520, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5520
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5520, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5520
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5520
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5520
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5520
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '500', userid = '3', storedetaildate = '2026-10-14 14:55:47' WHERE storedetailid = '1492';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1467', '1', '20', '1', '518', 'اضافة فاتورة مبيعات', 'sellbillController.php', '520', '500', '3', '2026-10-14 14:55:47','0','0'); -- id=5456
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3272365',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3235745','36620', '0', '2', 'اضافة فاتورة مبيعات', '518', '3272365', '2026-10-14 14:55:47', '3',  'sellbillController.php','1','','0'); -- id=655
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '36620', '36620', '2026-10-14', '3', '0', '0', '2026-10-14 14:55:47','اضافة فاتورة مبيعات رقم 518','1','0',null,'0','518','sellbillController.php?do=showDetail&sellbillid=518'); -- id=2377
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2377', '419', '36620', '','0'); -- id=2430
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3272365', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2377', '143', '36620', '','0'); -- id=2379
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5435275', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '33065', '33065', '2026-10-14', '3', '0', '0', '2026-10-14 14:55:47','اضافة فاتورة مبيعات رقم 518 - صرف البضاعة من المخزن','1','0',null,'0','518','sellbillController.php?do=showDetail&sellbillid=518'); -- id=2378
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2378', '402', '33065', '','0'); -- id=2431
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5073778.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2378', '382', '33065', '','0'); -- id=2380
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22102138.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2377,0,2378' where sellbillid=518;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 36620, 34235, 34235
                    , 34235, 33065, 33362, 33065
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,34235, 31265, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+36620, sellCostBuyPrice =sellCostBuyPrice+34235
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+34235, sellCostMeanBuyPrice = sellCostMeanBuyPrice+34235
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+33065, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+33362
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+33065
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+34235
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+31265
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 36620, 34235, 34235
                    , 34235, 33065, 33362, 33065
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,34235, 31265, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+36620, sellCostBuyPrice =sellCostBuyPrice+34235
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+34235, sellCostMeanBuyPrice = sellCostMeanBuyPrice+34235
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+33065, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+33362
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+33065
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+34235
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+31265
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 36620, 34235, 34235
                    , 34235, 33065, 33362, 33065, 34235, 31265)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+36620, netSellCostBuyPrice = netSellCostBuyPrice+34235
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+34235
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+34235
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+33065
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+33362
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+33065
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+34235
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+31265;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf6a7119aee and sellbillId = 518 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:25:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:55:47", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 14:55:47', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9267
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:25:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:55:59", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 14:55:59', '3', 'showDetail', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=showDetail&sellbillid=518'); -- id=9268
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:26:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:56:10", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 14:56:10', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9269
UPDATE product SET productName = 'موديلات بريشكا 340', productDescription = '', productCatId = '59', productBuyPrice = '330.00', productSellAllPrice = '340.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09631',type ='0', expireDate = '0' , dailyentryId = '561',isService = '0',isOptic = '0',lastbuyprice = '320.00',lastbuyprice_withDiscount = '320',meanbuyprice = '325.00',meanbuyprice_withDiscount = '325' , productbuypricereal = '320.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='320',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9631',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='325',meanbuyprice_withTax='325',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='320',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1206';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1206, 1,'2026-10-14 14:56:13',1)
                ON DUPLICATE KEY UPDATE productid = 1206, edited = 1, sysdate = '2026-10-14 14:56:13', userid = 1; -- id=1851
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:26:18";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:56:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 14:56:18', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9270
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 11:26:18";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 14:56:18', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9271
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:26:27";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 14:56:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 14:56:27', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9272
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:30:48";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:00:48", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:00:48', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=5'); -- id=9273
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:31:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:01:23", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:01:23', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9274

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf6ef0cadc8
-- ----------------------------------------------------------------------------------------------------

BEGIN;
INSERT INTO returnsellbill (returnsellbilldate, returnsellbillserial, returnsellbillclientid, returnsellbilltotaldeptbefor, returnsellbilltotaldeptafter, returnsellbilldiscount, returnsellbilldiscounttype, returnsellbilltotalbill, returnsellbillaftertotalbill, returnsellbilltotalpayed, returnsellbillfinalbill, returnsellbillstoreid, returnsellbillsysdate,comment, userid, conditions, returnsellbillclientname, returnsellbillsaveid, returnsellbildirectpayment, billnameid, sellerid, tempclientName, returnsellQuantity,tax, carnumber, cartype, carchase, carmotor,costcenterid,dailyentryid,delbyuserid,billReservation,billReservationDate,visaAccountId,cashPayed,visaPayed,isBankAccountTransfer,extraDiscountPer,extraDiscountVal,taxOfDiscountPer,taxOfDiscountVal,autoSaveFlag,obgyBillType,billoperationid,obygyVisitId,pricetype,currencyId,sellbillno,returnsellbilltypeclientid) VALUES ('2026-10-14 15:01:23', '06acf6ef0cadc8', '1', '0.00', '0', '0', '1', '1050', '1050', '-1050', '0', '1', '2026-10-14 15:01:23', '', '3', '0', 'نقدي','2', '0', '5', '0', 'نقدي', '3', '0', '', '','','','-1','0','0','0','','0','-1050','0','0','0','0','0','0','0','0','-1','0','0','1','','0'); -- id=17
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','1','اضافة فاتورة مردوات مبيعات','17', '0', '2026-10-14 15:01:23', '3', 'returnsellbillController.php', 'اضافة فاتورة مردوات مبيعات', '1050', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 15:01:23','0','0','',''); -- id=664
INSERT INTO returnsellbilldetail (buyprice, parcode, returnsellbillid, returnsellbilldetailcatid, returnsellbilldetailproductid, returnsellbilldetailquantity, returnsellbilldetailprice, returnsellbilldetailtotalprice, conditions, note, pricetype, discountvalue, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,pricetypepro,proHeight,proWidth,soldSerialsInDetails,lastbuyprice_withTax,meanbuyprice_withTax,returnsellbilldetailpriceC,returnsellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,lastbuyprice_withDiscountAndTax) VALUES ('340.00', '09775', '17', '59', '1207', '3', '350', '1050', '0', '', '0', '0', '1207', '0.00', '0','1','0','','','0','0','0','0','0','0','1','1','','0','0','350','1050','0','','0'); -- id=25
UPDATE returnsellbilldetail SET  lastbuyprice = 330.00 , meanbuyprice = 335.00, lastbuyprice_withDiscount = 330.00, meanbuyprice_withDiscount = 335.00
        , lastbuyprice_withTax = 335, meanbuyprice_withTax = 335, lastbuyprice_withDiscountAndTax = 330
                where returnsellbilldetailid = 25;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1207, '2026-10-14', 0, 0, 0
                    , 0, 0, 0, 0
                    , 1050, 1020, 990, 1005
                    , 990, 1005, 990, 0, 3, 0, 0, 1005, 1005)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+0, sellCostBuyPrice =sellCostBuyPrice+0
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+0, sellCostMeanBuyPrice = sellCostMeanBuyPrice+0
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+0, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+0
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+0
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+0
                        , returnSellVal = returnSellVal+1050, returnSellCostBuyPrice = returnSellCostBuyPrice+1020, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+990
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+1005, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+990
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+1005
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+990
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+1005
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+1005
                        , netQuantity = netQuantity+0
                        , netQuantityRet = netQuantityRet+3;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 0, 0, 0
                    , 0, 0, 0, 0
                    , 1050, 1020, 990, 1005
                    , 990, 1005, 990, 0, 0, 1005, 1005)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+0, sellCostBuyPrice =sellCostBuyPrice+0
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+0, sellCostMeanBuyPrice = sellCostMeanBuyPrice+0
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+0, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+0
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+0
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+0
                        , returnSellVal = returnSellVal+1050, returnSellCostBuyPrice = returnSellCostBuyPrice+1020, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+990
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+1005, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+990
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+1005
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+990
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+1005
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+1005;
UPDATE storedetail SET  productquantity = '51', userid = '3', storedetaildate = '2026-10-14 15:01:23' WHERE storedetailid = '1207';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1207', '1', '3', '0', '17', 'اضافة فاتورة مردودات مبيعات', 'returnsellbillController.php', '48', '51', '3', '2026-10-14 15:01:23','0','0'); -- id=5457
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3271315',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3272365','-1050', '1', '2', 'اضافة فاتورة مردوات مبيعات', '17', '3271315', '2026-10-14 15:01:23', '3',  'returnsellbillController.php','1','','0'); -- id=656
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '1050', '1050', '2026-10-14', '3', '0', '0', '2026-10-14 15:01:23','اضافة فاتورة مردود مبيعات رقم 17','1','0',null,'0','17','returnsellbillController.php?do=showDetail&returnsellbillid=17'); -- id=2379
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2379', '143', '1050', '','0'); -- id=2432
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5434225', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2379', '419', '1050', '','0'); -- id=2381
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3271315', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '990', '990', '2026-10-14', '3', '0', '0', '2026-10-14 15:01:23','اضافة فاتورة مردود مبيعات رقم 17 - صرف البضاعة من المخزن','1','0',null,'0','17','returnsellbillController.php?do=showDetail&returnsellbillid=17'); -- id=2380
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2380', '382', '990', '','0'); -- id=2433
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22103128.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2380', '402', '990', '','0'); -- id=2382
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5072788.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
update returnsellbill set dailyentryid='2379,0,2380' where returnsellbillid=17;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 0, 0, 0
                    , 0, 0, 0, 0
                    , 1050, 1020, 990, 1005
                    , 990, 1005, 990 ,0, 0, 1005, 1005)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+0, sellCostBuyPrice =sellCostBuyPrice+0
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+0, sellCostMeanBuyPrice = sellCostMeanBuyPrice+0
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+0, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+0
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+0
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+0
                        , returnSellVal = returnSellVal+1050, returnSellCostBuyPrice = returnSellCostBuyPrice+1020, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+990
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+1005, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+990
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+1005
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+990
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+1005
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+1005;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 0, 0, 0
                    , 0, 0, 0, 0
                    , 1050, 1020, 990, 1005
                    , 990, 1005, 990 ,0, 0, 1005, 1005)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+0, sellCostBuyPrice =sellCostBuyPrice+0
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+0, sellCostMeanBuyPrice = sellCostMeanBuyPrice+0
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+0, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+0
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+0
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+0
                        , returnSellVal = returnSellVal+1050, returnSellCostBuyPrice = returnSellCostBuyPrice+1020, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+990
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+1005, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+990
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+1005
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+990
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+1005
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+1005;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, -1050, -1020, -990
                    , -1005, -990, -1005, -990, -1005, -1005)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+-1050, netSellCostBuyPrice = netSellCostBuyPrice+-1020
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+-990
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+-1005
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+-990
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+-1005
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+-990
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+-1005
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+-1005;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf6ef0cadc8 and sellbillId = 17 and returnsellbillId = 17
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:31:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:01:23", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:01:23', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=5'); -- id=9275
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:32:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:02:09", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:02:09', '6', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9276

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf6cae8fcec
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 15:02:09', '06acf6cae8fcec', '1', '0.00', '0', '0', '1', '31140.00', '31140', '31140', '0', '1', '2026-10-14 15:02:09', '', '6', '0', 'نقدي', '4', '0', '3', '0', 'نقدي', '68' ,'0','','','','','-1','0','0','0','0','0','31140','0','','0','0','31140','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=519
UPDATE client SET  clientdebt = '0', userid = '6' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','519', '0', '2026-10-14 15:02:09', '6', 'sellbillController.php', 'اضافة فاتورة مبيعات', '31140', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 15:02:09','0','0','',''); -- id=665
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 58;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('410','01373', '519', '91', '1373', '9', '470', '4230', '0', '', '0', '2026-10-14 15:02:09', '1373', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','58-9,','1','1','0','0','470','4230','0','','0','0.00','0','0','0','0'); -- id=1852
UPDATE sellbilldetail SET  lastbuyprice = 410.00 , meanbuyprice = 410.00, lastbuyprice_withDiscount = 410.00, meanbuyprice_withDiscount = 410.00
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 410, lastbuyprice_withDiscountAndTax = 410
                where sellbilldetailid = 1852;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1373, '2026-10-14', 4230, 3690, 3690
                    , 3690, 3690, 3690, 3690
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3690, 3690, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4230, sellCostBuyPrice =sellCostBuyPrice+3690
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3690, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3690
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3690, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3690
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3690
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3690
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3690
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4230, 3690, 3690
                    , 3690, 3690, 3690, 3690
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3690, 3690, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4230, sellCostBuyPrice =sellCostBuyPrice+3690
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3690, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3690
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3690, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3690
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3690
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3690
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3690
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '69', userid = '6', storedetaildate = '2026-10-14 15:02:09' WHERE storedetailid = '1373';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1373', '1', '9', '1', '519', 'اضافة فاتورة مبيعات', 'sellbillController.php', '78', '69', '6', '2026-10-14 15:02:09','0','0'); -- id=5458
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 57;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('420','01372', '519', '91', '1372', '12', '480', '5760', '0', '', '0', '2026-10-14 15:02:09', '1372', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','57-12,','1','1','0','0','480','5760','0','','0','0.00','0','0','0','0'); -- id=1853
UPDATE sellbilldetail SET  lastbuyprice = 420.00 , meanbuyprice = 420.00, lastbuyprice_withDiscount = 420.00, meanbuyprice_withDiscount = 420.00
        , lastbuyprice_withTax = 420, meanbuyprice_withTax = 420, lastbuyprice_withDiscountAndTax = 420
                where sellbilldetailid = 1853;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1372, '2026-10-14', 5760, 5040, 5040
                    , 5040, 5040, 5040, 5040
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 5040, 5040, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5760, sellCostBuyPrice =sellCostBuyPrice+5040
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5040, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5040
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5040, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5040
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5040
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5040
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5040
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5760, 5040, 5040
                    , 5040, 5040, 5040, 5040
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5040, 5040, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5760, sellCostBuyPrice =sellCostBuyPrice+5040
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5040, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5040
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5040, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5040
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5040
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5040
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5040
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '45', userid = '6', storedetaildate = '2026-10-14 15:02:09' WHERE storedetailid = '1372';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1372', '1', '12', '1', '519', 'اضافة فاتورة مبيعات', 'sellbillController.php', '57', '45', '6', '2026-10-14 15:02:09','0','0'); -- id=5459
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 288;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('720','01510', '519', '109', '1510', '6', '750', '4500', '0', '', '0', '2026-10-14 15:02:09', '1510', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','288-6,','1','1','0','0','750','4500','0','','0','0.00','0','0','0','0'); -- id=1854
UPDATE sellbilldetail SET  lastbuyprice = 720.00 , meanbuyprice = 720.00, lastbuyprice_withDiscount = 720.00, meanbuyprice_withDiscount = 720.00
        , lastbuyprice_withTax = 720, meanbuyprice_withTax = 720, lastbuyprice_withDiscountAndTax = 720
                where sellbilldetailid = 1854;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1510, '2026-10-14', 4500, 4320, 4320
                    , 4320, 4320, 4320, 4320
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 4320, 4320, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4500, sellCostBuyPrice =sellCostBuyPrice+4320
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4320, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4320
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4320, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4320
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4320
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4320
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4320
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4500, 4320, 4320
                    , 4320, 4320, 4320, 4320
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4320, 4320, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4500, sellCostBuyPrice =sellCostBuyPrice+4320
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4320, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4320
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4320, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4320
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4320
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4320
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4320
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '15', userid = '6', storedetaildate = '2026-10-14 15:02:09' WHERE storedetailid = '1535';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1510', '1', '6', '1', '519', 'اضافة فاتورة مبيعات', 'sellbillController.php', '21', '15', '6', '2026-10-14 15:02:09','0','0'); -- id=5460
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 56;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('420','01371', '519', '91', '1371', '9', '500', '4500', '0', '', '0', '2026-10-14 15:02:09', '1371', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','56-9,','1','1','0','0','500','4500','0','','0','0.00','0','0','0','0'); -- id=1855
UPDATE sellbilldetail SET  lastbuyprice = 420.00 , meanbuyprice = 420.00, lastbuyprice_withDiscount = 420.00, meanbuyprice_withDiscount = 420.00
        , lastbuyprice_withTax = 420, meanbuyprice_withTax = 420, lastbuyprice_withDiscountAndTax = 420
                where sellbilldetailid = 1855;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1371, '2026-10-14', 4500, 3780, 3780
                    , 3780, 3780, 3780, 3780
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3780, 3780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4500, sellCostBuyPrice =sellCostBuyPrice+3780
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3780, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3780
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3780, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3780
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3780
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3780
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4500, 3780, 3780
                    , 3780, 3780, 3780, 3780
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3780, 3780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4500, sellCostBuyPrice =sellCostBuyPrice+3780
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3780, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3780
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3780, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3780
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3780
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3780
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '57', userid = '6', storedetaildate = '2026-10-14 15:02:09' WHERE storedetailid = '1371';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1371', '1', '9', '1', '519', 'اضافة فاتورة مبيعات', 'sellbillController.php', '66', '57', '6', '2026-10-14 15:02:09','0','0'); -- id=5461
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 54;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('430','01369', '519', '91', '1369', '9', '490', '4410', '0', '', '0', '2026-10-14 15:02:09', '1369', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','54-9,','1','1','0','0','490','4410','0','','0','0.00','0','0','0','0'); -- id=1856
UPDATE sellbilldetail SET  lastbuyprice = 430.00 , meanbuyprice = 430.00, lastbuyprice_withDiscount = 430.00, meanbuyprice_withDiscount = 430.00
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 430
                where sellbilldetailid = 1856;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1369, '2026-10-14', 4410, 3870, 3870
                    , 3870, 3870, 3870, 3870
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3870, 3870, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4410, sellCostBuyPrice =sellCostBuyPrice+3870
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3870, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3870
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3870, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3870
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3870
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3870
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3870
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4410, 3870, 3870
                    , 3870, 3870, 3870, 3870
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3870, 3870, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4410, sellCostBuyPrice =sellCostBuyPrice+3870
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3870, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3870
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3870, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3870
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3870
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3870
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3870
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '81', userid = '6', storedetaildate = '2026-10-14 15:02:09' WHERE storedetailid = '1369';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1369', '1', '9', '1', '519', 'اضافة فاتورة مبيعات', 'sellbillController.php', '90', '81', '6', '2026-10-14 15:02:09','0','0'); -- id=5462
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 55;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('440','01370', '519', '91', '1370', '3', '500', '1500', '0', '', '0', '2026-10-14 15:02:09', '1370', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','55-3,','1','1','0','0','500','1500','0','','0','0.00','0','0','0','0'); -- id=1857
UPDATE sellbilldetail SET  lastbuyprice = 440.00 , meanbuyprice = 440.00, lastbuyprice_withDiscount = 440.00, meanbuyprice_withDiscount = 440.00
        , lastbuyprice_withTax = 440, meanbuyprice_withTax = 440, lastbuyprice_withDiscountAndTax = 440
                where sellbilldetailid = 1857;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1370, '2026-10-14', 1500, 1320, 1320
                    , 1320, 1320, 1320, 1320
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1320, 1320, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1500, sellCostBuyPrice =sellCostBuyPrice+1320
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1320, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1320
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1320, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1320
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1320
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1320
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1320
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1500, 1320, 1320
                    , 1320, 1320, 1320, 1320
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1320, 1320, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1500, sellCostBuyPrice =sellCostBuyPrice+1320
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1320, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1320
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1320, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1320
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1320
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1320
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1320
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '57', userid = '6', storedetaildate = '2026-10-14 15:02:09' WHERE storedetailid = '1370';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1370', '1', '3', '1', '519', 'اضافة فاتورة مبيعات', 'sellbillController.php', '60', '57', '6', '2026-10-14 15:02:09','0','0'); -- id=5463
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 60;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('240','01375', '519', '91', '1375', '12', '300', '3600', '0', '', '0', '2026-10-14 15:02:09', '1375', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','60-12,','1','1','0','0','300','3600','0','','0','0.00','0','0','0','0'); -- id=1858
UPDATE sellbilldetail SET  lastbuyprice = 240.00 , meanbuyprice = 240.00, lastbuyprice_withDiscount = 240.00, meanbuyprice_withDiscount = 240.00
        , lastbuyprice_withTax = 240, meanbuyprice_withTax = 240, lastbuyprice_withDiscountAndTax = 240
                where sellbilldetailid = 1858;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1375, '2026-10-14', 3600, 2880, 2880
                    , 2880, 2880, 2880, 2880
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 2880, 2880, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3600, sellCostBuyPrice =sellCostBuyPrice+2880
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2880, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2880
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2880, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2880
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2880
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2880
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2880
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3600, 2880, 2880
                    , 2880, 2880, 2880, 2880
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2880, 2880, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3600, sellCostBuyPrice =sellCostBuyPrice+2880
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2880, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2880
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2880, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2880
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2880
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2880
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2880
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '112', userid = '6', storedetaildate = '2026-10-14 15:02:09' WHERE storedetailid = '1375';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1375', '1', '12', '1', '519', 'اضافة فاتورة مبيعات', 'sellbillController.php', '124', '112', '6', '2026-10-14 15:02:09','0','0'); -- id=5464
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+8 where id = 53;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01368', '519', '91', '1368', '8', '330', '2640', '0', '', '0', '2026-10-14 15:02:09', '1368', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','53-8,','1','1','0','0','330','2640','0','','0','0.00','0','0','0','0'); -- id=1859
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 382.33, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 382.33
        , lastbuyprice_withTax = 382.33, meanbuyprice_withTax = 382.33, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1859;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1368, '2026-10-14', 2640, 2160, 2160
                    , 3058.64, 2160, 3058.64, 2160
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8, 0, 3058.64, 3058.64, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2640, sellCostBuyPrice =sellCostBuyPrice+2160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3058.64
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3058.64
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2160
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3058.64
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3058.64
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+8
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2640, 2160, 2160
                    , 3058.64, 2160, 3058.64, 2160
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3058.64, 3058.64, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2640, sellCostBuyPrice =sellCostBuyPrice+2160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3058.64
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3058.64
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2160
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3058.64
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3058.64
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '104', userid = '6', storedetaildate = '2026-10-14 15:02:09' WHERE storedetailid = '1368';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1368', '1', '8', '1', '519', 'اضافة فاتورة مبيعات', 'sellbillController.php', '112', '104', '6', '2026-10-14 15:02:09','0','0'); -- id=5465
CALL saveInUse(4,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '286120',  userid = '6' WHERE saveid = '4';
UPDATE save SET  inUse = 0 where saveid = 4;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('254980','31140', '0', '4', 'اضافة فاتورة مبيعات', '519', '286120', '2026-10-14 15:02:09', '6',  'sellbillController.php','1','','0'); -- id=657
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '31140', '31140', '2026-10-14', '6', '0', '0', '2026-10-14 15:02:09','اضافة فاتورة مبيعات رقم 519','1','0',null,'0','519','sellbillController.php?do=showDetail&sellbillid=519'); -- id=2381
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2381', '568', '31140', '','0'); -- id=2434
UPDATE accountstree SET name = 'خزنة شروال', customName = 'خزنة شروال', customNameEn = 'خزنة شروال', nameEn = 'خزنة شروال', parent = '40', accountNature = '0', theValue = '286120', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-06 13:37:54' WHERE id = '568';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2381', '143', '31140', '','0'); -- id=2383
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5465365', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '27060', '27060', '2026-10-14', '6', '0', '0', '2026-10-14 15:02:09','اضافة فاتورة مبيعات رقم 519 - صرف البضاعة من المخزن','1','0',null,'0','519','sellbillController.php?do=showDetail&sellbillid=519'); -- id=2382
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2382', '402', '27060', '','0'); -- id=2435
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5099848.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2382', '382', '27060', '','0'); -- id=2384
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22076068.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2381,0,2382' where sellbillid=519;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 31140, 27060, 27060
                    , 27958.64, 27060, 27958.64, 27060
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,27958.64, 27958.64, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+31140, sellCostBuyPrice =sellCostBuyPrice+27060
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+27060, sellCostMeanBuyPrice = sellCostMeanBuyPrice+27958.64
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+27060, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+27958.64
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+27060
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+27958.64
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+27958.64
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 31140, 27060, 27060
                    , 27958.64, 27060, 27958.64, 27060
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,27958.64, 27958.64, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+31140, sellCostBuyPrice =sellCostBuyPrice+27060
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+27060, sellCostMeanBuyPrice = sellCostMeanBuyPrice+27958.64
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+27060, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+27958.64
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+27060
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+27958.64
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+27958.64
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 31140, 27060, 27060
                    , 27958.64, 27060, 27958.64, 27060, 27958.64, 27958.64)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+31140, netSellCostBuyPrice = netSellCostBuyPrice+27060
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+27060
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+27958.64
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+27060
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+27958.64
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+27060
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+27958.64
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+27958.64;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf6cae8fcec and sellbillId = 519 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:32:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:02:09", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:02:09', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9277
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:32:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:02:15", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:02:15', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9278

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf3eaed8e70
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 15:02:15', '06acf3eaed8e70', '1', '0.00', '0', '0', '1', '5700.00', '5700', '5700', '0', '1', '2026-10-14 15:02:15', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '12' ,'0','','','','','-1','0','0','0','0','0','5700','0','','0','0','5700','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=520
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','520', '0', '2026-10-14 15:02:15', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '5700', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 15:02:15','0','0','',''); -- id=666
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '520', '153', '1921', '6', '485', '2910', '0', '', '0', '2026-10-14 15:02:15', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-6,','1','1','0','0','485','2910','0','','0','0.00','0','0','0','0'); -- id=1860
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1860;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 2910, 2760, 2760
                    , 2760, 2760, 2760, 2760
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2760, 2760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2910, sellCostBuyPrice =sellCostBuyPrice+2760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2760, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2760
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2760
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2910, 2760, 2760
                    , 2760, 2760, 2760, 2760
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2760, 2760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2910, sellCostBuyPrice =sellCostBuyPrice+2760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2760, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2760
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2760
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '192', userid = '3', storedetaildate = '2026-10-14 15:02:15' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '6', '1', '520', 'اضافة فاتورة مبيعات', 'sellbillController.php', '198', '192', '3', '2026-10-14 15:02:15','0','0'); -- id=5466
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 575;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('427.8','01712', '520', '128', '1712', '6', '465', '2790', '0', '', '0', '2026-10-14 15:02:15', '1712', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','575-6,','1','1','0','0','465','2790','0','','0','0.00','0','0','0','0'); -- id=1861
UPDATE sellbilldetail SET  lastbuyprice = 465.00 , meanbuyprice = 465.00, lastbuyprice_withDiscount = 427.80, meanbuyprice_withDiscount = 446.40
        , lastbuyprice_withTax = 465, meanbuyprice_withTax = 232.5, lastbuyprice_withDiscountAndTax = 427.8
                where sellbilldetailid = 1861;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1712, '2026-10-14', 2790, 2790, 2790
                    , 2790, 2566.8, 2678.4, 2566.8
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2790, 1395, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2790, sellCostBuyPrice =sellCostBuyPrice+2790
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2790, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2790
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2566.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2678.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2566.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2790
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1395
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2790, 2790, 2790
                    , 2790, 2566.8, 2678.4, 2566.8
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2790, 1395, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2790, sellCostBuyPrice =sellCostBuyPrice+2790
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2790, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2790
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2566.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2678.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2566.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2790
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1395
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '18', userid = '3', storedetaildate = '2026-10-14 15:02:15' WHERE storedetailid = '2724';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1712', '1', '6', '1', '520', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '18', '3', '2026-10-14 15:02:15','0','0'); -- id=5467
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3277015',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3271315','5700', '0', '2', 'اضافة فاتورة مبيعات', '520', '3277015', '2026-10-14 15:02:15', '3',  'sellbillController.php','1','','0'); -- id=658
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '5700', '5700', '2026-10-14', '3', '0', '0', '2026-10-14 15:02:16','اضافة فاتورة مبيعات رقم 520','1','0',null,'0','520','sellbillController.php?do=showDetail&sellbillid=520'); -- id=2383
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2383', '419', '5700', '','0'); -- id=2436
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3277015', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2383', '143', '5700', '','0'); -- id=2385
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5471065', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '5326.8', '5326.8', '2026-10-14', '3', '0', '0', '2026-10-14 15:02:16','اضافة فاتورة مبيعات رقم 520 - صرف البضاعة من المخزن','1','0',null,'0','520','sellbillController.php?do=showDetail&sellbillid=520'); -- id=2384
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2384', '402', '5326.8', '','0'); -- id=2437
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5105175.27', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2384', '382', '5326.8', '','0'); -- id=2386
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22070742.03', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2383,0,2384' where sellbillid=520;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 5700, 5550, 5550
                    , 5550, 5326.8, 5438.4, 5326.8
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,5550, 4155, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5700, sellCostBuyPrice =sellCostBuyPrice+5550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5326.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5438.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5326.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4155
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5700, 5550, 5550
                    , 5550, 5326.8, 5438.4, 5326.8
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,5550, 4155, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5700, sellCostBuyPrice =sellCostBuyPrice+5550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5326.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5438.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5326.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4155
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 5700, 5550, 5550
                    , 5550, 5326.8, 5438.4, 5326.8, 5550, 4155)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+5700, netSellCostBuyPrice = netSellCostBuyPrice+5550
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+5550
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+5550
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+5326.8
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+5438.4
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+5326.8
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+5550
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+4155;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf3eaed8e70 and sellbillId = 520 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:32:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:02:16", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:02:16', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9279
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:34:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:04:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 15:04:15', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9280
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 11:34:15";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 15:04:16', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9281
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:34:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:04:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 15:04:16', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9282
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 11:34:16";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 15:04:16', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9283
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:34:19";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:04:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:04:19', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9284
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:34:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:04:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:04:49', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9285
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:36:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:06:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:06:09', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9286
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:40:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:10:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:10:22', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9287
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديلات 330 بريشكا','','59','320','330','330','330','2026-10-14','0','1','0','','0','0','0','0','0','320','320','320','320','320','0','3.13','0','0','.','0','0','0','320','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','320','320','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','320','0','0','0','0','0','0','','','0','0','0','0'); -- id=1972
UPDATE product SET productName = 'موديلات 330 بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '320', productSellAllPrice = '330', productSellUnitPrice = '330', productSellHalfPrice = '330', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01972',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '320',lastbuyprice_withDiscount = '320',meanbuyprice = '320',meanbuyprice_withDiscount = '320' , productbuypricereal = '320' , buypricereal_precentage = '0' , buytotal_precentage = '3.13' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='320',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='320',meanbuyprice_withTax='320',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='320',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1972';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1972', '1', '2026-10-14', '1', '0','0197201','330','330','330','320','','0','0','0','0','0','0','0','0','0','0'); -- id=1972
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1972', '1', '0', '1', '2026-10-14'); -- id=2989
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1972', '1', '0', '0', '1972', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5468
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1972, 1,'2026-10-14 15:10:22',1)
                ON DUPLICATE KEY UPDATE productid = 1972, edited = 1, sysdate = '2026-10-14 15:10:22', userid = 1; -- id=2921
UPDATE product SET productName = 'موديلات 330 بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '320.00', productSellAllPrice = '330.00', productSellUnitPrice = '330.00', productSellHalfPrice = '330.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01972',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '320',lastbuyprice_withDiscount = '320',meanbuyprice = '320',meanbuyprice_withDiscount = '320' , productbuypricereal = '320' , buypricereal_precentage = '0' , buytotal_precentage = '3.13' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='320',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='320',meanbuyprice_withTax='320',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='320',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1972';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('قطن مضلع بريشكا','','59','330','340','340','340','2026-10-14','0','1','0','','0','0','0','0','0','330','330','330','330','330','0','3.03','0','0','.','0','0','0','330','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','330','330','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','330','0','0','0','0','0','0','','','0','0','0','0'); -- id=1973
UPDATE product SET productName = 'قطن مضلع بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '330', productSellAllPrice = '340', productSellUnitPrice = '340', productSellHalfPrice = '340', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01973',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '330',lastbuyprice_withDiscount = '330',meanbuyprice = '330',meanbuyprice_withDiscount = '330' , productbuypricereal = '330' , buypricereal_precentage = '0' , buytotal_precentage = '3.03' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='330',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='330',meanbuyprice_withTax='330',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='330',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1973';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1973', '1', '2026-10-14', '1', '0','0197301','340','340','340','330','','0','0','0','0','0','0','0','0','0','0'); -- id=1973
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1973', '1', '0', '1', '2026-10-14'); -- id=2990
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1973', '1', '0', '0', '1973', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5469
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1973, 1,'2026-10-14 15:10:22',1)
                ON DUPLICATE KEY UPDATE productid = 1973, edited = 1, sysdate = '2026-10-14 15:10:22', userid = 1; -- id=2922
UPDATE product SET productName = 'قطن مضلع بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '330.00', productSellAllPrice = '340.00', productSellUnitPrice = '340.00', productSellHalfPrice = '340.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01973',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '330',lastbuyprice_withDiscount = '330',meanbuyprice = '330',meanbuyprice_withDiscount = '330' , productbuypricereal = '330' , buypricereal_precentage = '0' , buytotal_precentage = '3.03' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='330',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='330',meanbuyprice_withTax='330',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='330',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1973';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('شريحه ربر بريشكا','','59','300','310','310','310','2026-10-14','0','1','0','','0','0','0','0','0','300','300','300','300','300','0','3.33','0','0','.','0','0','0','300','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','300','300','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','300','0','0','0','0','0','0','','','0','0','0','0'); -- id=1974
UPDATE product SET productName = 'شريحه ربر بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '300', productSellAllPrice = '310', productSellUnitPrice = '310', productSellHalfPrice = '310', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01974',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '300',lastbuyprice_withDiscount = '300',meanbuyprice = '300',meanbuyprice_withDiscount = '300' , productbuypricereal = '300' , buypricereal_precentage = '0' , buytotal_precentage = '3.33' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='300',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='300',meanbuyprice_withTax='300',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='300',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1974';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1974', '1', '2026-10-14', '1', '0','0197401','310','310','310','300','','0','0','0','0','0','0','0','0','0','0'); -- id=1974
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1974', '1', '0', '1', '2026-10-14'); -- id=2991
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1974', '1', '0', '0', '1974', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5470
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1974, 1,'2026-10-14 15:10:22',1)
                ON DUPLICATE KEY UPDATE productid = 1974, edited = 1, sysdate = '2026-10-14 15:10:22', userid = 1; -- id=2923
UPDATE product SET productName = 'شريحه ربر بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '300.00', productSellAllPrice = '310.00', productSellUnitPrice = '310.00', productSellHalfPrice = '310.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01974',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '300',lastbuyprice_withDiscount = '300',meanbuyprice = '300',meanbuyprice_withDiscount = '300' , productbuypricereal = '300' , buypricereal_precentage = '0' , buytotal_precentage = '3.33' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='300',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='300',meanbuyprice_withTax='300',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='300',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1974';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جينز بريشكا','','59','200','210','210','210','2026-10-14','0','1','0','','0','0','0','0','0','200','200','200','200','200','0','5','0','0','.','0','0','0','200','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','200','200','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','200','0','0','0','0','0','0','','','0','0','0','0'); -- id=1975
UPDATE product SET productName = 'جينز بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '200', productSellAllPrice = '210', productSellUnitPrice = '210', productSellHalfPrice = '210', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01975',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '200',lastbuyprice_withDiscount = '200',meanbuyprice = '200',meanbuyprice_withDiscount = '200' , productbuypricereal = '200' , buypricereal_precentage = '0' , buytotal_precentage = '5' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='200',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='200',meanbuyprice_withTax='200',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='200',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1975';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1975', '1', '2026-10-14', '1', '0','0197501','210','210','210','200','','0','0','0','0','0','0','0','0','0','0'); -- id=1975
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1975', '1', '0', '1', '2026-10-14'); -- id=2992
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1975', '1', '0', '0', '1975', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5471
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1975, 1,'2026-10-14 15:10:22',1)
                ON DUPLICATE KEY UPDATE productid = 1975, edited = 1, sysdate = '2026-10-14 15:10:22', userid = 1; -- id=2924
UPDATE product SET productName = 'جينز بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '200.00', productSellAllPrice = '210.00', productSellUnitPrice = '210.00', productSellHalfPrice = '210.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01975',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '200',lastbuyprice_withDiscount = '200',meanbuyprice = '200',meanbuyprice_withDiscount = '200' , productbuypricereal = '200' , buypricereal_precentage = '0' , buytotal_precentage = '5' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='200',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='200',meanbuyprice_withTax='200',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='200',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1975';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديلات 320 بريشكا','','59','310','320','320','320','2026-10-14','0','1','0','','0','0','0','0','0','310','310','310','310','310','0','3.23','0','0','.','0','0','0','310','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','310','310','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','310','0','0','0','0','0','0','','','0','0','0','0'); -- id=1976
UPDATE product SET productName = 'موديلات 320 بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '310', productSellAllPrice = '320', productSellUnitPrice = '320', productSellHalfPrice = '320', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01976',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310',lastbuyprice_withDiscount = '310',meanbuyprice = '310',meanbuyprice_withDiscount = '310' , productbuypricereal = '310' , buypricereal_precentage = '0' , buytotal_precentage = '3.23' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1976';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1976', '1', '2026-10-14', '1', '0','0197601','320','320','320','310','','0','0','0','0','0','0','0','0','0','0'); -- id=1976
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1976', '1', '0', '1', '2026-10-14'); -- id=2993
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1976', '1', '0', '0', '1976', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5472
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1976, 1,'2026-10-14 15:10:22',1)
                ON DUPLICATE KEY UPDATE productid = 1976, edited = 1, sysdate = '2026-10-14 15:10:22', userid = 1; -- id=2925
UPDATE product SET productName = 'موديلات 320 بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '310.00', productSellAllPrice = '320.00', productSellUnitPrice = '320.00', productSellHalfPrice = '320.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01976',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310',lastbuyprice_withDiscount = '310',meanbuyprice = '310',meanbuyprice_withDiscount = '310' , productbuypricereal = '310' , buypricereal_precentage = '0' , buytotal_precentage = '3.23' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1976';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:40:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:10:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:10:24', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9288
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:40:27";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:10:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 15:10:27', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9289
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:47:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:17:31", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 15:17:31', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9290
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 11:47:31";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 15:17:31', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9291
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:47:38";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:17:38", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:17:38', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9292
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:49:53";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:19:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 15:19:53', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9293
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf71337cb14', '2026-10-14 15:10:27', '68', '162185.00', '270665', '0', '0', '108480.00',  '108480.00', '0', '108480', '1', '2026-10-14 15:19:53', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=146
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01972', '146', '59', '1972', '45', '320', '14400.00', '0', '', '2026-10-14 15:19:53', '1972','','','0','0','0','0','0',null,'320','14400','0','0','0','0','0','0','0','0','1'); -- id=889
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:10:27', 1, 1972, 0, 0
                    , 320, 45, 0, 0, 1, '2026-10-14 15:19:53')
                ON DUPLICATE KEY UPDATE buyprice = 320,
                        buyQuantity =buyQuantity+45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 15:19:53' ; -- id=1166
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1972', '320', '45', '0', 'buyBillController.php', '889', '', '0', '0'); -- id=676
UPDATE product SET  productBuyPrice = "320" WHERE productId = 1972 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 889 ;
UPDATE product SET productName = 'موديلات 330 بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '320.00', productSellAllPrice = '330.00', productSellUnitPrice = '330.00', productSellHalfPrice = '330.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01972',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '320',lastbuyprice_withDiscount = '320',meanbuyprice = '320',meanbuyprice_withDiscount = '320' , productbuypricereal = '320.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.13' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='320',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='320',meanbuyprice_withTax='320',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='320',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1972';
UPDATE buybilldetail SET  lastbuyprice = 320 , meanbuyprice = 320, lastbuyprice_withDiscount = 320, meanbuyprice_withDiscount = 320
        , lastbuyprice_withTax = 320, meanbuyprice_withTax = 320, lastbuyprice_withDiscountAndTax = 320
                where buybilldetailid = 889;
UPDATE productunit SET proUnitBuyPrice  = 320 * productnumber WHERE productid = 1972;
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2989';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1972', '1', '45', '0', '146', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '45', '1', '2026-10-14 15:10:27','0','0'); -- id=5473
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01973', '146', '59', '1973', '39', '330', '12870.00', '0', '', '2026-10-14 15:19:53', '1973','','','0','0','0','0','0',null,'330','12870','0','0','0','0','0','0','0','0','1'); -- id=890
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:10:27', 1, 1973, 0, 0
                    , 330, 39, 0, 0, 1, '2026-10-14 15:19:53')
                ON DUPLICATE KEY UPDATE buyprice = 330,
                        buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 15:19:53' ; -- id=1167
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1973', '330', '39', '0', 'buyBillController.php', '890', '', '0', '0'); -- id=677
UPDATE product SET  productBuyPrice = "330" WHERE productId = 1973 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 890 ;
UPDATE product SET productName = 'قطن مضلع بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '330.00', productSellAllPrice = '340.00', productSellUnitPrice = '340.00', productSellHalfPrice = '340.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01973',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '330',lastbuyprice_withDiscount = '330',meanbuyprice = '330',meanbuyprice_withDiscount = '330' , productbuypricereal = '330.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.03' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='330',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='330',meanbuyprice_withTax='330',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='330',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1973';
UPDATE buybilldetail SET  lastbuyprice = 330 , meanbuyprice = 330, lastbuyprice_withDiscount = 330, meanbuyprice_withDiscount = 330
        , lastbuyprice_withTax = 330, meanbuyprice_withTax = 330, lastbuyprice_withDiscountAndTax = 330
                where buybilldetailid = 890;
UPDATE productunit SET proUnitBuyPrice  = 330 * productnumber WHERE productid = 1973;
UPDATE storedetail SET  productquantity = '39', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2990';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1973', '1', '39', '0', '146', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '39', '1', '2026-10-14 15:10:27','0','0'); -- id=5474
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01974', '146', '59', '1974', '45', '300', '13500.00', '0', '', '2026-10-14 15:19:53', '1974','','','0','0','0','0','0',null,'300','13500','0','0','0','0','0','0','0','0','1'); -- id=891
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:10:27', 1, 1974, 0, 0
                    , 300, 45, 0, 0, 1, '2026-10-14 15:19:53')
                ON DUPLICATE KEY UPDATE buyprice = 300,
                        buyQuantity =buyQuantity+45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 15:19:53' ; -- id=1168
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1974', '300', '45', '0', 'buyBillController.php', '891', '', '0', '0'); -- id=678
UPDATE product SET  productBuyPrice = "300" WHERE productId = 1974 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 891 ;
UPDATE product SET productName = 'شريحه ربر بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '300.00', productSellAllPrice = '310.00', productSellUnitPrice = '310.00', productSellHalfPrice = '310.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01974',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '300',lastbuyprice_withDiscount = '300',meanbuyprice = '300',meanbuyprice_withDiscount = '300' , productbuypricereal = '300.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.33' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='300',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='300',meanbuyprice_withTax='300',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='300',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1974';
UPDATE buybilldetail SET  lastbuyprice = 300 , meanbuyprice = 300, lastbuyprice_withDiscount = 300, meanbuyprice_withDiscount = 300
        , lastbuyprice_withTax = 300, meanbuyprice_withTax = 300, lastbuyprice_withDiscountAndTax = 300
                where buybilldetailid = 891;
UPDATE productunit SET proUnitBuyPrice  = 300 * productnumber WHERE productid = 1974;
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2991';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1974', '1', '45', '0', '146', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '45', '1', '2026-10-14 15:10:27','0','0'); -- id=5475
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01975', '146', '59', '1975', '39', '200', '7800.00', '0', '', '2026-10-14 15:19:53', '1975','','','0','0','0','0','0',null,'200','7800','0','0','0','0','0','0','0','0','1'); -- id=892
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:10:27', 1, 1975, 0, 0
                    , 200, 39, 0, 0, 1, '2026-10-14 15:19:53')
                ON DUPLICATE KEY UPDATE buyprice = 200,
                        buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 15:19:53' ; -- id=1169
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1975', '200', '39', '0', 'buyBillController.php', '892', '', '0', '0'); -- id=679
UPDATE product SET  productBuyPrice = "200" WHERE productId = 1975 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 892 ;
UPDATE product SET productName = 'جينز بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '200.00', productSellAllPrice = '210.00', productSellUnitPrice = '210.00', productSellHalfPrice = '210.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01975',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '200',lastbuyprice_withDiscount = '200',meanbuyprice = '200',meanbuyprice_withDiscount = '200' , productbuypricereal = '200.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='200',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='200',meanbuyprice_withTax='200',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='200',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1975';
UPDATE buybilldetail SET  lastbuyprice = 200 , meanbuyprice = 200, lastbuyprice_withDiscount = 200, meanbuyprice_withDiscount = 200
        , lastbuyprice_withTax = 200, meanbuyprice_withTax = 200, lastbuyprice_withDiscountAndTax = 200
                where buybilldetailid = 892;
UPDATE productunit SET proUnitBuyPrice  = 200 * productnumber WHERE productid = 1975;
UPDATE storedetail SET  productquantity = '39', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2992';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1975', '1', '39', '0', '146', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '39', '1', '2026-10-14 15:10:27','0','0'); -- id=5476
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01976', '146', '59', '1976', '33', '310', '10230.00', '0', '', '2026-10-14 15:19:53', '1976','','','0','0','0','0','0',null,'310','10230','0','0','0','0','0','0','0','0','1'); -- id=893
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:10:27', 1, 1976, 0, 0
                    , 310, 33, 0, 0, 1, '2026-10-14 15:19:53')
                ON DUPLICATE KEY UPDATE buyprice = 310,
                        buyQuantity =buyQuantity+33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 15:19:53' ; -- id=1170
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1976', '310', '33', '0', 'buyBillController.php', '893', '', '0', '0'); -- id=680
UPDATE product SET  productBuyPrice = "310" WHERE productId = 1976 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 893 ;
UPDATE product SET productName = 'موديلات 320 بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '310.00', productSellAllPrice = '320.00', productSellUnitPrice = '320.00', productSellHalfPrice = '320.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01976',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310',lastbuyprice_withDiscount = '310',meanbuyprice = '310',meanbuyprice_withDiscount = '310' , productbuypricereal = '310.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.23' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1976';
UPDATE buybilldetail SET  lastbuyprice = 310 , meanbuyprice = 310, lastbuyprice_withDiscount = 310, meanbuyprice_withDiscount = 310
        , lastbuyprice_withTax = 310, meanbuyprice_withTax = 310, lastbuyprice_withDiscountAndTax = 310
                where buybilldetailid = 893;
UPDATE productunit SET proUnitBuyPrice  = 310 * productnumber WHERE productid = 1976;
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2993';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1976', '1', '33', '0', '146', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '33', '1', '2026-10-14 15:10:27','0','0'); -- id=5477
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01976', '146', '59', '1976', '45', '310', '13950.00', '0', '', '2026-10-14 15:19:53', '1976','','','0','0','0','0','0',null,'310','13950','0','0','0','0','0','0','0','0','1'); -- id=894
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:10:27', 1, 1976, 0, 0
                    , 310, 45, 0, 0, 1, '2026-10-14 15:19:53')
                ON DUPLICATE KEY UPDATE buyprice = 310,
                        buyQuantity =buyQuantity+45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 15:19:53' ; -- id=1170
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1976', '310', '45', '0', 'buyBillController.php', '894', '', '0', '0'); -- id=681
UPDATE product SET  productBuyPrice = "310" WHERE productId = 1976 ;
UPDATE buybilldetail SET  quantitybefore = 33 WHERE buybilldetailid = 894 ;
UPDATE product SET productName = 'موديلات 320 بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '310.00', productSellAllPrice = '320.00', productSellUnitPrice = '320.00', productSellHalfPrice = '320.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01976',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310',lastbuyprice_withDiscount = '310',meanbuyprice = '310',meanbuyprice_withDiscount = '310' , productbuypricereal = '310.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.23' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1976';
UPDATE buybilldetail SET  lastbuyprice = 310 , meanbuyprice = 310, lastbuyprice_withDiscount = 310, meanbuyprice_withDiscount = 310
        , lastbuyprice_withTax = 310, meanbuyprice_withTax = 310, lastbuyprice_withDiscountAndTax = 310
                where buybilldetailid = 894;
UPDATE productunit SET proUnitBuyPrice  = 310 * productnumber WHERE productid = 1976;
UPDATE storedetail SET  productquantity = '78', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2993';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1976', '1', '45', '0', '146', 'اضافة فاتورة مشتريات', 'buyBillController.php', '33', '78', '1', '2026-10-14 15:10:27','0','0'); -- id=5478
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01976', '146', '59', '1976', '42', '310', '13020.00', '0', '', '2026-10-14 15:19:53', '1976','','','0','0','0','0','0',null,'310','13020','0','0','0','0','0','0','0','0','1'); -- id=895
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:10:27', 1, 1976, 0, 0
                    , 310, 42, 0, 0, 1, '2026-10-14 15:19:53')
                ON DUPLICATE KEY UPDATE buyprice = 310,
                        buyQuantity =buyQuantity+42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 15:19:53' ; -- id=1170
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1976', '310', '42', '0', 'buyBillController.php', '895', '', '0', '0'); -- id=682
UPDATE product SET  productBuyPrice = "310" WHERE productId = 1976 ;
UPDATE buybilldetail SET  quantitybefore = 78 WHERE buybilldetailid = 895 ;
UPDATE product SET productName = 'موديلات 320 بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '310.00', productSellAllPrice = '320.00', productSellUnitPrice = '320.00', productSellHalfPrice = '320.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01976',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310',lastbuyprice_withDiscount = '310',meanbuyprice = '310',meanbuyprice_withDiscount = '310' , productbuypricereal = '310.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.23' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1976';
UPDATE buybilldetail SET  lastbuyprice = 310 , meanbuyprice = 310, lastbuyprice_withDiscount = 310, meanbuyprice_withDiscount = 310
        , lastbuyprice_withTax = 310, meanbuyprice_withTax = 310, lastbuyprice_withDiscountAndTax = 310
                where buybilldetailid = 895;
UPDATE productunit SET proUnitBuyPrice  = 310 * productnumber WHERE productid = 1976;
UPDATE storedetail SET  productquantity = '120', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2993';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1976', '1', '42', '0', '146', 'اضافة فاتورة مشتريات', 'buyBillController.php', '78', '120', '1', '2026-10-14 15:10:27','0','0'); -- id=5479
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01976', '146', '59', '1976', '33', '310', '10230.00', '0', '', '2026-10-14 15:19:53', '1976','','','0','0','0','0','0',null,'310','10230','0','0','0','0','0','0','0','0','1'); -- id=896
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:10:27', 1, 1976, 0, 0
                    , 310, 33, 0, 0, 1, '2026-10-14 15:19:53')
                ON DUPLICATE KEY UPDATE buyprice = 310,
                        buyQuantity =buyQuantity+33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 15:19:53' ; -- id=1170
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1976', '310', '33', '0', 'buyBillController.php', '896', '', '0', '0'); -- id=683
UPDATE product SET  productBuyPrice = "310" WHERE productId = 1976 ;
UPDATE buybilldetail SET  quantitybefore = 120 WHERE buybilldetailid = 896 ;
UPDATE product SET productName = 'موديلات 320 بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '310.00', productSellAllPrice = '320.00', productSellUnitPrice = '320.00', productSellHalfPrice = '320.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01976',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310',lastbuyprice_withDiscount = '310',meanbuyprice = '310',meanbuyprice_withDiscount = '310' , productbuypricereal = '310.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.23' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1976';
UPDATE buybilldetail SET  lastbuyprice = 310 , meanbuyprice = 310, lastbuyprice_withDiscount = 310, meanbuyprice_withDiscount = 310
        , lastbuyprice_withTax = 310, meanbuyprice_withTax = 310, lastbuyprice_withDiscountAndTax = 310
                where buybilldetailid = 896;
UPDATE productunit SET proUnitBuyPrice  = 310 * productnumber WHERE productid = 1976;
UPDATE storedetail SET  productquantity = '153', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2993';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1976', '1', '33', '0', '146', 'اضافة فاتورة مشتريات', 'buyBillController.php', '120', '153', '1', '2026-10-14 15:10:27','0','0'); -- id=5480
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01972', '146', '59', '1972', '39', '320', '12480.00', '0', '', '2026-10-14 15:19:53', '1972','','','0','0','0','0','0',null,'320','12480','0','0','0','0','0','0','0','0','1'); -- id=897
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:10:27', 1, 1972, 0, 0
                    , 320, 39, 0, 0, 1, '2026-10-14 15:19:53')
                ON DUPLICATE KEY UPDATE buyprice = 320,
                        buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 15:19:53' ; -- id=1166
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1972', '320', '39', '0', 'buyBillController.php', '897', '', '0', '0'); -- id=684
UPDATE product SET  productBuyPrice = "320" WHERE productId = 1972 ;
UPDATE buybilldetail SET  quantitybefore = 45 WHERE buybilldetailid = 897 ;
UPDATE product SET productName = 'موديلات 330 بريشكا', productDescription = '', productCatId = '59', productBuyPrice = '320.00', productSellAllPrice = '330.00', productSellUnitPrice = '330.00', productSellHalfPrice = '330.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01972',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '320',lastbuyprice_withDiscount = '320',meanbuyprice = '320',meanbuyprice_withDiscount = '320' , productbuypricereal = '320.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.13' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='320',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='320',meanbuyprice_withTax='320',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='320',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1972';
UPDATE buybilldetail SET  lastbuyprice = 320 , meanbuyprice = 320, lastbuyprice_withDiscount = 320, meanbuyprice_withDiscount = 320
        , lastbuyprice_withTax = 320, meanbuyprice_withTax = 320, lastbuyprice_withDiscountAndTax = 320
                where buybilldetailid = 897;
UPDATE productunit SET proUnitBuyPrice  = 320 * productnumber WHERE productid = 1972;
UPDATE storedetail SET  productquantity = '84', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2989';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1972', '1', '39', '0', '146', 'اضافة فاتورة مشتريات', 'buyBillController.php', '45', '84', '1', '2026-10-14 15:10:27','0','0'); -- id=5481
UPDATE supplier SET  suppliercurrentDebt = '270665',suppliercurrentDebtInCurrency= '270665' , userid = '1', supplierdate = '2026-10-14 15:19:53'   WHERE supplierid = '68';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('68', '162185.00', '108480', '0', 'اضافة فاتورة مشتريات', '146', '270665', '2026-10-14 15:10:27', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','108480','1','162185','108480','270665','0',''); -- id=475
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '108480', '108480', '2026-10-14', '1', '0', '0', '2026-10-14 15:19:53','اضافة فاتورة مشتريات رقم 146','1','0',null,'0','146','buyBillController.php?do=details&id=146'); -- id=2385
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2385', '382', '108480', '','0'); -- id=2438
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22179222.03', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2385', '487', '108480', '','0'); -- id=2387
UPDATE accountstree SET name = 'بريشكا - مورد', customName = 'بريشكا - مورد', customNameEn = 'بريشكا - مورد', nameEn = 'بريشكا - مورد', parent = '81', accountNature = '1', theValue = '64480', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '487';
update buybill set dailyentryid='2385,0' where buybillid=146;
COMMIT;
UPDATE product SET overAllAveragePrice = 320 WHERE productId = 1972;UPDATE product SET overAllAveragePrice = 330 WHERE productId = 1973;UPDATE product SET overAllAveragePrice = 300 WHERE productId = 1974;UPDATE product SET overAllAveragePrice = 200 WHERE productId = 1975;UPDATE product SET overAllAveragePrice = 310 WHERE productId = 1976;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:49:53";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:19:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 15:19:53', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=146'); -- id=9294
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:50:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:20:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:20:01', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=146&type=2'); -- id=9295
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:52:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:22:14", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 15:22:14', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9296
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 11:52:14";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 15:22:14', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9297
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:53:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:23:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:23:03', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=146&type=2'); -- id=9298
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:53:13";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:23:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:23:13', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9299
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:53:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:23:22", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:23:22', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9300

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf6f483e767
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 15:23:22', '06acf6f483e767', '1', '0.00', '0', '0', '1', '3350.00', '3350', '3350', '0', '1', '2026-10-14 15:23:22', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '5' ,'0','','','','','-1','0','0','0','0','0','3350','0','','0','0','3350','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=521
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','521', '0', '2026-10-14 15:23:22', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '3350', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 15:23:22','0','0','',''); -- id=667
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+5 where id = 1154;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('650','01962', '521', '28', '1962', '5', '670', '3350', '0', '', '0', '2026-10-14 15:23:22', '1962', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1154-5,','1','1','0','0','670','3350','0','','0','0.00','0','0','0','0'); -- id=1862
UPDATE sellbilldetail SET  lastbuyprice = 650.00 , meanbuyprice = 650.00, lastbuyprice_withDiscount = 650.00, meanbuyprice_withDiscount = 650.00
        , lastbuyprice_withTax = 650, meanbuyprice_withTax = 650, lastbuyprice_withDiscountAndTax = 650
                where sellbilldetailid = 1862;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1962, '2026-10-14', 3350, 3250, 3250
                    , 3250, 3250, 3250, 3250
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 3250, 3250, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3350, sellCostBuyPrice =sellCostBuyPrice+3250
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3250, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3250
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3250, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3250
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3250
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3250
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3250
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3350, 3250, 3250
                    , 3250, 3250, 3250, 3250
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3250, 3250, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3350, sellCostBuyPrice =sellCostBuyPrice+3250
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3250, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3250
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3250, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3250
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3250
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3250
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3250
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '10', userid = '3', storedetaildate = '2026-10-14 15:23:22' WHERE storedetailid = '2979';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1962', '1', '5', '1', '521', 'اضافة فاتورة مبيعات', 'sellbillController.php', '15', '10', '3', '2026-10-14 15:23:22','0','0'); -- id=5482
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3280365',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3277015','3350', '0', '2', 'اضافة فاتورة مبيعات', '521', '3280365', '2026-10-14 15:23:22', '3',  'sellbillController.php','1','','0'); -- id=659
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '3350', '3350', '2026-10-14', '3', '0', '0', '2026-10-14 15:23:22','اضافة فاتورة مبيعات رقم 521','1','0',null,'0','521','sellbillController.php?do=showDetail&sellbillid=521'); -- id=2386
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2386', '419', '3350', '','0'); -- id=2439
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3280365', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2386', '143', '3350', '','0'); -- id=2388
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5474415', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '3250', '3250', '2026-10-14', '3', '0', '0', '2026-10-14 15:23:22','اضافة فاتورة مبيعات رقم 521 - صرف البضاعة من المخزن','1','0',null,'0','521','sellbillController.php?do=showDetail&sellbillid=521'); -- id=2387
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2387', '402', '3250', '','0'); -- id=2440
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5108425.27', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2387', '382', '3250', '','0'); -- id=2389
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22175972.03', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2386,0,2387' where sellbillid=521;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 3350, 3250, 3250
                    , 3250, 3250, 3250, 3250
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,3250, 3250, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3350, sellCostBuyPrice =sellCostBuyPrice+3250
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3250, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3250
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3250, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3250
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3250
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3250
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3250
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3350, 3250, 3250
                    , 3250, 3250, 3250, 3250
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,3250, 3250, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3350, sellCostBuyPrice =sellCostBuyPrice+3250
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3250, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3250
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3250, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3250
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3250
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3250
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3250
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 3350, 3250, 3250
                    , 3250, 3250, 3250, 3250, 3250, 3250)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+3350, netSellCostBuyPrice = netSellCostBuyPrice+3250
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+3250
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+3250
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+3250
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+3250
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+3250
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+3250
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+3250;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf6f483e767 and sellbillId = 521 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:53:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:23:22", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:23:22', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9301
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:53:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:23:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:23:24', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9302
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:55:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:25:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 15:25:03', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9303
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:56:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:26:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:26:35', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9304
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:59:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:29:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:29:23', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9305
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('دربي الماظ رش 1219 ميلانو','','37','550','570','570','570','2026-10-14','0','1','0','','0','0','0','0','0','550','550','550','550','550','0','3.64','0','0','.','0','0','0','550','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','550','550','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','550','0','0','0','0','0','0','','','0','0','0','0'); -- id=1977
UPDATE product SET productName = 'دربي الماظ رش 1219 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '550', productSellAllPrice = '570', productSellUnitPrice = '570', productSellHalfPrice = '570', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01977',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '550',meanbuyprice = '550',meanbuyprice_withDiscount = '550' , productbuypricereal = '550' , buypricereal_precentage = '0' , buytotal_precentage = '3.64' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='550',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1977';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1977', '1', '2026-10-14', '1', '0','0197701','570','570','570','550','','0','0','0','0','0','0','0','0','0','0'); -- id=1977
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1977', '1', '0', '1', '2026-10-14'); -- id=2994
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1977', '1', '0', '0', '1977', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5483
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1977, 1,'2026-10-14 15:29:23',1)
                ON DUPLICATE KEY UPDATE productid = 1977, edited = 1, sysdate = '2026-10-14 15:29:23', userid = 1; -- id=2926
UPDATE product SET productName = 'دربي الماظ رش 1219 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '550.00', productSellAllPrice = '570.00', productSellUnitPrice = '570.00', productSellHalfPrice = '570.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01977',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '550',meanbuyprice = '550',meanbuyprice_withDiscount = '550' , productbuypricereal = '550' , buypricereal_precentage = '0' , buytotal_precentage = '3.64' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='550',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1977';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كفراج 2004 ميلانو','','37','500','520','520','520','2026-10-14','0','1','0','','0','0','0','0','0','500','500','500','500','500','0','4','0','0','.','0','0','0','500','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','500','500','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','500','0','0','0','0','0','0','','','0','0','0','0'); -- id=1978
UPDATE product SET productName = 'كفراج 2004 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '500', productSellAllPrice = '520', productSellUnitPrice = '520', productSellHalfPrice = '520', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01978',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500' , buypricereal_precentage = '0' , buytotal_precentage = '4' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1978';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1978', '1', '2026-10-14', '1', '0','0197801','520','520','520','500','','0','0','0','0','0','0','0','0','0','0'); -- id=1978
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1978', '1', '0', '1', '2026-10-14'); -- id=2995
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1978', '1', '0', '0', '1978', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5484
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1978, 1,'2026-10-14 15:29:23',1)
                ON DUPLICATE KEY UPDATE productid = 1978, edited = 1, sysdate = '2026-10-14 15:29:23', userid = 1; -- id=2927
UPDATE product SET productName = 'كفراج 2004 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '500.00', productSellAllPrice = '520.00', productSellUnitPrice = '520.00', productSellHalfPrice = '520.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01978',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500' , buypricereal_precentage = '0' , buytotal_precentage = '4' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1978';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('اميري فوطة حروف 2026 ميلانو','','37','580','600','600','600','2026-10-14','0','1','0','','0','0','0','0','0','580','580','580','580','580','0','3.45','0','0','.','0','0','0','580','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','580','580','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','580','0','0','0','0','0','0','','','0','0','0','0'); -- id=1979
UPDATE product SET productName = 'اميري فوطة حروف 2026 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '580', productSellAllPrice = '600', productSellUnitPrice = '600', productSellHalfPrice = '600', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01979',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '580',lastbuyprice_withDiscount = '580',meanbuyprice = '580',meanbuyprice_withDiscount = '580' , productbuypricereal = '580' , buypricereal_precentage = '0' , buytotal_precentage = '3.45' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='580',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='580',meanbuyprice_withTax='580',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='580',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1979';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1979', '1', '2026-10-14', '1', '0','0197901','600','600','600','580','','0','0','0','0','0','0','0','0','0','0'); -- id=1979
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1979', '1', '0', '1', '2026-10-14'); -- id=2996
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1979', '1', '0', '0', '1979', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5485
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1979, 1,'2026-10-14 15:29:23',1)
                ON DUPLICATE KEY UPDATE productid = 1979, edited = 1, sysdate = '2026-10-14 15:29:23', userid = 1; -- id=2928
UPDATE product SET productName = 'اميري فوطة حروف 2026 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '580.00', productSellAllPrice = '600.00', productSellUnitPrice = '600.00', productSellHalfPrice = '600.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01979',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '580',lastbuyprice_withDiscount = '580',meanbuyprice = '580',meanbuyprice_withDiscount = '580' , productbuypricereal = '580' , buypricereal_precentage = '0' , buytotal_precentage = '3.45' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='580',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='580',meanbuyprice_withTax='580',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='580',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1979';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('دربي جلد 2011 ميلانو','','37','530','550','550','550','2026-10-14','0','1','0','','0','0','0','0','0','530','530','530','530','530','0','3.77','0','0','.','0','0','0','530','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','530','530','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','530','0','0','0','0','0','0','','','0','0','0','0'); -- id=1980
UPDATE product SET productName = 'دربي جلد 2011 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '530', productSellAllPrice = '550', productSellUnitPrice = '550', productSellHalfPrice = '550', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01980',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '530',lastbuyprice_withDiscount = '530',meanbuyprice = '530',meanbuyprice_withDiscount = '530' , productbuypricereal = '530' , buypricereal_precentage = '0' , buytotal_precentage = '3.77' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='530',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='530',meanbuyprice_withTax='530',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='530',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1980';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1980', '1', '2026-10-14', '1', '0','0198001','550','550','550','530','','0','0','0','0','0','0','0','0','0','0'); -- id=1980
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1980', '1', '0', '1', '2026-10-14'); -- id=2997
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1980', '1', '0', '0', '1980', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5486
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1980, 1,'2026-10-14 15:29:23',1)
                ON DUPLICATE KEY UPDATE productid = 1980, edited = 1, sysdate = '2026-10-14 15:29:23', userid = 1; -- id=2929
UPDATE product SET productName = 'دربي جلد 2011 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '530.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01980',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '530',lastbuyprice_withDiscount = '530',meanbuyprice = '530',meanbuyprice_withDiscount = '530' , productbuypricereal = '530' , buypricereal_precentage = '0' , buytotal_precentage = '3.77' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='530',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='530',meanbuyprice_withTax='530',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='530',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1980';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:59:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:29:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:29:24', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9306
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 11:59:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:29:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 15:29:29', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9307
UPDATE product SET productName = 'جبردين جيب بريشكا 340', productDescription = '', productCatId = '59', productBuyPrice = '330.00', productSellAllPrice = '340.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09631',type ='0', expireDate = '0' , dailyentryId = '561',isService = '0',isOptic = '0',lastbuyprice = '320.00',lastbuyprice_withDiscount = '320',meanbuyprice = '325.00',meanbuyprice_withDiscount = '325' , productbuypricereal = '320.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='320',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9631',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='325',meanbuyprice_withTax='325',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='320',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1206';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1206, 1,'2026-10-14 15:31:05',1)
                ON DUPLICATE KEY UPDATE productid = 1206, edited = 1, sysdate = '2026-10-14 15:31:05', userid = 1; -- id=1851
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:01:06";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:31:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 15:31:06', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9308
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:01:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:31:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 15:31:11', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9309
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:01:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:31:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 15:31:33', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9310
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf75a99cce5', '2026-10-14 15:29:29', '1', '19320.00', '99920', '0', '0', '80600.00',  '80600.00', '', '80600', '1', '2026-10-14 15:31:33', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=147
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01977', '147', '37', '1977', '40', '550', '22000.00', '0', '', '2026-10-14 15:31:33', '1977','','','0','0','0','0','0',null,'550','22000','0','0','0','0','0','0','0','0','1'); -- id=898
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:29:29', 1, 1977, 0, 0
                    , 550, 40, 0, 0, 1, '2026-10-14 15:31:33')
                ON DUPLICATE KEY UPDATE buyprice = 550,
                        buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 15:31:33' ; -- id=1175
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1977', '550', '40', '0', 'buyBillController.php', '898', '', '0', '0'); -- id=685
UPDATE product SET  productBuyPrice = "550" WHERE productId = 1977 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 898 ;
UPDATE product SET productName = 'دربي الماظ رش 1219 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '550.00', productSellAllPrice = '570.00', productSellUnitPrice = '570.00', productSellHalfPrice = '570.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01977',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '550',meanbuyprice = '550',meanbuyprice_withDiscount = '550' , productbuypricereal = '550.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.64' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='550',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1977';
UPDATE buybilldetail SET  lastbuyprice = 550 , meanbuyprice = 550, lastbuyprice_withDiscount = 550, meanbuyprice_withDiscount = 550
        , lastbuyprice_withTax = 550, meanbuyprice_withTax = 550, lastbuyprice_withDiscountAndTax = 550
                where buybilldetailid = 898;
UPDATE productunit SET proUnitBuyPrice  = 550 * productnumber WHERE productid = 1977;
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2994';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1977', '1', '40', '0', '147', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '40', '1', '2026-10-14 15:29:29','0','0'); -- id=5487
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01978', '147', '37', '1978', '40', '500', '20000.00', '0', '', '2026-10-14 15:31:33', '1978','','','0','0','0','0','0',null,'500','20000','0','0','0','0','0','0','0','0','1'); -- id=899
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:29:29', 1, 1978, 0, 0
                    , 500, 40, 0, 0, 1, '2026-10-14 15:31:33')
                ON DUPLICATE KEY UPDATE buyprice = 500,
                        buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 15:31:33' ; -- id=1176
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1978', '500', '40', '0', 'buyBillController.php', '899', '', '0', '0'); -- id=686
UPDATE product SET  productBuyPrice = "500" WHERE productId = 1978 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 899 ;
UPDATE product SET productName = 'كفراج 2004 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '500.00', productSellAllPrice = '520.00', productSellUnitPrice = '520.00', productSellHalfPrice = '520.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01978',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1978';
UPDATE buybilldetail SET  lastbuyprice = 500 , meanbuyprice = 500, lastbuyprice_withDiscount = 500, meanbuyprice_withDiscount = 500
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 500
                where buybilldetailid = 899;
UPDATE productunit SET proUnitBuyPrice  = 500 * productnumber WHERE productid = 1978;
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2995';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1978', '1', '40', '0', '147', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '40', '1', '2026-10-14 15:29:29','0','0'); -- id=5488
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01979', '147', '37', '1979', '30', '580', '17400.00', '0', '', '2026-10-14 15:31:33', '1979','','','0','0','0','0','0',null,'580','17400','0','0','0','0','0','0','0','0','1'); -- id=900
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:29:29', 1, 1979, 0, 0
                    , 580, 30, 0, 0, 1, '2026-10-14 15:31:33')
                ON DUPLICATE KEY UPDATE buyprice = 580,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 15:31:33' ; -- id=1177
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1979', '580', '30', '0', 'buyBillController.php', '900', '', '0', '0'); -- id=687
UPDATE product SET  productBuyPrice = "580" WHERE productId = 1979 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 900 ;
UPDATE product SET productName = 'اميري فوطة حروف 2026 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '580.00', productSellAllPrice = '600.00', productSellUnitPrice = '600.00', productSellHalfPrice = '600.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01979',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '580',lastbuyprice_withDiscount = '580',meanbuyprice = '580',meanbuyprice_withDiscount = '580' , productbuypricereal = '580.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.45' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='580',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='580',meanbuyprice_withTax='580',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='580',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1979';
UPDATE buybilldetail SET  lastbuyprice = 580 , meanbuyprice = 580, lastbuyprice_withDiscount = 580, meanbuyprice_withDiscount = 580
        , lastbuyprice_withTax = 580, meanbuyprice_withTax = 580, lastbuyprice_withDiscountAndTax = 580
                where buybilldetailid = 900;
UPDATE productunit SET proUnitBuyPrice  = 580 * productnumber WHERE productid = 1979;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2996';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1979', '1', '30', '0', '147', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 15:29:29','0','0'); -- id=5489
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01980', '147', '37', '1980', '40', '530', '21200.00', '0', '', '2026-10-14 15:31:33', '1980','','','0','0','0','0','0',null,'530','21200','0','0','0','0','0','0','0','0','1'); -- id=901
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:29:29', 1, 1980, 0, 0
                    , 530, 40, 0, 0, 1, '2026-10-14 15:31:33')
                ON DUPLICATE KEY UPDATE buyprice = 530,
                        buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 15:31:33' ; -- id=1178
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1980', '530', '40', '0', 'buyBillController.php', '901', '', '0', '0'); -- id=688
UPDATE product SET  productBuyPrice = "530" WHERE productId = 1980 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 901 ;
UPDATE product SET productName = 'دربي جلد 2011 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '530.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01980',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '530',lastbuyprice_withDiscount = '530',meanbuyprice = '530',meanbuyprice_withDiscount = '530' , productbuypricereal = '530.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.77' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='530',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='530',meanbuyprice_withTax='530',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='530',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1980';
UPDATE buybilldetail SET  lastbuyprice = 530 , meanbuyprice = 530, lastbuyprice_withDiscount = 530, meanbuyprice_withDiscount = 530
        , lastbuyprice_withTax = 530, meanbuyprice_withTax = 530, lastbuyprice_withDiscountAndTax = 530
                where buybilldetailid = 901;
UPDATE productunit SET proUnitBuyPrice  = 530 * productnumber WHERE productid = 1980;
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2997';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1980', '1', '40', '0', '147', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '40', '1', '2026-10-14 15:29:29','0','0'); -- id=5490
UPDATE supplier SET  suppliercurrentDebt = '99920',suppliercurrentDebtInCurrency= '99920' , userid = '1', supplierdate = '2026-10-14 15:31:33'   WHERE supplierid = '1';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('1', '19320.00', '80600', '0', 'اضافة فاتورة مشتريات', '147', '99920', '2026-10-14 15:29:29', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','80600','1','19320','80600','99920','0',''); -- id=476
update buybill set dailyentryid='0,0' where buybillid=147;
COMMIT;
UPDATE product SET overAllAveragePrice = 550 WHERE productId = 1977;UPDATE product SET overAllAveragePrice = 500 WHERE productId = 1978;UPDATE product SET overAllAveragePrice = 580 WHERE productId = 1979;UPDATE product SET overAllAveragePrice = 530 WHERE productId = 1980;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:01:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:31:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 15:31:33', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=147'); -- id=9311
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:01:42";
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:01:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:31:42", deviceType = "DESKTOP" WHERE userid = 1;
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:31:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 15:31:42', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php');INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:31:42', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=147&type=2'); -- id=9312
 -- id=9313
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:01:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:31:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 15:31:52', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9314
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:02:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:32:02", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 15:32:02', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9315
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 12:02:02";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 15:32:02', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9316
UPDATE user SET loginip = "" WHERE userid = 6;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:02:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:32:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:32:44', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=147&type=2'); -- id=9317
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:03:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:33:02", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 15:33:02', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9318
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 12:03:02";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 15:33:03', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9319
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:03:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:33:10", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:33:10', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9320

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf644b23588
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 15:33:10', '06acf644b23588', '1', '0.00', '0', '0', '1', '97370.00', '97370', '97370', '0', '1', '2026-10-14 15:33:10', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '240' ,'0','','','','','-1','0','0','0','0','0','97370','0','','0','0','97370','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=522
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','522', '0', '2026-10-14 15:33:10', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '97370', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 15:33:10','0','0','',''); -- id=668
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+21 where id = 980;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('289','01886', '522', '147', '1886', '21', '320', '6720', '0', '', '0', '2026-10-14 15:33:10', '1886', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','980-21,','1','1','0','0','320','6720','0','','0','0.00','0','0','0','0'); -- id=1863
UPDATE sellbilldetail SET  lastbuyprice = 289.00 , meanbuyprice = 289.00, lastbuyprice_withDiscount = 289.00, meanbuyprice_withDiscount = 289.00
        , lastbuyprice_withTax = 289, meanbuyprice_withTax = 289, lastbuyprice_withDiscountAndTax = 289
                where sellbilldetailid = 1863;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1886, '2026-10-14', 6720, 6069, 6069
                    , 6069, 6069, 6069, 6069
                    , 0, 0, 0, 0
                    , 0, 0, 0, 21, 0, 6069, 6069, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6720, sellCostBuyPrice =sellCostBuyPrice+6069
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6069, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6069
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6069, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6069
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6069
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6069
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6069
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+21
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 6720, 6069, 6069
                    , 6069, 6069, 6069, 6069
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6069, 6069, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6720, sellCostBuyPrice =sellCostBuyPrice+6069
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6069, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6069
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6069, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6069
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6069
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6069
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6069
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '65', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '2903';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1886', '1', '21', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '86', '65', '3', '2026-10-14 15:33:10','0','0'); -- id=5491
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+20 where id = 673;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('470','01759', '522', '136', '1759', '20', '510', '10200', '0', '', '0', '2026-10-14 15:33:10', '1759', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','673-20,','1','1','0','0','510','10200','0','','0','0.00','0','0','0','0'); -- id=1864
UPDATE sellbilldetail SET  lastbuyprice = 470.00 , meanbuyprice = 470.00, lastbuyprice_withDiscount = 470.00, meanbuyprice_withDiscount = 470.00
        , lastbuyprice_withTax = 470, meanbuyprice_withTax = 470, lastbuyprice_withDiscountAndTax = 470
                where sellbilldetailid = 1864;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1759, '2026-10-14', 10200, 9400, 9400
                    , 9400, 9400, 9400, 9400
                    , 0, 0, 0, 0
                    , 0, 0, 0, 20, 0, 9400, 9400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+10200, sellCostBuyPrice =sellCostBuyPrice+9400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+9400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+9400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+9400, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+9400
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+9400
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+9400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+9400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+20
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 10200, 9400, 9400
                    , 9400, 9400, 9400, 9400
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9400, 9400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+10200, sellCostBuyPrice =sellCostBuyPrice+9400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+9400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+9400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+9400, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+9400
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+9400
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+9400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+9400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '2772';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1759', '1', '20', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '20', '0', '3', '2026-10-14 15:33:10','0','0'); -- id=5492
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+20 where id = 354;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('300','01466', '522', '104', '1466', '20', '370', '7400', '0', '', '0', '2026-10-14 15:33:10', '1466', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','354-20,','1','1','0','0','370','7400','0','','0','0.00','0','0','0','0'); -- id=1865
UPDATE sellbilldetail SET  lastbuyprice = 300.00 , meanbuyprice = 300.00, lastbuyprice_withDiscount = 300.00, meanbuyprice_withDiscount = 300.00
        , lastbuyprice_withTax = 300, meanbuyprice_withTax = 300, lastbuyprice_withDiscountAndTax = 300
                where sellbilldetailid = 1865;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1466, '2026-10-14', 7400, 6000, 6000
                    , 6000, 6000, 6000, 6000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 20, 0, 6000, 6000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+7400, sellCostBuyPrice =sellCostBuyPrice+6000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+20
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 7400, 6000, 6000
                    , 6000, 6000, 6000, 6000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6000, 6000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+7400, sellCostBuyPrice =sellCostBuyPrice+6000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '396', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '1491';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1466', '1', '20', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '416', '396', '3', '2026-10-14 15:33:10','0','0'); -- id=5493
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 624;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('345','01725', '522', '132', '1725', '12', '375', '4500', '0', '', '0', '2026-10-14 15:33:10', '1725', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','624-12,','1','1','0','0','375','4500','0','','0','0.00','0','0','0','0'); -- id=1866
UPDATE sellbilldetail SET  lastbuyprice = 375.00 , meanbuyprice = 375.00, lastbuyprice_withDiscount = 345.00, meanbuyprice_withDiscount = 360.00
        , lastbuyprice_withTax = 375, meanbuyprice_withTax = 187.5, lastbuyprice_withDiscountAndTax = 345
                where sellbilldetailid = 1866;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1725, '2026-10-14', 4500, 4500, 4500
                    , 4500, 4140, 4320, 4140
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 4500, 2250, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4500, sellCostBuyPrice =sellCostBuyPrice+4500
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4500, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4500
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4140, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4320
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4140
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4500
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2250
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4500, 4500, 4500
                    , 4500, 4140, 4320, 4140
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4500, 2250, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4500, sellCostBuyPrice =sellCostBuyPrice+4500
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4500, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4500
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4140, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4320
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4140
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4500
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2250
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '15', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '2738';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1725', '1', '12', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '27', '15', '3', '2026-10-14 15:33:10','0','0'); -- id=5494
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 212;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('510','01431', '522', '100', '1431', '4', '540', '2160', '0', '', '0', '2026-10-14 15:33:10', '1431', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','212-4,','1','1','0','0','540','2160','0','','0','0.00','0','0','0','0'); -- id=1867
UPDATE sellbilldetail SET  lastbuyprice = 510.00 , meanbuyprice = 507.50, lastbuyprice_withDiscount = 510.00, meanbuyprice_withDiscount = 507.50
        , lastbuyprice_withTax = 507.5, meanbuyprice_withTax = 507.5, lastbuyprice_withDiscountAndTax = 510
                where sellbilldetailid = 1867;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1431, '2026-10-14', 2160, 2020, 2040
                    , 2030, 2040, 2030, 2040
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 2030, 2030, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2160, sellCostBuyPrice =sellCostBuyPrice+2020
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2040, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2030
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2040, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2030
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2040
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2030
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2030
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2160, 2020, 2040
                    , 2030, 2040, 2030, 2040
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2030, 2030, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2160, sellCostBuyPrice =sellCostBuyPrice+2020
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2040, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2030
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2040, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2030
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2040
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2030
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2030
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '5', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '1444';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1431', '1', '4', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '9', '5', '3', '2026-10-14 15:33:10','0','0'); -- id=5495
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 566;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('524.4','01703', '522', '128', '1703', '9', '570', '5130', '0', '', '0', '2026-10-14 15:33:10', '1703', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','566-9,','1','1','0','0','570','5130','0','','0','0.00','0','0','0','0'); -- id=1868
UPDATE sellbilldetail SET  lastbuyprice = 570.00 , meanbuyprice = 570.00, lastbuyprice_withDiscount = 524.40, meanbuyprice_withDiscount = 547.20
        , lastbuyprice_withTax = 570, meanbuyprice_withTax = 285, lastbuyprice_withDiscountAndTax = 524.4
                where sellbilldetailid = 1868;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1703, '2026-10-14', 5130, 5130, 5130
                    , 5130, 4719.6, 4924.8, 4719.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 5130, 2565, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5130, sellCostBuyPrice =sellCostBuyPrice+5130
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5130, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5130
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4719.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4924.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4719.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5130
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2565
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5130, 5130, 5130
                    , 5130, 4719.6, 4924.8, 4719.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5130, 2565, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5130, sellCostBuyPrice =sellCostBuyPrice+5130
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5130, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5130
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4719.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4924.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4719.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5130
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2565
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '12', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '2715';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1703', '1', '9', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '21', '12', '3', '2026-10-14 15:33:10','0','0'); -- id=5496
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 940;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01870', '522', '146', '1870', '4', '500', '2000', '0', '', '0', '2026-10-14 15:33:10', '1870', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','940-4,','1','1','0','0','500','2000','0','','0','0.00','0','0','0','0'); -- id=1869
UPDATE sellbilldetail SET  lastbuyprice = 500.00 , meanbuyprice = 500.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 480.00
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 250, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1869;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1870, '2026-10-14', 2000, 2000, 2000
                    , 2000, 1840, 1920, 1840
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 2000, 1000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2000, sellCostBuyPrice =sellCostBuyPrice+2000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1840, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1920
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1840
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2000, 2000, 2000
                    , 2000, 1840, 1920, 1840
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2000, 1000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2000, sellCostBuyPrice =sellCostBuyPrice+2000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1840, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1920
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1840
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '16', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '2887';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1870', '1', '4', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '20', '16', '3', '2026-10-14 15:33:10','0','0'); -- id=5497
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 989;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('358.8','01895', '522', '148', '1895', '6', '390', '2340', '0', '', '0', '2026-10-14 15:33:10', '1895', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','989-6,','1','1','0','0','390','2340','0','','0','0.00','0','0','0','0'); -- id=1870
UPDATE sellbilldetail SET  lastbuyprice = 390.00 , meanbuyprice = 390.00, lastbuyprice_withDiscount = 358.80, meanbuyprice_withDiscount = 360.64
        , lastbuyprice_withTax = 390, meanbuyprice_withTax = 390, lastbuyprice_withDiscountAndTax = 358.8
                where sellbilldetailid = 1870;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1895, '2026-10-14', 2340, 2340, 2340
                    , 2340, 2152.8, 2163.84, 2152.8
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2340, 2340, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2340, sellCostBuyPrice =sellCostBuyPrice+2340
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2340, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2340
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2152.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2163.84
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2152.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2340
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2340
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2340, 2340, 2340
                    , 2340, 2152.8, 2163.84, 2152.8
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2340, 2340, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2340, sellCostBuyPrice =sellCostBuyPrice+2340
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2340, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2340
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2152.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2163.84
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2152.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2340
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2340
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '87', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '2912';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1895', '1', '6', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '93', '87', '3', '2026-10-14 15:33:10','0','0'); -- id=5498
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+8 where id = 250;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('480','01487', '522', '107', '1487', '8', '520', '4160', '0', '', '0', '2026-10-14 15:33:10', '1487', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','250-8,','1','1','0','0','520','4160','0','','0','0.00','0','0','0','0'); -- id=1871
UPDATE sellbilldetail SET  lastbuyprice = 480.00 , meanbuyprice = 480.00, lastbuyprice_withDiscount = 480.00, meanbuyprice_withDiscount = 480.00
        , lastbuyprice_withTax = 480, meanbuyprice_withTax = 480, lastbuyprice_withDiscountAndTax = 480
                where sellbilldetailid = 1871;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1487, '2026-10-14', 4160, 3840, 3840
                    , 3840, 3840, 3840, 3840
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8, 0, 3840, 3840, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4160, sellCostBuyPrice =sellCostBuyPrice+3840
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3840, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3840
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3840, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3840
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3840
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3840
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3840
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+8
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4160, 3840, 3840
                    , 3840, 3840, 3840, 3840
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3840, 3840, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4160, sellCostBuyPrice =sellCostBuyPrice+3840
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3840, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3840
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3840, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3840
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3840
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3840
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3840
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '8', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '1512';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1487', '1', '8', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '16', '8', '3', '2026-10-14 15:33:10','0','0'); -- id=5499
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+8 where id = 940;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01870', '522', '146', '1870', '8', '500', '4000', '0', '', '0', '2026-10-14 15:33:10', '1870', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','940-8,','1','1','0','0','500','4000','0','','0','0.00','0','0','0','0'); -- id=1872
UPDATE sellbilldetail SET  lastbuyprice = 500.00 , meanbuyprice = 500.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 480.00
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 250, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1872;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1870, '2026-10-14', 4000, 4000, 4000
                    , 4000, 3680, 3840, 3680
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8, 0, 4000, 2000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4000, sellCostBuyPrice =sellCostBuyPrice+4000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3680, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3840
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3680
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+8
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4000, 4000, 4000
                    , 4000, 3680, 3840, 3680
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4000, 2000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4000, sellCostBuyPrice =sellCostBuyPrice+4000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3680, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3840
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3680
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '8', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '2887';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1870', '1', '8', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '16', '8', '3', '2026-10-14 15:33:10','0','0'); -- id=5500
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 989;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('358.8','01895', '522', '148', '1895', '6', '390', '2340', '0', '', '0', '2026-10-14 15:33:10', '1895', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','989-6,','1','1','0','0','390','2340','0','','0','0.00','0','0','0','0'); -- id=1873
UPDATE sellbilldetail SET  lastbuyprice = 390.00 , meanbuyprice = 390.00, lastbuyprice_withDiscount = 358.80, meanbuyprice_withDiscount = 360.64
        , lastbuyprice_withTax = 390, meanbuyprice_withTax = 390, lastbuyprice_withDiscountAndTax = 358.8
                where sellbilldetailid = 1873;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1895, '2026-10-14', 2340, 2340, 2340
                    , 2340, 2152.8, 2163.84, 2152.8
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2340, 2340, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2340, sellCostBuyPrice =sellCostBuyPrice+2340
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2340, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2340
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2152.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2163.84
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2152.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2340
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2340
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2340, 2340, 2340
                    , 2340, 2152.8, 2163.84, 2152.8
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2340, 2340, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2340, sellCostBuyPrice =sellCostBuyPrice+2340
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2340, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2340
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2152.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2163.84
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2152.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2340
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2340
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '81', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '2912';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1895', '1', '6', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '87', '81', '3', '2026-10-14 15:33:10','0','0'); -- id=5501
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 1080;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('425','01919', '522', '153', '1919', '12', '450', '5400', '0', '', '0', '2026-10-14 15:33:10', '1919', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1080-12,','1','1','0','0','450','5400','0','','0','0.00','0','0','0','0'); -- id=1874
UPDATE sellbilldetail SET  lastbuyprice = 425.00 , meanbuyprice = 425.00, lastbuyprice_withDiscount = 425.00, meanbuyprice_withDiscount = 425.00
        , lastbuyprice_withTax = 425, meanbuyprice_withTax = 425, lastbuyprice_withDiscountAndTax = 425
                where sellbilldetailid = 1874;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1919, '2026-10-14', 5400, 5100, 5100
                    , 5100, 5100, 5100, 5100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 5100, 5100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5400, sellCostBuyPrice =sellCostBuyPrice+5100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5400, 5100, 5100
                    , 5100, 5100, 5100, 5100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5100, 5100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5400, sellCostBuyPrice =sellCostBuyPrice+5100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '294', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '2936';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '1', '12', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '306', '294', '3', '2026-10-14 15:33:10','0','0'); -- id=5502
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 672;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('470','i0001758', '522', '136', '1758', '4', '510', '2040', '0', '', '0', '2026-10-14 15:33:10', '1758', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','672-4,','1','1','0','0','510','2040','0','','0','0.00','0','0','0','0'); -- id=1875
UPDATE sellbilldetail SET  lastbuyprice = 470.00 , meanbuyprice = 470.00, lastbuyprice_withDiscount = 470.00, meanbuyprice_withDiscount = 470.00
        , lastbuyprice_withTax = 470, meanbuyprice_withTax = 470, lastbuyprice_withDiscountAndTax = 470
                where sellbilldetailid = 1875;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1758, '2026-10-14', 2040, 1880, 1880
                    , 1880, 1880, 1880, 1880
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 1880, 1880, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2040, sellCostBuyPrice =sellCostBuyPrice+1880
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1880, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1880
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1880, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1880
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1880
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1880
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1880
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2040, 1880, 1880
                    , 1880, 1880, 1880, 1880
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1880, 1880, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2040, sellCostBuyPrice =sellCostBuyPrice+1880
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1880, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1880
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1880, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1880
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1880
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1880
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1880
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '24', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '2771';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1758', '1', '4', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '28', '24', '3', '2026-10-14 15:33:10','0','0'); -- id=5503
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 764;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('430','01790', '522', '138', '1790', '9', '460', '4140', '0', '', '0', '2026-10-14 15:33:10', '1790', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','764-9,','1','1','0','0','460','4140','0','','0','0.00','0','0','0','0'); -- id=1876
UPDATE sellbilldetail SET  lastbuyprice = 430.00 , meanbuyprice = 430.00, lastbuyprice_withDiscount = 430.00, meanbuyprice_withDiscount = 430.00
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 430
                where sellbilldetailid = 1876;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1790, '2026-10-14', 4140, 3870, 3870
                    , 3870, 3870, 3870, 3870
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3870, 3870, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4140, sellCostBuyPrice =sellCostBuyPrice+3870
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3870, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3870
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3870, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3870
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3870
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3870
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3870
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4140, 3870, 3870
                    , 3870, 3870, 3870, 3870
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3870, 3870, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4140, sellCostBuyPrice =sellCostBuyPrice+3870
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3870, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3870
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3870, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3870
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3870
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3870
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3870
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '12', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '2803';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1790', '1', '9', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '21', '12', '3', '2026-10-14 15:33:10','0','0'); -- id=5504
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 71;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01379', '522', '94', '1379', '9', '300', '2700', '0', '', '0', '2026-10-14 15:33:10', '1379', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','71-9,','1','1','0','0','300','2700','0','','0','0.00','0','0','0','0'); -- id=1877
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1877;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1379, '2026-10-14', 2700, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '477', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '1379';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1379', '1', '9', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '486', '477', '3', '2026-10-14 15:33:10','0','0'); -- id=5505
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 354;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('300','01466', '522', '104', '1466', '4', '370', '1480', '0', '', '0', '2026-10-14 15:33:10', '1466', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','354-4,','1','1','0','0','370','1480','0','','0','0.00','0','0','0','0'); -- id=1878
UPDATE sellbilldetail SET  lastbuyprice = 300.00 , meanbuyprice = 300.00, lastbuyprice_withDiscount = 300.00, meanbuyprice_withDiscount = 300.00
        , lastbuyprice_withTax = 300, meanbuyprice_withTax = 300, lastbuyprice_withDiscountAndTax = 300
                where sellbilldetailid = 1878;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1466, '2026-10-14', 1480, 1200, 1200
                    , 1200, 1200, 1200, 1200
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 1200, 1200, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1480, sellCostBuyPrice =sellCostBuyPrice+1200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1200, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1200
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1200
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1200
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1480, 1200, 1200
                    , 1200, 1200, 1200, 1200
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1200, 1200, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1480, sellCostBuyPrice =sellCostBuyPrice+1200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1200, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1200
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1200
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1200
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '392', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '1491';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1466', '1', '4', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '396', '392', '3', '2026-10-14 15:33:10','0','0'); -- id=5506
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 1080;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('425','01919', '522', '153', '1919', '6', '450', '2700', '0', '', '0', '2026-10-14 15:33:10', '1919', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1080-6,','1','1','0','0','450','2700','0','','0','0.00','0','0','0','0'); -- id=1879
UPDATE sellbilldetail SET  lastbuyprice = 425.00 , meanbuyprice = 425.00, lastbuyprice_withDiscount = 425.00, meanbuyprice_withDiscount = 425.00
        , lastbuyprice_withTax = 425, meanbuyprice_withTax = 425, lastbuyprice_withDiscountAndTax = 425
                where sellbilldetailid = 1879;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1919, '2026-10-14', 2700, 2550, 2550
                    , 2550, 2550, 2550, 2550
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2550, 2550, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2550, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2550
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2550
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2550
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2550, 2550
                    , 2550, 2550, 2550, 2550
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2550, 2550, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2550, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2550
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2550
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2550
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '288', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '2936';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '1', '6', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '294', '288', '3', '2026-10-14 15:33:10','0','0'); -- id=5507
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+15 where id = 235;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('320','01456', '522', '94', '1456', '15', '360', '5400', '0', '', '0', '2026-10-14 15:33:10', '1456', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','235-15,','1','1','0','0','360','5400','0','','0','0.00','0','0','0','0'); -- id=1880
UPDATE sellbilldetail SET  lastbuyprice = 320.00 , meanbuyprice = 320.00, lastbuyprice_withDiscount = 320.00, meanbuyprice_withDiscount = 320.00
        , lastbuyprice_withTax = 320, meanbuyprice_withTax = 320, lastbuyprice_withDiscountAndTax = 320
                where sellbilldetailid = 1880;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1456, '2026-10-14', 5400, 4800, 4800
                    , 4800, 4800, 4800, 4800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 15, 0, 4800, 4800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5400, sellCostBuyPrice =sellCostBuyPrice+4800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+15
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5400, 4800, 4800
                    , 4800, 4800, 4800, 4800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4800, 4800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5400, sellCostBuyPrice =sellCostBuyPrice+4800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '90', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '1481';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1456', '1', '15', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '105', '90', '3', '2026-10-14 15:33:10','0','0'); -- id=5508
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 79;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('477','01387', '522', '95', '1387', '6', '530', '3180', '0', '', '0', '2026-10-14 15:33:10', '1387', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','79-6,','1','1','0','0','530','3180','0','','0','0.00','0','0','0','0'); -- id=1881
UPDATE sellbilldetail SET  lastbuyprice = 530.00 , meanbuyprice = 530.00, lastbuyprice_withDiscount = 477.00, meanbuyprice_withDiscount = 504.76
        , lastbuyprice_withTax = 530, meanbuyprice_withTax = 252.38, lastbuyprice_withDiscountAndTax = 477
                where sellbilldetailid = 1881;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1387, '2026-10-14', 3180, 3180, 3180
                    , 3180, 2862, 3028.56, 2862
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 3180, 1514.28, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3180, sellCostBuyPrice =sellCostBuyPrice+3180
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3180, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3180
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2862, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3028.56
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2862
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3180
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1514.28
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3180, 3180, 3180
                    , 3180, 2862, 3028.56, 2862
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3180, 1514.28, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3180, sellCostBuyPrice =sellCostBuyPrice+3180
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3180, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3180
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2862, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3028.56
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2862
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3180
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1514.28
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '3', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '1387';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1387', '1', '6', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '9', '3', '3', '2026-10-14 15:33:10','0','0'); -- id=5509
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 75;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('300','01383', '522', '94', '1383', '3', '330', '990', '0', '', '0', '2026-10-14 15:33:10', '1383', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','75-3,','1','1','0','0','330','990','0','','0','0.00','0','0','0','0'); -- id=1882
UPDATE sellbilldetail SET  lastbuyprice = 300.00 , meanbuyprice = 300.00, lastbuyprice_withDiscount = 300.00, meanbuyprice_withDiscount = 300.00
        , lastbuyprice_withTax = 300, meanbuyprice_withTax = 300, lastbuyprice_withDiscountAndTax = 300
                where sellbilldetailid = 1882;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1383, '2026-10-14', 990, 900, 900
                    , 900, 900, 900, 900
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 900, 900, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+990, sellCostBuyPrice =sellCostBuyPrice+900
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+900, sellCostMeanBuyPrice = sellCostMeanBuyPrice+900
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+900, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+900
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+900
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+900
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+900
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 990, 900, 900
                    , 900, 900, 900, 900
                    , 0, 0, 0, 0
                    , 0, 0, 0, 900, 900, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+990, sellCostBuyPrice =sellCostBuyPrice+900
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+900, sellCostMeanBuyPrice = sellCostMeanBuyPrice+900
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+900, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+900
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+900
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+900
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+900
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '360', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '1383';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1383', '1', '3', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '363', '360', '3', '2026-10-14 15:33:10','0','0'); -- id=5510
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 71;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01379', '522', '94', '1379', '9', '300', '2700', '0', '', '0', '2026-10-14 15:33:10', '1379', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','71-9,','1','1','0','0','300','2700','0','','0','0.00','0','0','0','0'); -- id=1883
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1883;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1379, '2026-10-14', 2700, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '468', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '1379';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1379', '1', '9', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '477', '468', '3', '2026-10-14 15:33:10','0','0'); -- id=5511
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 764;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('430','01790', '522', '138', '1790', '3', '460', '1380', '0', '', '0', '2026-10-14 15:33:10', '1790', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','764-3,','1','1','0','0','460','1380','0','','0','0.00','0','0','0','0'); -- id=1884
UPDATE sellbilldetail SET  lastbuyprice = 430.00 , meanbuyprice = 430.00, lastbuyprice_withDiscount = 430.00, meanbuyprice_withDiscount = 430.00
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 430
                where sellbilldetailid = 1884;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1790, '2026-10-14', 1380, 1290, 1290
                    , 1290, 1290, 1290, 1290
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1290, 1290, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1380, sellCostBuyPrice =sellCostBuyPrice+1290
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1290, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1290
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1290, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1290
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1290
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1290
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1290
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1380, 1290, 1290
                    , 1290, 1290, 1290, 1290
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1290, 1290, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1380, sellCostBuyPrice =sellCostBuyPrice+1290
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1290, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1290
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1290, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1290
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1290
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1290
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1290
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '9', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '2803';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1790', '1', '3', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '12', '9', '3', '2026-10-14 15:33:10','0','0'); -- id=5512
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 1080;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('425','01919', '522', '153', '1919', '6', '450', '2700', '0', '', '0', '2026-10-14 15:33:10', '1919', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1080-6,','1','1','0','0','450','2700','0','','0','0.00','0','0','0','0'); -- id=1885
UPDATE sellbilldetail SET  lastbuyprice = 425.00 , meanbuyprice = 425.00, lastbuyprice_withDiscount = 425.00, meanbuyprice_withDiscount = 425.00
        , lastbuyprice_withTax = 425, meanbuyprice_withTax = 425, lastbuyprice_withDiscountAndTax = 425
                where sellbilldetailid = 1885;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1919, '2026-10-14', 2700, 2550, 2550
                    , 2550, 2550, 2550, 2550
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2550, 2550, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2550, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2550
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2550
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2550
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2550, 2550
                    , 2550, 2550, 2550, 2550
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2550, 2550, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2550, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2550
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2550
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2550
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '282', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '2936';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '1', '6', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '288', '282', '3', '2026-10-14 15:33:10','0','0'); -- id=5513
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 71;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01379', '522', '94', '1379', '9', '300', '2700', '0', '', '0', '2026-10-14 15:33:10', '1379', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','71-9,','1','1','0','0','300','2700','0','','0','0.00','0','0','0','0'); -- id=1886
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1886;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1379, '2026-10-14', 2700, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '459', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '1379';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1379', '1', '9', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '468', '459', '3', '2026-10-14 15:33:10','0','0'); -- id=5514
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 75;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('300','01383', '522', '94', '1383', '3', '330', '990', '0', '', '0', '2026-10-14 15:33:10', '1383', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','75-3,','1','1','0','0','330','990','0','','0','0.00','0','0','0','0'); -- id=1887
UPDATE sellbilldetail SET  lastbuyprice = 300.00 , meanbuyprice = 300.00, lastbuyprice_withDiscount = 300.00, meanbuyprice_withDiscount = 300.00
        , lastbuyprice_withTax = 300, meanbuyprice_withTax = 300, lastbuyprice_withDiscountAndTax = 300
                where sellbilldetailid = 1887;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1383, '2026-10-14', 990, 900, 900
                    , 900, 900, 900, 900
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 900, 900, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+990, sellCostBuyPrice =sellCostBuyPrice+900
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+900, sellCostMeanBuyPrice = sellCostMeanBuyPrice+900
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+900, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+900
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+900
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+900
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+900
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 990, 900, 900
                    , 900, 900, 900, 900
                    , 0, 0, 0, 0
                    , 0, 0, 0, 900, 900, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+990, sellCostBuyPrice =sellCostBuyPrice+900
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+900, sellCostMeanBuyPrice = sellCostMeanBuyPrice+900
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+900, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+900
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+900
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+900
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+900
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '357', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '1383';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1383', '1', '3', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '360', '357', '3', '2026-10-14 15:33:10','0','0'); -- id=5515
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 235;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('320','01456', '522', '94', '1456', '9', '360', '3240', '0', '', '0', '2026-10-14 15:33:10', '1456', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','235-9,','1','1','0','0','360','3240','0','','0','0.00','0','0','0','0'); -- id=1888
UPDATE sellbilldetail SET  lastbuyprice = 320.00 , meanbuyprice = 320.00, lastbuyprice_withDiscount = 320.00, meanbuyprice_withDiscount = 320.00
        , lastbuyprice_withTax = 320, meanbuyprice_withTax = 320, lastbuyprice_withDiscountAndTax = 320
                where sellbilldetailid = 1888;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1456, '2026-10-14', 3240, 2880, 2880
                    , 2880, 2880, 2880, 2880
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2880, 2880, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3240, sellCostBuyPrice =sellCostBuyPrice+2880
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2880, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2880
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2880, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2880
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2880
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2880
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2880
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3240, 2880, 2880
                    , 2880, 2880, 2880, 2880
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2880, 2880, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3240, sellCostBuyPrice =sellCostBuyPrice+2880
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2880, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2880
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2880, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2880
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2880
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2880
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2880
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '81', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '1481';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1456', '1', '9', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '90', '81', '3', '2026-10-14 15:33:10','0','0'); -- id=5516
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 75;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('300','01383', '522', '94', '1383', '6', '330', '1980', '0', '', '0', '2026-10-14 15:33:10', '1383', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','75-6,','1','1','0','0','330','1980','0','','0','0.00','0','0','0','0'); -- id=1889
UPDATE sellbilldetail SET  lastbuyprice = 300.00 , meanbuyprice = 300.00, lastbuyprice_withDiscount = 300.00, meanbuyprice_withDiscount = 300.00
        , lastbuyprice_withTax = 300, meanbuyprice_withTax = 300, lastbuyprice_withDiscountAndTax = 300
                where sellbilldetailid = 1889;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1383, '2026-10-14', 1980, 1800, 1800
                    , 1800, 1800, 1800, 1800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1800, 1800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1980, sellCostBuyPrice =sellCostBuyPrice+1800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1980, 1800, 1800
                    , 1800, 1800, 1800, 1800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1800, 1800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1980, sellCostBuyPrice =sellCostBuyPrice+1800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '351', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '1383';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1383', '1', '6', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '357', '351', '3', '2026-10-14 15:33:10','0','0'); -- id=5517
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 71;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01379', '522', '94', '1379', '9', '300', '2700', '0', '', '0', '2026-10-14 15:33:10', '1379', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','71-9,','1','1','0','0','300','2700','0','','0','0.00','0','0','0','0'); -- id=1890
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1890;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1379, '2026-10-14', 2700, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '450', userid = '3', storedetaildate = '2026-10-14 15:33:10' WHERE storedetailid = '1379';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1379', '1', '9', '1', '522', 'اضافة فاتورة مبيعات', 'sellbillController.php', '459', '450', '3', '2026-10-14 15:33:10','0','0'); -- id=5518
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3377735',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3280365','97370', '0', '2', 'اضافة فاتورة مبيعات', '522', '3377735', '2026-10-14 15:33:10', '3',  'sellbillController.php','1','','0'); -- id=660
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '97370', '97370', '2026-10-14', '3', '0', '0', '2026-10-14 15:33:10','اضافة فاتورة مبيعات رقم 522','1','0',null,'0','522','sellbillController.php?do=showDetail&sellbillid=522'); -- id=2388
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2388', '419', '97370', '','0'); -- id=2441
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3377735', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2388', '143', '97370', '','0'); -- id=2390
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5571785', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '88336.2', '88336.2', '2026-10-14', '3', '0', '0', '2026-10-14 15:33:10','اضافة فاتورة مبيعات رقم 522 - صرف البضاعة من المخزن','1','0',null,'0','522','sellbillController.php?do=showDetail&sellbillid=522'); -- id=2389
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2389', '402', '88336.2', '','0'); -- id=2442
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5196761.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2389', '382', '88336.2', '','0'); -- id=2391
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22087635.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2388,0,2389' where sellbillid=522;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 97370, 90259, 90279
                    , 90269, 88336.2, 89140.04, 88336.2
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,90269, 80788.28, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+97370, sellCostBuyPrice =sellCostBuyPrice+90259
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+90279, sellCostMeanBuyPrice = sellCostMeanBuyPrice+90269
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+88336.2, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+89140.04
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+88336.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+90269
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+80788.28
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 97370, 90259, 90279
                    , 90269, 88336.2, 89140.04, 88336.2
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,90269, 80788.28, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+97370, sellCostBuyPrice =sellCostBuyPrice+90259
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+90279, sellCostMeanBuyPrice = sellCostMeanBuyPrice+90269
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+88336.2, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+89140.04
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+88336.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+90269
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+80788.28
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 97370, 90259, 90279
                    , 90269, 88336.2, 89140.04, 88336.2, 90269, 80788.28)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+97370, netSellCostBuyPrice = netSellCostBuyPrice+90259
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+90279
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+90269
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+88336.2
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+89140.04
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+88336.2
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+90269
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+80788.28;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf644b23588 and sellbillId = 522 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:03:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:33:11", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:33:11', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9321
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:03:21";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:33:21", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:33:21', '3', 'showDetail', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=showDetail&sellbillid=522'); -- id=9322
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:03:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:33:31", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:33:31', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9323
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:03:48";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:33:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 15:33:48', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=6'); -- id=9324
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:04:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:34:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:34:01', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=147&type=2'); -- id=9325
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:06:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:36:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 15:36:03', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9326
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:06:08";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:36:08", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:36:08', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9327

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf743ae9576
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 15:36:08', '06acf743ae9576', '1', '0.00', '0', '5', '1', '7765.00', '7760', '7760', '0', '1', '2026-10-14 15:36:08', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '14' ,'0','','','','','-1','0','0','0','0','0','7760','0','','0','0','7760','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=523
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','523', '0', '2026-10-14 15:36:08', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '7760', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 15:36:08','0','0','',''); -- id=669
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+5 where id = 1125;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('652','01937', '523', '8', '1937', '5', '680', '3400', '0', '', '0', '2026-10-14 15:36:08', '1937', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1125-5,','1','1','0','0','680','3400','0','','0','0.00','0','0','0','0'); -- id=1891
UPDATE sellbilldetail SET  lastbuyprice = 652.00 , meanbuyprice = 652.00, lastbuyprice_withDiscount = 652.00, meanbuyprice_withDiscount = 652.00
        , lastbuyprice_withTax = 652, meanbuyprice_withTax = 652, lastbuyprice_withDiscountAndTax = 652
                where sellbilldetailid = 1891;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1937, '2026-10-14', 3397.8106889891, 3260, 3260
                    , 3260, 3260, 3260, 3260
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 3260, 3260, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3397.8106889891, sellCostBuyPrice =sellCostBuyPrice+3260
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3260, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3260
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3260, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3260
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3260
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3260
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3260
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3397.8106889891, 3260, 3260
                    , 3260, 3260, 3260, 3260
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3260, 3260, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3397.8106889891, sellCostBuyPrice =sellCostBuyPrice+3260
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3260, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3260
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3260, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3260
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3260
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3260
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3260
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '15', userid = '3', storedetaildate = '2026-10-14 15:36:08' WHERE storedetailid = '2954';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1937', '1', '5', '1', '523', 'اضافة فاتورة مبيعات', 'sellbillController.php', '20', '15', '3', '2026-10-14 15:36:08','0','0'); -- id=5519
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '523', '153', '1921', '9', '485', '4365', '0', '', '0', '2026-10-14 15:36:08', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-9,','1','1','0','0','485','4365','0','','0','0.00','0','0','0','0'); -- id=1892
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1892;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 4362.1893110109, 4140, 4140
                    , 4140, 4140, 4140, 4140
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 4140, 4140, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4362.1893110109, sellCostBuyPrice =sellCostBuyPrice+4140
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4140, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4140
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4140, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4140
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4140
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4140
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4140
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4362.1893110109, 4140, 4140
                    , 4140, 4140, 4140, 4140
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4140, 4140, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4362.1893110109, sellCostBuyPrice =sellCostBuyPrice+4140
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4140, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4140
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4140, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4140
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4140
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4140
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4140
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '183', userid = '3', storedetaildate = '2026-10-14 15:36:08' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '9', '1', '523', 'اضافة فاتورة مبيعات', 'sellbillController.php', '192', '183', '3', '2026-10-14 15:36:08','0','0'); -- id=5520
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3385495',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3377735','7760', '0', '2', 'اضافة فاتورة مبيعات', '523', '3385495', '2026-10-14 15:36:08', '3',  'sellbillController.php','1','','0'); -- id=661
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '7765', '7765', '2026-10-14', '3', '0', '0', '2026-10-14 15:36:08','اضافة فاتورة مبيعات رقم 523','1','0',null,'0','523','sellbillController.php?do=showDetail&sellbillid=523'); -- id=2390
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2390', '419', '7760', '','0'); -- id=2443
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3385495', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2390', '398', '5', '','0'); -- id=2444
UPDATE accountstree SET name = 'خصم مسموح به', customName = 'خصم مسموح به', customNameEn = '', nameEn = '', parent = '158', accountNature = '0', theValue = '465110', theOrder = '0', layingOrder = '51', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-08-08 17:58:26' WHERE id = '398';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2390', '143', '7765', '','0'); -- id=2392
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5579550', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '7400', '7400', '2026-10-14', '3', '0', '0', '2026-10-14 15:36:08','اضافة فاتورة مبيعات رقم 523 - صرف البضاعة من المخزن','1','0',null,'0','523','sellbillController.php?do=showDetail&sellbillid=523'); -- id=2391
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2391', '402', '7400', '','0'); -- id=2445
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5204161.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2391', '382', '7400', '','0'); -- id=2393
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22080235.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2390,0,2391' where sellbillid=523;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 7760, 7400, 7400
                    , 7400, 7400, 7400, 7400
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,7400, 7400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+7760, sellCostBuyPrice =sellCostBuyPrice+7400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7400, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7400
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7400
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 7760, 7400, 7400
                    , 7400, 7400, 7400, 7400
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,7400, 7400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+7760, sellCostBuyPrice =sellCostBuyPrice+7400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7400, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7400
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7400
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 7760, 7400, 7400
                    , 7400, 7400, 7400, 7400, 7400, 7400)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+7760, netSellCostBuyPrice = netSellCostBuyPrice+7400
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+7400
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+7400
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+7400
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+7400
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+7400
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+7400
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+7400;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf743ae9576 and sellbillId = 523 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:06:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:36:09", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:36:09', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9328
UPDATE productunit SET unitid = '1', productid = '1105', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='420',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='400',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1105';
UPDATE product SET productName = 'توجي مقطع 3 لون', productDescription = '', productCatId = '38', productBuyPrice = '405', productSellAllPrice = '420', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '07923',type ='0', expireDate = '0' , dailyentryId = '460',isService = '0',isOptic = '0',lastbuyprice = '400.00',lastbuyprice_withDiscount = '400',meanbuyprice = '400.00',meanbuyprice_withDiscount = '400' , productbuypricereal = '400' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='400',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='7923',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='400',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='400',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1105';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:09:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:39:01", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:39:01', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9329

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf773917943
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 15:39:01', '06acf773917943', '1', '0.00', '0', '0', '1', '6750.00', '6750', '6750', '0', '1', '2026-10-14 15:39:01', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '10' ,'0','','','','','-1','0','0','0','0','0','6750','0','','0','0','6750','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=524
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','524', '0', '2026-10-14 15:39:01', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '6750', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 15:39:01','0','0','',''); -- id=670
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+5 where id = 1154;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('650','01962', '524', '28', '1962', '5', '670', '3350', '0', '', '0', '2026-10-14 15:39:01', '1962', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1154-5,','1','1','0','0','670','3350','0','','0','0.00','0','0','0','0'); -- id=1893
UPDATE sellbilldetail SET  lastbuyprice = 650.00 , meanbuyprice = 650.00, lastbuyprice_withDiscount = 650.00, meanbuyprice_withDiscount = 650.00
        , lastbuyprice_withTax = 650, meanbuyprice_withTax = 650, lastbuyprice_withDiscountAndTax = 650
                where sellbilldetailid = 1893;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1962, '2026-10-14', 3350, 3250, 3250
                    , 3250, 3250, 3250, 3250
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 3250, 3250, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3350, sellCostBuyPrice =sellCostBuyPrice+3250
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3250, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3250
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3250, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3250
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3250
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3250
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3250
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3350, 3250, 3250
                    , 3250, 3250, 3250, 3250
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3250, 3250, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3350, sellCostBuyPrice =sellCostBuyPrice+3250
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3250, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3250
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3250, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3250
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3250
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3250
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3250
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '5', userid = '3', storedetaildate = '2026-10-14 15:39:01' WHERE storedetailid = '2979';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1962', '1', '5', '1', '524', 'اضافة فاتورة مبيعات', 'sellbillController.php', '10', '5', '3', '2026-10-14 15:39:01','0','0'); -- id=5521
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+5 where id = 1125;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('652','01937', '524', '8', '1937', '5', '680', '3400', '0', '', '0', '2026-10-14 15:39:01', '1937', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1125-5,','1','1','0','0','680','3400','0','','0','0.00','0','0','0','0'); -- id=1894
UPDATE sellbilldetail SET  lastbuyprice = 652.00 , meanbuyprice = 652.00, lastbuyprice_withDiscount = 652.00, meanbuyprice_withDiscount = 652.00
        , lastbuyprice_withTax = 652, meanbuyprice_withTax = 652, lastbuyprice_withDiscountAndTax = 652
                where sellbilldetailid = 1894;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1937, '2026-10-14', 3400, 3260, 3260
                    , 3260, 3260, 3260, 3260
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 3260, 3260, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3400, sellCostBuyPrice =sellCostBuyPrice+3260
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3260, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3260
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3260, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3260
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3260
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3260
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3260
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3400, 3260, 3260
                    , 3260, 3260, 3260, 3260
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3260, 3260, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3400, sellCostBuyPrice =sellCostBuyPrice+3260
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3260, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3260
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3260, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3260
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3260
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3260
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3260
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '10', userid = '3', storedetaildate = '2026-10-14 15:39:01' WHERE storedetailid = '2954';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1937', '1', '5', '1', '524', 'اضافة فاتورة مبيعات', 'sellbillController.php', '15', '10', '3', '2026-10-14 15:39:01','0','0'); -- id=5522
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3392245',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3385495','6750', '0', '2', 'اضافة فاتورة مبيعات', '524', '3392245', '2026-10-14 15:39:01', '3',  'sellbillController.php','1','','0'); -- id=662
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '6750', '6750', '2026-10-14', '3', '0', '0', '2026-10-14 15:39:01','اضافة فاتورة مبيعات رقم 524','1','0',null,'0','524','sellbillController.php?do=showDetail&sellbillid=524'); -- id=2392
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2392', '419', '6750', '','0'); -- id=2446
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3392245', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2392', '143', '6750', '','0'); -- id=2394
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5586300', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '6510', '6510', '2026-10-14', '3', '0', '0', '2026-10-14 15:39:01','اضافة فاتورة مبيعات رقم 524 - صرف البضاعة من المخزن','1','0',null,'0','524','sellbillController.php?do=showDetail&sellbillid=524'); -- id=2393
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2393', '402', '6510', '','0'); -- id=2447
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5210671.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2393', '382', '6510', '','0'); -- id=2395
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22073725.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2392,0,2393' where sellbillid=524;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 6750, 6510, 6510
                    , 6510, 6510, 6510, 6510
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,6510, 6510, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6750, sellCostBuyPrice =sellCostBuyPrice+6510
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6510, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6510
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6510, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6510
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6510
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6510
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6510
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 6750, 6510, 6510
                    , 6510, 6510, 6510, 6510
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,6510, 6510, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6750, sellCostBuyPrice =sellCostBuyPrice+6510
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6510, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6510
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6510, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6510
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6510
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6510
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6510
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 6750, 6510, 6510
                    , 6510, 6510, 6510, 6510, 6510, 6510)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+6750, netSellCostBuyPrice = netSellCostBuyPrice+6510
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+6510
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+6510
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+6510
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+6510
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+6510
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+6510
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+6510;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf773917943 and sellbillId = 524 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:09:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:39:01", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:39:01', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9330
UPDATE productunit SET unitid = '1', productid = '1104', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='350',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='330',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1104';
UPDATE product SET productName = 'نيو سكاي هرفي 350', productDescription = '', productCatId = '38', productBuyPrice = '325', productSellAllPrice = '350', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '06449',type ='0', expireDate = '0' , dailyentryId = '459',isService = '0',isOptic = '0',lastbuyprice = '330.00',lastbuyprice_withDiscount = '330',meanbuyprice = '330.00',meanbuyprice_withDiscount = '330' , productbuypricereal = '330' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='330',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='6449',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='330',meanbuyprice_withTax='330',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='330',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1104';
UPDATE productunit SET unitid = '1', productid = '1109', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='450',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='430',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1109';
UPDATE product SET productName = 'وايد ليج 5 لون', productDescription = '', productCatId = '38', productBuyPrice = '420', productSellAllPrice = '450', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09687',type ='0', expireDate = '0' , dailyentryId = '464',isService = '0',isOptic = '0',lastbuyprice = '430.00',lastbuyprice_withDiscount = '430',meanbuyprice = '430.00',meanbuyprice_withDiscount = '430' , productbuypricereal = '430' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9687',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='430',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1109';
UPDATE productunit SET unitid = '1', productid = '1107', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='425',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='405',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1107';
UPDATE product SET productName = 'ريلاكسد هرفي', productDescription = '', productCatId = '38', productBuyPrice = '405', productSellAllPrice = '425', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09103',type ='0', expireDate = '0' , dailyentryId = '462',isService = '0',isOptic = '0',lastbuyprice = '405.00',lastbuyprice_withDiscount = '405',meanbuyprice = '405.00',meanbuyprice_withDiscount = '405' , productbuypricereal = '405' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='405',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9103',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='405',meanbuyprice_withTax='405',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='405',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1107';
UPDATE productunit SET unitid = '1', productid = '1100', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='380',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='360',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1100';
UPDATE product SET productName = 'توجي خاص هرفي 380', productDescription = '', productCatId = '38', productBuyPrice = '360', productSellAllPrice = '380', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04732',type ='0', expireDate = '0' , dailyentryId = '455',isService = '0',isOptic = '0',lastbuyprice = '360.00',lastbuyprice_withDiscount = '360',meanbuyprice = '360.00',meanbuyprice_withDiscount = '360' , productbuypricereal = '360' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4732',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1100';
UPDATE productunit SET unitid = '1', productid = '1100', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='380',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='360',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1100';
UPDATE product SET productName = 'توجي خاص هرفي 380', productDescription = '', productCatId = '38', productBuyPrice = '360', productSellAllPrice = '380', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04732',type ='0', expireDate = '0' , dailyentryId = '455',isService = '0',isOptic = '0',lastbuyprice = '360.00',lastbuyprice_withDiscount = '360',meanbuyprice = '360.00',meanbuyprice_withDiscount = '360' , productbuypricereal = '360' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4732',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1100';
UPDATE productunit SET unitid = '1', productid = '1100', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='380',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='360',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1100';
UPDATE product SET productName = 'توجي خاص هرفي 380', productDescription = '', productCatId = '38', productBuyPrice = '405', productSellAllPrice = '380', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04732',type ='0', expireDate = '0' , dailyentryId = '455',isService = '0',isOptic = '0',lastbuyprice = '360.00',lastbuyprice_withDiscount = '360',meanbuyprice = '360.00',meanbuyprice_withDiscount = '360' , productbuypricereal = '360' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4732',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1100';
UPDATE productunit SET unitid = '1', productid = '1098', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='380',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='360',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1098';
UPDATE product SET productName = 'توجي نفخ هرفي 380', productDescription = '', productCatId = '38', productBuyPrice = '360', productSellAllPrice = '380', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04729',type ='0', expireDate = '0' , dailyentryId = '453',isService = '0',isOptic = '0',lastbuyprice = '360.00',lastbuyprice_withDiscount = '360',meanbuyprice = '360.00',meanbuyprice_withDiscount = '360' , productbuypricereal = '360' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4729',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1098';
UPDATE productunit SET unitid = '1', productid = '1100', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='380',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='360',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1100';
UPDATE product SET productName = 'توجي خاص هرفي 380', productDescription = '', productCatId = '38', productBuyPrice = '415', productSellAllPrice = '380', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04732',type ='0', expireDate = '0' , dailyentryId = '455',isService = '0',isOptic = '0',lastbuyprice = '360.00',lastbuyprice_withDiscount = '360',meanbuyprice = '360.00',meanbuyprice_withDiscount = '360' , productbuypricereal = '360' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4732',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1100';
UPDATE productunit SET unitid = '1', productid = '1106', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='405',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='385',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1106';
UPDATE product SET productName = 'دريب /هرفي', productDescription = '', productCatId = '38', productBuyPrice = '385', productSellAllPrice = '405', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '08432',type ='0', expireDate = '0' , dailyentryId = '461',isService = '0',isOptic = '0',lastbuyprice = '385.00',lastbuyprice_withDiscount = '385',meanbuyprice = '385.00',meanbuyprice_withDiscount = '385' , productbuypricereal = '385' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='8432',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='385',meanbuyprice_withTax='385',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='385',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1106';
UPDATE productunit SET unitid = '1', productid = '1106', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='405',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='385',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1106';
UPDATE product SET productName = 'دريب /هرفي', productDescription = '', productCatId = '38', productBuyPrice = '385', productSellAllPrice = '405', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '08432',type ='0', expireDate = '0' , dailyentryId = '461',isService = '0',isOptic = '0',lastbuyprice = '385.00',lastbuyprice_withDiscount = '385',meanbuyprice = '385.00',meanbuyprice_withDiscount = '385' , productbuypricereal = '385' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='8432',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='385',meanbuyprice_withTax='385',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='385',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1106';
UPDATE productunit SET unitid = '1', productid = '1101', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='380',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='360',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1101';
UPDATE product SET productName = 'توجي سوسته هرفي 380', productDescription = '', productCatId = '38', productBuyPrice = '360', productSellAllPrice = '380', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04792',type ='0', expireDate = '0' , dailyentryId = '456',isService = '0',isOptic = '0',lastbuyprice = '360.00',lastbuyprice_withDiscount = '360',meanbuyprice = '360.00',meanbuyprice_withDiscount = '360' , productbuypricereal = '360' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4792',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1101';
UPDATE productunit SET unitid = '1', productid = '1101', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='380',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='360',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1101';
UPDATE product SET productName = 'توجي سوسته هرفي 380', productDescription = '', productCatId = '38', productBuyPrice = '360', productSellAllPrice = '380', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04792',type ='0', expireDate = '0' , dailyentryId = '456',isService = '0',isOptic = '0',lastbuyprice = '360.00',lastbuyprice_withDiscount = '360',meanbuyprice = '360.00',meanbuyprice_withDiscount = '360' , productbuypricereal = '360' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4792',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1101';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:14:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:44:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:44:15', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9331
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:14:18";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:44:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:44:18', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9332
UPDATE productunit SET unitid = '1', productid = '1099', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='410',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='390',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1099';
UPDATE product SET productName = 'توجي مقطع  هرفي', productDescription = '', productCatId = '38', productBuyPrice = '385', productSellAllPrice = '410', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04730',type ='0', expireDate = '0' , dailyentryId = '454',isService = '0',isOptic = '0',lastbuyprice = '390.00',lastbuyprice_withDiscount = '390',meanbuyprice = '390.00',meanbuyprice_withDiscount = '390' , productbuypricereal = '390' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='390',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4730',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='390',meanbuyprice_withTax='390',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='390',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1099';
UPDATE productunit SET unitid = '1', productid = '1101', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='380',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='360',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1101';
UPDATE product SET productName = 'توجي سوسته هرفي 380', productDescription = '', productCatId = '38', productBuyPrice = '360', productSellAllPrice = '380', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04792',type ='0', expireDate = '0' , dailyentryId = '456',isService = '0',isOptic = '0',lastbuyprice = '360.00',lastbuyprice_withDiscount = '360',meanbuyprice = '360.00',meanbuyprice_withDiscount = '360' , productbuypricereal = '360' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4792',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1101';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:15:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:45:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:45:34', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9333
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:15:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:45:45", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-10-14 15:45:45', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/savedailyController.php'); -- id=9334
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:15:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:45:47", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-10-14 15:45:47', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/savedailyController.php'); -- id=9335
UPDATE productunit SET unitid = '1', productid = '1106', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='405',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='385',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1106';
UPDATE product SET productName = 'دريب /هرفي', productDescription = '', productCatId = '38', productBuyPrice = '405', productSellAllPrice = '405', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '08432',type ='0', expireDate = '0' , dailyentryId = '461',isService = '0',isOptic = '0',lastbuyprice = '385.00',lastbuyprice_withDiscount = '385',meanbuyprice = '385.00',meanbuyprice_withDiscount = '385' , productbuypricereal = '385' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='8432',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='385',meanbuyprice_withTax='385',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='385',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1106';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:16:06";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:46:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 15:46:06', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9336
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:16:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:46:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 15:46:11', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9337
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:16:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:46:49", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:46:49', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9338
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:17:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:47:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:47:00', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9339
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:17:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:47:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 15:47:26', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9340
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:17:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:47:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 15:47:33', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9341
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:18:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:48:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 15:48:45', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9342
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:18:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:48:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 15:48:56', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9343
UPDATE productunit SET unitid = '1', productid = '1106', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='405',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='385',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1106';
UPDATE product SET productName = 'دريب /هرفي', productDescription = '', productCatId = '38', productBuyPrice = '355', productSellAllPrice = '405', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '08432',type ='0', expireDate = '0' , dailyentryId = '461',isService = '0',isOptic = '0',lastbuyprice = '385.00',lastbuyprice_withDiscount = '385',meanbuyprice = '385.00',meanbuyprice_withDiscount = '385' , productbuypricereal = '385' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='8432',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='385',meanbuyprice_withTax='385',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='385',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1106';
UPDATE productunit SET unitid = '1', productid = '1098', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='380',proUnitSellHalfPrice='355',proUnitSellUnitPrice ='355',proUnitBuyPrice='360',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1098';
UPDATE product SET productName = 'توجي نفخ هرفي 380', productDescription = '', productCatId = '38', productBuyPrice = '355', productSellAllPrice = '355', productSellUnitPrice = '355', productSellHalfPrice = '355', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04729',type ='0', expireDate = '0' , dailyentryId = '453',isService = '0',isOptic = '0',lastbuyprice = '360.00',lastbuyprice_withDiscount = '360',meanbuyprice = '360.00',meanbuyprice_withDiscount = '360' , productbuypricereal = '355' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4729',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1098';
UPDATE productunit SET unitid = '1', productid = '1106', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='405',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='385',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1106';
UPDATE product SET productName = 'دريب /هرفي', productDescription = '', productCatId = '38', productBuyPrice = '355', productSellAllPrice = '405', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '08432',type ='0', expireDate = '0' , dailyentryId = '461',isService = '0',isOptic = '0',lastbuyprice = '385.00',lastbuyprice_withDiscount = '385',meanbuyprice = '385.00',meanbuyprice_withDiscount = '385' , productbuypricereal = '385' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='8432',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='385',meanbuyprice_withTax='385',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='385',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1106';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:20:20";
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:20:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:50:22", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 15:50:22', '6', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9344
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 12:20:22";
UPDATE user SET loginip = "51.89.20.165", lastactivetime = "2026-10-14 15:50:22", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 15:50:22', '6', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9345
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:20:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:50:24", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:50:24', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9346
UPDATE productunit SET unitid = '1', productid = '1106', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='405',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='385',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1106';
UPDATE product SET productName = 'دريب /هرفي', productDescription = '', productCatId = '38', productBuyPrice = '405', productSellAllPrice = '405', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '08432',type ='0', expireDate = '0' , dailyentryId = '461',isService = '0',isOptic = '0',lastbuyprice = '385.00',lastbuyprice_withDiscount = '385',meanbuyprice = '385.00',meanbuyprice_withDiscount = '385' , productbuypricereal = '385' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='8432',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='385',meanbuyprice_withTax='385',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='385',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1106';
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:20:58";
UPDATE user SET loginip = "81.10.55.229", lastactivetime = "2026-10-14 15:50:58", deviceType = "DESKTOP" WHERE userid = -1;
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 12:20:58";
UPDATE user SET loginip = "51.89.20.165", lastactivetime = "2026-10-14 15:50:58", deviceType = "DESKTOP" WHERE userid = -1;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:21:12";
UPDATE user SET loginip = "81.10.55.229", lastactivetime = "2026-10-14 15:51:12", deviceType = "DESKTOP" WHERE userid = -1;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:21:25";
UPDATE user SET loginip = "81.10.55.229", lastactivetime = "2026-10-14 15:51:25", deviceType = "DESKTOP" WHERE userid = -1;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:21:34";
UPDATE user SET loginip = "81.10.55.229", lastactivetime = "2026-10-14 15:51:34", deviceType = "DESKTOP" WHERE userid = -1;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:21:41";
UPDATE user SET loginip = "81.10.55.229", lastactivetime = "2026-10-14 15:51:41", deviceType = "DESKTOP" WHERE userid = -1;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:21:43";
UPDATE user SET loginip = "81.10.55.229", lastactivetime = "2026-10-14 15:51:43", deviceType = "DESKTOP" WHERE userid = -1;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:21:43";
UPDATE user SET loginip = "81.10.55.229", lastactivetime = "2026-10-14 15:51:43", deviceType = "DESKTOP" WHERE userid = -1;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:21:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:51:54", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:51:54', '6', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9347

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf7a90a0ee1
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 15:51:54', '06acf7a90a0ee1', '1', '0.00', '0', '0', '1', '6760.00', '6760', '6760', '0', '1', '2026-10-14 15:51:54', '', '6', '0', 'نقدي', '4', '0', '3', '0', 'نقدي', '12' ,'0','','','','','-1','0','0','0','0','0','6760','0','','0','0','6760','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=525
UPDATE client SET  clientdebt = '0', userid = '6' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','525', '0', '2026-10-14 15:51:54', '6', 'sellbillController.php', 'اضافة فاتورة مبيعات', '6760', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 15:51:54','0','0','',''); -- id=671
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+8 where id = 449;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('420','01597', '525', '117', '1597', '8', '495', '3960', '0', '', '0', '2026-10-14 15:51:54', '1597', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','449-8,','1','1','0','0','495','3960','0','','0','0.00','0','0','0','0'); -- id=1895
UPDATE sellbilldetail SET  lastbuyprice = 420.00 , meanbuyprice = 420.00, lastbuyprice_withDiscount = 420.00, meanbuyprice_withDiscount = 420.00
        , lastbuyprice_withTax = 420, meanbuyprice_withTax = 420, lastbuyprice_withDiscountAndTax = 420
                where sellbilldetailid = 1895;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1597, '2026-10-14', 3960, 3360, 3360
                    , 3360, 3360, 3360, 3360
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8, 0, 3360, 3360, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3960, sellCostBuyPrice =sellCostBuyPrice+3360
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3360, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3360
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3360, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3360
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3360
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3360
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3360
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+8
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3960, 3360, 3360
                    , 3360, 3360, 3360, 3360
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3360, 3360, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3960, sellCostBuyPrice =sellCostBuyPrice+3360
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3360, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3360
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3360, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3360
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3360
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3360
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3360
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '28', userid = '6', storedetaildate = '2026-10-14 15:51:54' WHERE storedetailid = '1622';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1597', '1', '8', '1', '525', 'اضافة فاتورة مبيعات', 'sellbillController.php', '36', '28', '6', '2026-10-14 15:51:54','0','0'); -- id=5523
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 649;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('700','01736', '525', '133', '1736', '4', '700', '2800', '0', '', '0', '2026-10-14 15:51:54', '1736', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','649-4,','1','1','0','0','700','2800','0','','0','0.00','0','0','0','0'); -- id=1896
UPDATE sellbilldetail SET  lastbuyprice = 700.00 , meanbuyprice = 700.00, lastbuyprice_withDiscount = 700.00, meanbuyprice_withDiscount = 700.00
        , lastbuyprice_withTax = 700, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 700
                where sellbilldetailid = 1896;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1736, '2026-10-14', 2800, 2800, 2800
                    , 2800, 2800, 2800, 2800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 2800, 1400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2800, sellCostBuyPrice =sellCostBuyPrice+2800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2800, 2800, 2800
                    , 2800, 2800, 2800, 2800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2800, 1400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2800, sellCostBuyPrice =sellCostBuyPrice+2800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '32', userid = '6', storedetaildate = '2026-10-14 15:51:54' WHERE storedetailid = '2749';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1736', '1', '4', '1', '525', 'اضافة فاتورة مبيعات', 'sellbillController.php', '36', '32', '6', '2026-10-14 15:51:54','0','0'); -- id=5524
CALL saveInUse(4,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '292880',  userid = '6' WHERE saveid = '4';
UPDATE save SET  inUse = 0 where saveid = 4;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('286120','6760', '0', '4', 'اضافة فاتورة مبيعات', '525', '292880', '2026-10-14 15:51:54', '6',  'sellbillController.php','1','','0'); -- id=663
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '6760', '6760', '2026-10-14', '6', '0', '0', '2026-10-14 15:51:54','اضافة فاتورة مبيعات رقم 525','1','0',null,'0','525','sellbillController.php?do=showDetail&sellbillid=525'); -- id=2394
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2394', '568', '6760', '','0'); -- id=2448
UPDATE accountstree SET name = 'خزنة شروال', customName = 'خزنة شروال', customNameEn = 'خزنة شروال', nameEn = 'خزنة شروال', parent = '40', accountNature = '0', theValue = '292880', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-06 13:37:54' WHERE id = '568';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2394', '143', '6760', '','0'); -- id=2396
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5593060', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '6160', '6160', '2026-10-14', '6', '0', '0', '2026-10-14 15:51:54','اضافة فاتورة مبيعات رقم 525 - صرف البضاعة من المخزن','1','0',null,'0','525','sellbillController.php?do=showDetail&sellbillid=525'); -- id=2395
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2395', '402', '6160', '','0'); -- id=2449
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5216831.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2395', '382', '6160', '','0'); -- id=2397
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22067565.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2394,0,2395' where sellbillid=525;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 6760, 6160, 6160
                    , 6160, 6160, 6160, 6160
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,6160, 4760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6760, sellCostBuyPrice =sellCostBuyPrice+6160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6160
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6160
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6160
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 6760, 6160, 6160
                    , 6160, 6160, 6160, 6160
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,6160, 4760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6760, sellCostBuyPrice =sellCostBuyPrice+6160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6160
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6160
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6160
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 6760, 6160, 6160
                    , 6160, 6160, 6160, 6160, 6160, 4760)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+6760, netSellCostBuyPrice = netSellCostBuyPrice+6160
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+6160
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+6160
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+6160
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+6160
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+6160
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+6160
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+4760;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf7a90a0ee1 and sellbillId = 525 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:21:55";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:51:55", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:51:55', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9348
UPDATE productunit SET unitid = '1', productid = '1109', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='450',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='430',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1109';
UPDATE product SET productName = 'وايد ليج 5 لون', productDescription = '', productCatId = '38', productBuyPrice = '420', productSellAllPrice = '450', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09687',type ='0', expireDate = '0' , dailyentryId = '464',isService = '0',isOptic = '0',lastbuyprice = '430.00',lastbuyprice_withDiscount = '430',meanbuyprice = '430.00',meanbuyprice_withDiscount = '430' , productbuypricereal = '430' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9687',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='430',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1109';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:22:06";
UPDATE user SET loginip = "81.10.55.229", lastactivetime = "2026-10-14 15:52:06", deviceType = "DESKTOP" WHERE userid = -1;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:22:14";
UPDATE user SET loginip = "81.10.55.229", lastactivetime = "2026-10-14 15:52:14", deviceType = "DESKTOP" WHERE userid = -1;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:22:19";
UPDATE user SET loginip = "81.10.55.229", lastactivetime = "2026-10-14 15:52:19", deviceType = "DESKTOP" WHERE userid = -1;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:22:26";
UPDATE user SET loginip = "81.10.55.229", lastactivetime = "2026-10-14 15:52:26", deviceType = "DESKTOP" WHERE userid = -1;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:22:29";
UPDATE user SET loginip = "81.10.55.229", lastactivetime = "2026-10-14 15:52:29", deviceType = "DESKTOP" WHERE userid = -1;
UPDATE productunit SET unitid = '1', productid = '1098', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='380',proUnitSellHalfPrice='355',proUnitSellUnitPrice ='355',proUnitBuyPrice='360',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1098';
UPDATE product SET productName = 'توجي نفخ هرفي 380', productDescription = '', productCatId = '38', productBuyPrice = '355', productSellAllPrice = '355', productSellUnitPrice = '355', productSellHalfPrice = '355', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04729',type ='0', expireDate = '0' , dailyentryId = '453',isService = '0',isOptic = '0',lastbuyprice = '360.00',lastbuyprice_withDiscount = '360',meanbuyprice = '360.00',meanbuyprice_withDiscount = '360' , productbuypricereal = '355' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4729',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1098';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:23:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:53:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 15:53:14', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9349
BEGIN;
INSERT INTO returnbuybill (returnbuybillSerial, returnbuybilldate, returnbuybillsupplierid, returnbuybilltotaldeptbefor, returnbuybilltotaldeptafter, returnbuybilldiscount, returnbuybilldiscountrype, returnbuybilltotalbill, returnbuybillaftertotalbill, returnbuybilltotalpayed, returnbuybillfinalbill, returnbuybillstoreid, returnbuybillsysdate,comment, userid, conditions, returnbuybillclientname, returnbuybillsaveid, billnameid, returnbuybilldirectpayment,payedtax,costcenterid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,client,returnbuybilladdition,returnbuybilladditiontrype) VALUES ('06acf76ace71af', '2026-10-14 15:33:48', '10', '546030.00', '383830', '0', '0', '-162200.00', '-162200.00', '0', '-162200', '1', '2026-10-14 15:53:14', '', '1', '0', '', '1', '6','1','0.00','-1','0','1','0','0','0','0','0'); -- id=22
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('07923', '22', '38', '1105', '50', '405', '20250', '0', '', '1105','','','0','0','0','0','0','405','20250','0','0','0','0','0','0','0','1'); -- id=96
UPDATE product SET productName = 'توجي مقطع 3 لون', productDescription = '', productCatId = '38', productBuyPrice = '405.00', productSellAllPrice = '420.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '07923',type ='0', expireDate = '0' , dailyentryId = '460',isService = '0',isOptic = '0',lastbuyprice = '405',lastbuyprice_withDiscount = '405',meanbuyprice = '405.00',meanbuyprice_withDiscount = '405' , productbuypricereal = '400.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='400',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='7923',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='405',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='405',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1105';
UPDATE returnbuybilldetail SET  lastbuyprice = 405 , meanbuyprice = 405.00, lastbuyprice_withDiscount = 405, meanbuyprice_withDiscount = 405.00
        , lastbuyprice_withTax = 405, lastbuyprice_withDiscountAndTax = 405
                where returnbuybilldetailid = 96;
UPDATE productunit SET proUnitBuyPrice  = 405 * productnumber WHERE productid = 1105;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1105';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1105', '1', '50', '1', '22', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '50', '0', '1', '2026-10-14 15:33:48','0','0'); -- id=5525
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('06449', '22', '38', '1104', '100', '275', '27500', '0', '', '1104','','','0','0','0','0','0','275','27500','0','0','0','0','0','0','0','1'); -- id=97
UPDATE product SET productName = 'نيو سكاي هرفي 350', productDescription = '', productCatId = '38', productBuyPrice = '325.00', productSellAllPrice = '350.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '06449',type ='0', expireDate = '0' , dailyentryId = '459',isService = '0',isOptic = '0',lastbuyprice = '275',lastbuyprice_withDiscount = '275',meanbuyprice = '55',meanbuyprice_withDiscount = '55' , productbuypricereal = '330.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='330',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='6449',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='275',meanbuyprice_withTax='55',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='275',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1104';
UPDATE returnbuybilldetail SET  lastbuyprice = 275 , meanbuyprice = 55, lastbuyprice_withDiscount = 275, meanbuyprice_withDiscount = 55
        , lastbuyprice_withTax = 275, meanbuyprice_withTax = 55, lastbuyprice_withDiscountAndTax = 275
                where returnbuybilldetailid = 97;
UPDATE productunit SET proUnitBuyPrice  = 275 * productnumber WHERE productid = 1104;
UPDATE storedetail SET  productquantity = '-20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1104';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1104', '1', '100', '1', '22', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '80', '-20', '1', '2026-10-14 15:33:48','0','0'); -- id=5526
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09687', '22', '38', '1109', '50', '420', '21000', '0', '', '1109','','','0','0','0','0','0','420','21000','0','0','0','0','0','0','0','1'); -- id=98
UPDATE product SET productName = 'وايد ليج 5 لون', productDescription = '', productCatId = '38', productBuyPrice = '420.00', productSellAllPrice = '450.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09687',type ='0', expireDate = '0' , dailyentryId = '464',isService = '0',isOptic = '0',lastbuyprice = '420',lastbuyprice_withDiscount = '420',meanbuyprice = '330',meanbuyprice_withDiscount = '330' , productbuypricereal = '430.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9687',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='420',meanbuyprice_withTax='330',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='420',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1109';
UPDATE returnbuybilldetail SET  lastbuyprice = 420 , meanbuyprice = 330, lastbuyprice_withDiscount = 420, meanbuyprice_withDiscount = 330
        , lastbuyprice_withTax = 420, meanbuyprice_withTax = 330, lastbuyprice_withDiscountAndTax = 420
                where returnbuybilldetailid = 98;
UPDATE productunit SET proUnitBuyPrice  = 420 * productnumber WHERE productid = 1109;
UPDATE storedetail SET  productquantity = '-5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1109';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1109', '1', '50', '1', '22', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '45', '-5', '1', '2026-10-14 15:33:48','0','0'); -- id=5527
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09577', '22', '38', '1108', '35', '380', '13300', '0', '', '1108','','','0','0','0','0','0','380','13300','0','0','0','0','0','0','0','1'); -- id=99
UPDATE product SET productName = 'ريلاكسيد بنسه هرفي 405', productDescription = '', productCatId = '38', productBuyPrice = '385.00', productSellAllPrice = '405.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09577',type ='0', expireDate = '0' , dailyentryId = '463',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '380',meanbuyprice = '297.5',meanbuyprice_withDiscount = '297.5' , productbuypricereal = '385.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9577',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='297.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1108';
UPDATE returnbuybilldetail SET  lastbuyprice = 380 , meanbuyprice = 297.5, lastbuyprice_withDiscount = 380, meanbuyprice_withDiscount = 297.5
        , lastbuyprice_withTax = 380, meanbuyprice_withTax = 297.5, lastbuyprice_withDiscountAndTax = 380
                where returnbuybilldetailid = 99;
UPDATE productunit SET proUnitBuyPrice  = 380 * productnumber WHERE productid = 1108;
UPDATE storedetail SET  productquantity = '-2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1108';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1108', '1', '35', '1', '22', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '33', '-2', '1', '2026-10-14 15:33:48','0','0'); -- id=5528
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09103', '22', '38', '1107', '35', '405', '14175', '0', '', '1107','','','0','0','0','0','0','405','14175','0','0','0','0','0','0','0','1'); -- id=100
UPDATE product SET productName = 'ريلاكسد هرفي', productDescription = '', productCatId = '38', productBuyPrice = '405.00', productSellAllPrice = '425.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09103',type ='0', expireDate = '0' , dailyentryId = '462',isService = '0',isOptic = '0',lastbuyprice = '405',lastbuyprice_withDiscount = '405',meanbuyprice = '405',meanbuyprice_withDiscount = '405' , productbuypricereal = '405.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='405',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9103',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='405',meanbuyprice_withTax='405',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='405',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1107';
UPDATE returnbuybilldetail SET  lastbuyprice = 405 , meanbuyprice = 405, lastbuyprice_withDiscount = 405, meanbuyprice_withDiscount = 405
        , lastbuyprice_withTax = 405, meanbuyprice_withTax = 405, lastbuyprice_withDiscountAndTax = 405
                where returnbuybilldetailid = 100;
UPDATE productunit SET proUnitBuyPrice  = 405 * productnumber WHERE productid = 1107;
UPDATE storedetail SET  productquantity = '-16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1107';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1107', '1', '35', '1', '22', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '19', '-16', '1', '2026-10-14 15:33:48','0','0'); -- id=5529
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('04732', '22', '38', '1100', '6', '355', '2130', '0', '', '1100','','','0','0','0','0','0','355','2130','0','0','0','0','0','0','0','1'); -- id=101
UPDATE product SET productName = 'توجي خاص هرفي 380', productDescription = '', productCatId = '38', productBuyPrice = '415.00', productSellAllPrice = '380.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04732',type ='0', expireDate = '0' , dailyentryId = '455',isService = '0',isOptic = '0',lastbuyprice = '355',lastbuyprice_withDiscount = '355',meanbuyprice = '415.00',meanbuyprice_withDiscount = '415' , productbuypricereal = '360.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4732',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='355',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='355',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1100';
UPDATE returnbuybilldetail SET  lastbuyprice = 355 , meanbuyprice = 415.00, lastbuyprice_withDiscount = 355, meanbuyprice_withDiscount = 415.00
        , lastbuyprice_withTax = 355, lastbuyprice_withDiscountAndTax = 355
                where returnbuybilldetailid = 101;
UPDATE productunit SET proUnitBuyPrice  = 355 * productnumber WHERE productid = 1100;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1100';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1100', '1', '6', '1', '22', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '6', '0', '1', '2026-10-14 15:33:48','0','0'); -- id=5530
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('04729', '22', '38', '1098', '45', '355', '15975', '0', '', '1098','','','0','0','0','0','0','355','15975','0','0','0','0','0','0','0','1'); -- id=102
UPDATE product SET productName = 'توجي نفخ هرفي 380', productDescription = '', productCatId = '38', productBuyPrice = '355.00', productSellAllPrice = '355.00', productSellUnitPrice = '355.00', productSellHalfPrice = '355.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04729',type ='0', expireDate = '0' , dailyentryId = '453',isService = '0',isOptic = '0',lastbuyprice = '355',lastbuyprice_withDiscount = '355',meanbuyprice = '315',meanbuyprice_withDiscount = '315' , productbuypricereal = '355.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4729',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='355',meanbuyprice_withTax='315',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='355',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1098';
UPDATE returnbuybilldetail SET  lastbuyprice = 355 , meanbuyprice = 315, lastbuyprice_withDiscount = 355, meanbuyprice_withDiscount = 315
        , lastbuyprice_withTax = 355, meanbuyprice_withTax = 315, lastbuyprice_withDiscountAndTax = 355
                where returnbuybilldetailid = 102;
UPDATE productunit SET proUnitBuyPrice  = 355 * productnumber WHERE productid = 1098;
UPDATE storedetail SET  productquantity = '-5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1098';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1098', '1', '45', '1', '22', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '40', '-5', '1', '2026-10-14 15:33:48','0','0'); -- id=5531
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('08432', '22', '38', '1106', '59', '405', '23895', '0', '', '1106','','','0','0','0','0','0','405','23895','0','0','0','0','0','0','0','1'); -- id=103
UPDATE product SET productName = 'دريب /هرفي', productDescription = '', productCatId = '38', productBuyPrice = '405.00', productSellAllPrice = '405.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '08432',type ='0', expireDate = '0' , dailyentryId = '461',isService = '0',isOptic = '0',lastbuyprice = '405',lastbuyprice_withDiscount = '405',meanbuyprice = '975',meanbuyprice_withDiscount = '975' , productbuypricereal = '385.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='385',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='8432',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='405',meanbuyprice_withTax='975',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='405',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1106';
UPDATE returnbuybilldetail SET  lastbuyprice = 405 , meanbuyprice = 975, lastbuyprice_withDiscount = 405, meanbuyprice_withDiscount = 975
        , lastbuyprice_withTax = 405, meanbuyprice_withTax = 975, lastbuyprice_withDiscountAndTax = 405
                where returnbuybilldetailid = 103;
UPDATE productunit SET proUnitBuyPrice  = 405 * productnumber WHERE productid = 1106;
UPDATE storedetail SET  productquantity = '-2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1106';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1106', '1', '59', '1', '22', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '57', '-2', '1', '2026-10-14 15:33:48','0','0'); -- id=5532
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('04792', '22', '38', '1101', '30', '350', '10500', '0', '', '1101','','','0','0','0','0','0','350','10500','0','0','0','0','0','0','0','1'); -- id=104
UPDATE product SET productName = 'توجي سوسته هرفي 380', productDescription = '', productCatId = '38', productBuyPrice = '360.00', productSellAllPrice = '380.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04792',type ='0', expireDate = '0' , dailyentryId = '456',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '350',meanbuyprice = '60',meanbuyprice_withDiscount = '60' , productbuypricereal = '360.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4792',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='60',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='350',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1101';
UPDATE returnbuybilldetail SET  lastbuyprice = 350 , meanbuyprice = 60, lastbuyprice_withDiscount = 350, meanbuyprice_withDiscount = 60
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 60, lastbuyprice_withDiscountAndTax = 350
                where returnbuybilldetailid = 104;
UPDATE productunit SET proUnitBuyPrice  = 350 * productnumber WHERE productid = 1101;
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1101';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1101', '1', '30', '1', '22', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '29', '-1', '1', '2026-10-14 15:33:48','0','0'); -- id=5533
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('04730', '22', '38', '1099', '35', '385', '13475', '0', '', '1099','','','0','0','0','0','0','385','13475','0','0','0','0','0','0','0','1'); -- id=105
UPDATE product SET productName = 'توجي مقطع  هرفي', productDescription = '', productCatId = '38', productBuyPrice = '385.00', productSellAllPrice = '410.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '04730',type ='0', expireDate = '0' , dailyentryId = '454',isService = '0',isOptic = '0',lastbuyprice = '385',lastbuyprice_withDiscount = '385',meanbuyprice = '215',meanbuyprice_withDiscount = '215' , productbuypricereal = '390.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='390',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='4730',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='385',meanbuyprice_withTax='215',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='385',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1099';
UPDATE returnbuybilldetail SET  lastbuyprice = 385 , meanbuyprice = 215, lastbuyprice_withDiscount = 385, meanbuyprice_withDiscount = 215
        , lastbuyprice_withTax = 385, meanbuyprice_withTax = 215, lastbuyprice_withDiscountAndTax = 385
                where returnbuybilldetailid = 105;
UPDATE productunit SET proUnitBuyPrice  = 385 * productnumber WHERE productid = 1099;
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1099';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1099', '1', '35', '1', '22', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '34', '-1', '1', '2026-10-14 15:33:48','0','0'); -- id=5534
UPDATE supplier SET  suppliercurrentDebt = '65035',suppliercurrentDebtInCurrency= '383830' , userid = '1', supplierdate = '2026-10-14 15:53:14'   WHERE supplierid = '10';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('10', '227235.00', '162200', '1', 'اضافة فاتورة مردوات مشتريات', '22', '65035', '2026-10-14 15:33:48', '1', 'returnBuyBillController.php', 'اضافة فاتورة مردوات مشتريات', '0','', '0','1','1','162200','1','546030','162200','383830','0',''); -- id=477
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '162200', '162200', '2026-10-14', '1', '0', '0', '2026-10-14 15:53:14','اضافة فاتورة مردود مشتريات رقم 22','1','0',null,'0','22','returnBuyBillController.php?do=details&id=22'); -- id=2396
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2396', '429', '162200', '','0'); -- id=2450
UPDATE accountstree SET name = 'هرفي - مورد', customName = 'هرفي - مورد', customNameEn = 'هرفي - مورد', nameEn = 'هرفي - مورد', parent = '81', accountNature = '1', theValue = '-162200', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '429';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2396', '382', '162200', '','0'); -- id=2398
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21905365.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update returnbuybill set dailyentryid='2396,0' where returnbuybillid=22;
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:23:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:53:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('returnBuyBillController.php', '2026-10-14 15:53:14', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/returnBuyBillController.php?do=editprint&id=22'); -- id=9350
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:23:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:53:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 15:53:28', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9351
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:24:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:54:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:54:35', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9352
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:25:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:55:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:55:05', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9353
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:25:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:55:47", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:55:47', '4', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9354

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf4a2d1ea35
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 15:55:47', '06acf4a2d1ea35', '1', '0.00', '0', '0', '1', '4560.00', '4560', '4560', '0', '2', '2026-10-14 15:55:47', '', '4', '0', 'نقدي', '3', '0', '3', '0', 'نقدي', '12' ,'0','','','','','-1','0','0','0','0','0','4560','0','','0','0','4560','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=526
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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','526', '0', '2026-10-14 15:55:47', '4', 'sellbillController.php', 'اضافة فاتورة مبيعات', '4560', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 15:55:47','0','0','',''); -- id=672
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 495;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('320','01551', '526', '112', '1551', '12', '380', '4560', '0', '', '0', '2026-10-14 15:55:47', '1551', '0.00', '-1', '2','0.00','','','0','0','0','0','0','0','0','0','','495-12,','1','1','0','0','380','4560','0','','0','0.00','0','0','0','0'); -- id=1897
UPDATE sellbilldetail SET  lastbuyprice = 320.00 , meanbuyprice = 320.00, lastbuyprice_withDiscount = 320.00, meanbuyprice_withDiscount = 320.00
        , lastbuyprice_withTax = 320, meanbuyprice_withTax = 320, lastbuyprice_withDiscountAndTax = 320
                where sellbilldetailid = 1897;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1551, '2026-10-14', 4560, 3840, 3840
                    , 3840, 3840, 3840, 3840
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 3840, 3840, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4560, sellCostBuyPrice =sellCostBuyPrice+3840
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3840, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3840
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3840, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3840
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3840
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3840
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3840
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (2, '2026-10-14', 4560, 3840, 3840
                    , 3840, 3840, 3840, 3840
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3840, 3840, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4560, sellCostBuyPrice =sellCostBuyPrice+3840
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3840, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3840
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3840, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3840
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3840
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3840
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3840
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '396', userid = '4', storedetaildate = '2026-10-14 15:55:47' WHERE storedetailid = '2563';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1551', '2', '12', '1', '526', 'اضافة فاتورة مبيعات', 'sellbillController.php', '408', '396', '4', '2026-10-14 15:55:47','0','0'); -- id=5535
CALL saveInUse(3,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '567000',  userid = '4' WHERE saveid = '3';
UPDATE save SET  inUse = 0 where saveid = 3;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('562440','4560', '0', '3', 'اضافة فاتورة مبيعات', '526', '567000', '2026-10-14 15:55:47', '4',  'sellbillController.php','1','','0'); -- id=664
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '4560', '4560', '2026-10-14', '4', '0', '0', '2026-10-14 15:55:47','اضافة فاتورة مبيعات رقم 526','1','0',null,'0','526','sellbillController.php?do=showDetail&sellbillid=526'); -- id=2397
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2397', '501', '4560', '','0'); -- id=2451
UPDATE accountstree SET name = 'خزينه المحل الارضي', customName = 'خزينه المحل الارضي', customNameEn = 'خزينه المحل الارضي', nameEn = 'خزينه المحل الارضي', parent = '40', accountNature = '0', theValue = '567000', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-30 21:35:47' WHERE id = '501';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2397', '143', '4560', '','0'); -- id=2399
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5597620', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '3840', '3840', '2026-10-14', '4', '0', '0', '2026-10-14 15:55:47','اضافة فاتورة مبيعات رقم 526 - صرف البضاعة من المخزن','1','0',null,'0','526','sellbillController.php?do=showDetail&sellbillid=526'); -- id=2398
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2398', '402', '3840', '','0'); -- id=2452
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5220671.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2398', '492', '3840', '','0'); -- id=2400
UPDATE accountstree SET name = 'مخزن المحل', customName = 'مخزن المحل', customNameEn = 'مخزن المحل', nameEn = 'مخزن المحل', parent = '49', accountNature = '0', theValue = '1087870', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 19:38:59' WHERE id = '492';
update sellbill set dailyentryid='2397,0,2398' where sellbillid=526;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 4560, 3840, 3840
                    , 3840, 3840, 3840, 3840
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,3840, 3840, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4560, sellCostBuyPrice =sellCostBuyPrice+3840
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3840, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3840
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3840, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3840
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3840
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3840
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3840
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4560, 3840, 3840
                    , 3840, 3840, 3840, 3840
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,3840, 3840, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4560, sellCostBuyPrice =sellCostBuyPrice+3840
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3840, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3840
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3840, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3840
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3840
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3840
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3840
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 4560, 3840, 3840
                    , 3840, 3840, 3840, 3840, 3840, 3840)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+4560, netSellCostBuyPrice = netSellCostBuyPrice+3840
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+3840
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+3840
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+3840
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+3840
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+3840
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+3840
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+3840;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf4a2d1ea35 and sellbillId = 526 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:25:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:55:47", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 15:55:47', '4', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9355
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:26:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:56:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientReportsController.php', '2026-10-14 15:56:16', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/clientReportsController.php'); -- id=9356
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:26:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:56:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientReportsController.php', '2026-10-14 15:56:22', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/clientReportsController.php?do=show'); -- id=9357
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:26:38";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:56:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientPayedDeptController.php', '2026-10-14 15:56:38', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/clientPayedDeptController.php'); -- id=9358
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:27:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:57:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientPayedDeptController.php', '2026-10-14 15:57:00', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/clientPayedDeptController.php?do=add'); -- id=9359

-- ----------------------------------------------------------------------------------------------------
-- clientPayedDeptController add - with modelid =673
-- ----------------------------------------------------------------------------------------------------

BEGIN;
CALL clientInUse(36,@clientdebt,@clientname,@treeIdis);
UPDATE client SET  clientdebt = '0' , clientdate = '2026-10-14 15:57:00', userid = '1' WHERE clientid = '36';
UPDATE client SET  inUse = 0 where clientid = 36;
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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('36','132260.00','132260','1','ايصال تحصيل (( قبض من عميل ))','673', '0', '2026-10-14 15:56:38', '1', 'clientPayedDeptController.php', '   تصفير الحساب احمد العربي', '132260', '0', null, '0', null, null,'', '-1','1','1','132260','1','','493','0','','.'); -- id=673
UPDATE save SET  savecurrentvalue = '-34826297.8',  userid = '1' WHERE saveid = '1';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('-34958557.80','132260', '0', '1', 'ايصال تحصيل (( قبض من عميل ))', '673', '-34826297.8', '2026-10-14 15:57:00', '1',  'clientPayedDeptController.php','36','','0'); -- id=665
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '132260', '132260', '2026-10-14', '1', '0', '0', '2026-10-14 15:57:00','اضافة ايصال سداد للعميل بخيت - عملاء','1','0','0','0','673','clientPayedDeptController.php?do=show&id=673'); -- id=2399
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2399', '383', '132260', '','0'); -- id=2453
UPDATE accountstree SET name = 'الخزنة الرئيسية', customName = 'الخزنة الرئيسية', customNameEn = 'الخزنة الرئيسية', nameEn = 'الخزنة الرئيسية', parent = '40', accountNature = '0', theValue = '-34826299.8', theOrder = '0', layingOrder = '12010200002', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = 'Bank and Cash ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:28' WHERE id = '383';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2399', '534', '132260', '','0'); -- id=2401
UPDATE accountstree SET name = 'بخيت - عملاء', customName = 'بخيت - عملاء', customNameEn = 'بخيت - عملاء', nameEn = 'بخيت - عملاء', parent = '58', accountNature = '0', theValue = '-132260', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = 'Equity ', userid = '1', del = '0', sysdate = '2026-10-01 21:23:05' WHERE id = '534';
UPDATE clientdebtchange SET clientid = '36', clientdebtchangebefore = '132260.000', clientdebtchangeamount = '132260.000', clientdebtchangetype = '1', processname = 'ايصال تحصيل (( قبض من عميل ))', clientdebtchangemodelid = '673', clientdebtchangeafter = '0.000', clientdebtchangedate = '2026-10-14 15:56:38', userid = '1', tablename = 'clientPayedDeptController.php', comment = '   تصفير الحساب احمد العربي', totalOperationCost = '132260.000',discount='', reciptid='0', dailyentryid = '2399',seller = '0',currencyId='1',conversionFactor='1',payedInCurrency='132260',saveConversionFactor='1',totalpayments='0',tagids='',file='.' WHERE clientdebtchangeid = '673';
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- clientPayedDeptController add end - with modelid =673 -clientdebtchangeId = 673
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:27:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:57:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientPayedDeptController.php', '2026-10-14 15:57:00', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/clientPayedDeptController.php?do=sucess'); -- id=9360
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:27:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:57:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('clientPayedDeptController.php', '2026-10-14 15:57:02', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/clientPayedDeptController.php?do=show'); -- id=9361
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:27:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:57:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 15:57:04', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9362
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:27:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:57:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 15:57:11', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9363
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:27:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:57:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 15:57:44', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9364
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:27:53";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:57:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 15:57:53', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9365
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:29:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:59:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:59:56', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9366
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جينز 1138 افندينا','','5','480','500','500','500','2026-10-14','0','1','0','','0','0','0','0','0','480','480','480','480','480','0','4.17','0','0','.','0','0','0','480','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','480','480','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','480','0','0','0','0','0','0','','','0','0','0','0'); -- id=1981
UPDATE product SET productName = 'جينز 1138 افندينا', productDescription = '', productCatId = '5', productBuyPrice = '480', productSellAllPrice = '500', productSellUnitPrice = '500', productSellHalfPrice = '500', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01981',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 = '4.17' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='480',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='480',meanbuyprice_withTax='480',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='480',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1981';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1981', '1', '2026-10-14', '1', '0','0198101','500','500','500','480','','0','0','0','0','0','0','0','0','0','0'); -- id=1981
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1981', '1', '0', '1', '2026-10-14'); -- id=2998
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1981', '1', '0', '0', '1981', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5536
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1981, 1,'2026-10-14 15:59:56',1)
                ON DUPLICATE KEY UPDATE productid = 1981, edited = 1, sysdate = '2026-10-14 15:59:56', userid = 1; -- id=2931
UPDATE product SET productName = 'جينز 1138 افندينا', productDescription = '', productCatId = '5', productBuyPrice = '480.00', productSellAllPrice = '500.00', productSellUnitPrice = '500.00', productSellHalfPrice = '500.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01981',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 = '4.17' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='480',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='480',meanbuyprice_withTax='480',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='480',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1981';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديلات 590 افندينا','','5','570','590','590','590','2026-10-14','0','1','0','','0','0','0','0','0','570','570','570','570','570','0','3.51','0','0','.','0','0','0','570','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','570','570','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','570','0','0','0','0','0','0','','','0','0','0','0'); -- id=1982
UPDATE product SET productName = 'موديلات 590 افندينا', productDescription = '', productCatId = '5', productBuyPrice = '570', productSellAllPrice = '590', productSellUnitPrice = '590', productSellHalfPrice = '590', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01982',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '570',lastbuyprice_withDiscount = '570',meanbuyprice = '570',meanbuyprice_withDiscount = '570' , productbuypricereal = '570' , buypricereal_precentage = '0' , buytotal_precentage = '3.51' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='570',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='570',meanbuyprice_withTax='570',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='570',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1982';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1982', '1', '2026-10-14', '1', '0','0198201','590','590','590','570','','0','0','0','0','0','0','0','0','0','0'); -- id=1982
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1982', '1', '0', '1', '2026-10-14'); -- id=2999
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1982', '1', '0', '0', '1982', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5537
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1982, 1,'2026-10-14 15:59:56',1)
                ON DUPLICATE KEY UPDATE productid = 1982, edited = 1, sysdate = '2026-10-14 15:59:56', userid = 1; -- id=2932
UPDATE product SET productName = 'موديلات 590 افندينا', productDescription = '', productCatId = '5', productBuyPrice = '570.00', productSellAllPrice = '590.00', productSellUnitPrice = '590.00', productSellHalfPrice = '590.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01982',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '570',lastbuyprice_withDiscount = '570',meanbuyprice = '570',meanbuyprice_withDiscount = '570' , productbuypricereal = '570' , buypricereal_precentage = '0' , buytotal_precentage = '3.51' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='570',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='570',meanbuyprice_withTax='570',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='570',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1982';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:29:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 15:59:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 15:59:57', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9367
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:30:27";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:00:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:00:27', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9368
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:31:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:01:23", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 16:01:23', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9369
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 12:31:23";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 16:01:23', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9370
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:31:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:01:44", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:01:44', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9371

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf79b93db66
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 16:01:44', '06acf79b93db66', '1', '0.00', '0', '20', '1', '5820.00', '5800', '5800', '0', '1', '2026-10-14 16:01:44', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '12' ,'0','','','','','-1','0','0','0','0','0','5800','0','','0','0','5800','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=527
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','527', '0', '2026-10-14 16:01:44', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '5800', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 16:01:44','0','0','',''); -- id=674
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '527', '153', '1921', '12', '485', '5820', '0', '', '0', '2026-10-14 16:01:44', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-12,','1','1','0','0','485','5820','0','','0','0.00','0','0','0','0'); -- id=1898
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1898;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 5800, 5520, 5520
                    , 5520, 5520, 5520, 5520
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 5520, 5520, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5800, sellCostBuyPrice =sellCostBuyPrice+5520
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5520, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5520
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5520, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5520
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5520
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5520
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5520
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5800, 5520, 5520
                    , 5520, 5520, 5520, 5520
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5520, 5520, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5800, sellCostBuyPrice =sellCostBuyPrice+5520
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5520, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5520
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5520, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5520
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5520
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5520
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5520
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '171', userid = '3', storedetaildate = '2026-10-14 16:01:44' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '12', '1', '527', 'اضافة فاتورة مبيعات', 'sellbillController.php', '183', '171', '3', '2026-10-14 16:01:44','0','0'); -- id=5538
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3398045',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3392245','5800', '0', '2', 'اضافة فاتورة مبيعات', '527', '3398045', '2026-10-14 16:01:44', '3',  'sellbillController.php','1','','0'); -- id=666
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '5820', '5820', '2026-10-14', '3', '0', '0', '2026-10-14 16:01:44','اضافة فاتورة مبيعات رقم 527','1','0',null,'0','527','sellbillController.php?do=showDetail&sellbillid=527'); -- id=2400
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2400', '419', '5800', '','0'); -- id=2454
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3398045', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2400', '398', '20', '','0'); -- id=2455
UPDATE accountstree SET name = 'خصم مسموح به', customName = 'خصم مسموح به', customNameEn = '', nameEn = '', parent = '158', accountNature = '0', theValue = '465130', theOrder = '0', layingOrder = '51', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-08-08 17:58:26' WHERE id = '398';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2400', '143', '5820', '','0'); -- id=2402
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5603440', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '5520', '5520', '2026-10-14', '3', '0', '0', '2026-10-14 16:01:44','اضافة فاتورة مبيعات رقم 527 - صرف البضاعة من المخزن','1','0',null,'0','527','sellbillController.php?do=showDetail&sellbillid=527'); -- id=2401
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2401', '402', '5520', '','0'); -- id=2456
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5226191.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2401', '382', '5520', '','0'); -- id=2403
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21899845.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2400,0,2401' where sellbillid=527;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 5800, 5520, 5520
                    , 5520, 5520, 5520, 5520
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,5520, 5520, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5800, sellCostBuyPrice =sellCostBuyPrice+5520
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5520, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5520
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5520, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5520
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5520
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5520
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5520
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5800, 5520, 5520
                    , 5520, 5520, 5520, 5520
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,5520, 5520, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5800, sellCostBuyPrice =sellCostBuyPrice+5520
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5520, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5520
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5520, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5520
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5520
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5520
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5520
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 5800, 5520, 5520
                    , 5520, 5520, 5520, 5520, 5520, 5520)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+5800, netSellCostBuyPrice = netSellCostBuyPrice+5520
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+5520
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+5520
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+5520
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+5520
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+5520
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+5520
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+5520;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf79b93db66 and sellbillId = 527 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:31:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:01:45", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:01:45', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9372
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:32:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:02:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:02:05', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9373
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf7ceb37251', '2026-10-14 16:00:27', '34', '459930.00', '513330', '0', '0', '53400.00',  '53400.00', '0', '53400', '1', '2026-10-14 16:02:05', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=148
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01981', '148', '5', '1981', '40', '480', '19200.00', '0', '', '2026-10-14 16:02:05', '1981','','','0','0','0','0','0',null,'480','19200','0','0','0','0','0','0','0','0','1'); -- id=902
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:00:27', 1, 1981, 0, 0
                    , 480, 40, 0, 0, 1, '2026-10-14 16:02:05')
                ON DUPLICATE KEY UPDATE buyprice = 480,
                        buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:02:05' ; -- id=1179
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1981', '480', '40', '0', 'buyBillController.php', '902', '', '0', '0'); -- id=689
UPDATE product SET  productBuyPrice = "480" WHERE productId = 1981 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 902 ;
UPDATE product SET productName = 'جينز 1138 افندينا', productDescription = '', productCatId = '5', productBuyPrice = '480.00', productSellAllPrice = '500.00', productSellUnitPrice = '500.00', productSellHalfPrice = '500.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01981',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '480',lastbuyprice_withDiscount = '480',meanbuyprice = '480',meanbuyprice_withDiscount = '480' , productbuypricereal = '480.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.17' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='480',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='480',meanbuyprice_withTax='480',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='480',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1981';
UPDATE buybilldetail SET  lastbuyprice = 480 , meanbuyprice = 480, lastbuyprice_withDiscount = 480, meanbuyprice_withDiscount = 480
        , lastbuyprice_withTax = 480, meanbuyprice_withTax = 480, lastbuyprice_withDiscountAndTax = 480
                where buybilldetailid = 902;
UPDATE productunit SET proUnitBuyPrice  = 480 * productnumber WHERE productid = 1981;
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2998';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1981', '1', '40', '0', '148', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '40', '1', '2026-10-14 16:00:27','0','0'); -- id=5539
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01982', '148', '5', '1982', '30', '570', '17100.00', '0', '', '2026-10-14 16:02:05', '1982','','','0','0','0','0','0',null,'570','17100','0','0','0','0','0','0','0','0','1'); -- id=903
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:00:27', 1, 1982, 0, 0
                    , 570, 30, 0, 0, 1, '2026-10-14 16:02:05')
                ON DUPLICATE KEY UPDATE buyprice = 570,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:02:05' ; -- id=1180
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1982', '570', '30', '0', 'buyBillController.php', '903', '', '0', '0'); -- id=690
UPDATE product SET  productBuyPrice = "570" WHERE productId = 1982 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 903 ;
UPDATE product SET productName = 'موديلات 590 افندينا', productDescription = '', productCatId = '5', productBuyPrice = '570.00', productSellAllPrice = '590.00', productSellUnitPrice = '590.00', productSellHalfPrice = '590.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01982',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '570',lastbuyprice_withDiscount = '570',meanbuyprice = '570',meanbuyprice_withDiscount = '570' , productbuypricereal = '570.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.51' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='570',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='570',meanbuyprice_withTax='570',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='570',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1982';
UPDATE buybilldetail SET  lastbuyprice = 570 , meanbuyprice = 570, lastbuyprice_withDiscount = 570, meanbuyprice_withDiscount = 570
        , lastbuyprice_withTax = 570, meanbuyprice_withTax = 570, lastbuyprice_withDiscountAndTax = 570
                where buybilldetailid = 903;
UPDATE productunit SET proUnitBuyPrice  = 570 * productnumber WHERE productid = 1982;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2999';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1982', '1', '30', '0', '148', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 16:00:27','0','0'); -- id=5540
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01982', '148', '5', '1982', '30', '570', '17100.00', '0', '', '2026-10-14 16:02:05', '1982','','','0','0','0','0','0',null,'570','17100','0','0','0','0','0','0','0','0','1'); -- id=904
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:00:27', 1, 1982, 0, 0
                    , 570, 30, 0, 0, 1, '2026-10-14 16:02:05')
                ON DUPLICATE KEY UPDATE buyprice = 570,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:02:05' ; -- id=1180
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1982', '570', '30', '0', 'buyBillController.php', '904', '', '0', '0'); -- id=691
UPDATE product SET  productBuyPrice = "570" WHERE productId = 1982 ;
UPDATE buybilldetail SET  quantitybefore = 30 WHERE buybilldetailid = 904 ;
UPDATE product SET productName = 'موديلات 590 افندينا', productDescription = '', productCatId = '5', productBuyPrice = '570.00', productSellAllPrice = '590.00', productSellUnitPrice = '590.00', productSellHalfPrice = '590.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01982',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '570',lastbuyprice_withDiscount = '570',meanbuyprice = '570',meanbuyprice_withDiscount = '570' , productbuypricereal = '570.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.51' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='570',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='570',meanbuyprice_withTax='570',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='570',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1982';
UPDATE buybilldetail SET  lastbuyprice = 570 , meanbuyprice = 570, lastbuyprice_withDiscount = 570, meanbuyprice_withDiscount = 570
        , lastbuyprice_withTax = 570, meanbuyprice_withTax = 570, lastbuyprice_withDiscountAndTax = 570
                where buybilldetailid = 904;
UPDATE productunit SET proUnitBuyPrice  = 570 * productnumber WHERE productid = 1982;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2999';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1982', '1', '30', '0', '148', 'اضافة فاتورة مشتريات', 'buyBillController.php', '30', '60', '1', '2026-10-14 16:00:27','0','0'); -- id=5541
UPDATE supplier SET  suppliercurrentDebt = '43660',suppliercurrentDebtInCurrency= '513330' , userid = '1', supplierdate = '2026-10-14 16:02:05'   WHERE supplierid = '34';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('34', '-9740.00', '53400', '0', 'اضافة فاتورة مشتريات', '148', '43660', '2026-10-14 16:00:27', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','53400','1','459930','53400','513330','0',''); -- id=478
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '53400', '53400', '2026-10-14', '1', '0', '0', '2026-10-14 16:02:05','اضافة فاتورة مشتريات رقم 148','1','0',null,'0','148','buyBillController.php?do=details&id=148'); -- id=2402
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2402', '382', '53400', '','0'); -- id=2457
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21953245.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2402', '453', '53400', '','0'); -- id=2404
UPDATE accountstree SET name = 'افندينا - مورد', customName = 'افندينا - مورد', customNameEn = 'افندينا - مورد', nameEn = 'افندينا - مورد', parent = '81', accountNature = '1', theValue = '-32700', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '453';
update buybill set dailyentryid='2402,0' where buybillid=148;
COMMIT;
UPDATE product SET overAllAveragePrice = 480 WHERE productId = 1981;UPDATE product SET overAllAveragePrice = 570 WHERE productId = 1982;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:32:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:02:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:02:05', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=148'); -- id=9374
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:32:17";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:02:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:02:17', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=148&type=2'); -- id=9375
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:35:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:05:50", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:05:50', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9376

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf7d392ec39
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 16:05:50', '06acf7d392ec39', '1', '0.00', '0', '5', '1', '1455.00', '1450', '1450', '0', '1', '2026-10-14 16:05:50', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '3' ,'0','','','','','-1','0','0','0','0','0','1450','0','','0','0','1450','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=528
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','528', '0', '2026-10-14 16:05:50', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '1450', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 16:05:50','0','0','',''); -- id=675
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '528', '153', '1921', '3', '485', '1455', '0', '', '0', '2026-10-14 16:05:50', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-3,','1','1','0','0','485','1455','0','','0','0.00','0','0','0','0'); -- id=1899
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1899;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 1450, 1380, 1380
                    , 1380, 1380, 1380, 1380
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1380, 1380, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1450, sellCostBuyPrice =sellCostBuyPrice+1380
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1380, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1380
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1380, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1380
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1380
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1380
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1380
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1450, 1380, 1380
                    , 1380, 1380, 1380, 1380
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1380, 1380, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1450, sellCostBuyPrice =sellCostBuyPrice+1380
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1380, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1380
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1380, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1380
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1380
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1380
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1380
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '168', userid = '3', storedetaildate = '2026-10-14 16:05:50' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '3', '1', '528', 'اضافة فاتورة مبيعات', 'sellbillController.php', '171', '168', '3', '2026-10-14 16:05:50','0','0'); -- id=5542
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3399495',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3398045','1450', '0', '2', 'اضافة فاتورة مبيعات', '528', '3399495', '2026-10-14 16:05:50', '3',  'sellbillController.php','1','','0'); -- id=667
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '1455', '1455', '2026-10-14', '3', '0', '0', '2026-10-14 16:05:50','اضافة فاتورة مبيعات رقم 528','1','0',null,'0','528','sellbillController.php?do=showDetail&sellbillid=528'); -- id=2403
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2403', '419', '1450', '','0'); -- id=2458
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3399495', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2403', '398', '5', '','0'); -- id=2459
UPDATE accountstree SET name = 'خصم مسموح به', customName = 'خصم مسموح به', customNameEn = '', nameEn = '', parent = '158', accountNature = '0', theValue = '465135', theOrder = '0', layingOrder = '51', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-08-08 17:58:26' WHERE id = '398';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2403', '143', '1455', '','0'); -- id=2405
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5604895', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '1380', '1380', '2026-10-14', '3', '0', '0', '2026-10-14 16:05:50','اضافة فاتورة مبيعات رقم 528 - صرف البضاعة من المخزن','1','0',null,'0','528','sellbillController.php?do=showDetail&sellbillid=528'); -- id=2404
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2404', '402', '1380', '','0'); -- id=2460
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5227571.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2404', '382', '1380', '','0'); -- id=2406
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21951865.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2403,0,2404' where sellbillid=528;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 1450, 1380, 1380
                    , 1380, 1380, 1380, 1380
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,1380, 1380, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1450, sellCostBuyPrice =sellCostBuyPrice+1380
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1380, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1380
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1380, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1380
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1380
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1380
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1380
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1450, 1380, 1380
                    , 1380, 1380, 1380, 1380
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,1380, 1380, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1450, sellCostBuyPrice =sellCostBuyPrice+1380
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1380, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1380
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1380, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1380
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1380
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1380
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1380
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 1450, 1380, 1380
                    , 1380, 1380, 1380, 1380, 1380, 1380)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+1450, netSellCostBuyPrice = netSellCostBuyPrice+1380
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+1380
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+1380
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+1380
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+1380
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+1380
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+1380
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+1380;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf7d392ec39 and sellbillId = 528 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:35:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:05:50", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:05:50', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9377
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:36:53";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:06:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 16:06:53', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9378
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('ام ام الجابري','2026-10-14','','93', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=160
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (160, 1,'2026-10-14 16:06:53',1)
                ON DUPLICATE KEY UPDATE catid = 160, edited = 1, sysdate = '2026-10-14 16:06:53', userid = 1; -- id=172
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '160', '1', '2026-10-14', '1', '0'); -- id=65
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:36:53";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:06:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 16:06:53', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9379
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:36:55";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:06:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 16:06:55', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9380
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:36:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:06:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:06:59', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9381
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:37:58";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:07:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:07:58', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9382
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('قصات ميلتون 470 ام ام','','160','0','0','0','0','2026-10-14','0','1','0','','0','0','0','0','0','','0','','0','0','0','0','0','0','.','0','0','0','0','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','0','0','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','0','0','0','0','0','0','0','','','0','0','0','0'); -- id=1983
UPDATE product SET productName = 'قصات ميلتون 470 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '0', productSellAllPrice = '0', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01983',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '',lastbuyprice_withDiscount = '0',meanbuyprice = '',meanbuyprice_withDiscount = '0' , productbuypricereal = '0' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='0',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1983';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1983', '1.00', '2026-10-14', '1', '0','0198301','0','0','0','0','','0','0','0','0','0','0','0','0','0','0'); -- id=1983
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1983', '1', '0', '1', '2026-10-14'); -- id=3000
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1983', '1', '0', '0', '1983', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5543
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1983, 1,'2026-10-14 16:07:58',1)
                ON DUPLICATE KEY UPDATE productid = 1983, edited = 1, sysdate = '2026-10-14 16:07:58', userid = 1; -- id=2933
UPDATE product SET productName = 'قصات ميلتون 470 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '0.00', productSellAllPrice = '0.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01983',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '',lastbuyprice_withDiscount = '0',meanbuyprice = '',meanbuyprice_withDiscount = '0' , productbuypricereal = '0' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='0',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1983';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:37:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:07:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:07:59', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9383
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:38:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:08:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 16:08:33', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9384
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:38:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:08:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 16:08:41', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9385
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:39:25";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:09:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 16:09:25', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9386
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:39:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:09:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 16:09:37', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9387
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:39:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:09:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 16:09:57', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9388
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:40:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:10:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 16:10:04', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9389
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:42:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:12:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:12:31', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9390
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديلات بوكس فت 500 ام ام','','160','500','500','500','500','2026-10-14','0','1','0','','0','0','0','0','0','500','500','500','500','500','0','0','0','0','.','0','0','0','500','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','500','500','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','500','0','0','0','0','0','0','','','0','0','0','0'); -- id=1984
UPDATE product SET productName = 'موديلات بوكس فت 500 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '500', productSellAllPrice = '500', productSellUnitPrice = '500', productSellHalfPrice = '500', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01984',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1984';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1984', '1.00', '2026-10-14', '1', '0','0198401','500','500','500','500','','0','0','0','0','0','0','0','0','0','0'); -- id=1984
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1984', '1', '0', '1', '2026-10-14'); -- id=3001
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1984', '1', '0', '0', '1984', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5544
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1984, 1,'2026-10-14 16:12:31',1)
                ON DUPLICATE KEY UPDATE productid = 1984, edited = 1, sysdate = '2026-10-14 16:12:31', userid = 1; -- id=2934
UPDATE product SET productName = 'موديلات بوكس فت 500 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '500.00', productSellAllPrice = '500.00', productSellUnitPrice = '500.00', productSellHalfPrice = '500.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01984',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1984';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('قصات قطيفه 540 ام ام','','160','540','540','540','540','2026-10-14','0','1','0','','0','0','0','0','0','540','540','540','540','540','0','0','0','0','.','0','0','0','540','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','540','540','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','540','0','0','0','0','0','0','','','0','0','0','0'); -- id=1985
UPDATE product SET productName = 'قصات قطيفه 540 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '540', productSellAllPrice = '540', productSellUnitPrice = '540', productSellHalfPrice = '540', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01985',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '540',meanbuyprice = '540',meanbuyprice_withDiscount = '540' , productbuypricereal = '540' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='540',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='540',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1985';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1985', '1.00', '2026-10-14', '1', '0','0198501','540','540','540','540','','0','0','0','0','0','0','0','0','0','0'); -- id=1985
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1985', '1', '0', '1', '2026-10-14'); -- id=3002
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1985', '1', '0', '0', '1985', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5545
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1985, 1,'2026-10-14 16:12:31',1)
                ON DUPLICATE KEY UPDATE productid = 1985, edited = 1, sysdate = '2026-10-14 16:12:31', userid = 1; -- id=2935
UPDATE product SET productName = 'قصات قطيفه 540 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '540.00', productSellAllPrice = '540.00', productSellUnitPrice = '540.00', productSellHalfPrice = '540.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01985',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '540',meanbuyprice = '540',meanbuyprice_withDiscount = '540' , productbuypricereal = '540' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='540',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='540',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1985';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('بوكس فت استرس ام ام','','160','540','540','540','540','2026-10-14','0','1','0','','0','0','0','0','0','540','540','540','540','540','0','0','0','0','.','0','0','0','540','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','540','540','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','540','0','0','0','0','0','0','','','0','0','0','0'); -- id=1986
UPDATE product SET productName = 'بوكس فت استرس ام ام', productDescription = '', productCatId = '160', productBuyPrice = '540', productSellAllPrice = '540', productSellUnitPrice = '540', productSellHalfPrice = '540', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01986',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '540',meanbuyprice = '540',meanbuyprice_withDiscount = '540' , productbuypricereal = '540' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='540',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='540',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1986';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1986', '1.00', '2026-10-14', '1', '0','0198601','540','540','540','540','','0','0','0','0','0','0','0','0','0','0'); -- id=1986
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1986', '1', '0', '1', '2026-10-14'); -- id=3003
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1986', '1', '0', '0', '1986', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5546
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1986, 1,'2026-10-14 16:12:31',1)
                ON DUPLICATE KEY UPDATE productid = 1986, edited = 1, sysdate = '2026-10-14 16:12:31', userid = 1; -- id=2936
UPDATE product SET productName = 'بوكس فت استرس ام ام', productDescription = '', productCatId = '160', productBuyPrice = '540.00', productSellAllPrice = '540.00', productSellUnitPrice = '540.00', productSellHalfPrice = '540.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01986',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '540',meanbuyprice = '540',meanbuyprice_withDiscount = '540' , productbuypricereal = '540' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='540',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='540',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1986';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('لياقة ام ام','','160','420','420','420','420','2026-10-14','0','1','0','','0','0','0','0','0','420','420','420','420','420','0','0','0','0','.','0','0','0','420','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','420','420','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','420','0','0','0','0','0','0','','','0','0','0','0'); -- id=1987
UPDATE product SET productName = 'لياقة ام ام', productDescription = '', productCatId = '160', productBuyPrice = '420', productSellAllPrice = '420', productSellUnitPrice = '420', productSellHalfPrice = '420', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01987',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='420',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='420',meanbuyprice_withTax='420',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='420',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1987';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1987', '1.00', '2026-10-14', '1', '0','0198701','420','420','420','420','','0','0','0','0','0','0','0','0','0','0'); -- id=1987
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1987', '1', '0', '1', '2026-10-14'); -- id=3004
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1987', '1', '0', '0', '1987', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5547
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1987, 1,'2026-10-14 16:12:31',1)
                ON DUPLICATE KEY UPDATE productid = 1987, edited = 1, sysdate = '2026-10-14 16:12:31', userid = 1; -- id=2937
UPDATE product SET productName = 'لياقة ام ام', productDescription = '', productCatId = '160', productBuyPrice = '420.00', productSellAllPrice = '420.00', productSellUnitPrice = '420.00', productSellHalfPrice = '420.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01987',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='420',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='420',meanbuyprice_withTax='420',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='420',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1987';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('بوكس فت سوسته ام ام','','160','570','570','570','570','2026-10-14','0','1','0','','0','0','0','0','0','570','570','570','570','570','0','0','0','0','.','0','0','0','570','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','570','570','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','570','0','0','0','0','0','0','','','0','0','0','0'); -- id=1988
UPDATE product SET productName = 'بوكس فت سوسته ام ام', productDescription = '', productCatId = '160', productBuyPrice = '570', productSellAllPrice = '570', productSellUnitPrice = '570', productSellHalfPrice = '570', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01988',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '570',lastbuyprice_withDiscount = '570',meanbuyprice = '570',meanbuyprice_withDiscount = '570' , productbuypricereal = '570' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='570',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='570',meanbuyprice_withTax='570',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='570',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1988';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1988', '1.00', '2026-10-14', '1', '0','0198801','570','570','570','570','','0','0','0','0','0','0','0','0','0','0'); -- id=1988
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1988', '1', '0', '1', '2026-10-14'); -- id=3005
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1988', '1', '0', '0', '1988', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5548
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1988, 1,'2026-10-14 16:12:31',1)
                ON DUPLICATE KEY UPDATE productid = 1988, edited = 1, sysdate = '2026-10-14 16:12:31', userid = 1; -- id=2938
UPDATE product SET productName = 'بوكس فت سوسته ام ام', productDescription = '', productCatId = '160', productBuyPrice = '570.00', productSellAllPrice = '570.00', productSellUnitPrice = '570.00', productSellHalfPrice = '570.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01988',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '570',lastbuyprice_withDiscount = '570',meanbuyprice = '570',meanbuyprice_withDiscount = '570' , productbuypricereal = '570' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='570',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='570',meanbuyprice_withTax='570',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='570',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1988';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('بدي ام ام','','160','260','260','260','260','2026-10-14','0','1','0','','0','0','0','0','0','260','260','260','260','260','0','0','0','0','.','0','0','0','260','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','260','260','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','260','0','0','0','0','0','0','','','0','0','0','0'); -- id=1989
UPDATE product SET productName = 'بدي ام ام', productDescription = '', productCatId = '160', productBuyPrice = '260', productSellAllPrice = '260', productSellUnitPrice = '260', productSellHalfPrice = '260', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01989',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '260',lastbuyprice_withDiscount = '260',meanbuyprice = '260',meanbuyprice_withDiscount = '260' , productbuypricereal = '260' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='260',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='260',meanbuyprice_withTax='260',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='260',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1989';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1989', '1.00', '2026-10-14', '1', '0','0198901','260','260','260','260','','0','0','0','0','0','0','0','0','0','0'); -- id=1989
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1989', '1', '0', '1', '2026-10-14'); -- id=3006
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1989', '1', '0', '0', '1989', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5549
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1989, 1,'2026-10-14 16:12:31',1)
                ON DUPLICATE KEY UPDATE productid = 1989, edited = 1, sysdate = '2026-10-14 16:12:31', userid = 1; -- id=2939
UPDATE product SET productName = 'بدي ام ام', productDescription = '', productCatId = '160', productBuyPrice = '260.00', productSellAllPrice = '260.00', productSellUnitPrice = '260.00', productSellHalfPrice = '260.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01989',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '260',lastbuyprice_withDiscount = '260',meanbuyprice = '260',meanbuyprice_withDiscount = '260' , productbuypricereal = '260' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='260',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='260',meanbuyprice_withTax='260',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='260',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1989';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:42:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:12:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:12:33', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9391
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:42:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:12:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:12:37', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9392
INSERT INTO supplier (suppliername, supplieraddress, supplierphone, suppliercurrentDebt, supplierdetails, conditions, userid, supplierdate, dailyentryid, category_id, typesupplier_id,linkedClientId,inUse,suppliercode,goverareaid,namepayeecheck,suppliermobile,warrantyOfficer,warrantymobile,sellername,sellermobile,taxnumber,supplierTypeForTree,treeId,sullpierCurrencyid,suppliercurrentDebtInCurrency,webApiId,shippingDiscountPer) VALUES ('ام ام الجابري', '', '', '', '', '0', '1', '2026-10-14 16:13:40', '0', '', '','0','0','','','','','','','','','','0','0','1','0','0','0'); -- id=173
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('173', '0', '', '0', 'إضافة مورد جديد', '173', '', '2026-10-14 16:13:40', '1', 'supplierController.php', '', '0','', '0','1','1','0','1','0','0','0','0',''); -- id=479
INSERT INTO accountstree (name, customName, customNameEn, nameEn, parent, accountNature, theValue, theOrder, layingOrder, reportid, listId, notes, itemfrom, itemtype, itemtype2, itemtype3, userid, del, sysdate) VALUES ('ام ام الجابري', 'ام ام الجابري', 'ام ام الجابري', 'ام ام الجابري', '81', '1', '0', '0', '', '1', '1', '', '0', '1', '1', '', '1', '0', '2026-10-14 16:13:40'); -- id=656
UPDATE supplier SET suppliername = 'ام ام الجابري', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '0.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-10-14', dailyentryid = '0', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='656',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='0',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '173';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:47:58";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:17:58", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:17:58', '6', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9393

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf7aeb40b5e
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 16:17:58', '06acf7aeb40b5e', '1', '0.00', '0', '0', '1', '36660.00', '36660', '36660', '0', '1', '2026-10-14 16:17:58', '', '6', '0', 'نقدي', '4', '0', '3', '0', 'نقدي', '60' ,'0','','','','','-1','0','0','0','0','0','36660','0','','0','0','36660','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=529
UPDATE client SET  clientdebt = '0', userid = '6' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','529', '0', '2026-10-14 16:17:58', '6', 'sellbillController.php', 'اضافة فاتورة مبيعات', '36660', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 16:17:58','0','0','',''); -- id=676
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 58;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('410','01373', '529', '91', '1373', '9', '470', '4230', '0', '', '0', '2026-10-14 16:17:58', '1373', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','58-9,','1','1','0','0','470','4230','0','','0','0.00','0','0','0','0'); -- id=1900
UPDATE sellbilldetail SET  lastbuyprice = 410.00 , meanbuyprice = 410.00, lastbuyprice_withDiscount = 410.00, meanbuyprice_withDiscount = 410.00
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 410, lastbuyprice_withDiscountAndTax = 410
                where sellbilldetailid = 1900;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1373, '2026-10-14', 4230, 3690, 3690
                    , 3690, 3690, 3690, 3690
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3690, 3690, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4230, sellCostBuyPrice =sellCostBuyPrice+3690
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3690, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3690
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3690, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3690
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3690
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3690
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3690
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4230, 3690, 3690
                    , 3690, 3690, 3690, 3690
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3690, 3690, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4230, sellCostBuyPrice =sellCostBuyPrice+3690
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3690, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3690
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3690, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3690
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3690
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3690
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3690
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '60', userid = '6', storedetaildate = '2026-10-14 16:17:58' WHERE storedetailid = '1373';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1373', '1', '9', '1', '529', 'اضافة فاتورة مبيعات', 'sellbillController.php', '69', '60', '6', '2026-10-14 16:17:58','0','0'); -- id=5550
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 57;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('420','01372', '529', '91', '1372', '9', '480', '4320', '0', '', '0', '2026-10-14 16:17:58', '1372', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','57-9,','1','1','0','0','480','4320','0','','0','0.00','0','0','0','0'); -- id=1901
UPDATE sellbilldetail SET  lastbuyprice = 420.00 , meanbuyprice = 420.00, lastbuyprice_withDiscount = 420.00, meanbuyprice_withDiscount = 420.00
        , lastbuyprice_withTax = 420, meanbuyprice_withTax = 420, lastbuyprice_withDiscountAndTax = 420
                where sellbilldetailid = 1901;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1372, '2026-10-14', 4320, 3780, 3780
                    , 3780, 3780, 3780, 3780
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3780, 3780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4320, sellCostBuyPrice =sellCostBuyPrice+3780
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3780, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3780
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3780, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3780
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3780
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3780
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4320, 3780, 3780
                    , 3780, 3780, 3780, 3780
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3780, 3780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4320, sellCostBuyPrice =sellCostBuyPrice+3780
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3780, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3780
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3780, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3780
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3780
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3780
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '36', userid = '6', storedetaildate = '2026-10-14 16:17:58' WHERE storedetailid = '1372';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1372', '1', '9', '1', '529', 'اضافة فاتورة مبيعات', 'sellbillController.php', '45', '36', '6', '2026-10-14 16:17:58','0','0'); -- id=5551
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 54;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('430','01369', '529', '91', '1369', '9', '490', '4410', '0', '', '0', '2026-10-14 16:17:58', '1369', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','54-9,','1','1','0','0','490','4410','0','','0','0.00','0','0','0','0'); -- id=1902
UPDATE sellbilldetail SET  lastbuyprice = 430.00 , meanbuyprice = 430.00, lastbuyprice_withDiscount = 430.00, meanbuyprice_withDiscount = 430.00
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 430
                where sellbilldetailid = 1902;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1369, '2026-10-14', 4410, 3870, 3870
                    , 3870, 3870, 3870, 3870
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3870, 3870, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4410, sellCostBuyPrice =sellCostBuyPrice+3870
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3870, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3870
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3870, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3870
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3870
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3870
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3870
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4410, 3870, 3870
                    , 3870, 3870, 3870, 3870
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3870, 3870, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4410, sellCostBuyPrice =sellCostBuyPrice+3870
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3870, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3870
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3870, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3870
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3870
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3870
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3870
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '72', userid = '6', storedetaildate = '2026-10-14 16:17:58' WHERE storedetailid = '1369';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1369', '1', '9', '1', '529', 'اضافة فاتورة مبيعات', 'sellbillController.php', '81', '72', '6', '2026-10-14 16:17:58','0','0'); -- id=5552
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 647;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('750','01734', '529', '133', '1734', '12', '750', '9000', '0', '', '0', '2026-10-14 16:17:58', '1734', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','647-12,','1','1','0','0','750','9000','0','','0','0.00','0','0','0','0'); -- id=1903
UPDATE sellbilldetail SET  lastbuyprice = 750.00 , meanbuyprice = 750.00, lastbuyprice_withDiscount = 750.00, meanbuyprice_withDiscount = 750.00
        , lastbuyprice_withTax = 750, meanbuyprice_withTax = 750, lastbuyprice_withDiscountAndTax = 750
                where sellbilldetailid = 1903;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1734, '2026-10-14', 9000, 9000, 9000
                    , 9000, 9000, 9000, 9000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 9000, 9000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+9000, sellCostBuyPrice =sellCostBuyPrice+9000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+9000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+9000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+9000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+9000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+9000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+9000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+9000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 9000, 9000, 9000
                    , 9000, 9000, 9000, 9000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9000, 9000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+9000, sellCostBuyPrice =sellCostBuyPrice+9000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+9000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+9000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+9000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+9000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+9000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+9000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+9000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '64', userid = '6', storedetaildate = '2026-10-14 16:17:58' WHERE storedetailid = '2747';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1734', '1', '12', '1', '529', 'اضافة فاتورة مبيعات', 'sellbillController.php', '76', '64', '6', '2026-10-14 16:17:58','0','0'); -- id=5553
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+21 where id = 948;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('675','01491', '529', '108', '1491', '21', '700', '14700', '0', '', '0', '2026-10-14 16:17:58', '1491', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','948-21,','1','1','0','0','700','14700','0','','0','0.00','0','0','0','0'); -- id=1904
UPDATE sellbilldetail SET  lastbuyprice = 675.00 , meanbuyprice = 675.00, lastbuyprice_withDiscount = 675.00, meanbuyprice_withDiscount = 675.00
        , lastbuyprice_withTax = 675, meanbuyprice_withTax = 675, lastbuyprice_withDiscountAndTax = 675
                where sellbilldetailid = 1904;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1491, '2026-10-14', 14700, 14175, 14175
                    , 14175, 14175, 14175, 14175
                    , 0, 0, 0, 0
                    , 0, 0, 0, 21, 0, 14175, 14175, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+14700, sellCostBuyPrice =sellCostBuyPrice+14175
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+14175, sellCostMeanBuyPrice = sellCostMeanBuyPrice+14175
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+14175, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+14175
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+14175
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+14175
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+14175
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+21
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 14700, 14175, 14175
                    , 14175, 14175, 14175, 14175
                    , 0, 0, 0, 0
                    , 0, 0, 0, 14175, 14175, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+14700, sellCostBuyPrice =sellCostBuyPrice+14175
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+14175, sellCostMeanBuyPrice = sellCostMeanBuyPrice+14175
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+14175, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+14175
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+14175
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+14175
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+14175
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '39', userid = '6', storedetaildate = '2026-10-14 16:17:58' WHERE storedetailid = '1516';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1491', '1', '21', '1', '529', 'اضافة فاتورة مبيعات', 'sellbillController.php', '60', '39', '6', '2026-10-14 16:17:58','0','0'); -- id=5554
CALL saveInUse(4,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '329540',  userid = '6' WHERE saveid = '4';
UPDATE save SET  inUse = 0 where saveid = 4;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('292880','36660', '0', '4', 'اضافة فاتورة مبيعات', '529', '329540', '2026-10-14 16:17:58', '6',  'sellbillController.php','1','','0'); -- id=668
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '36660', '36660', '2026-10-14', '6', '0', '0', '2026-10-14 16:17:58','اضافة فاتورة مبيعات رقم 529','1','0',null,'0','529','sellbillController.php?do=showDetail&sellbillid=529'); -- id=2405
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2405', '568', '36660', '','0'); -- id=2461
UPDATE accountstree SET name = 'خزنة شروال', customName = 'خزنة شروال', customNameEn = 'خزنة شروال', nameEn = 'خزنة شروال', parent = '40', accountNature = '0', theValue = '329540', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-06 13:37:54' WHERE id = '568';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2405', '143', '36660', '','0'); -- id=2407
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5641555', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '34515', '34515', '2026-10-14', '6', '0', '0', '2026-10-14 16:17:58','اضافة فاتورة مبيعات رقم 529 - صرف البضاعة من المخزن','1','0',null,'0','529','sellbillController.php?do=showDetail&sellbillid=529'); -- id=2406
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2406', '402', '34515', '','0'); -- id=2462
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5262086.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2406', '382', '34515', '','0'); -- id=2408
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21917350.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2405,0,2406' where sellbillid=529;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 36660, 34515, 34515
                    , 34515, 34515, 34515, 34515
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,34515, 34515, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+36660, sellCostBuyPrice =sellCostBuyPrice+34515
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+34515, sellCostMeanBuyPrice = sellCostMeanBuyPrice+34515
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+34515, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+34515
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+34515
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+34515
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+34515
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 36660, 34515, 34515
                    , 34515, 34515, 34515, 34515
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,34515, 34515, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+36660, sellCostBuyPrice =sellCostBuyPrice+34515
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+34515, sellCostMeanBuyPrice = sellCostMeanBuyPrice+34515
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+34515, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+34515
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+34515
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+34515
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+34515
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 36660, 34515, 34515
                    , 34515, 34515, 34515, 34515, 34515, 34515)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+36660, netSellCostBuyPrice = netSellCostBuyPrice+34515
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+34515
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+34515
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+34515
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+34515
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+34515
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+34515
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+34515;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf7aeb40b5e and sellbillId = 529 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:47:58";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:17:58", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:17:58', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9394
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:48:21";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:18:21", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:18:21', '6', 'showDetail', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=showDetail&sellbillid=529'); -- id=9395
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:48:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:18:29", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:18:29', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9396
UPDATE productunit SET unitid = '1', productid = '1983', productnumber = '1.00', productunitdate = '2026-10-14', userid = '1', conditions = '0',proUnitParcode='0198301',proUnitSellAllPrice='0',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='0',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1983';
UPDATE product SET productName = 'قصات ميلتون 470 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '470', productSellAllPrice = '0', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01983',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '0.00',lastbuyprice_withDiscount = '0',meanbuyprice = '0.00',meanbuyprice_withDiscount = '0' , productbuypricereal = '0' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='0',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1983';
UPDATE productunit SET unitid = '1', productid = '1983', productnumber = '1.00', productunitdate = '2026-10-14', userid = '1', conditions = '0',proUnitParcode='0198301',proUnitSellAllPrice='0',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='470',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1983';
UPDATE product SET productName = 'قصات ميلتون 470 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '470', productSellAllPrice = '0', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01983',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '0.00',lastbuyprice_withDiscount = '0',meanbuyprice = '0.00',meanbuyprice_withDiscount = '0' , productbuypricereal = '0' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='0',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1983';
UPDATE productunit SET unitid = '1', productid = '1983', productnumber = '1.00', productunitdate = '2026-10-14', userid = '1', conditions = '0',proUnitParcode='0198301',proUnitSellAllPrice='0',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='470',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1983';
UPDATE product SET productName = 'قصات ميلتون 470 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '470', productSellAllPrice = '0', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01983',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '0.00',lastbuyprice_withDiscount = '0',meanbuyprice = '0.00',meanbuyprice_withDiscount = '0' , productbuypricereal = '0' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='0',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1983';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:53:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:23:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 16:23:15', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9397
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:53:19";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:23:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 16:23:19', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9398
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:53:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:23:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:23:28', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9399
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:53:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:23:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 16:23:34', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9400
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:53:38";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:23:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:23:38', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9401
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:53:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:23:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 16:23:45', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9402
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:54:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:24:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 16:24:23', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9403
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 12:54:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:24:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 16:24:28', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9404
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:00:06";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:30:07", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 16:30:07', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9405
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 13:00:07";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 16:30:07', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9406
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:01:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:31:23", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 16:31:23', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9407
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 13:01:24";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 16:31:24', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9408
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:01:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:31:29", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:31:29', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9409

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf7e2eebc97
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 16:31:29', '06acf7e2eebc97', '1', '0.00', '0', '0', '1', '120560.00', '120560', '120560', '0', '1', '2026-10-14 16:31:29', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '313' ,'0','','','','','-1','0','0','0','0','0','120560','0','','0','0','120560','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=530
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','530', '0', '2026-10-14 16:31:29', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '120560', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 16:31:29','0','0','',''); -- id=677
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+18 where id = 73;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('260','01381', '530', '94', '1381', '18', '295', '5310', '0', '', '0', '2026-10-14 16:31:29', '1381', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','73-18,','1','1','0','0','295','5310','0','','0','0.00','0','0','0','0'); -- id=1905
UPDATE sellbilldetail SET  lastbuyprice = 260.00 , meanbuyprice = 260.00, lastbuyprice_withDiscount = 260.00, meanbuyprice_withDiscount = 260.00
        , lastbuyprice_withTax = 260, meanbuyprice_withTax = 260, lastbuyprice_withDiscountAndTax = 260
                where sellbilldetailid = 1905;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1381, '2026-10-14', 5310, 4680, 4680
                    , 4680, 4680, 4680, 4680
                    , 0, 0, 0, 0
                    , 0, 0, 0, 18, 0, 4680, 4680, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5310, sellCostBuyPrice =sellCostBuyPrice+4680
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4680, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4680
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4680, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4680
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4680
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4680
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4680
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+18
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5310, 4680, 4680
                    , 4680, 4680, 4680, 4680
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4680, 4680, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5310, sellCostBuyPrice =sellCostBuyPrice+4680
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4680, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4680
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4680, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4680
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4680
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4680
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4680
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '249', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '1381';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1381', '1', '18', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '267', '249', '3', '2026-10-14 16:31:29','0','0'); -- id=5555
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 70;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('320','01378', '530', '94', '1378', '9', '360', '3240', '0', '', '0', '2026-10-14 16:31:29', '1378', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','70-9,','1','1','0','0','360','3240','0','','0','0.00','0','0','0','0'); -- id=1906
UPDATE sellbilldetail SET  lastbuyprice = 320.00 , meanbuyprice = 320.00, lastbuyprice_withDiscount = 320.00, meanbuyprice_withDiscount = 320.00
        , lastbuyprice_withTax = 320, meanbuyprice_withTax = 320, lastbuyprice_withDiscountAndTax = 320
                where sellbilldetailid = 1906;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1378, '2026-10-14', 3240, 2880, 2880
                    , 2880, 2880, 2880, 2880
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2880, 2880, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3240, sellCostBuyPrice =sellCostBuyPrice+2880
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2880, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2880
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2880, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2880
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2880
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2880
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2880
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3240, 2880, 2880
                    , 2880, 2880, 2880, 2880
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2880, 2880, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3240, sellCostBuyPrice =sellCostBuyPrice+2880
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2880, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2880
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2880, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2880
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2880
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2880
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2880
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '543', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '1378';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1378', '1', '9', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '552', '543', '3', '2026-10-14 16:31:29','0','0'); -- id=5556
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+18 where id = 234;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01455', '530', '94', '1455', '18', '300', '5400', '0', '', '0', '2026-10-14 16:31:29', '1455', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','234-18,','1','1','0','0','300','5400','0','','0','0.00','0','0','0','0'); -- id=1907
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1907;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1455, '2026-10-14', 5400, 4860, 4860
                    , 4860, 4860, 4860, 4860
                    , 0, 0, 0, 0
                    , 0, 0, 0, 18, 0, 4860, 4860, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5400, sellCostBuyPrice =sellCostBuyPrice+4860
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4860, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4860
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4860, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4860
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4860
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4860
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4860
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+18
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5400, 4860, 4860
                    , 4860, 4860, 4860, 4860
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4860, 4860, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5400, sellCostBuyPrice =sellCostBuyPrice+4860
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4860, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4860
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4860, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4860
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4860
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4860
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4860
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '21', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '1480';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1455', '1', '18', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '39', '21', '3', '2026-10-14 16:31:29','0','0'); -- id=5557
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+15 where id = 72;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('350','i0001380', '530', '94', '1380', '15', '400', '6000', '0', '', '0', '2026-10-14 16:31:29', '1380', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','72-15,','1','1','0','0','400','6000','0','','0','0.00','0','0','0','0'); -- id=1908
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 350.00, meanbuyprice_withDiscount = 350.00
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 350
                where sellbilldetailid = 1908;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1380, '2026-10-14', 6000, 5250, 5250
                    , 5250, 5250, 5250, 5250
                    , 0, 0, 0, 0
                    , 0, 0, 0, 15, 0, 5250, 5250, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6000, sellCostBuyPrice =sellCostBuyPrice+5250
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5250, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5250
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5250, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5250
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5250
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5250
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5250
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+15
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 6000, 5250, 5250
                    , 5250, 5250, 5250, 5250
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5250, 5250, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6000, sellCostBuyPrice =sellCostBuyPrice+5250
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5250, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5250
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5250, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5250
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5250
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5250
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5250
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '519', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '1380';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1380', '1', '15', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '534', '519', '3', '2026-10-14 16:31:29','0','0'); -- id=5558
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 79;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('477','01387', '530', '95', '1387', '3', '530', '1590', '0', '', '0', '2026-10-14 16:31:29', '1387', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','79-3,','1','1','0','0','530','1590','0','','0','0.00','0','0','0','0'); -- id=1909
UPDATE sellbilldetail SET  lastbuyprice = 530.00 , meanbuyprice = 530.00, lastbuyprice_withDiscount = 477.00, meanbuyprice_withDiscount = 504.76
        , lastbuyprice_withTax = 530, meanbuyprice_withTax = 252.38, lastbuyprice_withDiscountAndTax = 477
                where sellbilldetailid = 1909;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1387, '2026-10-14', 1590, 1590, 1590
                    , 1590, 1431, 1514.28, 1431
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1590, 757.14, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1590, sellCostBuyPrice =sellCostBuyPrice+1590
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1590, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1590
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1431, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1514.28
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1431
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1590
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+757.14
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1590, 1590, 1590
                    , 1590, 1431, 1514.28, 1431
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1590, 757.14, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1590, sellCostBuyPrice =sellCostBuyPrice+1590
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1590, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1590
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1431, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1514.28
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1431
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1590
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+757.14
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '1387';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1387', '1', '3', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '3', '0', '3', '2026-10-14 16:31:29','0','0'); -- id=5559
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+63 where id = 866;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('235','01841', '530', '142', '1841', '63', '250', '15750', '0', '', '0', '2026-10-14 16:31:29', '1841', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','866-63,','1','1','0','0','250','15750','0','','0','0.00','0','0','0','0'); -- id=1910
UPDATE sellbilldetail SET  lastbuyprice = 235.00 , meanbuyprice = 235.00, lastbuyprice_withDiscount = 235.00, meanbuyprice_withDiscount = 235.00
        , lastbuyprice_withTax = 235, meanbuyprice_withTax = 117.5, lastbuyprice_withDiscountAndTax = 235
                where sellbilldetailid = 1910;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1841, '2026-10-14', 15750, 14805, 14805
                    , 14805, 14805, 14805, 14805
                    , 0, 0, 0, 0
                    , 0, 0, 0, 63, 0, 14805, 7402.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+15750, sellCostBuyPrice =sellCostBuyPrice+14805
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+14805, sellCostMeanBuyPrice = sellCostMeanBuyPrice+14805
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+14805, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+14805
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+14805
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+14805
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7402.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+63
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 15750, 14805, 14805
                    , 14805, 14805, 14805, 14805
                    , 0, 0, 0, 0
                    , 0, 0, 0, 14805, 7402.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+15750, sellCostBuyPrice =sellCostBuyPrice+14805
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+14805, sellCostMeanBuyPrice = sellCostMeanBuyPrice+14805
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+14805, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+14805
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+14805
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+14805
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7402.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '84', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '2856';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1841', '1', '63', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '147', '84', '3', '2026-10-14 16:31:29','0','0'); -- id=5560
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 998;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('322','01904', '530', '149', '1904', '9', '350', '3150', '0', '', '0', '2026-10-14 16:31:29', '1904', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','998-9,','1','1','0','0','350','3150','0','','0','0.00','0','0','0','0'); -- id=1911
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 322.00, meanbuyprice_withDiscount = 336.00
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 175, lastbuyprice_withDiscountAndTax = 322
                where sellbilldetailid = 1911;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1904, '2026-10-14', 3150, 3150, 3150
                    , 3150, 2898, 3024, 2898
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3150, 1575, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3150, sellCostBuyPrice =sellCostBuyPrice+3150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2898, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3024
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2898
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1575
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3150, 3150, 3150
                    , 3150, 2898, 3024, 2898
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3150, 1575, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3150, sellCostBuyPrice =sellCostBuyPrice+3150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2898, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3024
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2898
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1575
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '12', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '2921';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1904', '1', '9', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '21', '12', '3', '2026-10-14 16:31:29','0','0'); -- id=5561
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 234;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01455', '530', '94', '1455', '9', '300', '2700', '0', '', '0', '2026-10-14 16:31:29', '1455', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','234-9,','1','1','0','0','300','2700','0','','0','0.00','0','0','0','0'); -- id=1912
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1912;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1455, '2026-10-14', 2700, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '12', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '1480';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1455', '1', '9', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '21', '12', '3', '2026-10-14 16:31:29','0','0'); -- id=5562
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 73;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('260','01381', '530', '94', '1381', '3', '295', '885', '0', '', '0', '2026-10-14 16:31:29', '1381', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','73-3,','1','1','0','0','295','885','0','','0','0.00','0','0','0','0'); -- id=1913
UPDATE sellbilldetail SET  lastbuyprice = 260.00 , meanbuyprice = 260.00, lastbuyprice_withDiscount = 260.00, meanbuyprice_withDiscount = 260.00
        , lastbuyprice_withTax = 260, meanbuyprice_withTax = 260, lastbuyprice_withDiscountAndTax = 260
                where sellbilldetailid = 1913;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1381, '2026-10-14', 885, 780, 780
                    , 780, 780, 780, 780
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 780, 780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+885, sellCostBuyPrice =sellCostBuyPrice+780
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+780, sellCostMeanBuyPrice = sellCostMeanBuyPrice+780
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+780, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+780
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+780
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+780
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 885, 780, 780
                    , 780, 780, 780, 780
                    , 0, 0, 0, 0
                    , 0, 0, 0, 780, 780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+885, sellCostBuyPrice =sellCostBuyPrice+780
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+780, sellCostMeanBuyPrice = sellCostMeanBuyPrice+780
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+780, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+780
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+780
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+780
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '246', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '1381';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1381', '1', '3', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '249', '246', '3', '2026-10-14 16:31:29','0','0'); -- id=5563
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 994;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('368','01900', '530', '149', '1900', '9', '400', '3600', '0', '', '0', '2026-10-14 16:31:29', '1900', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','994-9,','1','1','0','0','400','3600','0','','0','0.00','0','0','0','0'); -- id=1914
UPDATE sellbilldetail SET  lastbuyprice = 400.00 , meanbuyprice = 400.00, lastbuyprice_withDiscount = 368.00, meanbuyprice_withDiscount = 384.00
        , lastbuyprice_withTax = 400, meanbuyprice_withTax = 200, lastbuyprice_withDiscountAndTax = 368
                where sellbilldetailid = 1914;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1900, '2026-10-14', 3600, 3600, 3600
                    , 3600, 3312, 3456, 3312
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3600, 1800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3600, sellCostBuyPrice =sellCostBuyPrice+3600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3312, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3456
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3312
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3600, 3600, 3600
                    , 3600, 3312, 3456, 3312
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3600, 1800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3600, sellCostBuyPrice =sellCostBuyPrice+3600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3312, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3456
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3312
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '15', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '2917';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1900', '1', '9', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '15', '3', '2026-10-14 16:31:29','0','0'); -- id=5564
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 72;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('350','01380', '530', '94', '1380', '6', '400', '2400', '0', '', '0', '2026-10-14 16:31:29', '1380', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','72-6,','1','1','0','0','400','2400','0','','0','0.00','0','0','0','0'); -- id=1915
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 350.00, meanbuyprice_withDiscount = 350.00
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 350
                where sellbilldetailid = 1915;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1380, '2026-10-14', 2400, 2100, 2100
                    , 2100, 2100, 2100, 2100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2100, 2100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2400, sellCostBuyPrice =sellCostBuyPrice+2100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2400, 2100, 2100
                    , 2100, 2100, 2100, 2100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2100, 2100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2400, sellCostBuyPrice =sellCostBuyPrice+2100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '513', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '1380';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1380', '1', '6', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '519', '513', '3', '2026-10-14 16:31:29','0','0'); -- id=5565
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 73;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('260','01381', '530', '94', '1381', '6', '295', '1770', '0', '', '0', '2026-10-14 16:31:29', '1381', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','73-6,','1','1','0','0','295','1770','0','','0','0.00','0','0','0','0'); -- id=1916
UPDATE sellbilldetail SET  lastbuyprice = 260.00 , meanbuyprice = 260.00, lastbuyprice_withDiscount = 260.00, meanbuyprice_withDiscount = 260.00
        , lastbuyprice_withTax = 260, meanbuyprice_withTax = 260, lastbuyprice_withDiscountAndTax = 260
                where sellbilldetailid = 1916;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1381, '2026-10-14', 1770, 1560, 1560
                    , 1560, 1560, 1560, 1560
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1560, 1560, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1770, sellCostBuyPrice =sellCostBuyPrice+1560
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1560, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1560
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1560, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1560
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1560
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1560
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1560
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1770, 1560, 1560
                    , 1560, 1560, 1560, 1560
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1560, 1560, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1770, sellCostBuyPrice =sellCostBuyPrice+1560
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1560, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1560
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1560, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1560
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1560
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1560
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1560
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '240', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '1381';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1381', '1', '6', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '246', '240', '3', '2026-10-14 16:31:29','0','0'); -- id=5566
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+21 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '530', '153', '1921', '21', '485', '10185', '0', '', '0', '2026-10-14 16:31:29', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-21,','1','1','0','0','485','10185','0','','0','0.00','0','0','0','0'); -- id=1917
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1917;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 10185, 9660, 9660
                    , 9660, 9660, 9660, 9660
                    , 0, 0, 0, 0
                    , 0, 0, 0, 21, 0, 9660, 9660, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+10185, sellCostBuyPrice =sellCostBuyPrice+9660
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+9660, sellCostMeanBuyPrice = sellCostMeanBuyPrice+9660
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+9660, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+9660
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+9660
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+9660
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+9660
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+21
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 10185, 9660, 9660
                    , 9660, 9660, 9660, 9660
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9660, 9660, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+10185, sellCostBuyPrice =sellCostBuyPrice+9660
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+9660, sellCostMeanBuyPrice = sellCostMeanBuyPrice+9660
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+9660, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+9660
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+9660
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+9660
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+9660
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '147', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '21', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '168', '147', '3', '2026-10-14 16:31:29','0','0'); -- id=5567
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+21 where id = 1081;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('370','01920', '530', '153', '1920', '21', '395', '8295', '0', '', '0', '2026-10-14 16:31:29', '1920', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1081-21,','1','1','0','0','395','8295','0','','0','0.00','0','0','0','0'); -- id=1918
UPDATE sellbilldetail SET  lastbuyprice = 370.00 , meanbuyprice = 370.00, lastbuyprice_withDiscount = 370.00, meanbuyprice_withDiscount = 370.00
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 370
                where sellbilldetailid = 1918;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1920, '2026-10-14', 8295, 7770, 7770
                    , 7770, 7770, 7770, 7770
                    , 0, 0, 0, 0
                    , 0, 0, 0, 21, 0, 7770, 7770, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8295, sellCostBuyPrice =sellCostBuyPrice+7770
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7770, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7770
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7770, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7770
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7770
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7770
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7770
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+21
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 8295, 7770, 7770
                    , 7770, 7770, 7770, 7770
                    , 0, 0, 0, 0
                    , 0, 0, 0, 7770, 7770, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8295, sellCostBuyPrice =sellCostBuyPrice+7770
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7770, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7770
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7770, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7770
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7770
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7770
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7770
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '327', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '2937';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1920', '1', '21', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '348', '327', '3', '2026-10-14 16:31:29','0','0'); -- id=5568
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 580;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('520','01717', '530', '131', '1717', '4', '545', '2180', '0', '', '0', '2026-10-14 16:31:29', '1717', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','580-4,','1','1','0','0','545','2180','0','','0','0.00','0','0','0','0'); -- id=1919
UPDATE sellbilldetail SET  lastbuyprice = 520.00 , meanbuyprice = 520.00, lastbuyprice_withDiscount = 520.00, meanbuyprice_withDiscount = 520.00
        , lastbuyprice_withTax = 520, meanbuyprice_withTax = 520, lastbuyprice_withDiscountAndTax = 520
                where sellbilldetailid = 1919;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1717, '2026-10-14', 2180, 2080, 2080
                    , 2080, 2080, 2080, 2080
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 2080, 2080, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2180, sellCostBuyPrice =sellCostBuyPrice+2080
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2080, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2080
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2080, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2080
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2080
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2080
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2080
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2180, 2080, 2080
                    , 2080, 2080, 2080, 2080
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2080, 2080, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2180, sellCostBuyPrice =sellCostBuyPrice+2080
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2080, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2080
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2080, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2080
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2080
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2080
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2080
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '107', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '2729';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1717', '1', '4', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '111', '107', '3', '2026-10-14 16:31:29','0','0'); -- id=5569
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 579;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('600','01716', '530', '131', '1716', '6', '625', '3750', '0', '', '0', '2026-10-14 16:31:29', '1716', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','579-6,','1','1','0','0','625','3750','0','','0','0.00','0','0','0','0'); -- id=1920
UPDATE sellbilldetail SET  lastbuyprice = 600.00 , meanbuyprice = 600.00, lastbuyprice_withDiscount = 600.00, meanbuyprice_withDiscount = 600.00
        , lastbuyprice_withTax = 600, meanbuyprice_withTax = 600, lastbuyprice_withDiscountAndTax = 600
                where sellbilldetailid = 1920;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1716, '2026-10-14', 3750, 3600, 3600
                    , 3600, 3600, 3600, 3600
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 3600, 3600, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3750, sellCostBuyPrice =sellCostBuyPrice+3600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3600
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3750, 3600, 3600
                    , 3600, 3600, 3600, 3600
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3600, 3600, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3750, sellCostBuyPrice =sellCostBuyPrice+3600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3600
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '36', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '2728';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1716', '1', '6', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '42', '36', '3', '2026-10-14 16:31:29','0','0'); -- id=5570
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+27 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '530', '153', '1921', '27', '485', '13095', '0', '', '0', '2026-10-14 16:31:29', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-27,','1','1','0','0','485','13095','0','','0','0.00','0','0','0','0'); -- id=1921
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1921;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 13095, 12420, 12420
                    , 12420, 12420, 12420, 12420
                    , 0, 0, 0, 0
                    , 0, 0, 0, 27, 0, 12420, 12420, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+13095, sellCostBuyPrice =sellCostBuyPrice+12420
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+12420, sellCostMeanBuyPrice = sellCostMeanBuyPrice+12420
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+12420, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+12420
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+12420
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+12420
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+12420
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+27
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 13095, 12420, 12420
                    , 12420, 12420, 12420, 12420
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12420, 12420, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+13095, sellCostBuyPrice =sellCostBuyPrice+12420
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+12420, sellCostMeanBuyPrice = sellCostMeanBuyPrice+12420
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+12420, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+12420
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+12420
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+12420
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+12420
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '120', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '27', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '147', '120', '3', '2026-10-14 16:31:29','0','0'); -- id=5571
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+18 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '530', '153', '1921', '18', '485', '8730', '0', '', '0', '2026-10-14 16:31:29', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-18,','1','1','0','0','485','8730','0','','0','0.00','0','0','0','0'); -- id=1922
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1922;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 8730, 8280, 8280
                    , 8280, 8280, 8280, 8280
                    , 0, 0, 0, 0
                    , 0, 0, 0, 18, 0, 8280, 8280, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8730, sellCostBuyPrice =sellCostBuyPrice+8280
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8280, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8280
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+8280, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+8280
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+8280
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8280
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+8280
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+18
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 8730, 8280, 8280
                    , 8280, 8280, 8280, 8280
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8280, 8280, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8730, sellCostBuyPrice =sellCostBuyPrice+8280
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8280, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8280
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+8280, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+8280
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+8280
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8280
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+8280
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '102', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '18', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '120', '102', '3', '2026-10-14 16:31:29','0','0'); -- id=5572
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+42 where id = 1082;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '530', '153', '1921', '42', '485', '20370', '0', '', '0', '2026-10-14 16:31:29', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-42,','1','1','0','0','485','20370','0','','0','0.00','0','0','0','0'); -- id=1923
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1923;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 20370, 19320, 19320
                    , 19320, 19320, 19320, 19320
                    , 0, 0, 0, 0
                    , 0, 0, 0, 42, 0, 19320, 19320, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+20370, sellCostBuyPrice =sellCostBuyPrice+19320
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+19320, sellCostMeanBuyPrice = sellCostMeanBuyPrice+19320
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+19320, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+19320
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+19320
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+19320
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+19320
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+42
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 20370, 19320, 19320
                    , 19320, 19320, 19320, 19320
                    , 0, 0, 0, 0
                    , 0, 0, 0, 19320, 19320, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+20370, sellCostBuyPrice =sellCostBuyPrice+19320
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+19320, sellCostMeanBuyPrice = sellCostMeanBuyPrice+19320
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+19320, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+19320
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+19320
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+19320
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+19320
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '60', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '42', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '102', '60', '3', '2026-10-14 16:31:29','0','0'); -- id=5573
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 931;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('325','01858', '530', '145', '1858', '6', '360', '2160', '0', '', '0', '2026-10-14 16:31:29', '1858', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','931-6,','1','1','0','0','360','2160','0','','0','0.00','0','0','0','0'); -- id=1924
UPDATE sellbilldetail SET  lastbuyprice = 325.00 , meanbuyprice = 325.00, lastbuyprice_withDiscount = 325.00, meanbuyprice_withDiscount = 325.00
        , lastbuyprice_withTax = 325, meanbuyprice_withTax = 325, lastbuyprice_withDiscountAndTax = 325
                where sellbilldetailid = 1924;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1858, '2026-10-14', 2160, 1950, 1950
                    , 1950, 1950, 1950, 1950
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1950, 1950, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2160, sellCostBuyPrice =sellCostBuyPrice+1950
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1950, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1950
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1950, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1950
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1950
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1950
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1950
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2160, 1950, 1950
                    , 1950, 1950, 1950, 1950
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1950, 1950, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2160, sellCostBuyPrice =sellCostBuyPrice+1950
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1950, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1950
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1950, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1950
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1950
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1950
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1950
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '6', userid = '3', storedetaildate = '2026-10-14 16:31:29' WHERE storedetailid = '2875';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1858', '1', '6', '1', '530', 'اضافة فاتورة مبيعات', 'sellbillController.php', '12', '6', '3', '2026-10-14 16:31:29','0','0'); -- id=5574
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3520055',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3399495','120560', '0', '2', 'اضافة فاتورة مبيعات', '530', '3520055', '2026-10-14 16:31:29', '3',  'sellbillController.php','1','','0'); -- id=669
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '120560', '120560', '2026-10-14', '3', '0', '0', '2026-10-14 16:31:29','اضافة فاتورة مبيعات رقم 530','1','0',null,'0','530','sellbillController.php?do=showDetail&sellbillid=530'); -- id=2407
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2407', '419', '120560', '','0'); -- id=2463
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3520055', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2407', '143', '120560', '','0'); -- id=2409
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5762115', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '112066', '112066', '2026-10-14', '3', '0', '0', '2026-10-14 16:31:29','اضافة فاتورة مبيعات رقم 530 - صرف البضاعة من المخزن','1','0',null,'0','530','sellbillController.php?do=showDetail&sellbillid=530'); -- id=2408
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2408', '402', '112066', '','0'); -- id=2464
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5374152.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2408', '382', '112066', '','0'); -- id=2410
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21805284.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2407,0,2408' where sellbillid=530;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 120560, 112765, 112765
                    , 112765, 112066, 112419.28, 112066
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,112765, 101154.64, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+120560, sellCostBuyPrice =sellCostBuyPrice+112765
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+112765, sellCostMeanBuyPrice = sellCostMeanBuyPrice+112765
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+112066, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+112419.28
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+112066
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+112765
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+101154.64
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 120560, 112765, 112765
                    , 112765, 112066, 112419.28, 112066
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,112765, 101154.64, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+120560, sellCostBuyPrice =sellCostBuyPrice+112765
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+112765, sellCostMeanBuyPrice = sellCostMeanBuyPrice+112765
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+112066, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+112419.28
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+112066
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+112765
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+101154.64
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 120560, 112765, 112765
                    , 112765, 112066, 112419.28, 112066, 112765, 101154.64)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+120560, netSellCostBuyPrice = netSellCostBuyPrice+112765
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+112765
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+112765
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+112066
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+112419.28
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+112066
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+112765
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+101154.64;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf7e2eebc97 and sellbillId = 530 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:01:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:31:29", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:31:29', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9410
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:02:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:32:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:32:30', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9411
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf825a5b4c0', '2026-10-14 16:23:38', '173', '0.00', '199368', '10', '1', '221520.00',  '199368.00', '0', '199368', '1', '2026-10-14 16:32:30', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=149
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01983', '149', '160', '1983', '24', '470', '11280.00', '0', '', '2026-10-14 16:32:30', '1983','','','0','0','0','0','0',null,'470','11280','0','0','0','0','0','0','0','0','1'); -- id=905
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1983, 0, 0
                    , 423, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 423,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1182
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1983', '470', '24', '0', 'buyBillController.php', '905', '', '0', '0'); -- id=692
UPDATE product SET  productBuyPrice = "470" WHERE productId = 1983 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 905 ;
UPDATE product SET productName = 'قصات ميلتون 470 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '470.00', productSellAllPrice = '0.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01983',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '470',lastbuyprice_withDiscount = '423',meanbuyprice = '470',meanbuyprice_withDiscount = '423' , productbuypricereal = '0.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='470',meanbuyprice_withTax='470',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='423',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1983';
UPDATE buybilldetail SET  lastbuyprice = 470 , meanbuyprice = 470, lastbuyprice_withDiscount = 423, meanbuyprice_withDiscount = 423
        , lastbuyprice_withTax = 470, meanbuyprice_withTax = 470, lastbuyprice_withDiscountAndTax = 423
                where buybilldetailid = 905;
UPDATE productunit SET proUnitBuyPrice  = 470 * productnumber WHERE productid = 1983;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3000';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1983', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 16:23:38','0','0'); -- id=5575
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01983', '149', '160', '1983', '24', '470', '11280.00', '0', '', '2026-10-14 16:32:30', '1983','','','0','0','0','0','0',null,'470','11280','0','0','0','0','0','0','0','0','1'); -- id=906
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1983, 0, 0
                    , 423, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 423,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1182
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1983', '470', '24', '0', 'buyBillController.php', '906', '', '0', '0'); -- id=693
UPDATE product SET  productBuyPrice = "470" WHERE productId = 1983 ;
UPDATE buybilldetail SET  quantitybefore = 24 WHERE buybilldetailid = 906 ;
UPDATE product SET productName = 'قصات ميلتون 470 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '470.00', productSellAllPrice = '0.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01983',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '470',lastbuyprice_withDiscount = '423',meanbuyprice = '470',meanbuyprice_withDiscount = '423' , productbuypricereal = '0.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='470',meanbuyprice_withTax='470',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='423',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1983';
UPDATE buybilldetail SET  lastbuyprice = 470 , meanbuyprice = 470, lastbuyprice_withDiscount = 423, meanbuyprice_withDiscount = 423
        , lastbuyprice_withTax = 470, meanbuyprice_withTax = 470, lastbuyprice_withDiscountAndTax = 423
                where buybilldetailid = 906;
UPDATE productunit SET proUnitBuyPrice  = 470 * productnumber WHERE productid = 1983;
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3000';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1983', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '24', '48', '1', '2026-10-14 16:23:38','0','0'); -- id=5576
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01983', '149', '160', '1983', '24', '470', '11280.00', '0', '', '2026-10-14 16:32:30', '1983','','','0','0','0','0','0',null,'470','11280','0','0','0','0','0','0','0','0','1'); -- id=907
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1983, 0, 0
                    , 423, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 423,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1182
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1983', '470', '24', '0', 'buyBillController.php', '907', '', '0', '0'); -- id=694
UPDATE product SET  productBuyPrice = "470" WHERE productId = 1983 ;
UPDATE buybilldetail SET  quantitybefore = 48 WHERE buybilldetailid = 907 ;
UPDATE product SET productName = 'قصات ميلتون 470 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '470.00', productSellAllPrice = '0.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01983',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '470',lastbuyprice_withDiscount = '423',meanbuyprice = '470',meanbuyprice_withDiscount = '423' , productbuypricereal = '0.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='470',meanbuyprice_withTax='470',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='423',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1983';
UPDATE buybilldetail SET  lastbuyprice = 470 , meanbuyprice = 470, lastbuyprice_withDiscount = 423, meanbuyprice_withDiscount = 423
        , lastbuyprice_withTax = 470, meanbuyprice_withTax = 470, lastbuyprice_withDiscountAndTax = 423
                where buybilldetailid = 907;
UPDATE productunit SET proUnitBuyPrice  = 470 * productnumber WHERE productid = 1983;
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3000';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1983', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '48', '72', '1', '2026-10-14 16:23:38','0','0'); -- id=5577
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01983', '149', '160', '1983', '24', '470', '11280.00', '0', '', '2026-10-14 16:32:30', '1983','','','0','0','0','0','0',null,'470','11280','0','0','0','0','0','0','0','0','1'); -- id=908
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1983, 0, 0
                    , 423, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 423,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1182
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1983', '470', '24', '0', 'buyBillController.php', '908', '', '0', '0'); -- id=695
UPDATE product SET  productBuyPrice = "470" WHERE productId = 1983 ;
UPDATE buybilldetail SET  quantitybefore = 72 WHERE buybilldetailid = 908 ;
UPDATE product SET productName = 'قصات ميلتون 470 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '470.00', productSellAllPrice = '0.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01983',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '470',lastbuyprice_withDiscount = '423',meanbuyprice = '470',meanbuyprice_withDiscount = '423' , productbuypricereal = '0.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='470',meanbuyprice_withTax='470',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='423',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1983';
UPDATE buybilldetail SET  lastbuyprice = 470 , meanbuyprice = 470, lastbuyprice_withDiscount = 423, meanbuyprice_withDiscount = 423
        , lastbuyprice_withTax = 470, meanbuyprice_withTax = 470, lastbuyprice_withDiscountAndTax = 423
                where buybilldetailid = 908;
UPDATE productunit SET proUnitBuyPrice  = 470 * productnumber WHERE productid = 1983;
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3000';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1983', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '72', '96', '1', '2026-10-14 16:23:38','0','0'); -- id=5578
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01983', '149', '160', '1983', '24', '470', '11280.00', '0', '', '2026-10-14 16:32:30', '1983','','','0','0','0','0','0',null,'470','11280','0','0','0','0','0','0','0','0','1'); -- id=909
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1983, 0, 0
                    , 423, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 423,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1182
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1983', '470', '24', '0', 'buyBillController.php', '909', '', '0', '0'); -- id=696
UPDATE product SET  productBuyPrice = "470" WHERE productId = 1983 ;
UPDATE buybilldetail SET  quantitybefore = 96 WHERE buybilldetailid = 909 ;
UPDATE product SET productName = 'قصات ميلتون 470 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '470.00', productSellAllPrice = '0.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01983',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '470',lastbuyprice_withDiscount = '423',meanbuyprice = '470',meanbuyprice_withDiscount = '423' , productbuypricereal = '0.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='470',meanbuyprice_withTax='470',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='423',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1983';
UPDATE buybilldetail SET  lastbuyprice = 470 , meanbuyprice = 470, lastbuyprice_withDiscount = 423, meanbuyprice_withDiscount = 423
        , lastbuyprice_withTax = 470, meanbuyprice_withTax = 470, lastbuyprice_withDiscountAndTax = 423
                where buybilldetailid = 909;
UPDATE productunit SET proUnitBuyPrice  = 470 * productnumber WHERE productid = 1983;
UPDATE storedetail SET  productquantity = '120', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3000';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1983', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '96', '120', '1', '2026-10-14 16:23:38','0','0'); -- id=5579
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01983', '149', '160', '1983', '24', '470', '11280.00', '0', '', '2026-10-14 16:32:30', '1983','','','0','0','0','0','0',null,'470','11280','0','0','0','0','0','0','0','0','1'); -- id=910
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1983, 0, 0
                    , 423, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 423,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1182
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1983', '470', '24', '0', 'buyBillController.php', '910', '', '0', '0'); -- id=697
UPDATE product SET  productBuyPrice = "470" WHERE productId = 1983 ;
UPDATE buybilldetail SET  quantitybefore = 120 WHERE buybilldetailid = 910 ;
UPDATE product SET productName = 'قصات ميلتون 470 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '470.00', productSellAllPrice = '0.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01983',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '470',lastbuyprice_withDiscount = '423',meanbuyprice = '470',meanbuyprice_withDiscount = '423' , productbuypricereal = '0.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='0',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='470',meanbuyprice_withTax='470',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='423',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1983';
UPDATE buybilldetail SET  lastbuyprice = 470 , meanbuyprice = 470, lastbuyprice_withDiscount = 423, meanbuyprice_withDiscount = 423
        , lastbuyprice_withTax = 470, meanbuyprice_withTax = 470, lastbuyprice_withDiscountAndTax = 423
                where buybilldetailid = 910;
UPDATE productunit SET proUnitBuyPrice  = 470 * productnumber WHERE productid = 1983;
UPDATE storedetail SET  productquantity = '144', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3000';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1983', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '120', '144', '1', '2026-10-14 16:23:38','0','0'); -- id=5580
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01984', '149', '160', '1984', '24', '500', '12000.00', '0', '', '2026-10-14 16:32:30', '1984','','','0','0','0','0','0',null,'500','12000','0','0','0','0','0','0','0','0','1'); -- id=911
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1984, 0, 0
                    , 450, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 450,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1188
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1984', '500', '24', '0', 'buyBillController.php', '911', '', '0', '0'); -- id=698
UPDATE product SET  productBuyPrice = "500" WHERE productId = 1984 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 911 ;
UPDATE product SET productName = 'موديلات بوكس فت 500 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '500.00', productSellAllPrice = '500.00', productSellUnitPrice = '500.00', productSellHalfPrice = '500.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01984',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '450',meanbuyprice = '500',meanbuyprice_withDiscount = '450' , productbuypricereal = '500.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1984';
UPDATE buybilldetail SET  lastbuyprice = 500 , meanbuyprice = 500, lastbuyprice_withDiscount = 450, meanbuyprice_withDiscount = 450
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 450
                where buybilldetailid = 911;
UPDATE productunit SET proUnitBuyPrice  = 500 * productnumber WHERE productid = 1984;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3001';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1984', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 16:23:38','0','0'); -- id=5581
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01984', '149', '160', '1984', '24', '500', '12000.00', '0', '', '2026-10-14 16:32:30', '1984','','','0','0','0','0','0',null,'500','12000','0','0','0','0','0','0','0','0','1'); -- id=912
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1984, 0, 0
                    , 450, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 450,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1188
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1984', '500', '24', '0', 'buyBillController.php', '912', '', '0', '0'); -- id=699
UPDATE product SET  productBuyPrice = "500" WHERE productId = 1984 ;
UPDATE buybilldetail SET  quantitybefore = 24 WHERE buybilldetailid = 912 ;
UPDATE product SET productName = 'موديلات بوكس فت 500 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '500.00', productSellAllPrice = '500.00', productSellUnitPrice = '500.00', productSellHalfPrice = '500.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01984',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '450',meanbuyprice = '500',meanbuyprice_withDiscount = '450' , productbuypricereal = '500.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1984';
UPDATE buybilldetail SET  lastbuyprice = 500 , meanbuyprice = 500, lastbuyprice_withDiscount = 450, meanbuyprice_withDiscount = 450
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 450
                where buybilldetailid = 912;
UPDATE productunit SET proUnitBuyPrice  = 500 * productnumber WHERE productid = 1984;
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3001';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1984', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '24', '48', '1', '2026-10-14 16:23:38','0','0'); -- id=5582
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01984', '149', '160', '1984', '24', '500', '12000.00', '0', '', '2026-10-14 16:32:30', '1984','','','0','0','0','0','0',null,'500','12000','0','0','0','0','0','0','0','0','1'); -- id=913
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1984, 0, 0
                    , 450, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 450,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1188
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1984', '500', '24', '0', 'buyBillController.php', '913', '', '0', '0'); -- id=700
UPDATE product SET  productBuyPrice = "500" WHERE productId = 1984 ;
UPDATE buybilldetail SET  quantitybefore = 48 WHERE buybilldetailid = 913 ;
UPDATE product SET productName = 'موديلات بوكس فت 500 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '500.00', productSellAllPrice = '500.00', productSellUnitPrice = '500.00', productSellHalfPrice = '500.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01984',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '450',meanbuyprice = '500',meanbuyprice_withDiscount = '450' , productbuypricereal = '500.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1984';
UPDATE buybilldetail SET  lastbuyprice = 500 , meanbuyprice = 500, lastbuyprice_withDiscount = 450, meanbuyprice_withDiscount = 450
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 450
                where buybilldetailid = 913;
UPDATE productunit SET proUnitBuyPrice  = 500 * productnumber WHERE productid = 1984;
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3001';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1984', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '48', '72', '1', '2026-10-14 16:23:38','0','0'); -- id=5583
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01984', '149', '160', '1984', '24', '500', '12000.00', '0', '', '2026-10-14 16:32:30', '1984','','','0','0','0','0','0',null,'500','12000','0','0','0','0','0','0','0','0','1'); -- id=914
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1984, 0, 0
                    , 450, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 450,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1188
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1984', '500', '24', '0', 'buyBillController.php', '914', '', '0', '0'); -- id=701
UPDATE product SET  productBuyPrice = "500" WHERE productId = 1984 ;
UPDATE buybilldetail SET  quantitybefore = 72 WHERE buybilldetailid = 914 ;
UPDATE product SET productName = 'موديلات بوكس فت 500 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '500.00', productSellAllPrice = '500.00', productSellUnitPrice = '500.00', productSellHalfPrice = '500.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01984',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '450',meanbuyprice = '500',meanbuyprice_withDiscount = '450' , productbuypricereal = '500.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1984';
UPDATE buybilldetail SET  lastbuyprice = 500 , meanbuyprice = 500, lastbuyprice_withDiscount = 450, meanbuyprice_withDiscount = 450
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 450
                where buybilldetailid = 914;
UPDATE productunit SET proUnitBuyPrice  = 500 * productnumber WHERE productid = 1984;
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3001';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1984', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '72', '96', '1', '2026-10-14 16:23:38','0','0'); -- id=5584
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01984', '149', '160', '1984', '24', '500', '12000.00', '0', '', '2026-10-14 16:32:30', '1984','','','0','0','0','0','0',null,'500','12000','0','0','0','0','0','0','0','0','1'); -- id=915
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1984, 0, 0
                    , 450, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 450,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1188
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1984', '500', '24', '0', 'buyBillController.php', '915', '', '0', '0'); -- id=702
UPDATE product SET  productBuyPrice = "500" WHERE productId = 1984 ;
UPDATE buybilldetail SET  quantitybefore = 96 WHERE buybilldetailid = 915 ;
UPDATE product SET productName = 'موديلات بوكس فت 500 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '500.00', productSellAllPrice = '500.00', productSellUnitPrice = '500.00', productSellHalfPrice = '500.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01984',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '450',meanbuyprice = '500',meanbuyprice_withDiscount = '450' , productbuypricereal = '500.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1984';
UPDATE buybilldetail SET  lastbuyprice = 500 , meanbuyprice = 500, lastbuyprice_withDiscount = 450, meanbuyprice_withDiscount = 450
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 450
                where buybilldetailid = 915;
UPDATE productunit SET proUnitBuyPrice  = 500 * productnumber WHERE productid = 1984;
UPDATE storedetail SET  productquantity = '120', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3001';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1984', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '96', '120', '1', '2026-10-14 16:23:38','0','0'); -- id=5585
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01984', '149', '160', '1984', '24', '500', '12000.00', '0', '', '2026-10-14 16:32:30', '1984','','','0','0','0','0','0',null,'500','12000','0','0','0','0','0','0','0','0','1'); -- id=916
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1984, 0, 0
                    , 450, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 450,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1188
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1984', '500', '24', '0', 'buyBillController.php', '916', '', '0', '0'); -- id=703
UPDATE product SET  productBuyPrice = "500" WHERE productId = 1984 ;
UPDATE buybilldetail SET  quantitybefore = 120 WHERE buybilldetailid = 916 ;
UPDATE product SET productName = 'موديلات بوكس فت 500 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '500.00', productSellAllPrice = '500.00', productSellUnitPrice = '500.00', productSellHalfPrice = '500.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01984',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '450',meanbuyprice = '500',meanbuyprice_withDiscount = '450' , productbuypricereal = '500.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1984';
UPDATE buybilldetail SET  lastbuyprice = 500 , meanbuyprice = 500, lastbuyprice_withDiscount = 450, meanbuyprice_withDiscount = 450
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 450
                where buybilldetailid = 916;
UPDATE productunit SET proUnitBuyPrice  = 500 * productnumber WHERE productid = 1984;
UPDATE storedetail SET  productquantity = '144', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3001';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1984', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '120', '144', '1', '2026-10-14 16:23:38','0','0'); -- id=5586
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01985', '149', '160', '1985', '24', '540', '12960.00', '0', '', '2026-10-14 16:32:30', '1985','','','0','0','0','0','0',null,'540','12960','0','0','0','0','0','0','0','0','1'); -- id=917
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1985, 0, 0
                    , 486, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 486,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1194
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1985', '540', '24', '0', 'buyBillController.php', '917', '', '0', '0'); -- id=704
UPDATE product SET  productBuyPrice = "540" WHERE productId = 1985 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 917 ;
UPDATE product SET productName = 'قصات قطيفه 540 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '540.00', productSellAllPrice = '540.00', productSellUnitPrice = '540.00', productSellHalfPrice = '540.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01985',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '486',meanbuyprice = '540',meanbuyprice_withDiscount = '486' , productbuypricereal = '540.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='540',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='486',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1985';
UPDATE buybilldetail SET  lastbuyprice = 540 , meanbuyprice = 540, lastbuyprice_withDiscount = 486, meanbuyprice_withDiscount = 486
        , lastbuyprice_withTax = 540, meanbuyprice_withTax = 540, lastbuyprice_withDiscountAndTax = 486
                where buybilldetailid = 917;
UPDATE productunit SET proUnitBuyPrice  = 540 * productnumber WHERE productid = 1985;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3002';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1985', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 16:23:38','0','0'); -- id=5587
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01986', '149', '160', '1986', '24', '540', '12960.00', '0', '', '2026-10-14 16:32:30', '1986','','','0','0','0','0','0',null,'540','12960','0','0','0','0','0','0','0','0','1'); -- id=918
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1986, 0, 0
                    , 486, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 486,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1195
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1986', '540', '24', '0', 'buyBillController.php', '918', '', '0', '0'); -- id=705
UPDATE product SET  productBuyPrice = "540" WHERE productId = 1986 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 918 ;
UPDATE product SET productName = 'بوكس فت استرس ام ام', productDescription = '', productCatId = '160', productBuyPrice = '540.00', productSellAllPrice = '540.00', productSellUnitPrice = '540.00', productSellHalfPrice = '540.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01986',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '486',meanbuyprice = '540',meanbuyprice_withDiscount = '486' , productbuypricereal = '540.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='540',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='486',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1986';
UPDATE buybilldetail SET  lastbuyprice = 540 , meanbuyprice = 540, lastbuyprice_withDiscount = 486, meanbuyprice_withDiscount = 486
        , lastbuyprice_withTax = 540, meanbuyprice_withTax = 540, lastbuyprice_withDiscountAndTax = 486
                where buybilldetailid = 918;
UPDATE productunit SET proUnitBuyPrice  = 540 * productnumber WHERE productid = 1986;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3003';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1986', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 16:23:38','0','0'); -- id=5588
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01987', '149', '160', '1987', '24', '420', '10080.00', '0', '', '2026-10-14 16:32:30', '1987','','','0','0','0','0','0',null,'420','10080','0','0','0','0','0','0','0','0','1'); -- id=919
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1987, 0, 0
                    , 378, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 378,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1196
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1987', '420', '24', '0', 'buyBillController.php', '919', '', '0', '0'); -- id=706
UPDATE product SET  productBuyPrice = "420" WHERE productId = 1987 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 919 ;
UPDATE product SET productName = 'لياقة ام ام', productDescription = '', productCatId = '160', productBuyPrice = '420.00', productSellAllPrice = '420.00', productSellUnitPrice = '420.00', productSellHalfPrice = '420.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01987',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '420',lastbuyprice_withDiscount = '378',meanbuyprice = '420',meanbuyprice_withDiscount = '378' , productbuypricereal = '420.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='420',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='420',meanbuyprice_withTax='420',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='378',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1987';
UPDATE buybilldetail SET  lastbuyprice = 420 , meanbuyprice = 420, lastbuyprice_withDiscount = 378, meanbuyprice_withDiscount = 378
        , lastbuyprice_withTax = 420, meanbuyprice_withTax = 420, lastbuyprice_withDiscountAndTax = 378
                where buybilldetailid = 919;
UPDATE productunit SET proUnitBuyPrice  = 420 * productnumber WHERE productid = 1987;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3004';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1987', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 16:23:38','0','0'); -- id=5589
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01988', '149', '160', '1988', '24', '570', '13680.00', '0', '', '2026-10-14 16:32:30', '1988','','','0','0','0','0','0',null,'570','13680','0','0','0','0','0','0','0','0','1'); -- id=920
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1988, 0, 0
                    , 513, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 513,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1197
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1988', '570', '24', '0', 'buyBillController.php', '920', '', '0', '0'); -- id=707
UPDATE product SET  productBuyPrice = "570" WHERE productId = 1988 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 920 ;
UPDATE product SET productName = 'بوكس فت سوسته ام ام', productDescription = '', productCatId = '160', productBuyPrice = '570.00', productSellAllPrice = '570.00', productSellUnitPrice = '570.00', productSellHalfPrice = '570.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01988',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '570',lastbuyprice_withDiscount = '513',meanbuyprice = '570',meanbuyprice_withDiscount = '513' , productbuypricereal = '570.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='570',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='570',meanbuyprice_withTax='570',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='513',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1988';
UPDATE buybilldetail SET  lastbuyprice = 570 , meanbuyprice = 570, lastbuyprice_withDiscount = 513, meanbuyprice_withDiscount = 513
        , lastbuyprice_withTax = 570, meanbuyprice_withTax = 570, lastbuyprice_withDiscountAndTax = 513
                where buybilldetailid = 920;
UPDATE productunit SET proUnitBuyPrice  = 570 * productnumber WHERE productid = 1988;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3005';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1988', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 16:23:38','0','0'); -- id=5590
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01989', '149', '160', '1989', '24', '260', '6240.00', '0', '', '2026-10-14 16:32:30', '1989','','','0','0','0','0','0',null,'260','6240','0','0','0','0','0','0','0','0','1'); -- id=921
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1989, 0, 0
                    , 234, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 234,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1198
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1989', '260', '24', '0', 'buyBillController.php', '921', '', '0', '0'); -- id=708
UPDATE product SET  productBuyPrice = "260" WHERE productId = 1989 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 921 ;
UPDATE product SET productName = 'بدي ام ام', productDescription = '', productCatId = '160', productBuyPrice = '260.00', productSellAllPrice = '260.00', productSellUnitPrice = '260.00', productSellHalfPrice = '260.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01989',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '260',lastbuyprice_withDiscount = '234',meanbuyprice = '260',meanbuyprice_withDiscount = '234' , productbuypricereal = '260.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='260',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='260',meanbuyprice_withTax='260',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='234',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1989';
UPDATE buybilldetail SET  lastbuyprice = 260 , meanbuyprice = 260, lastbuyprice_withDiscount = 234, meanbuyprice_withDiscount = 234
        , lastbuyprice_withTax = 260, meanbuyprice_withTax = 260, lastbuyprice_withDiscountAndTax = 234
                where buybilldetailid = 921;
UPDATE productunit SET proUnitBuyPrice  = 260 * productnumber WHERE productid = 1989;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3006';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1989', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 16:23:38','0','0'); -- id=5591
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01985', '149', '160', '1985', '24', '540', '12960.00', '0', '', '2026-10-14 16:32:30', '1985','','','0','0','0','0','0',null,'540','12960','0','0','0','0','0','0','0','0','1'); -- id=922
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1985, 0, 0
                    , 486, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 486,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1194
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1985', '540', '24', '0', 'buyBillController.php', '922', '', '0', '0'); -- id=709
UPDATE product SET  productBuyPrice = "540" WHERE productId = 1985 ;
UPDATE buybilldetail SET  quantitybefore = 24 WHERE buybilldetailid = 922 ;
UPDATE product SET productName = 'قصات قطيفه 540 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '540.00', productSellAllPrice = '540.00', productSellUnitPrice = '540.00', productSellHalfPrice = '540.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01985',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '486',meanbuyprice = '540',meanbuyprice_withDiscount = '486' , productbuypricereal = '540.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='540',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='486',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1985';
UPDATE buybilldetail SET  lastbuyprice = 540 , meanbuyprice = 540, lastbuyprice_withDiscount = 486, meanbuyprice_withDiscount = 486
        , lastbuyprice_withTax = 540, meanbuyprice_withTax = 540, lastbuyprice_withDiscountAndTax = 486
                where buybilldetailid = 922;
UPDATE productunit SET proUnitBuyPrice  = 540 * productnumber WHERE productid = 1985;
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3002';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1985', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '24', '48', '1', '2026-10-14 16:23:38','0','0'); -- id=5592
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01985', '149', '160', '1985', '24', '540', '12960.00', '0', '', '2026-10-14 16:32:30', '1985','','','0','0','0','0','0',null,'540','12960','0','0','0','0','0','0','0','0','1'); -- id=923
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 16:23:38', 1, 1985, 0, 0
                    , 486, 24, 0, 0, 1, '2026-10-14 16:32:30')
                ON DUPLICATE KEY UPDATE buyprice = 486,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 16:32:30' ; -- id=1194
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1985', '540', '24', '0', 'buyBillController.php', '923', '', '0', '0'); -- id=710
UPDATE product SET  productBuyPrice = "540" WHERE productId = 1985 ;
UPDATE buybilldetail SET  quantitybefore = 48 WHERE buybilldetailid = 923 ;
UPDATE product SET productName = 'قصات قطيفه 540 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '540.00', productSellAllPrice = '540.00', productSellUnitPrice = '540.00', productSellHalfPrice = '540.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01985',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '486',meanbuyprice = '540',meanbuyprice_withDiscount = '486' , productbuypricereal = '540.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='540',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='486',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1985';
UPDATE buybilldetail SET  lastbuyprice = 540 , meanbuyprice = 540, lastbuyprice_withDiscount = 486, meanbuyprice_withDiscount = 486
        , lastbuyprice_withTax = 540, meanbuyprice_withTax = 540, lastbuyprice_withDiscountAndTax = 486
                where buybilldetailid = 923;
UPDATE productunit SET proUnitBuyPrice  = 540 * productnumber WHERE productid = 1985;
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3002';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1985', '1', '24', '0', '149', 'اضافة فاتورة مشتريات', 'buyBillController.php', '48', '72', '1', '2026-10-14 16:23:38','0','0'); -- id=5593
UPDATE supplier SET  suppliercurrentDebt = '199368',suppliercurrentDebtInCurrency= '199368' , userid = '1', supplierdate = '2026-10-14 16:32:30'   WHERE supplierid = '173';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('173', '0.00', '199368', '0', 'اضافة فاتورة مشتريات', '149', '199368', '2026-10-14 16:23:38', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','199368','1','0','199368','199368','0',''); -- id=480
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '199368', '199368', '2026-10-14', '1', '0', '0', '2026-10-14 16:32:30','اضافة فاتورة مشتريات رقم 149','1','0',null,'0','149','buyBillController.php?do=details&id=149'); -- id=2409
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2409', '382', '199368', '','0'); -- id=2465
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22004652.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2409', '656', '199368', '','0'); -- id=2411
UPDATE accountstree SET name = 'ام ام الجابري', customName = 'ام ام الجابري', customNameEn = 'ام ام الجابري', nameEn = 'ام ام الجابري', parent = '81', accountNature = '1', theValue = '199368', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-14 16:13:40' WHERE id = '656';
update buybill set dailyentryid='2409,0' where buybillid=149;
COMMIT;
UPDATE product SET overAllAveragePrice = 423 WHERE productId = 1983;UPDATE product SET overAllAveragePrice = 450 WHERE productId = 1984;UPDATE product SET overAllAveragePrice = 486 WHERE productId = 1985;UPDATE product SET overAllAveragePrice = 486 WHERE productId = 1986;UPDATE product SET overAllAveragePrice = 378 WHERE productId = 1987;UPDATE product SET overAllAveragePrice = 513 WHERE productId = 1988;UPDATE product SET overAllAveragePrice = 234 WHERE productId = 1989;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:02:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:32:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:32:30', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=149'); -- id=9412
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:02:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:32:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:32:41', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9413
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:02:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:32:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:32:47', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9414
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:03:08";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:33:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:33:08', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9415
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:03:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:33:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:33:11', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=149'); -- id=9416
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:03:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:33:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:33:16', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=149&type=2'); -- id=9417
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:03:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:33:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('billsettingsController.php', '2026-10-14 16:33:37', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/billsettingsController.php?do=show'); -- id=9418
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:03:46";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:33:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('billsettingsController.php', '2026-10-14 16:33:46', '1', 'edit', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/billsettingsController.php?do=edit&id=1'); -- id=9419
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:03:53";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:33:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('billsettingsController.php', '2026-10-14 16:33:53', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/billsettingsController.php?do=show'); -- id=9420
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:04:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:34:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 16:34:00', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9421
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:04:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:34:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 16:34:04', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9422
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:04:27";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:34:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:34:27', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=149&type=2'); -- id=9423
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:05:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:35:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('returnBuyBillController.php', '2026-10-14 16:35:02', '1', 'details', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/returnBuyBillController.php?do=details&id=19'); -- id=9424
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:05:17";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:35:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:35:17', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=149&type=2'); -- id=9425
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:07:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:37:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:37:05', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9426
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:10:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:40:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('returnBuyBillController.php', '2026-10-14 16:40:29', '1', 'details', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/returnBuyBillController.php?do=details&id=19'); -- id=9427
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:12:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:42:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:42:05', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9428
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:12:06";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:42:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:42:06', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=149'); -- id=9429
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:12:06";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:42:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:42:06', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9430
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:15:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:45:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('returnBuyBillController.php', '2026-10-14 16:45:29', '1', 'details', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/returnBuyBillController.php?do=details&id=19'); -- id=9431
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:18:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:48:44", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 16:48:44', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9432
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 13:18:44";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 16:48:44', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9433
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:19:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:49:41", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:49:41', '6', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9434

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf8125d6ed7
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 16:49:41', '06acf8125d6ed7', '1', '0.00', '0', '0', '1', '2250.00', '2250', '2250', '0', '1', '2026-10-14 16:49:41', '', '6', '0', 'نقدي', '4', '0', '3', '0', 'نقدي', '3' ,'0','','','','','-1','0','0','0','0','0','2250','0','','0','0','2250','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=531
UPDATE client SET  clientdebt = '0', userid = '6' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','531', '0', '2026-10-14 16:49:41', '6', 'sellbillController.php', 'اضافة فاتورة مبيعات', '2250', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 16:49:41','0','0','',''); -- id=678
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 288;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('720','01510', '531', '109', '1510', '3', '750', '2250', '0', '', '0', '2026-10-14 16:49:41', '1510', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','288-3,','1','1','0','0','750','2250','0','','0','0.00','0','0','0','0'); -- id=1925
UPDATE sellbilldetail SET  lastbuyprice = 720.00 , meanbuyprice = 720.00, lastbuyprice_withDiscount = 720.00, meanbuyprice_withDiscount = 720.00
        , lastbuyprice_withTax = 720, meanbuyprice_withTax = 720, lastbuyprice_withDiscountAndTax = 720
                where sellbilldetailid = 1925;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1510, '2026-10-14', 2250, 2160, 2160
                    , 2160, 2160, 2160, 2160
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 2160, 2160, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2250, sellCostBuyPrice =sellCostBuyPrice+2160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2160
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2160
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2160
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2160
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2250, 2160, 2160
                    , 2160, 2160, 2160, 2160
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2160, 2160, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2250, sellCostBuyPrice =sellCostBuyPrice+2160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2160
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2160
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2160
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2160
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '12', userid = '6', storedetaildate = '2026-10-14 16:49:41' WHERE storedetailid = '1535';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1510', '1', '3', '1', '531', 'اضافة فاتورة مبيعات', 'sellbillController.php', '15', '12', '6', '2026-10-14 16:49:41','0','0'); -- id=5594
CALL saveInUse(4,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '331790',  userid = '6' WHERE saveid = '4';
UPDATE save SET  inUse = 0 where saveid = 4;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('329540','2250', '0', '4', 'اضافة فاتورة مبيعات', '531', '331790', '2026-10-14 16:49:41', '6',  'sellbillController.php','1','','0'); -- id=670
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '2250', '2250', '2026-10-14', '6', '0', '0', '2026-10-14 16:49:41','اضافة فاتورة مبيعات رقم 531','1','0',null,'0','531','sellbillController.php?do=showDetail&sellbillid=531'); -- id=2410
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2410', '568', '2250', '','0'); -- id=2466
UPDATE accountstree SET name = 'خزنة شروال', customName = 'خزنة شروال', customNameEn = 'خزنة شروال', nameEn = 'خزنة شروال', parent = '40', accountNature = '0', theValue = '331790', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-06 13:37:54' WHERE id = '568';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2410', '143', '2250', '','0'); -- id=2412
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5764365', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '2160', '2160', '2026-10-14', '6', '0', '0', '2026-10-14 16:49:41','اضافة فاتورة مبيعات رقم 531 - صرف البضاعة من المخزن','1','0',null,'0','531','sellbillController.php?do=showDetail&sellbillid=531'); -- id=2411
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2411', '402', '2160', '','0'); -- id=2467
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5376312.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2411', '382', '2160', '','0'); -- id=2413
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22002492.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2410,0,2411' where sellbillid=531;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 2250, 2160, 2160
                    , 2160, 2160, 2160, 2160
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,2160, 2160, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2250, sellCostBuyPrice =sellCostBuyPrice+2160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2160
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2160
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2160
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2160
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2250, 2160, 2160
                    , 2160, 2160, 2160, 2160
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,2160, 2160, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2250, sellCostBuyPrice =sellCostBuyPrice+2160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2160
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2160
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2160
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2160
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 2250, 2160, 2160
                    , 2160, 2160, 2160, 2160, 2160, 2160)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+2250, netSellCostBuyPrice = netSellCostBuyPrice+2160
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+2160
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+2160
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+2160
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+2160
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+2160
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+2160
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+2160;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf8125d6ed7 and sellbillId = 531 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:19:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:49:41", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:49:41', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9435
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:21:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:51:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 16:51:23', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9436
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:21:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:51:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:51:26', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9437
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:21:27";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:51:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:51:27', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9438
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:21:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:51:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:51:34', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9439
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:21:48";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:51:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:51:48', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9440
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:21:51";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:51:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:51:51', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9441
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:21:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:51:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:51:54', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9442
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:22:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:52:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 16:52:00', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9443
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:22:06";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:52:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('billsettingsController.php', '2026-10-14 16:52:06', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/billsettingsController.php?do=show'); -- id=9444
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:22:07";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:52:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:52:07', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9445
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:22:21";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:52:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:52:21', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=show'); -- id=9446
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:22:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:52:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:52:30', '1', 'editbill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editbill&id=149'); -- id=9447
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:22:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:52:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:52:57', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=show'); -- id=9448
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:23:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:53:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:53:02', '1', 'details', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=details&id=149'); -- id=9449
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:23:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:53:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:53:05', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=149&type=2'); -- id=9450
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:23:36";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:53:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:53:36', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=149&type=2'); -- id=9451
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:23:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:53:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 16:53:41', '1', 'details', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=details&id=149'); -- id=9452
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:23:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:53:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 16:53:50', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9453
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:23:53";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:53:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:53:53', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9454
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:24:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:54:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:54:00', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9455
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:24:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:54:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 16:54:04', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9456
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 13:24:04";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 16:54:04', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9457
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:24:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:54:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:54:09', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9458
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:24:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:54:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:54:16', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9459
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:25:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:55:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:55:54', '1', 'edit', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=edit&id=1244'); -- id=9460
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:26:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:56:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('inventoryController.php', '2026-10-14 16:56:23', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/inventoryController.php'); -- id=9461
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:26:58";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:56:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('inventoryController.php', '2026-10-14 16:56:58', '1', 'autosave', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/inventoryController.php?do=autosave'); -- id=9462
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1244';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1244', '1', '50', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية بالزيادة', 'inventoryController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=5595
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '18250', '18250', '2026-10-14', '1', '0', '0', '2026-10-14 16:56:58','اعادة جرد للمنتج : (سوفت سيفن /ار/سيفن ار) فى مخزن : (المخزن الرئيسي) بالكمية : 50','1','0',null,'0','5595','inventoryController.php?do=details&id=5595'); -- id=2412
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2412', '382', '18250', '','0'); -- id=2468
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22020742.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2412', '188', '18250', '','0'); -- id=2414
UPDATE accountstree SET name = 'عجز وزيادة المخزون', customName = 'عجز وزيادة المخزون', customNameEn = '', nameEn = '', parent = '159', accountNature = '0', theValue = '-3248750', theOrder = '0', layingOrder = '5302', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '-1', del = '0', sysdate = '2023-07-11 01:08:03' WHERE id = '188';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:27:07";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:57:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('inventoryController.php', '2026-10-14 16:57:07', '1', 'autosave', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/inventoryController.php?do=autosave'); -- id=9463
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1244';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1244', '1', '50', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية لم يتغير', 'inventoryController.php', '50', '50', '1', '2026-10-14','0','0'); -- id=5596
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:27:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:57:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('inventoryController.php', '2026-10-14 16:57:09', '1', 'autosave', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/inventoryController.php?do=autosave'); -- id=9464
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1244';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1244', '1', '50', '0', '-1', 'تم إعادة جرد المنتج بالقيمة الحالية لم يتغير', 'inventoryController.php', '50', '50', '1', '2026-10-14','0','0'); -- id=5597
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:27:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:57:23", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 16:57:23', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9465
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 13:27:23";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 16:57:23', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9466
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:27:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:57:28", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:57:28', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9467

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf8431de394
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 16:57:28', '06acf8431de394', '1', '0.00', '0', '0', '1', '36755.00', '36755', '36755', '0', '1', '2026-10-14 16:57:28', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '92' ,'0','','','','','-1','0','0','0','0','0','36755','0','','0','0','36755','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=532
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','532', '0', '2026-10-14 16:57:28', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '36755', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 16:57:28','0','0','',''); -- id=679
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+18 where id = 1082;
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 1121;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '532', '153', '1921', '27', '485', '13095', '0', '', '0', '2026-10-14 16:57:28', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1082-18,1121-9,','1','1','0','0','485','13095','0','','0','0.00','0','0','0','0'); -- id=1926
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1926;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 13095, 12420, 12420
                    , 12420, 12420, 12420, 12420
                    , 0, 0, 0, 0
                    , 0, 0, 0, 27, 0, 12420, 12420, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+13095, sellCostBuyPrice =sellCostBuyPrice+12420
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+12420, sellCostMeanBuyPrice = sellCostMeanBuyPrice+12420
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+12420, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+12420
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+12420
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+12420
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+12420
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+27
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 13095, 12420, 12420
                    , 12420, 12420, 12420, 12420
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12420, 12420, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+13095, sellCostBuyPrice =sellCostBuyPrice+12420
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+12420, sellCostMeanBuyPrice = sellCostMeanBuyPrice+12420
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+12420, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+12420
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+12420
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+12420
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+12420
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '33', userid = '3', storedetaildate = '2026-10-14 16:57:28' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '27', '1', '532', 'اضافة فاتورة مبيعات', 'sellbillController.php', '60', '33', '3', '2026-10-14 16:57:28','0','0'); -- id=5598
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 234;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01455', '532', '94', '1455', '12', '300', '3600', '0', '', '0', '2026-10-14 16:57:28', '1455', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','234-12,','1','1','0','0','300','3600','0','','0','0.00','0','0','0','0'); -- id=1927
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1927;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1455, '2026-10-14', 3600, 3240, 3240
                    , 3240, 3240, 3240, 3240
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 3240, 3240, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3600, sellCostBuyPrice =sellCostBuyPrice+3240
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3240, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3240
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3240, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3240
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3240
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3240
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3240
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3600, 3240, 3240
                    , 3240, 3240, 3240, 3240
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3240, 3240, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3600, sellCostBuyPrice =sellCostBuyPrice+3240
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3240, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3240
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3240, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3240
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3240
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3240
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3240
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 16:57:28' WHERE storedetailid = '1480';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1455', '1', '12', '1', '532', 'اضافة فاتورة مبيعات', 'sellbillController.php', '12', '0', '3', '2026-10-14 16:57:28','0','0'); -- id=5599
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 994;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('368','01900', '532', '149', '1900', '12', '400', '4800', '0', '', '0', '2026-10-14 16:57:28', '1900', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','994-12,','1','1','0','0','400','4800','0','','0','0.00','0','0','0','0'); -- id=1928
UPDATE sellbilldetail SET  lastbuyprice = 400.00 , meanbuyprice = 400.00, lastbuyprice_withDiscount = 368.00, meanbuyprice_withDiscount = 384.00
        , lastbuyprice_withTax = 400, meanbuyprice_withTax = 200, lastbuyprice_withDiscountAndTax = 368
                where sellbilldetailid = 1928;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1900, '2026-10-14', 4800, 4800, 4800
                    , 4800, 4416, 4608, 4416
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 4800, 2400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4800, sellCostBuyPrice =sellCostBuyPrice+4800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4416, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4608
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4416
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4800, 4800, 4800
                    , 4800, 4416, 4608, 4416
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4800, 2400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4800, sellCostBuyPrice =sellCostBuyPrice+4800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4416, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4608
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4416
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '3', userid = '3', storedetaildate = '2026-10-14 16:57:28' WHERE storedetailid = '2917';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1900', '1', '12', '1', '532', 'اضافة فاتورة مبيعات', 'sellbillController.php', '15', '3', '3', '2026-10-14 16:57:28','0','0'); -- id=5600
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 932;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('435','i0001859', '532', '145', '1859', '9', '470', '4230', '0', '', '0', '2026-10-14 16:57:28', '1859', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','932-9,','1','1','0','0','470','4230','0','','0','0.00','0','0','0','0'); -- id=1929
UPDATE sellbilldetail SET  lastbuyprice = 435.00 , meanbuyprice = 435.00, lastbuyprice_withDiscount = 435.00, meanbuyprice_withDiscount = 435.00
        , lastbuyprice_withTax = 435, meanbuyprice_withTax = 435, lastbuyprice_withDiscountAndTax = 435
                where sellbilldetailid = 1929;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1859, '2026-10-14', 4230, 3915, 3915
                    , 3915, 3915, 3915, 3915
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3915, 3915, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4230, sellCostBuyPrice =sellCostBuyPrice+3915
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3915, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3915
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3915, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3915
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3915
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3915
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3915
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4230, 3915, 3915
                    , 3915, 3915, 3915, 3915
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3915, 3915, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4230, sellCostBuyPrice =sellCostBuyPrice+3915
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3915, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3915
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3915, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3915
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3915
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3915
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3915
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '9', userid = '3', storedetaildate = '2026-10-14 16:57:28' WHERE storedetailid = '2876';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1859', '1', '9', '1', '532', 'اضافة فاتورة مبيعات', 'sellbillController.php', '18', '9', '3', '2026-10-14 16:57:28','0','0'); -- id=5601
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 930;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('415','01857', '532', '145', '1857', '6', '450', '2700', '0', '', '0', '2026-10-14 16:57:28', '1857', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','930-6,','1','1','0','0','450','2700','0','','0','0.00','0','0','0','0'); -- id=1930
UPDATE sellbilldetail SET  lastbuyprice = 415.00 , meanbuyprice = 415.00, lastbuyprice_withDiscount = 415.00, meanbuyprice_withDiscount = 415.00
        , lastbuyprice_withTax = 415, meanbuyprice_withTax = 415, lastbuyprice_withDiscountAndTax = 415
                where sellbilldetailid = 1930;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1857, '2026-10-14', 2700, 2490, 2490
                    , 2490, 2490, 2490, 2490
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2490, 2490, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2490
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2490, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2490
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2490, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2490
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2490
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2490
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2490
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2490, 2490
                    , 2490, 2490, 2490, 2490
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2490, 2490, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2490
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2490, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2490
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2490, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2490
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2490
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2490
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2490
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '6', userid = '3', storedetaildate = '2026-10-14 16:57:28' WHERE storedetailid = '2874';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1857', '1', '6', '1', '532', 'اضافة فاتورة مبيعات', 'sellbillController.php', '12', '6', '3', '2026-10-14 16:57:28','0','0'); -- id=5602
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 931;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('325','01858', '532', '145', '1858', '6', '360', '2160', '0', '', '0', '2026-10-14 16:57:28', '1858', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','931-6,','1','1','0','0','360','2160','0','','0','0.00','0','0','0','0'); -- id=1931
UPDATE sellbilldetail SET  lastbuyprice = 325.00 , meanbuyprice = 325.00, lastbuyprice_withDiscount = 325.00, meanbuyprice_withDiscount = 325.00
        , lastbuyprice_withTax = 325, meanbuyprice_withTax = 325, lastbuyprice_withDiscountAndTax = 325
                where sellbilldetailid = 1931;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1858, '2026-10-14', 2160, 1950, 1950
                    , 1950, 1950, 1950, 1950
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1950, 1950, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2160, sellCostBuyPrice =sellCostBuyPrice+1950
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1950, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1950
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1950, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1950
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1950
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1950
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1950
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2160, 1950, 1950
                    , 1950, 1950, 1950, 1950
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1950, 1950, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2160, sellCostBuyPrice =sellCostBuyPrice+1950
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1950, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1950
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1950, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1950
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1950
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1950
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1950
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 16:57:28' WHERE storedetailid = '2875';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1858', '1', '6', '1', '532', 'اضافة فاتورة مبيعات', 'sellbillController.php', '6', '0', '3', '2026-10-14 16:57:28','0','0'); -- id=5603
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 73;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('260','01381', '532', '94', '1381', '6', '295', '1770', '0', '', '0', '2026-10-14 16:57:28', '1381', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','73-6,','1','1','0','0','295','1770','0','','0','0.00','0','0','0','0'); -- id=1932
UPDATE sellbilldetail SET  lastbuyprice = 260.00 , meanbuyprice = 260.00, lastbuyprice_withDiscount = 260.00, meanbuyprice_withDiscount = 260.00
        , lastbuyprice_withTax = 260, meanbuyprice_withTax = 260, lastbuyprice_withDiscountAndTax = 260
                where sellbilldetailid = 1932;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1381, '2026-10-14', 1770, 1560, 1560
                    , 1560, 1560, 1560, 1560
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1560, 1560, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1770, sellCostBuyPrice =sellCostBuyPrice+1560
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1560, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1560
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1560, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1560
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1560
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1560
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1560
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1770, 1560, 1560
                    , 1560, 1560, 1560, 1560
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1560, 1560, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1770, sellCostBuyPrice =sellCostBuyPrice+1560
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1560, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1560
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1560, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1560
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1560
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1560
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1560
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '234', userid = '3', storedetaildate = '2026-10-14 16:57:28' WHERE storedetailid = '1381';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1381', '1', '6', '1', '532', 'اضافة فاتورة مبيعات', 'sellbillController.php', '240', '234', '3', '2026-10-14 16:57:28','0','0'); -- id=5604
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 63;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('190','i0001247', '532', '71', '1247', '4', '250', '1000', '0', '', '0', '2026-10-14 16:57:28', '1247', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','63-4,','1','1','0','0','250','1000','0','','0','0.00','0','0','0','0'); -- id=1933
UPDATE sellbilldetail SET  lastbuyprice = 190.00 , meanbuyprice = 190.00, lastbuyprice_withDiscount = 190.00, meanbuyprice_withDiscount = 190.00
        , lastbuyprice_withTax = 190, meanbuyprice_withTax = 190, lastbuyprice_withDiscountAndTax = 190
                where sellbilldetailid = 1933;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1247, '2026-10-14', 1000, 760, 760
                    , 760, 760, 760, 760
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 760, 760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1000, sellCostBuyPrice =sellCostBuyPrice+760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+760, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+760
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+760
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1000, 760, 760
                    , 760, 760, 760, 760
                    , 0, 0, 0, 0
                    , 0, 0, 0, 760, 760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1000, sellCostBuyPrice =sellCostBuyPrice+760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+760, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+760
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+760
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 16:57:28' WHERE storedetailid = '1247';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1247', '1', '4', '1', '532', 'اضافة فاتورة مبيعات', 'sellbillController.php', '4', '0', '3', '2026-10-14 16:57:28','0','0'); -- id=5605
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 72;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('350','i0001380', '532', '94', '1380', '6', '400', '2400', '0', '', '0', '2026-10-14 16:57:28', '1380', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','72-6,','1','1','0','0','400','2400','0','','0','0.00','0','0','0','0'); -- id=1934
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 350.00, meanbuyprice_withDiscount = 350.00
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 350
                where sellbilldetailid = 1934;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1380, '2026-10-14', 2400, 2100, 2100
                    , 2100, 2100, 2100, 2100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2100, 2100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2400, sellCostBuyPrice =sellCostBuyPrice+2100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2400, 2100, 2100
                    , 2100, 2100, 2100, 2100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2100, 2100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2400, sellCostBuyPrice =sellCostBuyPrice+2100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '507', userid = '3', storedetaildate = '2026-10-14 16:57:28' WHERE storedetailid = '1380';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1380', '1', '6', '1', '532', 'اضافة فاتورة مبيعات', 'sellbillController.php', '513', '507', '3', '2026-10-14 16:57:28','0','0'); -- id=5606
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 1169;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('200','i0001975', '532', '59', '1975', '4', '250', '1000', '0', '', '0', '2026-10-14 16:57:28', '1975', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1169-4,','1','1','0','0','250','1000','0','','0','0.00','0','0','0','0'); -- id=1935
UPDATE sellbilldetail SET  lastbuyprice = 200.00 , meanbuyprice = 200.00, lastbuyprice_withDiscount = 200.00, meanbuyprice_withDiscount = 200.00
        , lastbuyprice_withTax = 200, meanbuyprice_withTax = 200, lastbuyprice_withDiscountAndTax = 200
                where sellbilldetailid = 1935;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1975, '2026-10-14', 1000, 800, 800
                    , 800, 800, 800, 800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 800, 800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1000, sellCostBuyPrice =sellCostBuyPrice+800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1000, 800, 800
                    , 800, 800, 800, 800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 800, 800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1000, sellCostBuyPrice =sellCostBuyPrice+800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '35', userid = '3', storedetaildate = '2026-10-14 16:57:28' WHERE storedetailid = '2992';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1975', '1', '4', '1', '532', 'اضافة فاتورة مبيعات', 'sellbillController.php', '39', '35', '3', '2026-10-14 16:57:28','0','0'); -- id=5607
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3556810',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3520055','36755', '0', '2', 'اضافة فاتورة مبيعات', '532', '3556810', '2026-10-14 16:57:28', '3',  'sellbillController.php','1','','0'); -- id=671
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '36755', '36755', '2026-10-14', '3', '0', '0', '2026-10-14 16:57:28','اضافة فاتورة مبيعات رقم 532','1','0',null,'0','532','sellbillController.php?do=showDetail&sellbillid=532'); -- id=2413
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2413', '419', '36755', '','0'); -- id=2469
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3556810', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2413', '143', '36755', '','0'); -- id=2415
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5801120', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '33651', '33651', '2026-10-14', '3', '0', '0', '2026-10-14 16:57:28','اضافة فاتورة مبيعات رقم 532 - صرف البضاعة من المخزن','1','0',null,'0','532','sellbillController.php?do=showDetail&sellbillid=532'); -- id=2414
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2414', '402', '33651', '','0'); -- id=2470
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5409963.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2414', '382', '33651', '','0'); -- id=2416
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21987091.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2413,0,2414' where sellbillid=532;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 36755, 34035, 34035
                    , 34035, 33651, 33843, 33651
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,34035, 31635, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+36755, sellCostBuyPrice =sellCostBuyPrice+34035
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+34035, sellCostMeanBuyPrice = sellCostMeanBuyPrice+34035
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+33651, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+33843
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+33651
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+34035
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+31635
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 36755, 34035, 34035
                    , 34035, 33651, 33843, 33651
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,34035, 31635, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+36755, sellCostBuyPrice =sellCostBuyPrice+34035
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+34035, sellCostMeanBuyPrice = sellCostMeanBuyPrice+34035
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+33651, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+33843
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+33651
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+34035
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+31635
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 36755, 34035, 34035
                    , 34035, 33651, 33843, 33651, 34035, 31635)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+36755, netSellCostBuyPrice = netSellCostBuyPrice+34035
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+34035
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+34035
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+33651
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+33843
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+33651
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+34035
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+31635;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf8431de394 and sellbillId = 532 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:27:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:57:28", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:57:28', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9468
UPDATE productunit SET proUnitSellAllPrice  = 470 * productnumber  WHERE productid = 1983;
UPDATE product SET productName = 'قصات ميلتون 470 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '470.00', productSellAllPrice = '470', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01983',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '470.00',lastbuyprice_withDiscount = '423',meanbuyprice = '470.00',meanbuyprice_withDiscount = '423' , productbuypricereal = '0.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='423',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='470',meanbuyprice_withTax='470',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='423',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1983';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1983, 1,'2026-10-14 16:57:43',1)
                ON DUPLICATE KEY UPDATE productid = 1983, edited = 1, sysdate = '2026-10-14 16:57:43', userid = 1; -- id=2933
UPDATE productunit SET proUnitSellHalfPrice = 470 * productnumber WHERE productid = 1983;
UPDATE product SET productName = 'قصات ميلتون 470 ام ام', productDescription = '', productCatId = '160', productBuyPrice = '470.00', productSellAllPrice = '470.00', productSellUnitPrice = '0.00', productSellHalfPrice = '470', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01983',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '470.00',lastbuyprice_withDiscount = '423',meanbuyprice = '470.00',meanbuyprice_withDiscount = '423' , productbuypricereal = '0.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='423',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='470',meanbuyprice_withTax='470',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='423',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1983';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1983, 1,'2026-10-14 16:57:49',1)
                ON DUPLICATE KEY UPDATE productid = 1983, edited = 1, sysdate = '2026-10-14 16:57:49', userid = 1; -- id=2933
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:27:51";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:57:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 16:57:51', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9469
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 13:27:51";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 16:57:52', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9470
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:27:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:57:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:57:57', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9471
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:28:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:58:01", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:58:01', '3', 'showDetail', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=showDetail&sellbillid=532'); -- id=9472
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:28:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:58:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 16:58:04', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9473
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:28:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:58:05", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:58:05', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9474
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:29:20";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:59:20", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:59:20', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9475

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf8a6d737e1
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 16:59:20', '06acf8a6d737e1', '1', '0.00', '0', '0', '1', '6300.00', '6300', '6300', '0', '1', '2026-10-14 16:59:20', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '10' ,'0','','','','','-1','0','0','0','0','0','6300','0','','0','0','6300','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=533
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','533', '0', '2026-10-14 16:59:20', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '6300', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 16:59:20','0','0','',''); -- id=680
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+5 where id = 324;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('522','i0001546', '533', '111', '1546', '5', '580', '2900', '0', '', '0', '2026-10-14 16:59:20', '1546', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','324-5,','1','1','0','0','580','2900','0','','0','0.00','0','0','0','0'); -- id=1936
UPDATE sellbilldetail SET  lastbuyprice = 580.00 , meanbuyprice = 580.00, lastbuyprice_withDiscount = 522.00, meanbuyprice_withDiscount = 522.00
        , lastbuyprice_withTax = 580, meanbuyprice_withTax = 580, lastbuyprice_withDiscountAndTax = 522
                where sellbilldetailid = 1936;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1546, '2026-10-14', 2900, 2900, 2900
                    , 2900, 2610, 2610, 2610
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 2900, 2900, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2900, sellCostBuyPrice =sellCostBuyPrice+2900
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2900, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2900
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2610, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2610
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2610
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2900
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2900
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2900, 2900, 2900
                    , 2900, 2610, 2610, 2610
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2900, 2900, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2900, sellCostBuyPrice =sellCostBuyPrice+2900
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2900, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2900
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2610, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2610
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2610
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2900
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2900
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '25', userid = '3', storedetaildate = '2026-10-14 16:59:20' WHERE storedetailid = '1571';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1546', '1', '5', '1', '533', 'اضافة فاتورة مبيعات', 'sellbillController.php', '30', '25', '3', '2026-10-14 16:59:20','0','0'); -- id=5608
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+5 where id = 1125;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('652','01937', '533', '8', '1937', '5', '680', '3400', '0', '', '0', '2026-10-14 16:59:20', '1937', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1125-5,','1','1','0','0','680','3400','0','','0','0.00','0','0','0','0'); -- id=1937
UPDATE sellbilldetail SET  lastbuyprice = 652.00 , meanbuyprice = 652.00, lastbuyprice_withDiscount = 652.00, meanbuyprice_withDiscount = 652.00
        , lastbuyprice_withTax = 652, meanbuyprice_withTax = 652, lastbuyprice_withDiscountAndTax = 652
                where sellbilldetailid = 1937;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1937, '2026-10-14', 3400, 3260, 3260
                    , 3260, 3260, 3260, 3260
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 3260, 3260, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3400, sellCostBuyPrice =sellCostBuyPrice+3260
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3260, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3260
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3260, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3260
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3260
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3260
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3260
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3400, 3260, 3260
                    , 3260, 3260, 3260, 3260
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3260, 3260, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3400, sellCostBuyPrice =sellCostBuyPrice+3260
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3260, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3260
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3260, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3260
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3260
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3260
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3260
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '5', userid = '3', storedetaildate = '2026-10-14 16:59:20' WHERE storedetailid = '2954';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1937', '1', '5', '1', '533', 'اضافة فاتورة مبيعات', 'sellbillController.php', '10', '5', '3', '2026-10-14 16:59:20','0','0'); -- id=5609
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3563110',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3556810','6300', '0', '2', 'اضافة فاتورة مبيعات', '533', '3563110', '2026-10-14 16:59:20', '3',  'sellbillController.php','1','','0'); -- id=672
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '6300', '6300', '2026-10-14', '3', '0', '0', '2026-10-14 16:59:20','اضافة فاتورة مبيعات رقم 533','1','0',null,'0','533','sellbillController.php?do=showDetail&sellbillid=533'); -- id=2415
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2415', '419', '6300', '','0'); -- id=2471
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3563110', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2415', '143', '6300', '','0'); -- id=2417
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5807420', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '5870', '5870', '2026-10-14', '3', '0', '0', '2026-10-14 16:59:20','اضافة فاتورة مبيعات رقم 533 - صرف البضاعة من المخزن','1','0',null,'0','533','sellbillController.php?do=showDetail&sellbillid=533'); -- id=2416
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2416', '402', '5870', '','0'); -- id=2472
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5415833.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2416', '382', '5870', '','0'); -- id=2418
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21981221.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2415,0,2416' where sellbillid=533;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 6300, 6160, 6160
                    , 6160, 5870, 5870, 5870
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,6160, 6160, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6300, sellCostBuyPrice =sellCostBuyPrice+6160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6160
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5870, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5870
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5870
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6160
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 6300, 6160, 6160
                    , 6160, 5870, 5870, 5870
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,6160, 6160, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6300, sellCostBuyPrice =sellCostBuyPrice+6160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6160
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5870, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5870
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5870
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6160
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 6300, 6160, 6160
                    , 6160, 5870, 5870, 5870, 6160, 6160)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+6300, netSellCostBuyPrice = netSellCostBuyPrice+6160
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+6160
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+6160
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+5870
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+5870
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+5870
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+6160
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+6160;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf8a6d737e1 and sellbillId = 533 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:29:20";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 16:59:20", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 16:59:20', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9476
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:30:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:00:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:00:04', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=149&type=2'); -- id=9477
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:34:17";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:04:17", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 17:04:17', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9478
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 13:34:17";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 17:04:17', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9479
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:34:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:04:23", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 17:04:23', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9480

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf8ab8b87e2
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 17:04:23', '06acf8ab8b87e2', '1', '0.00', '0', '0', '1', '19030.00', '19030', '19030', '0', '1', '2026-10-14 17:04:23', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '44' ,'0','','','','','-1','0','0','0','0','0','19030','0','','0','0','19030','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=534
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','534', '0', '2026-10-14 17:04:23', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '19030', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 17:04:23','0','0','',''); -- id=681
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 71;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01379', '534', '94', '1379', '9', '300', '2700', '0', '', '0', '2026-10-14 17:04:23', '1379', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','71-9,','1','1','0','0','300','2700','0','','0','0.00','0','0','0','0'); -- id=1938
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 1938;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1379, '2026-10-14', 2700, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2430, 2430
                    , 2430, 2430, 2430, 2430
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2430, 2430, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2430
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2430, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2430
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2430, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2430
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2430
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2430
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2430
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '441', userid = '3', storedetaildate = '2026-10-14 17:04:23' WHERE storedetailid = '1379';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1379', '1', '9', '1', '534', 'اضافة فاتورة مبيعات', 'sellbillController.php', '450', '441', '3', '2026-10-14 17:04:23','0','0'); -- id=5610
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 72;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('350','01380', '534', '94', '1380', '6', '390', '2340', '0', '', '0', '2026-10-14 17:04:23', '1380', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','72-6,','1','1','0','0','390','2340','0','','0','0.00','0','0','0','0'); -- id=1939
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 350.00, meanbuyprice_withDiscount = 350.00
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 350
                where sellbilldetailid = 1939;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1380, '2026-10-14', 2340, 2100, 2100
                    , 2100, 2100, 2100, 2100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2100, 2100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2340, sellCostBuyPrice =sellCostBuyPrice+2100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2340, 2100, 2100
                    , 2100, 2100, 2100, 2100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2100, 2100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2340, sellCostBuyPrice =sellCostBuyPrice+2100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '501', userid = '3', storedetaildate = '2026-10-14 17:04:23' WHERE storedetailid = '1380';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1380', '1', '6', '1', '534', 'اضافة فاتورة مبيعات', 'sellbillController.php', '507', '501', '3', '2026-10-14 17:04:23','0','0'); -- id=5611
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+2 where id = 933;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('435','01860', '534', '145', '1860', '2', '470', '940', '0', '', '0', '2026-10-14 17:04:23', '1860', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','933-2,','1','1','0','0','470','940','0','','0','0.00','0','0','0','0'); -- id=1940
UPDATE sellbilldetail SET  lastbuyprice = 435.00 , meanbuyprice = 435.00, lastbuyprice_withDiscount = 435.00, meanbuyprice_withDiscount = 435.00
        , lastbuyprice_withTax = 435, meanbuyprice_withTax = 435, lastbuyprice_withDiscountAndTax = 435
                where sellbilldetailid = 1940;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1860, '2026-10-14', 940, 870, 870
                    , 870, 870, 870, 870
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2, 0, 870, 870, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+940, sellCostBuyPrice =sellCostBuyPrice+870
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+870, sellCostMeanBuyPrice = sellCostMeanBuyPrice+870
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+870, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+870
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+870
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+870
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+870
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+2
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 940, 870, 870
                    , 870, 870, 870, 870
                    , 0, 0, 0, 0
                    , 0, 0, 0, 870, 870, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+940, sellCostBuyPrice =sellCostBuyPrice+870
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+870, sellCostMeanBuyPrice = sellCostMeanBuyPrice+870
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+870, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+870
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+870
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+870
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+870
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '19', userid = '3', storedetaildate = '2026-10-14 17:04:23' WHERE storedetailid = '2877';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1860', '1', '2', '1', '534', 'اضافة فاتورة مبيعات', 'sellbillController.php', '21', '19', '3', '2026-10-14 17:04:23','0','0'); -- id=5612
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 770;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('432','01649', '534', '123', '1649', '9', '480', '4320', '0', '', '0', '2026-10-14 17:04:23', '1649', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','770-9,','1','1','0','0','480','4320','0','','0','0.00','0','0','0','0'); -- id=1941
UPDATE sellbilldetail SET  lastbuyprice = 480.00 , meanbuyprice = 480.00, lastbuyprice_withDiscount = 432.00, meanbuyprice_withDiscount = 456.00
        , lastbuyprice_withTax = 480, meanbuyprice_withTax = 240, lastbuyprice_withDiscountAndTax = 432
                where sellbilldetailid = 1941;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1649, '2026-10-14', 4320, 4320, 4320
                    , 4320, 3888, 4104, 3888
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 4320, 2160, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4320, sellCostBuyPrice =sellCostBuyPrice+4320
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4320, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4320
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3888, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4104
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3888
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4320
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2160
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4320, 4320, 4320
                    , 4320, 3888, 4104, 3888
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4320, 2160, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4320, sellCostBuyPrice =sellCostBuyPrice+4320
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4320, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4320
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3888, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4104
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3888
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4320
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2160
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '12', userid = '3', storedetaildate = '2026-10-14 17:04:23' WHERE storedetailid = '1674';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1649', '1', '9', '1', '534', 'اضافة فاتورة مبيعات', 'sellbillController.php', '21', '12', '3', '2026-10-14 17:04:23','0','0'); -- id=5613
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 791;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('423','01808', '534', '122', '1808', '9', '470', '4230', '0', '', '0', '2026-10-14 17:04:23', '1808', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','791-9,','1','1','0','0','470','4230','0','','0','0.00','0','0','0','0'); -- id=1942
UPDATE sellbilldetail SET  lastbuyprice = 470.00 , meanbuyprice = 470.00, lastbuyprice_withDiscount = 423.00, meanbuyprice_withDiscount = 423.00
        , lastbuyprice_withTax = 470, meanbuyprice_withTax = 470, lastbuyprice_withDiscountAndTax = 423
                where sellbilldetailid = 1942;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1808, '2026-10-14', 4230, 4230, 4230
                    , 4230, 3807, 3807, 3807
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 4230, 4230, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4230, sellCostBuyPrice =sellCostBuyPrice+4230
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4230, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4230
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3807, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3807
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3807
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4230
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4230
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4230, 4230, 4230
                    , 4230, 3807, 3807, 3807
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4230, 4230, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4230, sellCostBuyPrice =sellCostBuyPrice+4230
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4230, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4230
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3807, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3807
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3807
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4230
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4230
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '15', userid = '3', storedetaildate = '2026-10-14 17:04:23' WHERE storedetailid = '2822';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1808', '1', '9', '1', '534', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '15', '3', '2026-10-14 17:04:23','0','0'); -- id=5614
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 548;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('450','01646', '534', '122', '1646', '9', '500', '4500', '0', '', '0', '2026-10-14 17:04:23', '1646', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','548-9,','1','1','0','0','500','4500','0','','0','0.00','0','0','0','0'); -- id=1943
UPDATE sellbilldetail SET  lastbuyprice = 500.00 , meanbuyprice = 500.00, lastbuyprice_withDiscount = 450.00, meanbuyprice_withDiscount = 450.00
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 450
                where sellbilldetailid = 1943;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1646, '2026-10-14', 4500, 4500, 4500
                    , 4500, 4050, 4050, 4050
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 4500, 4500, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4500, sellCostBuyPrice =sellCostBuyPrice+4500
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4500, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4500
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4050, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4050
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4050
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4500
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4500
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4500, 4500, 4500
                    , 4500, 4050, 4050, 4050
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4500, 4500, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4500, sellCostBuyPrice =sellCostBuyPrice+4500
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4500, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4500
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4050, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4050
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4050
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4500
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4500
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '9', userid = '3', storedetaildate = '2026-10-14 17:04:23' WHERE storedetailid = '1671';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1646', '1', '9', '1', '534', 'اضافة فاتورة مبيعات', 'sellbillController.php', '18', '9', '3', '2026-10-14 17:04:23','0','0'); -- id=5615
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3582140',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3563110','19030', '0', '2', 'اضافة فاتورة مبيعات', '534', '3582140', '2026-10-14 17:04:23', '3',  'sellbillController.php','1','','0'); -- id=673
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '19030', '19030', '2026-10-14', '3', '0', '0', '2026-10-14 17:04:23','اضافة فاتورة مبيعات رقم 534','1','0',null,'0','534','sellbillController.php?do=showDetail&sellbillid=534'); -- id=2417
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2417', '419', '19030', '','0'); -- id=2473
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3582140', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2417', '143', '19030', '','0'); -- id=2419
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5826450', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '17145', '17145', '2026-10-14', '3', '0', '0', '2026-10-14 17:04:23','اضافة فاتورة مبيعات رقم 534 - صرف البضاعة من المخزن','1','0',null,'0','534','sellbillController.php?do=showDetail&sellbillid=534'); -- id=2418
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2418', '402', '17145', '','0'); -- id=2474
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5432978.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2418', '382', '17145', '','0'); -- id=2420
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21964076.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2417,0,2418' where sellbillid=534;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 19030, 18450, 18450
                    , 18450, 17145, 17361, 17145
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,18450, 16290, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+19030, sellCostBuyPrice =sellCostBuyPrice+18450
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+18450, sellCostMeanBuyPrice = sellCostMeanBuyPrice+18450
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+17145, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+17361
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+17145
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+18450
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+16290
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 19030, 18450, 18450
                    , 18450, 17145, 17361, 17145
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,18450, 16290, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+19030, sellCostBuyPrice =sellCostBuyPrice+18450
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+18450, sellCostMeanBuyPrice = sellCostMeanBuyPrice+18450
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+17145, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+17361
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+17145
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+18450
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+16290
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 19030, 18450, 18450
                    , 18450, 17145, 17361, 17145, 18450, 16290)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+19030, netSellCostBuyPrice = netSellCostBuyPrice+18450
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+18450
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+18450
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+17145
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+17361
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+17145
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+18450
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+16290;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf8ab8b87e2 and sellbillId = 534 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:34:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:04:24", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 17:04:24', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9481
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:37:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:07:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:07:24', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9482
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:37:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:07:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:07:28', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9483
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:37:40";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:07:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 17:07:40', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9484
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:37:55";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:07:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 17:07:55', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9485
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:37:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:07:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:07:56', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9486
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:38:08";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:08:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 17:08:08', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9487
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:38:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:08:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 17:08:23', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9488
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:38:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:08:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 17:08:30', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9489
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:38:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:08:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:08:39', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9490
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:38:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:08:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 17:08:50', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=show'); -- id=9491
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:39:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:09:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:09:09', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9492
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:39:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:09:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 17:09:10', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9493
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:39:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:09:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 17:09:14', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9494
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:39:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:09:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 17:09:41', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9495
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:39:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:09:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 17:09:48', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=show'); -- id=9496
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:39:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:09:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 17:09:56', '1', 'editbill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editbill&id=130'); -- id=9497
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:40:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:10:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 17:10:12', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9498
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('فور ماكس جاكت','2026-10-14','','90', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=161
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (161, 1,'2026-10-14 17:10:12',1)
                ON DUPLICATE KEY UPDATE catid = 161, edited = 1, sysdate = '2026-10-14 17:10:12', userid = 1; -- id=173
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '161', '1', '2026-10-14', '1', '0'); -- id=66
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:40:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:10:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 17:10:12', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9499
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:40:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:10:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 17:10:14', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9500
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:40:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:10:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:10:16', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9501
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:40:18";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:10:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 17:10:18', '1', 'update', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=update'); -- id=9502
BEGIN;
UPDATE costcenterdetail SET del = 1 WHERE type in( 3) and  modelid = 130;
UPDATE buybill SET  buybillsysdate = '2026-10-14 17:10:18', userid = '1',delbyuserid = '1', conditions = '1' WHERE buybillid = '130';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13 17:57:39', 1, 1911, 0, 0
                    , 525, 30, 0, 0, 1, '2026-10-14 17:10:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:10:18' ; -- id=1062
UPDATE buybilldetail SET  lastbuyprice = 525.00 , meanbuyprice = 525.00, lastbuyprice_withDiscount = 525.00, meanbuyprice_withDiscount = 525.00
        , lastbuyprice_withTax = 525.00, meanbuyprice_withTax = 525.00, lastbuyprice_withDiscountAndTax = 525.00
                where buybilldetailid = 806;
UPDATE product SET productName = 'اوفر سايز او ار ', productDescription = '', productCatId = '143', productBuyPrice = '525.00', productSellAllPrice = '585.00', productSellUnitPrice = '585.00', productSellHalfPrice = '585.00', productDate = '2026-10-13', conditions = '0', userId = '1', limitamount = '0', parcode = '01911',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '525',lastbuyprice_withDiscount = '0',meanbuyprice = '525.00',meanbuyprice_withDiscount = '525' , productbuypricereal = '525.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '11.43' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='525',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='525',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1911';
UPDATE productunit SET proUnitBuyPrice  = 525 * productnumber WHERE productid = 1911;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2928';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1911', '1', '30', '1', '130', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '30', '0', '1', '2026-10-13 17:57:39','0','0'); -- id=5616
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13 17:57:39', 1, 1912, 0, 0
                    , 540, 48, 0, 0, 1, '2026-10-14 17:10:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:10:18' ; -- id=1063
UPDATE buybilldetail SET  lastbuyprice = 540.00 , meanbuyprice = 540.00, lastbuyprice_withDiscount = 540.00, meanbuyprice_withDiscount = 540.00
        , lastbuyprice_withTax = 540.00, meanbuyprice_withTax = 540.00, lastbuyprice_withDiscountAndTax = 540.00
                where buybilldetailid = 807;
UPDATE product SET productName = 'بوكس فيت استرس او ار ', productDescription = '', productCatId = '143', productBuyPrice = '540.00', productSellAllPrice = '600.00', productSellUnitPrice = '600.00', productSellHalfPrice = '600.00', productDate = '2026-10-13', conditions = '0', userId = '1', limitamount = '0', parcode = '01912',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '0',meanbuyprice = '540.00',meanbuyprice_withDiscount = '540' , productbuypricereal = '540.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '11.11' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1912';
UPDATE productunit SET proUnitBuyPrice  = 540 * productnumber WHERE productid = 1912;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2929';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1912', '1', '48', '1', '130', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '48', '0', '1', '2026-10-13 17:57:39','0','0'); -- id=5617
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13 17:57:39', 1, 1913, 0, 0
                    , 580, 42, 0, 0, 1, '2026-10-14 17:10:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-42, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:10:18' ; -- id=1064
UPDATE buybilldetail SET  lastbuyprice = 580.00 , meanbuyprice = 580.00, lastbuyprice_withDiscount = 580.00, meanbuyprice_withDiscount = 580.00
        , lastbuyprice_withTax = 580.00, meanbuyprice_withTax = 580.00, lastbuyprice_withDiscountAndTax = 580.00
                where buybilldetailid = 808;
UPDATE product SET productName = 'بوكس فيت سمايل او ار ', productDescription = '', productCatId = '143', productBuyPrice = '580.00', productSellAllPrice = '640.00', productSellUnitPrice = '640.00', productSellHalfPrice = '640.00', productDate = '2026-10-13', conditions = '0', userId = '1', limitamount = '0', parcode = '01913',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '580',lastbuyprice_withDiscount = '0',meanbuyprice = '580.00',meanbuyprice_withDiscount = '580' , productbuypricereal = '580.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '10.34' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='580',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='580',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1913';
UPDATE productunit SET proUnitBuyPrice  = 580 * productnumber WHERE productid = 1913;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2930';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1913', '1', '42', '1', '130', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '42', '0', '1', '2026-10-13 17:57:39','0','0'); -- id=5618
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13 17:57:39', 1, 1914, 0, 0
                    , 450, 48, 0, 0, 1, '2026-10-14 17:10:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:10:18' ; -- id=1065
UPDATE buybilldetail SET  lastbuyprice = 450.00 , meanbuyprice = 450.00, lastbuyprice_withDiscount = 450.00, meanbuyprice_withDiscount = 450.00
        , lastbuyprice_withTax = 450.00, meanbuyprice_withTax = 450.00, lastbuyprice_withDiscountAndTax = 450.00
                where buybilldetailid = 809;
UPDATE product SET productName = 'اوفر سايز اوربجنال او ار ', productDescription = '', productCatId = '143', productBuyPrice = '450.00', productSellAllPrice = '510.00', productSellUnitPrice = '510.00', productSellHalfPrice = '510.00', productDate = '2026-10-13', conditions = '0', userId = '1', limitamount = '0', parcode = '01914',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '0',meanbuyprice = '450.00',meanbuyprice_withDiscount = '450' , productbuypricereal = '450.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '13.33' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1914';
UPDATE productunit SET proUnitBuyPrice  = 450 * productnumber WHERE productid = 1914;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2931';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1914', '1', '48', '1', '130', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '48', '0', '1', '2026-10-13 17:57:39','0','0'); -- id=5619
UPDATE supplier SET  suppliercurrentDebt = '132920',suppliercurrentDebtInCurrency= '132920' , userid = '1', supplierdate = '2026-10-14 17:10:18'   WHERE supplierid = '147';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('147', '220550.00', '87630.00', '1', 'حذف فاتورة مشتريات - للتعديل', '130', '132920', '2026-10-13 17:57:39', '1', 'buyBillController.php', 'حذف فاتورة مشتريات - للتعديل', '0','', '0','1','1','87630','1','220550','87630','132920','0',''); -- id=481
UPDATE productserial SET del = 1
		 WHERE billid = 130;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,deletedbuyid,controlname,payedtax,costcenterid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06ace46e3062b5', '2026-10-13 17:57:39', '142', '-50000.00', '37630', '0', '0', '87630.00', '87630.00', '0.00', '87630', '1', '2026-10-14 17:10:18', '', '1', '0', '', '1', '1','1','130','buyBillController.php','0.00','-1','1','0','0','.','0','0','0','0','0','0'); -- id=150
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01911', '150', '143', '1911', '30.00', '525', '15750.00', '0.00', '', '2026-10-14 17:10:18', '1911','','','0','0','0','0','0',null,'525','15750','0','0','0','0','0','0','0','0','1'); -- id=924
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13 17:57:39', 1, 1911, 0, 0
                    , 525, 30, 0, 0, 1, '2026-10-14 17:10:18')
                ON DUPLICATE KEY UPDATE buyprice = 525,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:10:18' ; -- id=1062
UPDATE product SET  productBuyPrice = "525" WHERE productId = 1911 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 924 ;
UPDATE product SET productName = 'اوفر سايز او ار ', productDescription = '', productCatId = '143', productBuyPrice = '525.00', productSellAllPrice = '585.00', productSellUnitPrice = '585.00', productSellHalfPrice = '585.00', productDate = '2026-10-13', conditions = '0', userId = '1', limitamount = '0', parcode = '01911',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '525',lastbuyprice_withDiscount = '525',meanbuyprice = '525',meanbuyprice_withDiscount = '525' , productbuypricereal = '525.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '11.43' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='525',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='525',meanbuyprice_withTax='262.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='525',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1911';
UPDATE buybilldetail SET  lastbuyprice = 525 , meanbuyprice = 525, lastbuyprice_withDiscount = 525, meanbuyprice_withDiscount = 525
        , lastbuyprice_withTax = 525, meanbuyprice_withTax = 262.5, lastbuyprice_withDiscountAndTax = 525
                where buybilldetailid = 924;
UPDATE productunit SET proUnitBuyPrice  = 525 * productnumber WHERE productid = 1911;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2928';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1911', '1', '30', '0', '150', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-13 17:57:39','0','0'); -- id=5620
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01912', '150', '143', '1912', '48.00', '540', '25920.00', '0.00', '', '2026-10-14 17:10:18', '1912','','','0','0','0','0','0',null,'540','25920','0','0','0','0','0','0','0','0','1'); -- id=925
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13 17:57:39', 1, 1912, 0, 0
                    , 540, 48, 0, 0, 1, '2026-10-14 17:10:18')
                ON DUPLICATE KEY UPDATE buyprice = 540,
                        buyQuantity =buyQuantity+48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:10:18' ; -- id=1063
UPDATE product SET  productBuyPrice = "540" WHERE productId = 1912 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 925 ;
UPDATE product SET productName = 'بوكس فيت استرس او ار ', productDescription = '', productCatId = '143', productBuyPrice = '540.00', productSellAllPrice = '600.00', productSellUnitPrice = '600.00', productSellHalfPrice = '600.00', productDate = '2026-10-13', conditions = '0', userId = '1', limitamount = '0', parcode = '01912',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '540',lastbuyprice_withDiscount = '540',meanbuyprice = '540',meanbuyprice_withDiscount = '540' , productbuypricereal = '540.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '11.11' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='540',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='540',meanbuyprice_withTax='270',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='540',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1912';
UPDATE buybilldetail SET  lastbuyprice = 540 , meanbuyprice = 540, lastbuyprice_withDiscount = 540, meanbuyprice_withDiscount = 540
        , lastbuyprice_withTax = 540, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 540
                where buybilldetailid = 925;
UPDATE productunit SET proUnitBuyPrice  = 540 * productnumber WHERE productid = 1912;
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2929';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1912', '1', '48', '0', '150', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '48', '1', '2026-10-13 17:57:39','0','0'); -- id=5621
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01913', '150', '143', '1913', '42.00', '580', '24360.00', '0.00', '', '2026-10-14 17:10:18', '1913','','','0','0','0','0','0',null,'580','24360','0','0','0','0','0','0','0','0','1'); -- id=926
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13 17:57:39', 1, 1913, 0, 0
                    , 580, 42, 0, 0, 1, '2026-10-14 17:10:18')
                ON DUPLICATE KEY UPDATE buyprice = 580,
                        buyQuantity =buyQuantity+42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:10:18' ; -- id=1064
UPDATE product SET  productBuyPrice = "580" WHERE productId = 1913 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 926 ;
UPDATE product SET productName = 'بوكس فيت سمايل او ار ', productDescription = '', productCatId = '143', productBuyPrice = '580.00', productSellAllPrice = '640.00', productSellUnitPrice = '640.00', productSellHalfPrice = '640.00', productDate = '2026-10-13', conditions = '0', userId = '1', limitamount = '0', parcode = '01913',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '580',lastbuyprice_withDiscount = '580',meanbuyprice = '580',meanbuyprice_withDiscount = '580' , productbuypricereal = '580.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '10.34' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='580',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='580',meanbuyprice_withTax='290',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='580',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1913';
UPDATE buybilldetail SET  lastbuyprice = 580 , meanbuyprice = 580, lastbuyprice_withDiscount = 580, meanbuyprice_withDiscount = 580
        , lastbuyprice_withTax = 580, meanbuyprice_withTax = 290, lastbuyprice_withDiscountAndTax = 580
                where buybilldetailid = 926;
UPDATE productunit SET proUnitBuyPrice  = 580 * productnumber WHERE productid = 1913;
UPDATE storedetail SET  productquantity = '42', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2930';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1913', '1', '42', '0', '150', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '42', '1', '2026-10-13 17:57:39','0','0'); -- id=5622
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01914', '150', '143', '1914', '48.00', '450', '21600.00', '0.00', '', '2026-10-14 17:10:18', '1914','','','0','0','0','0','0',null,'450','21600','0','0','0','0','0','0','0','0','1'); -- id=927
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13 17:57:39', 1, 1914, 0, 0
                    , 450, 48, 0, 0, 1, '2026-10-14 17:10:18')
                ON DUPLICATE KEY UPDATE buyprice = 450,
                        buyQuantity =buyQuantity+48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:10:18' ; -- id=1065
UPDATE product SET  productBuyPrice = "450" WHERE productId = 1914 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 927 ;
UPDATE product SET productName = 'اوفر سايز اوربجنال او ار ', productDescription = '', productCatId = '143', productBuyPrice = '450.00', productSellAllPrice = '510.00', productSellUnitPrice = '510.00', productSellHalfPrice = '510.00', productDate = '2026-10-13', conditions = '0', userId = '1', limitamount = '0', parcode = '01914',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '450',meanbuyprice = '450',meanbuyprice_withDiscount = '450' , productbuypricereal = '450.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '13.33' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='225',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1914';
UPDATE buybilldetail SET  lastbuyprice = 450 , meanbuyprice = 450, lastbuyprice_withDiscount = 450, meanbuyprice_withDiscount = 450
        , lastbuyprice_withTax = 450, meanbuyprice_withTax = 225, lastbuyprice_withDiscountAndTax = 450
                where buybilldetailid = 927;
UPDATE productunit SET proUnitBuyPrice  = 450 * productnumber WHERE productid = 1914;
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2931';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1914', '1', '48', '0', '150', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '48', '1', '2026-10-13 17:57:39','0','0'); -- id=5623
DELETE FROM productserial WHERE billid = 130
		and type =0 
		;
UPDATE supplier SET  suppliercurrentDebt = '37630',suppliercurrentDebtInCurrency= '37630' , userid = '1', supplierdate = '2026-10-14 17:10:18'   WHERE supplierid = '142';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('142', '-50000.00', '87630', '0', 'اضافة فاتورة مشتريات', '150', '37630', '2026-10-14 17:10:18', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','87630','1','-50000','87630','37630','0',''); -- id=482
UPDATE dailyentry SET totalcreditor = '87630.00', totaldebtor = '87630.00', thedate = '2026-10-13', userid = '1', `condition` = '0', reverseofid = '-10', dDateTime = '2026-10-13 18:01:15', entryComment = 'اضافة فاتورة مشتريات رقم 130', fromFlag = '1',related='0',isopeningentry='0',operationId='130',operationDetailLink='buyBillController.php?do=details&id=130' WHERE id = '2284';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '87630.00', '87630.00', '2026-10-14', '1', '0', '2284', '2026-10-14 17:10:18','تم عكس القيد رقم 2284 ','1','0','0','0','0',''); -- id=2419
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2419', '382', '87630.00', '','0'); -- id=2421
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21876446.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2419', '630', '87630.00', '','0'); -- id=2475
UPDATE accountstree SET name = 'او ار', customName = 'او ار', customNameEn = 'او ار', nameEn = 'او ار', parent = '81', accountNature = '1', theValue = '132920', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-09 21:33:59' WHERE id = '630';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '87630', '87630', '2026-10-14', '1', '0', '0', '2026-10-14 17:10:18','اضافة فاتورة مشتريات رقم 150','1','0',null,'0','150','buyBillController.php?do=details&id=150'); -- id=2420
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2420', '382', '87630', '','0'); -- id=2476
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '21964076.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2420', '625', '87630', '','0'); -- id=2422
UPDATE accountstree SET name = 'اوريجنال - مورد', customName = 'اوريجنال - مورد', customNameEn = 'اوريجنال - مورد', nameEn = 'اوريجنال - مورد', parent = '81', accountNature = '1', theValue = '37630', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-09 21:19:02' WHERE id = '625';
update buybill set dailyentryid='2420,0' where buybillid=150;
UPDATE product SET overAllAveragePrice = 525 WHERE productId = 1911;UPDATE product SET overAllAveragePrice = 540 WHERE productId = 1912;UPDATE product SET overAllAveragePrice = 580 WHERE productId = 1913;UPDATE product SET overAllAveragePrice = 450 WHERE productId = 1914;;
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:40:18";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:10:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 17:10:18', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=150'); -- id=9503
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:43:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:13:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:13:59', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9504
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديلات 850 فور ماكس ','','161','800','850','850','850','2026-10-14','0','1','0','','0','0','0','0','0','800','800','800','800','800','0','6.25','0','0','.','0','0','0','800','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','800','800','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','800','0','0','0','0','0','0','','','0','0','0','0'); -- id=1990
UPDATE product SET productName = 'موديلات 850 فور ماكس ', productDescription = '', productCatId = '161', productBuyPrice = '800', productSellAllPrice = '850', productSellUnitPrice = '850', productSellHalfPrice = '850', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01990',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800' , buypricereal_precentage = '0' , buytotal_precentage = '6.25' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='800',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1990';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1990', '1.00', '2026-10-14', '1', '0','0199001','850','850','850','800','','0','0','0','0','0','0','0','0','0','0'); -- id=1990
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1990', '1', '0', '1', '2026-10-14'); -- id=3007
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1990', '1', '0', '0', '1990', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5624
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1990, 1,'2026-10-14 17:13:59',1)
                ON DUPLICATE KEY UPDATE productid = 1990, edited = 1, sysdate = '2026-10-14 17:13:59', userid = 1; -- id=2942
UPDATE product SET productName = 'موديلات 850 فور ماكس ', productDescription = '', productCatId = '161', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01990',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800' , buypricereal_precentage = '0' , buytotal_precentage = '6.25' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='800',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1990';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تيشرت فور ماكس','','161','470','510','510','510','2026-10-14','0','1','0','','0','0','0','0','0','470','470','470','470','470','0','8.51','0','0','.','0','0','0','470','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','470','470','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','470','0','0','0','0','0','0','','','0','0','0','0'); -- id=1991
UPDATE product SET productName = 'تيشرت فور ماكس', productDescription = '', productCatId = '161', productBuyPrice = '470', productSellAllPrice = '510', productSellUnitPrice = '510', productSellHalfPrice = '510', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01991',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '470',lastbuyprice_withDiscount = '470',meanbuyprice = '470',meanbuyprice_withDiscount = '470' , productbuypricereal = '470' , buypricereal_precentage = '0' , buytotal_precentage = '8.51' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='470',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='470',meanbuyprice_withTax='470',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='470',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1991';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1991', '1.00', '2026-10-14', '1', '0','0199101','510','510','510','470','','0','0','0','0','0','0','0','0','0','0'); -- id=1991
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1991', '1', '0', '1', '2026-10-14'); -- id=3008
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1991', '1', '0', '0', '1991', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5625
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1991, 1,'2026-10-14 17:13:59',1)
                ON DUPLICATE KEY UPDATE productid = 1991, edited = 1, sysdate = '2026-10-14 17:13:59', userid = 1; -- id=2943
UPDATE product SET productName = 'تيشرت فور ماكس', productDescription = '', productCatId = '161', productBuyPrice = '470.00', productSellAllPrice = '510.00', productSellUnitPrice = '510.00', productSellHalfPrice = '510.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01991',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '470',lastbuyprice_withDiscount = '470',meanbuyprice = '470',meanbuyprice_withDiscount = '470' , productbuypricereal = '470' , buypricereal_precentage = '0' , buytotal_precentage = '8.51' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='470',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='470',meanbuyprice_withTax='470',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='470',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1991';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديلات 950 فور ماكس ','','161','900','950','950','950','2026-10-14','0','1','0','','0','0','0','0','0','900','900','900','900','900','0','5.56','0','0','.','0','0','0','900','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','900','900','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','900','0','0','0','0','0','0','','','0','0','0','0'); -- id=1992
UPDATE product SET productName = 'موديلات 950 فور ماكس ', productDescription = '', productCatId = '161', productBuyPrice = '900', productSellAllPrice = '950', productSellUnitPrice = '950', productSellHalfPrice = '950', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01992',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '900',lastbuyprice_withDiscount = '900',meanbuyprice = '900',meanbuyprice_withDiscount = '900' , productbuypricereal = '900' , buypricereal_precentage = '0' , buytotal_precentage = '5.56' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='900',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='900',meanbuyprice_withTax='900',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='900',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1992';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1992', '1.00', '2026-10-14', '1', '0','0199201','950','950','950','900','','0','0','0','0','0','0','0','0','0','0'); -- id=1992
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1992', '1', '0', '1', '2026-10-14'); -- id=3009
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1992', '1', '0', '0', '1992', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5626
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1992, 1,'2026-10-14 17:14:00',1)
                ON DUPLICATE KEY UPDATE productid = 1992, edited = 1, sysdate = '2026-10-14 17:14:00', userid = 1; -- id=2944
UPDATE product SET productName = 'موديلات 950 فور ماكس ', productDescription = '', productCatId = '161', productBuyPrice = '900.00', productSellAllPrice = '950.00', productSellUnitPrice = '950.00', productSellHalfPrice = '950.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01992',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '900',lastbuyprice_withDiscount = '900',meanbuyprice = '900',meanbuyprice_withDiscount = '900' , productbuypricereal = '900' , buypricereal_precentage = '0' , buytotal_precentage = '5.56' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='900',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='900',meanbuyprice_withTax='900',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='900',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1992';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:44:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:14:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:14:01', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9505
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:44:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:14:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 17:14:05', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9506
INSERT INTO supplier (suppliername, supplieraddress, supplierphone, suppliercurrentDebt, supplierdetails, conditions, userid, supplierdate, dailyentryid, category_id, typesupplier_id,linkedClientId,inUse,suppliercode,goverareaid,namepayeecheck,suppliermobile,warrantyOfficer,warrantymobile,sellername,sellermobile,taxnumber,supplierTypeForTree,treeId,sullpierCurrencyid,suppliercurrentDebtInCurrency,webApiId,shippingDiscountPer) VALUES ('فور ماكس', '', '', '', '', '0', '1', '2026-10-14 17:14:24', '0', '', '','0','0','','','','','','','','','','0','0','1','0','0','0'); -- id=174
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('174', '0', '', '0', 'إضافة مورد جديد', '174', '', '2026-10-14 17:14:24', '1', 'supplierController.php', '', '0','', '0','1','1','0','1','0','0','0','0',''); -- id=483
INSERT INTO accountstree (name, customName, customNameEn, nameEn, parent, accountNature, theValue, theOrder, layingOrder, reportid, listId, notes, itemfrom, itemtype, itemtype2, itemtype3, userid, del, sysdate) VALUES ('فور ماكس', 'فور ماكس', 'فور ماكس', 'فور ماكس', '81', '1', '0', '0', '', '1', '1', '', '0', '1', '1', '', '1', '0', '2026-10-14 17:14:24'); -- id=657
UPDATE supplier SET suppliername = 'فور ماكس', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '0.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-10-14', dailyentryid = '0', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='657',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='0',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '174';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:47:07";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:17:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 17:17:07', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php?do=show'); -- id=9507
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:47:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:17:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storeController.php', '2026-10-14 17:17:11', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storeController.php'); -- id=9508
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:47:27";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:17:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 17:17:27', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php'); -- id=9509
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:48:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:18:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 17:18:43', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9510
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf8e2de9d18', '2026-10-14 17:14:05', '174', '0.00', '236100', '0', '0', '236100.00',  '236100.00', '0', '236100', '1', '2026-10-14 17:18:43', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=151
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01990', '151', '161', '1990', '30', '800', '24000.00', '0', '', '2026-10-14 17:18:43', '1990','','','0','0','0','0','0',null,'800','24000','0','0','0','0','0','0','0','0','1'); -- id=928
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:14:05', 1, 1990, 0, 0
                    , 800, 30, 0, 0, 1, '2026-10-14 17:18:43')
                ON DUPLICATE KEY UPDATE buyprice = 800,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:18:43' ; -- id=1209
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1990', '800', '30', '0', 'buyBillController.php', '928', '', '0', '0'); -- id=711
UPDATE product SET  productBuyPrice = "800" WHERE productId = 1990 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 928 ;
UPDATE product SET productName = 'موديلات 850 فور ماكس ', productDescription = '', productCatId = '161', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01990',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.25' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='800',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1990';
UPDATE buybilldetail SET  lastbuyprice = 800 , meanbuyprice = 800, lastbuyprice_withDiscount = 800, meanbuyprice_withDiscount = 800
        , lastbuyprice_withTax = 800, meanbuyprice_withTax = 800, lastbuyprice_withDiscountAndTax = 800
                where buybilldetailid = 928;
UPDATE productunit SET proUnitBuyPrice  = 800 * productnumber WHERE productid = 1990;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3007';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1990', '1', '30', '0', '151', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 17:14:05','0','0'); -- id=5627
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01992', '151', '161', '1992', '30', '900', '27000.00', '0', '', '2026-10-14 17:18:43', '1992','','','0','0','0','0','0',null,'900','27000','0','0','0','0','0','0','0','0','1'); -- id=929
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:14:05', 1, 1992, 0, 0
                    , 900, 30, 0, 0, 1, '2026-10-14 17:18:43')
                ON DUPLICATE KEY UPDATE buyprice = 900,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:18:43' ; -- id=1210
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1992', '900', '30', '0', 'buyBillController.php', '929', '', '0', '0'); -- id=712
UPDATE product SET  productBuyPrice = "900" WHERE productId = 1992 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 929 ;
UPDATE product SET productName = 'موديلات 950 فور ماكس ', productDescription = '', productCatId = '161', productBuyPrice = '900.00', productSellAllPrice = '950.00', productSellUnitPrice = '950.00', productSellHalfPrice = '950.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01992',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '900',lastbuyprice_withDiscount = '900',meanbuyprice = '900',meanbuyprice_withDiscount = '900' , productbuypricereal = '900.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.56' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='900',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='900',meanbuyprice_withTax='900',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='900',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1992';
UPDATE buybilldetail SET  lastbuyprice = 900 , meanbuyprice = 900, lastbuyprice_withDiscount = 900, meanbuyprice_withDiscount = 900
        , lastbuyprice_withTax = 900, meanbuyprice_withTax = 900, lastbuyprice_withDiscountAndTax = 900
                where buybilldetailid = 929;
UPDATE productunit SET proUnitBuyPrice  = 900 * productnumber WHERE productid = 1992;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3009';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1992', '1', '30', '0', '151', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 17:14:05','0','0'); -- id=5628
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01990', '151', '161', '1990', '30', '800', '24000.00', '0', '', '2026-10-14 17:18:43', '1990','','','0','0','0','0','0',null,'800','24000','0','0','0','0','0','0','0','0','1'); -- id=930
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:14:05', 1, 1990, 0, 0
                    , 800, 30, 0, 0, 1, '2026-10-14 17:18:43')
                ON DUPLICATE KEY UPDATE buyprice = 800,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:18:43' ; -- id=1209
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1990', '800', '30', '0', 'buyBillController.php', '930', '', '0', '0'); -- id=713
UPDATE product SET  productBuyPrice = "800" WHERE productId = 1990 ;
UPDATE buybilldetail SET  quantitybefore = 30 WHERE buybilldetailid = 930 ;
UPDATE product SET productName = 'موديلات 850 فور ماكس ', productDescription = '', productCatId = '161', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01990',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.25' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='800',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1990';
UPDATE buybilldetail SET  lastbuyprice = 800 , meanbuyprice = 800, lastbuyprice_withDiscount = 800, meanbuyprice_withDiscount = 800
        , lastbuyprice_withTax = 800, meanbuyprice_withTax = 800, lastbuyprice_withDiscountAndTax = 800
                where buybilldetailid = 930;
UPDATE productunit SET proUnitBuyPrice  = 800 * productnumber WHERE productid = 1990;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3007';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1990', '1', '30', '0', '151', 'اضافة فاتورة مشتريات', 'buyBillController.php', '30', '60', '1', '2026-10-14 17:14:05','0','0'); -- id=5629
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01990', '151', '161', '1990', '30', '800', '24000.00', '0', '', '2026-10-14 17:18:43', '1990','','','0','0','0','0','0',null,'800','24000','0','0','0','0','0','0','0','0','1'); -- id=931
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:14:05', 1, 1990, 0, 0
                    , 800, 30, 0, 0, 1, '2026-10-14 17:18:43')
                ON DUPLICATE KEY UPDATE buyprice = 800,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:18:43' ; -- id=1209
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1990', '800', '30', '0', 'buyBillController.php', '931', '', '0', '0'); -- id=714
UPDATE product SET  productBuyPrice = "800" WHERE productId = 1990 ;
UPDATE buybilldetail SET  quantitybefore = 60 WHERE buybilldetailid = 931 ;
UPDATE product SET productName = 'موديلات 850 فور ماكس ', productDescription = '', productCatId = '161', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01990',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.25' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='800',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1990';
UPDATE buybilldetail SET  lastbuyprice = 800 , meanbuyprice = 800, lastbuyprice_withDiscount = 800, meanbuyprice_withDiscount = 800
        , lastbuyprice_withTax = 800, meanbuyprice_withTax = 800, lastbuyprice_withDiscountAndTax = 800
                where buybilldetailid = 931;
UPDATE productunit SET proUnitBuyPrice  = 800 * productnumber WHERE productid = 1990;
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3007';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1990', '1', '30', '0', '151', 'اضافة فاتورة مشتريات', 'buyBillController.php', '60', '90', '1', '2026-10-14 17:14:05','0','0'); -- id=5630
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01990', '151', '161', '1990', '30', '800', '24000.00', '0', '', '2026-10-14 17:18:43', '1990','','','0','0','0','0','0',null,'800','24000','0','0','0','0','0','0','0','0','1'); -- id=932
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:14:05', 1, 1990, 0, 0
                    , 800, 30, 0, 0, 1, '2026-10-14 17:18:43')
                ON DUPLICATE KEY UPDATE buyprice = 800,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:18:43' ; -- id=1209
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1990', '800', '30', '0', 'buyBillController.php', '932', '', '0', '0'); -- id=715
UPDATE product SET  productBuyPrice = "800" WHERE productId = 1990 ;
UPDATE buybilldetail SET  quantitybefore = 90 WHERE buybilldetailid = 932 ;
UPDATE product SET productName = 'موديلات 850 فور ماكس ', productDescription = '', productCatId = '161', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01990',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.25' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='800',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1990';
UPDATE buybilldetail SET  lastbuyprice = 800 , meanbuyprice = 800, lastbuyprice_withDiscount = 800, meanbuyprice_withDiscount = 800
        , lastbuyprice_withTax = 800, meanbuyprice_withTax = 800, lastbuyprice_withDiscountAndTax = 800
                where buybilldetailid = 932;
UPDATE productunit SET proUnitBuyPrice  = 800 * productnumber WHERE productid = 1990;
UPDATE storedetail SET  productquantity = '120', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3007';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1990', '1', '30', '0', '151', 'اضافة فاتورة مشتريات', 'buyBillController.php', '90', '120', '1', '2026-10-14 17:14:05','0','0'); -- id=5631
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01990', '151', '161', '1990', '30', '800', '24000.00', '0', '', '2026-10-14 17:18:43', '1990','','','0','0','0','0','0',null,'800','24000','0','0','0','0','0','0','0','0','1'); -- id=933
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:14:05', 1, 1990, 0, 0
                    , 800, 30, 0, 0, 1, '2026-10-14 17:18:43')
                ON DUPLICATE KEY UPDATE buyprice = 800,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:18:43' ; -- id=1209
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1990', '800', '30', '0', 'buyBillController.php', '933', '', '0', '0'); -- id=716
UPDATE product SET  productBuyPrice = "800" WHERE productId = 1990 ;
UPDATE buybilldetail SET  quantitybefore = 120 WHERE buybilldetailid = 933 ;
UPDATE product SET productName = 'موديلات 850 فور ماكس ', productDescription = '', productCatId = '161', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01990',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.25' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='800',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1990';
UPDATE buybilldetail SET  lastbuyprice = 800 , meanbuyprice = 800, lastbuyprice_withDiscount = 800, meanbuyprice_withDiscount = 800
        , lastbuyprice_withTax = 800, meanbuyprice_withTax = 800, lastbuyprice_withDiscountAndTax = 800
                where buybilldetailid = 933;
UPDATE productunit SET proUnitBuyPrice  = 800 * productnumber WHERE productid = 1990;
UPDATE storedetail SET  productquantity = '150', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3007';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1990', '1', '30', '0', '151', 'اضافة فاتورة مشتريات', 'buyBillController.php', '120', '150', '1', '2026-10-14 17:14:05','0','0'); -- id=5632
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01992', '151', '161', '1992', '30', '900', '27000.00', '0', '', '2026-10-14 17:18:43', '1992','','','0','0','0','0','0',null,'900','27000','0','0','0','0','0','0','0','0','1'); -- id=934
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:14:05', 1, 1992, 0, 0
                    , 900, 30, 0, 0, 1, '2026-10-14 17:18:43')
                ON DUPLICATE KEY UPDATE buyprice = 900,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:18:43' ; -- id=1210
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1992', '900', '30', '0', 'buyBillController.php', '934', '', '0', '0'); -- id=717
UPDATE product SET  productBuyPrice = "900" WHERE productId = 1992 ;
UPDATE buybilldetail SET  quantitybefore = 30 WHERE buybilldetailid = 934 ;
UPDATE product SET productName = 'موديلات 950 فور ماكس ', productDescription = '', productCatId = '161', productBuyPrice = '900.00', productSellAllPrice = '950.00', productSellUnitPrice = '950.00', productSellHalfPrice = '950.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01992',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '900',lastbuyprice_withDiscount = '900',meanbuyprice = '900',meanbuyprice_withDiscount = '900' , productbuypricereal = '900.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.56' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='900',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='900',meanbuyprice_withTax='900',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='900',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1992';
UPDATE buybilldetail SET  lastbuyprice = 900 , meanbuyprice = 900, lastbuyprice_withDiscount = 900, meanbuyprice_withDiscount = 900
        , lastbuyprice_withTax = 900, meanbuyprice_withTax = 900, lastbuyprice_withDiscountAndTax = 900
                where buybilldetailid = 934;
UPDATE productunit SET proUnitBuyPrice  = 900 * productnumber WHERE productid = 1992;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3009';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1992', '1', '30', '0', '151', 'اضافة فاتورة مشتريات', 'buyBillController.php', '30', '60', '1', '2026-10-14 17:14:05','0','0'); -- id=5633
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01990', '151', '161', '1990', '30', '800', '24000.00', '0', '', '2026-10-14 17:18:43', '1990','','','0','0','0','0','0',null,'800','24000','0','0','0','0','0','0','0','0','1'); -- id=935
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:14:05', 1, 1990, 0, 0
                    , 800, 30, 0, 0, 1, '2026-10-14 17:18:43')
                ON DUPLICATE KEY UPDATE buyprice = 800,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:18:43' ; -- id=1209
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1990', '800', '30', '0', 'buyBillController.php', '935', '', '0', '0'); -- id=718
UPDATE product SET  productBuyPrice = "800" WHERE productId = 1990 ;
UPDATE buybilldetail SET  quantitybefore = 150 WHERE buybilldetailid = 935 ;
UPDATE product SET productName = 'موديلات 850 فور ماكس ', productDescription = '', productCatId = '161', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01990',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.25' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='800',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1990';
UPDATE buybilldetail SET  lastbuyprice = 800 , meanbuyprice = 800, lastbuyprice_withDiscount = 800, meanbuyprice_withDiscount = 800
        , lastbuyprice_withTax = 800, meanbuyprice_withTax = 800, lastbuyprice_withDiscountAndTax = 800
                where buybilldetailid = 935;
UPDATE productunit SET proUnitBuyPrice  = 800 * productnumber WHERE productid = 1990;
UPDATE storedetail SET  productquantity = '180', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3007';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1990', '1', '30', '0', '151', 'اضافة فاتورة مشتريات', 'buyBillController.php', '150', '180', '1', '2026-10-14 17:14:05','0','0'); -- id=5634
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01990', '151', '161', '1990', '30', '800', '24000.00', '0', '', '2026-10-14 17:18:43', '1990','','','0','0','0','0','0',null,'800','24000','0','0','0','0','0','0','0','0','1'); -- id=936
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:14:05', 1, 1990, 0, 0
                    , 800, 30, 0, 0, 1, '2026-10-14 17:18:43')
                ON DUPLICATE KEY UPDATE buyprice = 800,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:18:43' ; -- id=1209
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1990', '800', '30', '0', 'buyBillController.php', '936', '', '0', '0'); -- id=719
UPDATE product SET  productBuyPrice = "800" WHERE productId = 1990 ;
UPDATE buybilldetail SET  quantitybefore = 180 WHERE buybilldetailid = 936 ;
UPDATE product SET productName = 'موديلات 850 فور ماكس ', productDescription = '', productCatId = '161', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01990',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.25' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='800',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1990';
UPDATE buybilldetail SET  lastbuyprice = 800 , meanbuyprice = 800, lastbuyprice_withDiscount = 800, meanbuyprice_withDiscount = 800
        , lastbuyprice_withTax = 800, meanbuyprice_withTax = 800, lastbuyprice_withDiscountAndTax = 800
                where buybilldetailid = 936;
UPDATE productunit SET proUnitBuyPrice  = 800 * productnumber WHERE productid = 1990;
UPDATE storedetail SET  productquantity = '210', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3007';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1990', '1', '30', '0', '151', 'اضافة فاتورة مشتريات', 'buyBillController.php', '180', '210', '1', '2026-10-14 17:14:05','0','0'); -- id=5635
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01991', '151', '161', '1991', '30', '470', '14100.00', '0', '', '2026-10-14 17:18:43', '1991','','','0','0','0','0','0',null,'470','14100','0','0','0','0','0','0','0','0','1'); -- id=937
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:14:05', 1, 1991, 0, 0
                    , 470, 30, 0, 0, 1, '2026-10-14 17:18:43')
                ON DUPLICATE KEY UPDATE buyprice = 470,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:18:43' ; -- id=1218
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1991', '470', '30', '0', 'buyBillController.php', '937', '', '0', '0'); -- id=720
UPDATE product SET  productBuyPrice = "470" WHERE productId = 1991 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 937 ;
UPDATE product SET productName = 'تيشرت فور ماكس', productDescription = '', productCatId = '161', productBuyPrice = '470.00', productSellAllPrice = '510.00', productSellUnitPrice = '510.00', productSellHalfPrice = '510.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01991',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '470',lastbuyprice_withDiscount = '470',meanbuyprice = '470',meanbuyprice_withDiscount = '470' , productbuypricereal = '470.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.51' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='470',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='470',meanbuyprice_withTax='470',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='470',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1991';
UPDATE buybilldetail SET  lastbuyprice = 470 , meanbuyprice = 470, lastbuyprice_withDiscount = 470, meanbuyprice_withDiscount = 470
        , lastbuyprice_withTax = 470, meanbuyprice_withTax = 470, lastbuyprice_withDiscountAndTax = 470
                where buybilldetailid = 937;
UPDATE productunit SET proUnitBuyPrice  = 470 * productnumber WHERE productid = 1991;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3008';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1991', '1', '30', '0', '151', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 17:14:05','0','0'); -- id=5636
UPDATE supplier SET  suppliercurrentDebt = '236100',suppliercurrentDebtInCurrency= '236100' , userid = '1', supplierdate = '2026-10-14 17:18:43'   WHERE supplierid = '174';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('174', '0.00', '236100', '0', 'اضافة فاتورة مشتريات', '151', '236100', '2026-10-14 17:14:05', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','236100','1','0','236100','236100','0',''); -- id=484
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '236100', '236100', '2026-10-14', '1', '0', '0', '2026-10-14 17:18:43','اضافة فاتورة مشتريات رقم 151','1','0',null,'0','151','buyBillController.php?do=details&id=151'); -- id=2421
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2421', '382', '236100', '','0'); -- id=2477
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22200176.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2421', '657', '236100', '','0'); -- id=2423
UPDATE accountstree SET name = 'فور ماكس', customName = 'فور ماكس', customNameEn = 'فور ماكس', nameEn = 'فور ماكس', parent = '81', accountNature = '1', theValue = '236100', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-14 17:14:24' WHERE id = '657';
update buybill set dailyentryid='2421,0' where buybillid=151;
COMMIT;
UPDATE product SET overAllAveragePrice = 800 WHERE productId = 1990;UPDATE product SET overAllAveragePrice = 470 WHERE productId = 1991;UPDATE product SET overAllAveragePrice = 900 WHERE productId = 1992;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:48:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:18:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 17:18:43', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=151'); -- id=9511
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:48:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:18:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:18:49', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=151&type=2'); -- id=9512
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:52:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:22:12", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 17:22:12', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9513

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf8be80fabc
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 17:22:12', '06acf8be80fabc', '1', '0.00', '0', '0', '1', '13500.00', '13500', '13500', '0', '1', '2026-10-14 17:22:12', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '30' ,'0','','','','','-1','0','0','0','0','0','13500','0','','0','0','13500','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=535
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','535', '0', '2026-10-14 17:22:12', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '13500', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 17:22:12','0','0','',''); -- id=682
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+30 where id = 1080;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('425','01919', '535', '153', '1919', '30', '450', '13500', '0', '', '0', '2026-10-14 17:22:12', '1919', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1080-30,','1','1','0','0','450','13500','0','','0','0.00','0','0','0','0'); -- id=1944
UPDATE sellbilldetail SET  lastbuyprice = 425.00 , meanbuyprice = 425.00, lastbuyprice_withDiscount = 425.00, meanbuyprice_withDiscount = 425.00
        , lastbuyprice_withTax = 425, meanbuyprice_withTax = 425, lastbuyprice_withDiscountAndTax = 425
                where sellbilldetailid = 1944;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1919, '2026-10-14', 13500, 12750, 12750
                    , 12750, 12750, 12750, 12750
                    , 0, 0, 0, 0
                    , 0, 0, 0, 30, 0, 12750, 12750, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+13500, sellCostBuyPrice =sellCostBuyPrice+12750
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+12750, sellCostMeanBuyPrice = sellCostMeanBuyPrice+12750
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+12750, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+12750
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+12750
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+12750
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+12750
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+30
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 13500, 12750, 12750
                    , 12750, 12750, 12750, 12750
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12750, 12750, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+13500, sellCostBuyPrice =sellCostBuyPrice+12750
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+12750, sellCostMeanBuyPrice = sellCostMeanBuyPrice+12750
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+12750, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+12750
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+12750
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+12750
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+12750
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '252', userid = '3', storedetaildate = '2026-10-14 17:22:12' WHERE storedetailid = '2936';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '1', '30', '1', '535', 'اضافة فاتورة مبيعات', 'sellbillController.php', '282', '252', '3', '2026-10-14 17:22:12','0','0'); -- id=5637
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3595640',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3582140','13500', '0', '2', 'اضافة فاتورة مبيعات', '535', '3595640', '2026-10-14 17:22:12', '3',  'sellbillController.php','1','','0'); -- id=674
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '13500', '13500', '2026-10-14', '3', '0', '0', '2026-10-14 17:22:12','اضافة فاتورة مبيعات رقم 535','1','0',null,'0','535','sellbillController.php?do=showDetail&sellbillid=535'); -- id=2422
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2422', '419', '13500', '','0'); -- id=2478
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3595640', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2422', '143', '13500', '','0'); -- id=2424
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5839950', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '12750', '12750', '2026-10-14', '3', '0', '0', '2026-10-14 17:22:12','اضافة فاتورة مبيعات رقم 535 - صرف البضاعة من المخزن','1','0',null,'0','535','sellbillController.php?do=showDetail&sellbillid=535'); -- id=2423
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2423', '402', '12750', '','0'); -- id=2479
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5445728.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2423', '382', '12750', '','0'); -- id=2425
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22187426.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2422,0,2423' where sellbillid=535;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 13500, 12750, 12750
                    , 12750, 12750, 12750, 12750
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,12750, 12750, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+13500, sellCostBuyPrice =sellCostBuyPrice+12750
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+12750, sellCostMeanBuyPrice = sellCostMeanBuyPrice+12750
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+12750, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+12750
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+12750
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+12750
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+12750
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 13500, 12750, 12750
                    , 12750, 12750, 12750, 12750
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,12750, 12750, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+13500, sellCostBuyPrice =sellCostBuyPrice+12750
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+12750, sellCostMeanBuyPrice = sellCostMeanBuyPrice+12750
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+12750, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+12750
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+12750
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+12750
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+12750
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 13500, 12750, 12750
                    , 12750, 12750, 12750, 12750, 12750, 12750)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+13500, netSellCostBuyPrice = netSellCostBuyPrice+12750
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+12750
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+12750
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+12750
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+12750
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+12750
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+12750
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+12750;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf8be80fabc and sellbillId = 535 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:52:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:22:12", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 17:22:12', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9514
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:52:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:22:29", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-10-14 17:22:29', '6', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/savedailyController.php'); -- id=9515
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:52:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:22:29", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-10-14 17:22:29', '6', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/savedailyController.php'); -- id=9516
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:55:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:25:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:25:00', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=151&type=2'); -- id=9517
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:55:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:25:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 17:25:33', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9518
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 13:55:33";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 17:25:33', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9519
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:56:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:26:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 17:26:29', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9520
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:56:36";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:26:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 17:26:36', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=151'); -- id=9521
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:56:38";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:26:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 17:26:38', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9522
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:57:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:27:44", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-10-14 17:27:44', '6', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/savedailyController.php'); -- id=9523
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:57:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:27:45", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-10-14 17:27:45', '6', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/savedailyController.php'); -- id=9524
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:57:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:27:49", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 17:27:49', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9525
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:57:51";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:27:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierDeficitController.php', '2026-10-14 17:27:51', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierDeficitController.php'); -- id=9526
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:58:06";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:28:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierDeficitController.php', '2026-10-14 17:28:06', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierDeficitController.php?do=add'); -- id=9527
BEGIN;
CALL supplierInUse(57,@supplierdebt,@suppliername,@dailyentryid,@treeIdis);
UPDATE supplier SET  suppliercurrentDebt = '23610',suppliercurrentDebtInCurrency= '23610' , userid = '1', supplierdate = '26-10-14'   WHERE supplierid = '57';
UPDATE supplier SET  inUse = 0 where supplierid = 57;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '600', '600', '2026-10-14', '1', '0', '0', '2026-10-14 17:28:06','تسوية عجز مورد بالخصم','1','0','0','0','0',''); -- id=2424
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2424', '476', '600', '','0'); -- id=2480
UPDATE accountstree SET name = 'الحرمين - مورد', customName = 'الحرمين - مورد', customNameEn = 'الحرمين - مورد', nameEn = 'الحرمين - مورد', parent = '81', accountNature = '1', theValue = '-10600', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '476';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2424', '146', '600', '','0'); -- id=2426
UPDATE accountstree SET name = 'ايرادات الخصم المكتسب', customName = 'ايرادات الخصم المكتسب', customNameEn = 'Acquired Discount Revenues', nameEn = 'Acquired Discount Revenues', parent = '147', accountNature = '1', theValue = '5528995', theOrder = '0', layingOrder = '4203', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Other Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:41' WHERE id = '146';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('57', '24210.00', '600', '1', 'تسوية عجز مورد بالخصم', '-1', '23610', '2026-10-14 17:28:06', '1', 'supplierDeficitController.php', 'خصم الرجاله', '2424','', '0','1','1','600','1','0','0','0','0',''); -- id=485
UPDATE supplierdebtchange SET supplierid = '57', supplierdebtchangebefore = '24210.00', supplierdebtchangeamount = '600', supplierdebtchangetype = '1', processname = 'تسوية عجز مورد بالخصم', supplierdebtchangemodelid = '-1', supplierdebtchangeafter = '23610', supplierdebtchangedate = '2026-10-14 17:28:06', userid = '1', tablename = 'supplierDeficitController.php', comment = 'خصم الرجاله', dailyentryid = '2424',saveid = '',currencyId='1',conversionFactor='1',payedInCurrency='600',saveConversionFactor='1',debtchangbeforeInSupplierCurrency='23610',debtchangamountInSupplierCurrency='600',debtchangafterInSupplierCurrency='23610', paySerialNo='0',tagids='' WHERE supplierdebtchangeid = '485';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:58:06";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:28:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierDeficitController.php', '2026-10-14 17:28:06', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierDeficitController.php?do=sucess'); -- id=9528
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:58:08";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:28:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierDeficitController.php', '2026-10-14 17:28:08', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierDeficitController.php?do=show'); -- id=9529
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:58:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:28:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 17:28:43', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9530
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:58:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:28:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 17:28:49', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9531
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:58:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:28:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 17:28:57', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9532
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:59:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:29:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 17:29:04', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9533
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:59:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:29:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 17:29:32', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9534
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 13:59:36";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:29:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 17:29:36', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9535
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:00:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:30:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:30:50', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9536
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:00:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:30:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:30:59', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9537
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:01:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:31:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:31:29', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9538
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:04:38";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:34:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:34:38', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9539
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('نايك اوفر سايز ميرور','','78','360','385','385','385','2026-10-14','0','1','0','','0','0','0','0','0','360','360','360','360','360','0','6.94','0','0','.','0','0','0','360','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','360','360','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','360','0','0','0','0','0','0','','','0','0','0','0'); -- id=1993
UPDATE product SET productName = 'نايك اوفر سايز ميرور', productDescription = '', productCatId = '78', productBuyPrice = '360', productSellAllPrice = '385', productSellUnitPrice = '385', productSellHalfPrice = '385', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01993',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 = '6.94' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1993';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1993', '1', '2026-10-14', '1', '0','0199301','385','385','385','360','','0','0','0','0','0','0','0','0','0','0'); -- id=1993
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1993', '1', '0', '1', '2026-10-14'); -- id=3010
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1993', '1', '0', '0', '1993', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5638
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1993, 1,'2026-10-14 17:34:38',1)
                ON DUPLICATE KEY UPDATE productid = 1993, edited = 1, sysdate = '2026-10-14 17:34:38', userid = 1; -- id=2945
UPDATE product SET productName = 'نايك اوفر سايز ميرور', productDescription = '', productCatId = '78', productBuyPrice = '360.00', productSellAllPrice = '385.00', productSellUnitPrice = '385.00', productSellHalfPrice = '385.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01993',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 = '6.94' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1993';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('شروال قصات ميرور','','78','380','405','405','405','2026-10-14','0','1','0','','0','0','0','0','0','380','380','380','380','380','0','6.58','0','0','.','0','0','0','380','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','380','380','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','380','0','0','0','0','0','0','','','0','0','0','0'); -- id=1994
UPDATE product SET productName = 'شروال قصات ميرور', productDescription = '', productCatId = '78', productBuyPrice = '380', productSellAllPrice = '405', productSellUnitPrice = '405', productSellHalfPrice = '405', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01994',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '380',meanbuyprice = '380',meanbuyprice_withDiscount = '380' , productbuypricereal = '380' , buypricereal_precentage = '0' , buytotal_precentage = '6.58' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='380',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1994';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1994', '1', '2026-10-14', '1', '0','0199401','405','405','405','380','','0','0','0','0','0','0','0','0','0','0'); -- id=1994
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1994', '1', '0', '1', '2026-10-14'); -- id=3011
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1994', '1', '0', '0', '1994', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5639
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1994, 1,'2026-10-14 17:34:38',1)
                ON DUPLICATE KEY UPDATE productid = 1994, edited = 1, sysdate = '2026-10-14 17:34:38', userid = 1; -- id=2946
UPDATE product SET productName = 'شروال قصات ميرور', productDescription = '', productCatId = '78', productBuyPrice = '380.00', productSellAllPrice = '405.00', productSellUnitPrice = '405.00', productSellHalfPrice = '405.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01994',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '380',meanbuyprice = '380',meanbuyprice_withDiscount = '380' , productbuypricereal = '380' , buypricereal_precentage = '0' , buytotal_precentage = '6.58' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='380',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1994';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('اوفر سايز ميرور','','78','370','395','395','395','2026-10-14','0','1','0','','0','0','0','0','0','370','370','370','370','370','0','6.76','0','0','.','0','0','0','370','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','370','370','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','370','0','0','0','0','0','0','','','0','0','0','0'); -- id=1995
UPDATE product SET productName = 'اوفر سايز ميرور', productDescription = '', productCatId = '78', productBuyPrice = '370', productSellAllPrice = '395', productSellUnitPrice = '395', productSellHalfPrice = '395', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01995',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 = '6.76' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1995';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1995', '1', '2026-10-14', '1', '0','0199501','395','395','395','370','','0','0','0','0','0','0','0','0','0','0'); -- id=1995
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1995', '1', '0', '1', '2026-10-14'); -- id=3012
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1995', '1', '0', '0', '1995', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5640
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1995, 1,'2026-10-14 17:34:38',1)
                ON DUPLICATE KEY UPDATE productid = 1995, edited = 1, sysdate = '2026-10-14 17:34:38', userid = 1; -- id=2947
UPDATE product SET productName = 'اوفر سايز ميرور', productDescription = '', productCatId = '78', productBuyPrice = '370.00', productSellAllPrice = '395.00', productSellUnitPrice = '395.00', productSellHalfPrice = '395.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01995',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 = '6.76' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1995';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('وايد ليج نايك ميرور','','78','375','400','400','400','2026-10-14','0','1','0','','0','0','0','0','0','375','375','375','375','375','0','6.67','0','0','.','0','0','0','375','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','375','375','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','375','0','0','0','0','0','0','','','0','0','0','0'); -- id=1996
UPDATE product SET productName = 'وايد ليج نايك ميرور', productDescription = '', productCatId = '78', productBuyPrice = '375', productSellAllPrice = '400', productSellUnitPrice = '400', productSellHalfPrice = '400', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01996',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '375',lastbuyprice_withDiscount = '375',meanbuyprice = '375',meanbuyprice_withDiscount = '375' , productbuypricereal = '375' , buypricereal_precentage = '0' , buytotal_precentage = '6.67' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='375',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='375',meanbuyprice_withTax='375',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='375',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1996';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1996', '1', '2026-10-14', '1', '0','0199601','400','400','400','375','','0','0','0','0','0','0','0','0','0','0'); -- id=1996
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1996', '1', '0', '1', '2026-10-14'); -- id=3013
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1996', '1', '0', '0', '1996', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5641
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1996, 1,'2026-10-14 17:34:38',1)
                ON DUPLICATE KEY UPDATE productid = 1996, edited = 1, sysdate = '2026-10-14 17:34:38', userid = 1; -- id=2948
UPDATE product SET productName = 'وايد ليج نايك ميرور', productDescription = '', productCatId = '78', productBuyPrice = '375.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01996',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '375',lastbuyprice_withDiscount = '375',meanbuyprice = '375',meanbuyprice_withDiscount = '375' , productbuypricereal = '375' , buypricereal_precentage = '0' , buytotal_precentage = '6.67' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='375',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='375',meanbuyprice_withTax='375',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='375',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1996';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('اوفر سايز بنز كبير ميرور','','78','365','390','390','390','2026-10-14','0','1','0','','0','0','0','0','0','365','365','365','365','365','0','6.85','0','0','.','0','0','0','365','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','365','365','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','365','0','0','0','0','0','0','','','0','0','0','0'); -- id=1997
UPDATE product SET productName = 'اوفر سايز بنز كبير ميرور', productDescription = '', productCatId = '78', productBuyPrice = '365', productSellAllPrice = '390', productSellUnitPrice = '390', productSellHalfPrice = '390', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01997',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '365',lastbuyprice_withDiscount = '365',meanbuyprice = '365',meanbuyprice_withDiscount = '365' , productbuypricereal = '365' , buypricereal_precentage = '0' , buytotal_precentage = '6.85' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='365',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1997';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1997', '1', '2026-10-14', '1', '0','0199701','390','390','390','365','','0','0','0','0','0','0','0','0','0','0'); -- id=1997
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1997', '1', '0', '1', '2026-10-14'); -- id=3014
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1997', '1', '0', '0', '1997', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5642
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1997, 1,'2026-10-14 17:34:38',1)
                ON DUPLICATE KEY UPDATE productid = 1997, edited = 1, sysdate = '2026-10-14 17:34:38', userid = 1; -- id=2949
UPDATE product SET productName = 'اوفر سايز بنز كبير ميرور', productDescription = '', productCatId = '78', productBuyPrice = '365.00', productSellAllPrice = '390.00', productSellUnitPrice = '390.00', productSellHalfPrice = '390.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01997',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '365',lastbuyprice_withDiscount = '365',meanbuyprice = '365',meanbuyprice_withDiscount = '365' , productbuypricereal = '365' , buypricereal_precentage = '0' , buytotal_precentage = '6.85' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='365',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1997';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('وايد ليج اديداس ميرور','','78','395','420','420','420','2026-10-14','0','1','0','','0','0','0','0','0','395','395','395','395','395','0','6.33','0','0','.','0','0','0','395','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','395','395','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','395','0','0','0','0','0','0','','','0','0','0','0'); -- id=1998
UPDATE product SET productName = 'وايد ليج اديداس ميرور', productDescription = '', productCatId = '78', productBuyPrice = '395', productSellAllPrice = '420', productSellUnitPrice = '420', productSellHalfPrice = '420', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01998',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '395',lastbuyprice_withDiscount = '395',meanbuyprice = '395',meanbuyprice_withDiscount = '395' , productbuypricereal = '395' , buypricereal_precentage = '0' , buytotal_precentage = '6.33' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='395',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='395',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1998';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1998', '1', '2026-10-14', '1', '0','0199801','420','420','420','395','','0','0','0','0','0','0','0','0','0','0'); -- id=1998
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1998', '1', '0', '1', '2026-10-14'); -- id=3015
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1998', '1', '0', '0', '1998', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5643
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1998, 1,'2026-10-14 17:34:38',1)
                ON DUPLICATE KEY UPDATE productid = 1998, edited = 1, sysdate = '2026-10-14 17:34:38', userid = 1; -- id=2950
UPDATE product SET productName = 'وايد ليج اديداس ميرور', productDescription = '', productCatId = '78', productBuyPrice = '395.00', productSellAllPrice = '420.00', productSellUnitPrice = '420.00', productSellHalfPrice = '420.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01998',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '395',lastbuyprice_withDiscount = '395',meanbuyprice = '395',meanbuyprice_withDiscount = '395' , productbuypricereal = '395' , buypricereal_precentage = '0' , buytotal_precentage = '6.33' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='395',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='395',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1998';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('بالون فيت قصاتميرور','','78','410','435','435','435','2026-10-14','0','1','0','','0','0','0','0','0','410','410','410','410','410','0','6.1','0','0','.','0','0','0','410','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','410','410','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','410','0','0','0','0','0','0','','','0','0','0','0'); -- id=1999
UPDATE product SET productName = 'بالون فيت قصاتميرور', productDescription = '', productCatId = '78', productBuyPrice = '410', productSellAllPrice = '435', productSellUnitPrice = '435', productSellHalfPrice = '435', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01999',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 = '6.1' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1999';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '1999', '1', '2026-10-14', '1', '0','0199901','435','435','435','410','','0','0','0','0','0','0','0','0','0','0'); -- id=1999
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1999', '1', '0', '1', '2026-10-14'); -- id=3016
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1999', '1', '0', '0', '1999', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5644
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1999, 1,'2026-10-14 17:34:38',1)
                ON DUPLICATE KEY UPDATE productid = 1999, edited = 1, sysdate = '2026-10-14 17:34:38', userid = 1; -- id=2951
UPDATE product SET productName = 'بالون فيت قصاتميرور', productDescription = '', productCatId = '78', productBuyPrice = '410.00', productSellAllPrice = '435.00', productSellUnitPrice = '435.00', productSellHalfPrice = '435.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01999',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 = '6.1' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1999';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:04:40";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:34:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:34:40', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9540
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:04:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:34:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 17:34:42', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9541
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:05:26";
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:06:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:36:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 17:36:28', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9542
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf93029b445', '2026-10-14 17:34:42', '61', '-109307.05', '49992.95', '0', '0', '159300.00',  '159300.00', '0', '159300', '1', '2026-10-14 17:36:28', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=152
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01993', '152', '78', '1993', '60', '360', '21600.00', '0', '', '2026-10-14 17:36:28', '1993','','','0','0','0','0','0',null,'360','21600','0','0','0','0','0','0','0','0','1'); -- id=938
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1993, 0, 0
                    , 360, 60, 0, 0, 1, '2026-10-14 17:36:28')
                ON DUPLICATE KEY UPDATE buyprice = 360,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:36:28' ; -- id=1219
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1993', '360', '60', '0', 'buyBillController.php', '938', '', '0', '0'); -- id=721
UPDATE product SET  productBuyPrice = "360" WHERE productId = 1993 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 938 ;
UPDATE product SET productName = 'نايك اوفر سايز ميرور', productDescription = '', productCatId = '78', productBuyPrice = '360.00', productSellAllPrice = '385.00', productSellUnitPrice = '385.00', productSellHalfPrice = '385.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01993',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '360',meanbuyprice = '360',meanbuyprice_withDiscount = '360' , productbuypricereal = '360.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.94' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1993';
UPDATE buybilldetail SET  lastbuyprice = 360 , meanbuyprice = 360, lastbuyprice_withDiscount = 360, meanbuyprice_withDiscount = 360
        , lastbuyprice_withTax = 360, meanbuyprice_withTax = 360, lastbuyprice_withDiscountAndTax = 360
                where buybilldetailid = 938;
UPDATE productunit SET proUnitBuyPrice  = 360 * productnumber WHERE productid = 1993;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3010';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1993', '1', '60', '0', '152', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '60', '1', '2026-10-14 17:34:42','0','0'); -- id=5645
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01994', '152', '78', '1994', '60', '380', '22800.00', '0', '', '2026-10-14 17:36:28', '1994','','','0','0','0','0','0',null,'380','22800','0','0','0','0','0','0','0','0','1'); -- id=939
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1994, 0, 0
                    , 380, 60, 0, 0, 1, '2026-10-14 17:36:28')
                ON DUPLICATE KEY UPDATE buyprice = 380,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:36:28' ; -- id=1220
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1994', '380', '60', '0', 'buyBillController.php', '939', '', '0', '0'); -- id=722
UPDATE product SET  productBuyPrice = "380" WHERE productId = 1994 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 939 ;
UPDATE product SET productName = 'شروال قصات ميرور', productDescription = '', productCatId = '78', productBuyPrice = '380.00', productSellAllPrice = '405.00', productSellUnitPrice = '405.00', productSellHalfPrice = '405.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01994',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '380',meanbuyprice = '380',meanbuyprice_withDiscount = '380' , productbuypricereal = '380.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.58' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='380',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1994';
UPDATE buybilldetail SET  lastbuyprice = 380 , meanbuyprice = 380, lastbuyprice_withDiscount = 380, meanbuyprice_withDiscount = 380
        , lastbuyprice_withTax = 380, meanbuyprice_withTax = 380, lastbuyprice_withDiscountAndTax = 380
                where buybilldetailid = 939;
UPDATE productunit SET proUnitBuyPrice  = 380 * productnumber WHERE productid = 1994;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3011';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1994', '1', '60', '0', '152', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '60', '1', '2026-10-14 17:34:42','0','0'); -- id=5646
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01995', '152', '78', '1995', '60', '370', '22200.00', '0', '', '2026-10-14 17:36:28', '1995','','','0','0','0','0','0',null,'370','22200','0','0','0','0','0','0','0','0','1'); -- id=940
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1995, 0, 0
                    , 370, 60, 0, 0, 1, '2026-10-14 17:36:28')
                ON DUPLICATE KEY UPDATE buyprice = 370,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:36:28' ; -- id=1221
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1995', '370', '60', '0', 'buyBillController.php', '940', '', '0', '0'); -- id=723
UPDATE product SET  productBuyPrice = "370" WHERE productId = 1995 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 940 ;
UPDATE product SET productName = 'اوفر سايز ميرور', productDescription = '', productCatId = '78', productBuyPrice = '370.00', productSellAllPrice = '395.00', productSellUnitPrice = '395.00', productSellHalfPrice = '395.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01995',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.76' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1995';
UPDATE buybilldetail SET  lastbuyprice = 370 , meanbuyprice = 370, lastbuyprice_withDiscount = 370, meanbuyprice_withDiscount = 370
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 370
                where buybilldetailid = 940;
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 1995;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3012';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1995', '1', '60', '0', '152', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '60', '1', '2026-10-14 17:34:42','0','0'); -- id=5647
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01996', '152', '78', '1996', '60', '375', '22500.00', '0', '', '2026-10-14 17:36:28', '1996','','','0','0','0','0','0',null,'375','22500','0','0','0','0','0','0','0','0','1'); -- id=941
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1996, 0, 0
                    , 375, 60, 0, 0, 1, '2026-10-14 17:36:29')
                ON DUPLICATE KEY UPDATE buyprice = 375,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:36:29' ; -- id=1222
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1996', '375', '60', '0', 'buyBillController.php', '941', '', '0', '0'); -- id=724
UPDATE product SET  productBuyPrice = "375" WHERE productId = 1996 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 941 ;
UPDATE product SET productName = 'وايد ليج نايك ميرور', productDescription = '', productCatId = '78', productBuyPrice = '375.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01996',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '375',lastbuyprice_withDiscount = '375',meanbuyprice = '375',meanbuyprice_withDiscount = '375' , productbuypricereal = '375.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.67' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='375',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='375',meanbuyprice_withTax='375',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='375',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1996';
UPDATE buybilldetail SET  lastbuyprice = 375 , meanbuyprice = 375, lastbuyprice_withDiscount = 375, meanbuyprice_withDiscount = 375
        , lastbuyprice_withTax = 375, meanbuyprice_withTax = 375, lastbuyprice_withDiscountAndTax = 375
                where buybilldetailid = 941;
UPDATE productunit SET proUnitBuyPrice  = 375 * productnumber WHERE productid = 1996;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3013';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1996', '1', '60', '0', '152', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '60', '1', '2026-10-14 17:34:42','0','0'); -- id=5648
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01997', '152', '78', '1997', '60', '365', '21900.00', '0', '', '2026-10-14 17:36:28', '1997','','','0','0','0','0','0',null,'365','21900','0','0','0','0','0','0','0','0','1'); -- id=942
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1997, 0, 0
                    , 365, 60, 0, 0, 1, '2026-10-14 17:36:29')
                ON DUPLICATE KEY UPDATE buyprice = 365,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:36:29' ; -- id=1223
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1997', '365', '60', '0', 'buyBillController.php', '942', '', '0', '0'); -- id=725
UPDATE product SET  productBuyPrice = "365" WHERE productId = 1997 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 942 ;
UPDATE product SET productName = 'اوفر سايز بنز كبير ميرور', productDescription = '', productCatId = '78', productBuyPrice = '365.00', productSellAllPrice = '390.00', productSellUnitPrice = '390.00', productSellHalfPrice = '390.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01997',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '365',lastbuyprice_withDiscount = '365',meanbuyprice = '365',meanbuyprice_withDiscount = '365' , productbuypricereal = '365.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.85' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='365',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1997';
UPDATE buybilldetail SET  lastbuyprice = 365 , meanbuyprice = 365, lastbuyprice_withDiscount = 365, meanbuyprice_withDiscount = 365
        , lastbuyprice_withTax = 365, meanbuyprice_withTax = 365, lastbuyprice_withDiscountAndTax = 365
                where buybilldetailid = 942;
UPDATE productunit SET proUnitBuyPrice  = 365 * productnumber WHERE productid = 1997;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3014';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1997', '1', '60', '0', '152', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '60', '1', '2026-10-14 17:34:42','0','0'); -- id=5649
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01998', '152', '78', '1998', '60', '395', '23700.00', '0', '', '2026-10-14 17:36:28', '1998','','','0','0','0','0','0',null,'395','23700','0','0','0','0','0','0','0','0','1'); -- id=943
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1998, 0, 0
                    , 395, 60, 0, 0, 1, '2026-10-14 17:36:29')
                ON DUPLICATE KEY UPDATE buyprice = 395,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:36:29' ; -- id=1224
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1998', '395', '60', '0', 'buyBillController.php', '943', '', '0', '0'); -- id=726
UPDATE product SET  productBuyPrice = "395" WHERE productId = 1998 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 943 ;
UPDATE product SET productName = 'وايد ليج اديداس ميرور', productDescription = '', productCatId = '78', productBuyPrice = '395.00', productSellAllPrice = '420.00', productSellUnitPrice = '420.00', productSellHalfPrice = '420.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01998',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '395',lastbuyprice_withDiscount = '395',meanbuyprice = '395',meanbuyprice_withDiscount = '395' , productbuypricereal = '395.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.33' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='395',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='395',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1998';
UPDATE buybilldetail SET  lastbuyprice = 395 , meanbuyprice = 395, lastbuyprice_withDiscount = 395, meanbuyprice_withDiscount = 395
        , lastbuyprice_withTax = 395, meanbuyprice_withTax = 395, lastbuyprice_withDiscountAndTax = 395
                where buybilldetailid = 943;
UPDATE productunit SET proUnitBuyPrice  = 395 * productnumber WHERE productid = 1998;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3015';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1998', '1', '60', '0', '152', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '60', '1', '2026-10-14 17:34:42','0','0'); -- id=5650
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01999', '152', '78', '1999', '60', '410', '24600.00', '0', '', '2026-10-14 17:36:28', '1999','','','0','0','0','0','0',null,'410','24600','0','0','0','0','0','0','0','0','1'); -- id=944
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1999, 0, 0
                    , 410, 60, 0, 0, 1, '2026-10-14 17:36:29')
                ON DUPLICATE KEY UPDATE buyprice = 410,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 17:36:29' ; -- id=1225
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1999', '410', '60', '0', 'buyBillController.php', '944', '', '0', '0'); -- id=727
UPDATE product SET  productBuyPrice = "410" WHERE productId = 1999 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 944 ;
UPDATE product SET productName = 'بالون فيت قصاتميرور', productDescription = '', productCatId = '78', productBuyPrice = '410.00', productSellAllPrice = '435.00', productSellUnitPrice = '435.00', productSellHalfPrice = '435.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01999',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '410',lastbuyprice_withDiscount = '410',meanbuyprice = '410',meanbuyprice_withDiscount = '410' , productbuypricereal = '410.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.10' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1999';
UPDATE buybilldetail SET  lastbuyprice = 410 , meanbuyprice = 410, lastbuyprice_withDiscount = 410, meanbuyprice_withDiscount = 410
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 410, lastbuyprice_withDiscountAndTax = 410
                where buybilldetailid = 944;
UPDATE productunit SET proUnitBuyPrice  = 410 * productnumber WHERE productid = 1999;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3016';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1999', '1', '60', '0', '152', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '60', '1', '2026-10-14 17:34:42','0','0'); -- id=5651
UPDATE supplier SET  suppliercurrentDebt = '49992.95',suppliercurrentDebtInCurrency= '49992.95' , userid = '1', supplierdate = '2026-10-14 17:36:28'   WHERE supplierid = '61';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('61', '-109307.05', '159300', '0', 'اضافة فاتورة مشتريات', '152', '49992.95', '2026-10-14 17:34:42', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','159300','1','-109307.05','159300','49992.95','0',''); -- id=486
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '159300', '159300', '2026-10-14', '1', '0', '0', '2026-10-14 17:36:29','اضافة فاتورة مشتريات رقم 152','1','0',null,'0','152','buyBillController.php?do=details&id=152'); -- id=2425
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2425', '382', '159300', '','0'); -- id=2481
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22346726.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2425', '480', '159300', '','0'); -- id=2427
UPDATE accountstree SET name = 'ميرور - مورد', customName = 'ميرور - مورد', customNameEn = 'ميرور - مورد', nameEn = 'ميرور - مورد', parent = '81', accountNature = '1', theValue = '-180700', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '480';
update buybill set dailyentryid='2425,0' where buybillid=152;
COMMIT;
UPDATE product SET overAllAveragePrice = 360 WHERE productId = 1993;UPDATE product SET overAllAveragePrice = 380 WHERE productId = 1994;UPDATE product SET overAllAveragePrice = 370 WHERE productId = 1995;UPDATE product SET overAllAveragePrice = 375 WHERE productId = 1996;UPDATE product SET overAllAveragePrice = 365 WHERE productId = 1997;UPDATE product SET overAllAveragePrice = 395 WHERE productId = 1998;UPDATE product SET overAllAveragePrice = 410 WHERE productId = 1999;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:06:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:36:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 17:36:29', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=152'); -- id=9543
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:06:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:36:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:36:33', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=152&type=2'); -- id=9544
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:07:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:37:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 17:37:09', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9545
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:07:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:37:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:37:12', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9546
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:07:13";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:37:13", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 17:37:13', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=5'); -- id=9547
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:07:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:37:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:37:26', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9548
UPDATE product SET productName = 'بالون فيت قصات ميرور', productDescription = '', productCatId = '78', productBuyPrice = '410.00', productSellAllPrice = '435.00', productSellUnitPrice = '435.00', productSellHalfPrice = '435.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01999',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '410.00',lastbuyprice_withDiscount = '410',meanbuyprice = '410.00',meanbuyprice_withDiscount = '410' , productbuypricereal = '410.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.10' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1999';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1999, 1,'2026-10-14 17:37:33',1)
                ON DUPLICATE KEY UPDATE productid = 1999, edited = 1, sysdate = '2026-10-14 17:37:33', userid = 1; -- id=2951
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:07:36";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:37:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:37:36', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=152&type=2'); -- id=9549
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:07:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:37:50", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 17:37:50', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9550

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf9399c55ac
-- ----------------------------------------------------------------------------------------------------

BEGIN;
INSERT INTO returnsellbill (returnsellbilldate, returnsellbillserial, returnsellbillclientid, returnsellbilltotaldeptbefor, returnsellbilltotaldeptafter, returnsellbilldiscount, returnsellbilldiscounttype, returnsellbilltotalbill, returnsellbillaftertotalbill, returnsellbilltotalpayed, returnsellbillfinalbill, returnsellbillstoreid, returnsellbillsysdate,comment, userid, conditions, returnsellbillclientname, returnsellbillsaveid, returnsellbildirectpayment, billnameid, sellerid, tempclientName, returnsellQuantity,tax, carnumber, cartype, carchase, carmotor,costcenterid,dailyentryid,delbyuserid,billReservation,billReservationDate,visaAccountId,cashPayed,visaPayed,isBankAccountTransfer,extraDiscountPer,extraDiscountVal,taxOfDiscountPer,taxOfDiscountVal,autoSaveFlag,obgyBillType,billoperationid,obygyVisitId,pricetype,currencyId,sellbillno,returnsellbilltypeclientid) VALUES ('2026-10-14 17:37:50', '06acf9399c55ac', '1', '0.00', '0', '0', '1', '320', '320', '-320', '0', '1', '2026-10-14 17:37:50', '', '3', '0', 'نقدي','2', '0', '5', '0', 'نقدي', '1', '0', '', '','','','-1','0','0','0','','0','-320','0','0','0','0','0','0','0','0','-1','0','0','1','','0'); -- id=18
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','1','اضافة فاتورة مردوات مبيعات','18', '0', '2026-10-14 17:37:50', '3', 'returnsellbillController.php', 'اضافة فاتورة مردوات مبيعات', '320', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 17:37:50','0','0','',''); -- id=683
INSERT INTO returnsellbilldetail (buyprice, parcode, returnsellbillid, returnsellbilldetailcatid, returnsellbilldetailproductid, returnsellbilldetailquantity, returnsellbilldetailprice, returnsellbilldetailtotalprice, conditions, note, pricetype, discountvalue, productunitid, buydiscount, buydiscounttype,storeid,discounttype,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,pricetypepro,proHeight,proWidth,soldSerialsInDetails,lastbuyprice_withTax,meanbuyprice_withTax,returnsellbilldetailpriceC,returnsellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,lastbuyprice_withDiscountAndTax) VALUES ('300.00', '08583', '18', '13', '773', '1', '320', '320', '0', '', '0', '0', '773', '0.00', '0','1','0','','','0','0','0','0','0','0','1','1','','0','0','320','320','0','','0'); -- id=26
UPDATE returnsellbilldetail SET  lastbuyprice = 300.00 , meanbuyprice = 300.00, lastbuyprice_withDiscount = 300.00, meanbuyprice_withDiscount = 300.00
        , lastbuyprice_withTax = 300, meanbuyprice_withTax = 300, lastbuyprice_withDiscountAndTax = 300
                where returnsellbilldetailid = 26;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (773, '2026-10-14', 0, 0, 0
                    , 0, 0, 0, 0
                    , 320, 300, 300, 300
                    , 300, 300, 300, 0, 1, 0, 0, 300, 300)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+0, sellCostBuyPrice =sellCostBuyPrice+0
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+0, sellCostMeanBuyPrice = sellCostMeanBuyPrice+0
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+0, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+0
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+0
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+0
                        , returnSellVal = returnSellVal+320, returnSellCostBuyPrice = returnSellCostBuyPrice+300, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+300
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+300, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+300
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+300
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+300
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+300
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+300
                        , netQuantity = netQuantity+0
                        , netQuantityRet = netQuantityRet+1;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 0, 0, 0
                    , 0, 0, 0, 0
                    , 320, 300, 300, 300
                    , 300, 300, 300, 0, 0, 300, 300)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+0, sellCostBuyPrice =sellCostBuyPrice+0
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+0, sellCostMeanBuyPrice = sellCostMeanBuyPrice+0
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+0, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+0
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+0
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+0
                        , returnSellVal = returnSellVal+320, returnSellCostBuyPrice = returnSellCostBuyPrice+300, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+300
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+300, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+300
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+300
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+300
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+300
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+300;
UPDATE storedetail SET  productquantity = '27', userid = '3', storedetaildate = '2026-10-14 17:37:50' WHERE storedetailid = '773';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('773', '1', '1', '0', '18', 'اضافة فاتورة مردودات مبيعات', 'returnsellbillController.php', '26', '27', '3', '2026-10-14 17:37:50','0','0'); -- id=5652
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3595320',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3595640','-320', '1', '2', 'اضافة فاتورة مردوات مبيعات', '18', '3595320', '2026-10-14 17:37:50', '3',  'returnsellbillController.php','1','','0'); -- id=675
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '320', '320', '2026-10-14', '3', '0', '0', '2026-10-14 17:37:50','اضافة فاتورة مردود مبيعات رقم 18','1','0',null,'0','18','returnsellbillController.php?do=showDetail&returnsellbillid=18'); -- id=2426
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2426', '143', '320', '','0'); -- id=2482
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5839630', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2426', '419', '320', '','0'); -- id=2428
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3595320', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '300', '300', '2026-10-14', '3', '0', '0', '2026-10-14 17:37:50','اضافة فاتورة مردود مبيعات رقم 18 - صرف البضاعة من المخزن','1','0',null,'0','18','returnsellbillController.php?do=showDetail&returnsellbillid=18'); -- id=2427
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2427', '382', '300', '','0'); -- id=2483
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22347026.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2427', '402', '300', '','0'); -- id=2429
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5445428.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
update returnsellbill set dailyentryid='2426,0,2427' where returnsellbillid=18;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 0, 0, 0
                    , 0, 0, 0, 0
                    , 320, 300, 300, 300
                    , 300, 300, 300 ,0, 0, 300, 300)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+0, sellCostBuyPrice =sellCostBuyPrice+0
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+0, sellCostMeanBuyPrice = sellCostMeanBuyPrice+0
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+0, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+0
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+0
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+0
                        , returnSellVal = returnSellVal+320, returnSellCostBuyPrice = returnSellCostBuyPrice+300, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+300
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+300, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+300
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+300
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+300
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+300
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+300;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 0, 0, 0
                    , 0, 0, 0, 0
                    , 320, 300, 300, 300
                    , 300, 300, 300 ,0, 0, 300, 300)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+0, sellCostBuyPrice =sellCostBuyPrice+0
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+0, sellCostMeanBuyPrice = sellCostMeanBuyPrice+0
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+0, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+0
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+0
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+0
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+0
                        , returnSellVal = returnSellVal+320, returnSellCostBuyPrice = returnSellCostBuyPrice+300, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+300
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+300, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+300
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+300
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+300
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+300
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+300;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, -320, -300, -300
                    , -300, -300, -300, -300, -300, -300)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+-320, netSellCostBuyPrice = netSellCostBuyPrice+-300
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+-300
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+-300
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+-300
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+-300
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+-300
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+-300
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+-300;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf9399c55ac and sellbillId = 18 and returnsellbillId = 18
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:07:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:37:50", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 17:37:50', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=5'); -- id=9551
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:12:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:42:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:42:10', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9552
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:12:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:42:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:42:44', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9553
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:13:13";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:43:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 17:43:13', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9554
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:17:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:47:12", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 17:47:12', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9555

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf9014816a0
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 17:47:12', '06acf9014816a0', '1', '0.00', '0', '0', '1', '63070.00', '63070', '63070', '0', '1', '2026-10-14 17:47:12', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '146' ,'0','','','','','-1','0','0','0','0','0','63070','0','','0','0','63070','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=536
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','536', '0', '2026-10-14 17:47:12', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '63070', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 17:47:12','0','0','',''); -- id=684
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+5 where id = 1158;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('580','01966', '536', '28', '1966', '5', '600', '3000', '0', '', '0', '2026-10-14 17:47:12', '1966', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1158-5,','1','1','0','0','600','3000','0','','0','0.00','0','0','0','0'); -- id=1945
UPDATE sellbilldetail SET  lastbuyprice = 580.00 , meanbuyprice = 580.00, lastbuyprice_withDiscount = 580.00, meanbuyprice_withDiscount = 580.00
        , lastbuyprice_withTax = 580, meanbuyprice_withTax = 580, lastbuyprice_withDiscountAndTax = 580
                where sellbilldetailid = 1945;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1966, '2026-10-14', 3000, 2900, 2900
                    , 2900, 2900, 2900, 2900
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 2900, 2900, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3000, sellCostBuyPrice =sellCostBuyPrice+2900
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2900, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2900
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2900, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2900
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2900
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2900
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2900
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3000, 2900, 2900
                    , 2900, 2900, 2900, 2900
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2900, 2900, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3000, sellCostBuyPrice =sellCostBuyPrice+2900
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2900, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2900
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2900, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2900
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2900
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2900
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2900
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '15', userid = '3', storedetaildate = '2026-10-14 17:47:12' WHERE storedetailid = '2983';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1966', '1', '5', '1', '536', 'اضافة فاتورة مبيعات', 'sellbillController.php', '20', '15', '3', '2026-10-14 17:47:12','0','0'); -- id=5653
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+5 where id = 1156;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('600','01964', '536', '28', '1964', '5', '620', '3100', '0', '', '0', '2026-10-14 17:47:12', '1964', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1156-5,','1','1','0','0','620','3100','0','','0','0.00','0','0','0','0'); -- id=1946
UPDATE sellbilldetail SET  lastbuyprice = 600.00 , meanbuyprice = 600.00, lastbuyprice_withDiscount = 600.00, meanbuyprice_withDiscount = 600.00
        , lastbuyprice_withTax = 600, meanbuyprice_withTax = 600, lastbuyprice_withDiscountAndTax = 600
                where sellbilldetailid = 1946;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1964, '2026-10-14', 3100, 3000, 3000
                    , 3000, 3000, 3000, 3000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 3000, 3000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3100, sellCostBuyPrice =sellCostBuyPrice+3000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3100, 3000, 3000
                    , 3000, 3000, 3000, 3000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3000, 3000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3100, sellCostBuyPrice =sellCostBuyPrice+3000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '15', userid = '3', storedetaildate = '2026-10-14 17:47:12' WHERE storedetailid = '2981';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1964', '1', '5', '1', '536', 'اضافة فاتورة مبيعات', 'sellbillController.php', '20', '15', '3', '2026-10-14 17:47:12','0','0'); -- id=5654
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('540','09524', '536', '8', '732', '5', '560', '2800', '0', '', '0', '2026-10-14 17:47:12', '732', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','560','2800','0','','0','0.00','0','0','0','0'); -- id=1947
UPDATE sellbilldetail SET  lastbuyprice = 540.00 , meanbuyprice = 540.00, lastbuyprice_withDiscount = 540.00, meanbuyprice_withDiscount = 540.00
        , lastbuyprice_withTax = 540, meanbuyprice_withTax = 540, lastbuyprice_withDiscountAndTax = 540
                where sellbilldetailid = 1947;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (732, '2026-10-14', 2800, 2700, 2700
                    , 2700, 2700, 2700, 2700
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 2700, 2700, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2800, sellCostBuyPrice =sellCostBuyPrice+2700
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2700, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2700
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2700, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2700
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2700
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2700
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2700
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2800, 2700, 2700
                    , 2700, 2700, 2700, 2700
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2700, 2700, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2800, sellCostBuyPrice =sellCostBuyPrice+2700
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2700, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2700
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2700, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2700
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2700
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2700
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2700
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '19', userid = '3', storedetaildate = '2026-10-14 17:47:12' WHERE storedetailid = '732';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('732', '1', '5', '1', '536', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '19', '3', '2026-10-14 17:47:12','0','0'); -- id=5655
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+15 where id = 1164;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('430','01339', '536', '28', '1339', '15', '450', '6750', '0', '', '0', '2026-10-14 17:47:12', '1339', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1164-15,','1','1','0','0','450','6750','0','','0','0.00','0','0','0','0'); -- id=1948
UPDATE sellbilldetail SET  lastbuyprice = 430.00 , meanbuyprice = 430.00, lastbuyprice_withDiscount = 430.00, meanbuyprice_withDiscount = 430.00
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 430
                where sellbilldetailid = 1948;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1339, '2026-10-14', 6750, 6450, 6450
                    , 6450, 6450, 6450, 6450
                    , 0, 0, 0, 0
                    , 0, 0, 0, 15, 0, 6450, 6450, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6750, sellCostBuyPrice =sellCostBuyPrice+6450
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6450, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6450
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6450, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6450
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6450
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6450
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6450
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+15
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 6750, 6450, 6450
                    , 6450, 6450, 6450, 6450
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6450, 6450, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6750, sellCostBuyPrice =sellCostBuyPrice+6450
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6450, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6450
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6450, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6450
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6450
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6450
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6450
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '15', userid = '3', storedetaildate = '2026-10-14 17:47:12' WHERE storedetailid = '1339';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1339', '1', '15', '1', '536', 'اضافة فاتورة مبيعات', 'sellbillController.php', '30', '15', '3', '2026-10-14 17:47:12','0','0'); -- id=5656
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 1121;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('460','01921', '536', '153', '1921', '6', '485', '2910', '0', '', '0', '2026-10-14 17:47:12', '1921', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1121-6,','1','1','0','0','485','2910','0','','0','0.00','0','0','0','0'); -- id=1949
UPDATE sellbilldetail SET  lastbuyprice = 460.00 , meanbuyprice = 460.00, lastbuyprice_withDiscount = 460.00, meanbuyprice_withDiscount = 460.00
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where sellbilldetailid = 1949;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1921, '2026-10-14', 2910, 2760, 2760
                    , 2760, 2760, 2760, 2760
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2760, 2760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2910, sellCostBuyPrice =sellCostBuyPrice+2760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2760, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2760
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2760
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2910, 2760, 2760
                    , 2760, 2760, 2760, 2760
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2760, 2760, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2910, sellCostBuyPrice =sellCostBuyPrice+2760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2760, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2760
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2760
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2760
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '27', userid = '3', storedetaildate = '2026-10-14 17:47:12' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '6', '1', '536', 'اضافة فاتورة مبيعات', 'sellbillController.php', '33', '27', '3', '2026-10-14 17:47:12','0','0'); -- id=5657
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+5 where id = 1156;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('600','01964', '536', '28', '1964', '5', '620', '3100', '0', '', '0', '2026-10-14 17:47:12', '1964', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1156-5,','1','1','0','0','620','3100','0','','0','0.00','0','0','0','0'); -- id=1950
UPDATE sellbilldetail SET  lastbuyprice = 600.00 , meanbuyprice = 600.00, lastbuyprice_withDiscount = 600.00, meanbuyprice_withDiscount = 600.00
        , lastbuyprice_withTax = 600, meanbuyprice_withTax = 600, lastbuyprice_withDiscountAndTax = 600
                where sellbilldetailid = 1950;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1964, '2026-10-14', 3100, 3000, 3000
                    , 3000, 3000, 3000, 3000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 3000, 3000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3100, sellCostBuyPrice =sellCostBuyPrice+3000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3100, 3000, 3000
                    , 3000, 3000, 3000, 3000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3000, 3000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3100, sellCostBuyPrice =sellCostBuyPrice+3000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '10', userid = '3', storedetaildate = '2026-10-14 17:47:12' WHERE storedetailid = '2981';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1964', '1', '5', '1', '536', 'اضافة فاتورة مبيعات', 'sellbillController.php', '15', '10', '3', '2026-10-14 17:47:12','0','0'); -- id=5658
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+5 where id = 1160;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('600','01968', '536', '28', '1968', '5', '620', '3100', '0', '', '0', '2026-10-14 17:47:12', '1968', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1160-5,','1','1','0','0','620','3100','0','','0','0.00','0','0','0','0'); -- id=1951
UPDATE sellbilldetail SET  lastbuyprice = 600.00 , meanbuyprice = 600.00, lastbuyprice_withDiscount = 600.00, meanbuyprice_withDiscount = 600.00
        , lastbuyprice_withTax = 600, meanbuyprice_withTax = 600, lastbuyprice_withDiscountAndTax = 600
                where sellbilldetailid = 1951;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1968, '2026-10-14', 3100, 3000, 3000
                    , 3000, 3000, 3000, 3000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 3000, 3000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3100, sellCostBuyPrice =sellCostBuyPrice+3000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3100, 3000, 3000
                    , 3000, 3000, 3000, 3000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3000, 3000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3100, sellCostBuyPrice =sellCostBuyPrice+3000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '15', userid = '3', storedetaildate = '2026-10-14 17:47:12' WHERE storedetailid = '2985';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1968', '1', '5', '1', '536', 'اضافة فاتورة مبيعات', 'sellbillController.php', '20', '15', '3', '2026-10-14 17:47:12','0','0'); -- id=5659
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+40 where id = 1114;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('395','01926', '536', '73', '1926', '40', '420', '16800', '0', '', '0', '2026-10-14 17:47:12', '1926', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1114-40,','1','1','0','0','420','16800','0','','0','0.00','0','0','0','0'); -- id=1952
UPDATE sellbilldetail SET  lastbuyprice = 395.00 , meanbuyprice = 395.00, lastbuyprice_withDiscount = 395.00, meanbuyprice_withDiscount = 395.00
        , lastbuyprice_withTax = 395, meanbuyprice_withTax = 395, lastbuyprice_withDiscountAndTax = 395
                where sellbilldetailid = 1952;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1926, '2026-10-14', 16800, 15800, 15800
                    , 15800, 15800, 15800, 15800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 40, 0, 15800, 15800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+16800, sellCostBuyPrice =sellCostBuyPrice+15800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+15800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+15800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+15800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+15800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+15800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+15800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+15800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+40
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 16800, 15800, 15800
                    , 15800, 15800, 15800, 15800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 15800, 15800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+16800, sellCostBuyPrice =sellCostBuyPrice+15800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+15800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+15800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+15800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+15800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+15800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+15800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+15800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '308', userid = '3', storedetaildate = '2026-10-14 17:47:12' WHERE storedetailid = '2943';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1926', '1', '40', '1', '536', 'اضافة فاتورة مبيعات', 'sellbillController.php', '348', '308', '3', '2026-10-14 17:47:12','0','0'); -- id=5660
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 1167;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('330','01973', '536', '59', '1973', '12', '340', '4080', '0', '', '0', '2026-10-14 17:47:12', '1973', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1167-12,','1','1','0','0','340','4080','0','','0','0.00','0','0','0','0'); -- id=1953
UPDATE sellbilldetail SET  lastbuyprice = 330.00 , meanbuyprice = 330.00, lastbuyprice_withDiscount = 330.00, meanbuyprice_withDiscount = 330.00
        , lastbuyprice_withTax = 330, meanbuyprice_withTax = 330, lastbuyprice_withDiscountAndTax = 330
                where sellbilldetailid = 1953;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1973, '2026-10-14', 4080, 3960, 3960
                    , 3960, 3960, 3960, 3960
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 3960, 3960, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4080, sellCostBuyPrice =sellCostBuyPrice+3960
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3960, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3960
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3960, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3960
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3960
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3960
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3960
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4080, 3960, 3960
                    , 3960, 3960, 3960, 3960
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3960, 3960, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4080, sellCostBuyPrice =sellCostBuyPrice+3960
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3960, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3960
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3960, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3960
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3960
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3960
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3960
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '27', userid = '3', storedetaildate = '2026-10-14 17:47:12' WHERE storedetailid = '2990';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1973', '1', '12', '1', '536', 'اضافة فاتورة مبيعات', 'sellbillController.php', '39', '27', '3', '2026-10-14 17:47:12','0','0'); -- id=5661
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+15 where id = 1170;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('310','01976', '536', '59', '1976', '15', '320', '4800', '0', '', '0', '2026-10-14 17:47:12', '1976', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1170-15,','1','1','0','0','320','4800','0','','0','0.00','0','0','0','0'); -- id=1954
UPDATE sellbilldetail SET  lastbuyprice = 310.00 , meanbuyprice = 310.00, lastbuyprice_withDiscount = 310.00, meanbuyprice_withDiscount = 310.00
        , lastbuyprice_withTax = 310, meanbuyprice_withTax = 310, lastbuyprice_withDiscountAndTax = 310
                where sellbilldetailid = 1954;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1976, '2026-10-14', 4800, 4650, 4650
                    , 4650, 4650, 4650, 4650
                    , 0, 0, 0, 0
                    , 0, 0, 0, 15, 0, 4650, 4650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4800, sellCostBuyPrice =sellCostBuyPrice+4650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4650, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4650
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4650
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+15
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4800, 4650, 4650
                    , 4650, 4650, 4650, 4650
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4650, 4650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4800, sellCostBuyPrice =sellCostBuyPrice+4650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4650, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4650
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4650
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '138', userid = '3', storedetaildate = '2026-10-14 17:47:12' WHERE storedetailid = '2993';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1976', '1', '15', '1', '536', 'اضافة فاتورة مبيعات', 'sellbillController.php', '153', '138', '3', '2026-10-14 17:47:12','0','0'); -- id=5662
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 855;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('315','01830', '536', '48', '1830', '9', '350', '3150', '0', '', '0', '2026-10-14 17:47:12', '1830', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','855-9,','1','1','0','0','350','3150','0','','0','0.00','0','0','0','0'); -- id=1955
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 315.00, meanbuyprice_withDiscount = 332.50
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 175, lastbuyprice_withDiscountAndTax = 315
                where sellbilldetailid = 1955;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1830, '2026-10-14', 3150, 3150, 3150
                    , 3150, 2835, 2992.5, 2835
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3150, 1575, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3150, sellCostBuyPrice =sellCostBuyPrice+3150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2835, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2992.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2835
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1575
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3150, 3150, 3150
                    , 3150, 2835, 2992.5, 2835
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3150, 1575, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3150, sellCostBuyPrice =sellCostBuyPrice+3150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2835, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2992.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2835
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1575
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '15', userid = '3', storedetaildate = '2026-10-14 17:47:12' WHERE storedetailid = '2845';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1830', '1', '9', '1', '536', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '15', '3', '2026-10-14 17:47:12','0','0'); -- id=5663
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+8 where id = 1219;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('360','01993', '536', '78', '1993', '8', '385', '3080', '0', '', '0', '2026-10-14 17:47:12', '1993', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1219-8,','1','1','0','0','385','3080','0','','0','0.00','0','0','0','0'); -- id=1956
UPDATE sellbilldetail SET  lastbuyprice = 360.00 , meanbuyprice = 360.00, lastbuyprice_withDiscount = 360.00, meanbuyprice_withDiscount = 360.00
        , lastbuyprice_withTax = 360, meanbuyprice_withTax = 360, lastbuyprice_withDiscountAndTax = 360
                where sellbilldetailid = 1956;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1993, '2026-10-14', 3080, 2880, 2880
                    , 2880, 2880, 2880, 2880
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8, 0, 2880, 2880, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3080, sellCostBuyPrice =sellCostBuyPrice+2880
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2880, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2880
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2880, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2880
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2880
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2880
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2880
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+8
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3080, 2880, 2880
                    , 2880, 2880, 2880, 2880
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2880, 2880, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3080, sellCostBuyPrice =sellCostBuyPrice+2880
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2880, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2880
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2880, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2880
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2880
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2880
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2880
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '52', userid = '3', storedetaildate = '2026-10-14 17:47:12' WHERE storedetailid = '3010';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1993', '1', '8', '1', '536', 'اضافة فاتورة مبيعات', 'sellbillController.php', '60', '52', '3', '2026-10-14 17:47:12','0','0'); -- id=5664
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+8 where id = 1220;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('380','01994', '536', '78', '1994', '8', '405', '3240', '0', '', '0', '2026-10-14 17:47:12', '1994', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1220-8,','1','1','0','0','405','3240','0','','0','0.00','0','0','0','0'); -- id=1957
UPDATE sellbilldetail SET  lastbuyprice = 380.00 , meanbuyprice = 380.00, lastbuyprice_withDiscount = 380.00, meanbuyprice_withDiscount = 380.00
        , lastbuyprice_withTax = 380, meanbuyprice_withTax = 380, lastbuyprice_withDiscountAndTax = 380
                where sellbilldetailid = 1957;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1994, '2026-10-14', 3240, 3040, 3040
                    , 3040, 3040, 3040, 3040
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8, 0, 3040, 3040, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3240, sellCostBuyPrice =sellCostBuyPrice+3040
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3040, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3040
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3040, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3040
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3040
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3040
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3040
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+8
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3240, 3040, 3040
                    , 3040, 3040, 3040, 3040
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3040, 3040, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3240, sellCostBuyPrice =sellCostBuyPrice+3040
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3040, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3040
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3040, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3040
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3040
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3040
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3040
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '52', userid = '3', storedetaildate = '2026-10-14 17:47:12' WHERE storedetailid = '3011';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1994', '1', '8', '1', '536', 'اضافة فاتورة مبيعات', 'sellbillController.php', '60', '52', '3', '2026-10-14 17:47:12','0','0'); -- id=5665
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+8 where id = 1221;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('370','01995', '536', '78', '1995', '8', '395', '3160', '0', '', '0', '2026-10-14 17:47:12', '1995', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1221-8,','1','1','0','0','395','3160','0','','0','0.00','0','0','0','0'); -- id=1958
UPDATE sellbilldetail SET  lastbuyprice = 370.00 , meanbuyprice = 370.00, lastbuyprice_withDiscount = 370.00, meanbuyprice_withDiscount = 370.00
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 370
                where sellbilldetailid = 1958;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1995, '2026-10-14', 3160, 2960, 2960
                    , 2960, 2960, 2960, 2960
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8, 0, 2960, 2960, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3160, sellCostBuyPrice =sellCostBuyPrice+2960
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2960, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2960
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2960, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2960
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2960
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2960
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2960
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+8
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3160, 2960, 2960
                    , 2960, 2960, 2960, 2960
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2960, 2960, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3160, sellCostBuyPrice =sellCostBuyPrice+2960
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2960, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2960
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2960, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2960
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2960
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2960
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2960
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '52', userid = '3', storedetaildate = '2026-10-14 17:47:12' WHERE storedetailid = '3012';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1995', '1', '8', '1', '536', 'اضافة فاتورة مبيعات', 'sellbillController.php', '60', '52', '3', '2026-10-14 17:47:12','0','0'); -- id=5666
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3658390',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3595320','63070', '0', '2', 'اضافة فاتورة مبيعات', '536', '3658390', '2026-10-14 17:47:12', '3',  'sellbillController.php','1','','0'); -- id=676
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '63070', '63070', '2026-10-14', '3', '0', '0', '2026-10-14 17:47:12','اضافة فاتورة مبيعات رقم 536','1','0',null,'0','536','sellbillController.php?do=showDetail&sellbillid=536'); -- id=2428
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2428', '419', '63070', '','0'); -- id=2484
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3658390', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2428', '143', '63070', '','0'); -- id=2430
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5902700', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '59935', '59935', '2026-10-14', '3', '0', '0', '2026-10-14 17:47:12','اضافة فاتورة مبيعات رقم 536 - صرف البضاعة من المخزن','1','0',null,'0','536','sellbillController.php?do=showDetail&sellbillid=536'); -- id=2429
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2429', '402', '59935', '','0'); -- id=2485
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5505363.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2429', '382', '59935', '','0'); -- id=2431
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22287091.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2428,0,2429' where sellbillid=536;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 63070, 60250, 60250
                    , 60250, 59935, 60092.5, 59935
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,60250, 58675, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+63070, sellCostBuyPrice =sellCostBuyPrice+60250
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+60250, sellCostMeanBuyPrice = sellCostMeanBuyPrice+60250
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+59935, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+60092.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+59935
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+60250
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+58675
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 63070, 60250, 60250
                    , 60250, 59935, 60092.5, 59935
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,60250, 58675, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+63070, sellCostBuyPrice =sellCostBuyPrice+60250
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+60250, sellCostMeanBuyPrice = sellCostMeanBuyPrice+60250
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+59935, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+60092.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+59935
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+60250
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+58675
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 63070, 60250, 60250
                    , 60250, 59935, 60092.5, 59935, 60250, 58675)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+63070, netSellCostBuyPrice = netSellCostBuyPrice+60250
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+60250
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+60250
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+59935
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+60092.5
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+59935
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+60250
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+58675;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf9014816a0 and sellbillId = 536 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:17:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:47:12", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 17:47:12', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9556
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:24:55";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:54:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 17:54:55', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=152&type=2'); -- id=9557
UPDATE user SET loginip = "" WHERE userid = 1;
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:27:27";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:57:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 17:57:27', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9558
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 14:27:27";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 17:57:27', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9559
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:28:36";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:58:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 17:58:36', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php'); -- id=9560
UPDATE product SET productName = 'بالون فيت قصات ميرور', productDescription = '', productCatId = '78', productBuyPrice = '410.00', productSellAllPrice = '435.00', productSellUnitPrice = '435.00', productSellHalfPrice = '435.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01999',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '410.00',lastbuyprice_withDiscount = '410',meanbuyprice = '410.00',meanbuyprice_withDiscount = '410' , productbuypricereal = '410.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.10' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1999';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1999, 1,'2026-10-14 17:59:36',1)
                ON DUPLICATE KEY UPDATE productid = 1999, edited = 1, sysdate = '2026-10-14 17:59:36', userid = 1; -- id=2951
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:29:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 17:59:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 17:59:41', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9561
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:30:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:00:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 18:00:15', '1', 'addAllStoreProducts', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php?do=addAllStoreProducts'); -- id=9562
BEGIN;
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1999', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=29
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3016';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1999, 0, 0
                    , 410.00, 60.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1225
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*410.00," WHERE transferproductid = 29;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1999', '1', '60.00', '1', '29', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=5667
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1999', '2', '60.00', '1', '2026-10-14'); -- id=3017
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1999, 0, 0
                    , 410.00, 60.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1227
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1999', '2', '60.00', '0', '29', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60.00', '1', '2026-10-14','0','0'); -- id=5668
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1998', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=30
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3015';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1998, 0, 0
                    , 395.00, 60.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1224
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*395.00," WHERE transferproductid = 30;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1998', '1', '60.00', '1', '30', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=5669
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1998', '2', '60.00', '1', '2026-10-14'); -- id=3018
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1998, 0, 0
                    , 395.00, 60.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1229
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1998', '2', '60.00', '0', '30', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60.00', '1', '2026-10-14','0','0'); -- id=5670
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1997', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=31
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3014';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1997, 0, 0
                    , 365.00, 60.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1223
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*365.00," WHERE transferproductid = 31;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1997', '1', '60.00', '1', '31', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=5671
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1997', '2', '60.00', '1', '2026-10-14'); -- id=3019
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1997, 0, 0
                    , 365.00, 60.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1231
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1997', '2', '60.00', '0', '31', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60.00', '1', '2026-10-14','0','0'); -- id=5672
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1996', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=32
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3013';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1996, 0, 0
                    , 375.00, 60.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1222
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*375.00," WHERE transferproductid = 32;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1996', '1', '60.00', '1', '32', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=5673
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1996', '2', '60.00', '1', '2026-10-14'); -- id=3020
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1996, 0, 0
                    , 375.00, 60.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1233
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1996', '2', '60.00', '0', '32', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60.00', '1', '2026-10-14','0','0'); -- id=5674
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1995', '52.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=33
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3012';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1995, 0, 0
                    , 370.00, 52.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-52.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1221
UPDATE storemovement SET  buyPricesHistoryBookData = "52.00*2026-10-14*370.00," WHERE transferproductid = 33;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1995', '1', '52.00', '1', '33', 'تحويل منتجات من المخزن', 'storemovementController.php', '52', '0', '1', '2026-10-14','0','0'); -- id=5675
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1995', '2', '52.00', '1', '2026-10-14'); -- id=3021
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1995, 0, 0
                    , 370.00, 52.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+52.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1235
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1995', '2', '52.00', '0', '33', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '52.00', '1', '2026-10-14','0','0'); -- id=5676
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1994', '52.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=34
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3011';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1994, 0, 0
                    , 380.00, 52.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-52.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1220
UPDATE storemovement SET  buyPricesHistoryBookData = "52.00*2026-10-14*380.00," WHERE transferproductid = 34;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1994', '1', '52.00', '1', '34', 'تحويل منتجات من المخزن', 'storemovementController.php', '52', '0', '1', '2026-10-14','0','0'); -- id=5677
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1994', '2', '52.00', '1', '2026-10-14'); -- id=3022
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1994, 0, 0
                    , 380.00, 52.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+52.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1237
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1994', '2', '52.00', '0', '34', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '52.00', '1', '2026-10-14','0','0'); -- id=5678
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1993', '52.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=35
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3010';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1993, 0, 0
                    , 360.00, 52.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-52.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1219
UPDATE storemovement SET  buyPricesHistoryBookData = "52.00*2026-10-14*360.00," WHERE transferproductid = 35;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1993', '1', '52.00', '1', '35', 'تحويل منتجات من المخزن', 'storemovementController.php', '52', '0', '1', '2026-10-14','0','0'); -- id=5679
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1993', '2', '52.00', '1', '2026-10-14'); -- id=3023
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1993, 0, 0
                    , 360.00, 52.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+52.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1239
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1993', '2', '52.00', '0', '35', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '52.00', '1', '2026-10-14','0','0'); -- id=5680
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1992', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=36
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3009';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1992, 0, 0
                    , 900.00, 60.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1210
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*900.00," WHERE transferproductid = 36;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1992', '1', '60.00', '1', '36', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=5681
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1992', '2', '60.00', '1', '2026-10-14'); -- id=3024
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1992, 0, 0
                    , 900.00, 60.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1241
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1992', '2', '60.00', '0', '36', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60.00', '1', '2026-10-14','0','0'); -- id=5682
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1991', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=37
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3008';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1991, 0, 0
                    , 470.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1218
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*470.00," WHERE transferproductid = 37;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1991', '1', '30.00', '1', '37', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=5683
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1991', '2', '30.00', '1', '2026-10-14'); -- id=3025
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1991, 0, 0
                    , 470.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1243
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1991', '2', '30.00', '0', '37', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=5684
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1990', '210.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=38
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3007';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1990, 0, 0
                    , 800.00, 210.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-210.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1209
UPDATE storemovement SET  buyPricesHistoryBookData = "210.00*2026-10-14*800.00," WHERE transferproductid = 38;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1990', '1', '210.00', '1', '38', 'تحويل منتجات من المخزن', 'storemovementController.php', '210', '0', '1', '2026-10-14','0','0'); -- id=5685
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1990', '2', '210.00', '1', '2026-10-14'); -- id=3026
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1990, 0, 0
                    , 800.00, 210.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+210.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1245
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1990', '2', '210.00', '0', '38', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '210.00', '1', '2026-10-14','0','0'); -- id=5686
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1989', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=39
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3006';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1989, 0, 0
                    , 234.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1198
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-14*234.00," WHERE transferproductid = 39;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1989', '1', '24.00', '1', '39', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5687
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1989', '2', '24.00', '1', '2026-10-14'); -- id=3027
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1989, 0, 0
                    , 234.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1247
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1989', '2', '24.00', '0', '39', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5688
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1988', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=40
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3005';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1988, 0, 0
                    , 513.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1197
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-14*513.00," WHERE transferproductid = 40;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1988', '1', '24.00', '1', '40', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5689
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1988', '2', '24.00', '1', '2026-10-14'); -- id=3028
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1988, 0, 0
                    , 513.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1249
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1988', '2', '24.00', '0', '40', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5690
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1987', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=41
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3004';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1987, 0, 0
                    , 378.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1196
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-14*378.00," WHERE transferproductid = 41;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1987', '1', '24.00', '1', '41', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5691
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1987', '2', '24.00', '1', '2026-10-14'); -- id=3029
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1987, 0, 0
                    , 378.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1251
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1987', '2', '24.00', '0', '41', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5692
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1986', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=42
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3003';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1986, 0, 0
                    , 486.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1195
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-14*486.00," WHERE transferproductid = 42;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1986', '1', '24.00', '1', '42', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5693
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1986', '2', '24.00', '1', '2026-10-14'); -- id=3030
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1986, 0, 0
                    , 486.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1253
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1986', '2', '24.00', '0', '42', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5694
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1985', '72.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=43
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3002';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1985, 0, 0
                    , 486.00, 72.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1194
UPDATE storemovement SET  buyPricesHistoryBookData = "72.00*2026-10-14*486.00," WHERE transferproductid = 43;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1985', '1', '72.00', '1', '43', 'تحويل منتجات من المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=5695
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1985', '2', '72.00', '1', '2026-10-14'); -- id=3031
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1985, 0, 0
                    , 486.00, 72.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1255
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1985', '2', '72.00', '0', '43', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '72.00', '1', '2026-10-14','0','0'); -- id=5696
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1984', '144.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=44
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3001';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1984, 0, 0
                    , 450.00, 144.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-144.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1188
UPDATE storemovement SET  buyPricesHistoryBookData = "144.00*2026-10-14*450.00," WHERE transferproductid = 44;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1984', '1', '144.00', '1', '44', 'تحويل منتجات من المخزن', 'storemovementController.php', '144', '0', '1', '2026-10-14','0','0'); -- id=5697
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1984', '2', '144.00', '1', '2026-10-14'); -- id=3032
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1984, 0, 0
                    , 450.00, 144.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+144.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1257
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1984', '2', '144.00', '0', '44', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '144.00', '1', '2026-10-14','0','0'); -- id=5698
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1983', '144.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=45
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3000';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1983, 0, 0
                    , 423.00, 144.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-144.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1182
UPDATE storemovement SET  buyPricesHistoryBookData = "144.00*2026-10-14*423.00," WHERE transferproductid = 45;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1983', '1', '144.00', '1', '45', 'تحويل منتجات من المخزن', 'storemovementController.php', '144', '0', '1', '2026-10-14','0','0'); -- id=5699
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1983', '2', '144.00', '1', '2026-10-14'); -- id=3033
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1983, 0, 0
                    , 423.00, 144.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+144.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1259
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1983', '2', '144.00', '0', '45', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '144.00', '1', '2026-10-14','0','0'); -- id=5700
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1982', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=46
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2999';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1982, 0, 0
                    , 570.00, 60.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1180
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*570.00," WHERE transferproductid = 46;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1982', '1', '60.00', '1', '46', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=5701
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1982', '2', '60.00', '1', '2026-10-14'); -- id=3034
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1982, 0, 0
                    , 570.00, 60.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1261
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1982', '2', '60.00', '0', '46', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60.00', '1', '2026-10-14','0','0'); -- id=5702
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1981', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=47
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2998';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1981, 0, 0
                    , 480.00, 40.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1179
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*480.00," WHERE transferproductid = 47;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1981', '1', '40.00', '1', '47', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=5703
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1981', '2', '40.00', '1', '2026-10-14'); -- id=3035
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1981, 0, 0
                    , 480.00, 40.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1263
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1981', '2', '40.00', '0', '47', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40.00', '1', '2026-10-14','0','0'); -- id=5704
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1980', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=48
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2997';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1980, 0, 0
                    , 530.00, 40.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1178
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*530.00," WHERE transferproductid = 48;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1980', '1', '40.00', '1', '48', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=5705
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1980', '2', '40.00', '1', '2026-10-14'); -- id=3036
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1980, 0, 0
                    , 530.00, 40.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1265
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1980', '2', '40.00', '0', '48', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40.00', '1', '2026-10-14','0','0'); -- id=5706
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1979', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=49
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2996';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1979, 0, 0
                    , 580.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1177
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*580.00," WHERE transferproductid = 49;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1979', '1', '30.00', '1', '49', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=5707
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1979', '2', '30.00', '1', '2026-10-14'); -- id=3037
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1979, 0, 0
                    , 580.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1267
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1979', '2', '30.00', '0', '49', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=5708
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1978', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=50
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2995';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1978, 0, 0
                    , 500.00, 40.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1176
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*500.00," WHERE transferproductid = 50;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1978', '1', '40.00', '1', '50', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=5709
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1978', '2', '40.00', '1', '2026-10-14'); -- id=3038
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1978, 0, 0
                    , 500.00, 40.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1269
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1978', '2', '40.00', '0', '50', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40.00', '1', '2026-10-14','0','0'); -- id=5710
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1977', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=51
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2994';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1977, 0, 0
                    , 550.00, 40.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1175
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*550.00," WHERE transferproductid = 51;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1977', '1', '40.00', '1', '51', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=5711
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1977', '2', '40.00', '1', '2026-10-14'); -- id=3039
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1977, 0, 0
                    , 550.00, 40.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1271
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1977', '2', '40.00', '0', '51', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40.00', '1', '2026-10-14','0','0'); -- id=5712
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1976', '138.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=52
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2993';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1976, 0, 0
                    , 310.00, 138.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-138.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1170
UPDATE storemovement SET  buyPricesHistoryBookData = "138.00*2026-10-14*310.00," WHERE transferproductid = 52;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1976', '1', '138.00', '1', '52', 'تحويل منتجات من المخزن', 'storemovementController.php', '138', '0', '1', '2026-10-14','0','0'); -- id=5713
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1976', '2', '138.00', '1', '2026-10-14'); -- id=3040
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1976, 0, 0
                    , 310.00, 138.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+138.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1273
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1976', '2', '138.00', '0', '52', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '138.00', '1', '2026-10-14','0','0'); -- id=5714
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1975', '35.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=53
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2992';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1975, 0, 0
                    , 200.00, 35.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1169
UPDATE storemovement SET  buyPricesHistoryBookData = "35.00*2026-10-14*200.00," WHERE transferproductid = 53;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1975', '1', '35.00', '1', '53', 'تحويل منتجات من المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=5715
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1975', '2', '35.00', '1', '2026-10-14'); -- id=3041
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1975, 0, 0
                    , 200.00, 35.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1275
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1975', '2', '35.00', '0', '53', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35.00', '1', '2026-10-14','0','0'); -- id=5716
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1974', '45.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=54
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2991';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1974, 0, 0
                    , 300.00, 45.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-45.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1168
UPDATE storemovement SET  buyPricesHistoryBookData = "45.00*2026-10-14*300.00," WHERE transferproductid = 54;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1974', '1', '45.00', '1', '54', 'تحويل منتجات من المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=5717
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1974', '2', '45.00', '1', '2026-10-14'); -- id=3042
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1974, 0, 0
                    , 300.00, 45.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1277
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1974', '2', '45.00', '0', '54', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45.00', '1', '2026-10-14','0','0'); -- id=5718
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1973', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=55
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2990';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1973, 0, 0
                    , 330.00, 27.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1167
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-14*330.00," WHERE transferproductid = 55;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1973', '1', '27.00', '1', '55', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=5719
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1973', '2', '27.00', '1', '2026-10-14'); -- id=3043
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1973, 0, 0
                    , 330.00, 27.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1279
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1973', '2', '27.00', '0', '55', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27.00', '1', '2026-10-14','0','0'); -- id=5720
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1972', '84.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=56
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2989';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1972, 0, 0
                    , 320.00, 84.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-84.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1166
UPDATE storemovement SET  buyPricesHistoryBookData = "84.00*2026-10-14*320.00," WHERE transferproductid = 56;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1972', '1', '84.00', '1', '56', 'تحويل منتجات من المخزن', 'storemovementController.php', '84', '0', '1', '2026-10-14','0','0'); -- id=5721
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1972', '2', '84.00', '1', '2026-10-14'); -- id=3044
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1972, 0, 0
                    , 320.00, 84.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+84.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1281
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1972', '2', '84.00', '0', '56', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '84.00', '1', '2026-10-14','0','0'); -- id=5722
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1971', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=57
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2988';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1971, 0, 0
                    , 600.00, 10.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1163
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*600.00," WHERE transferproductid = 57;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1971', '1', '10.00', '1', '57', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=5723
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1971', '2', '10.00', '1', '2026-10-14'); -- id=3045
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1971, 0, 0
                    , 600.00, 10.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1283
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1971', '2', '10.00', '0', '57', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10.00', '1', '2026-10-14','0','0'); -- id=5724
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1970', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=58
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2987';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1970, 0, 0
                    , 740.00, 15.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1162
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*740.00," WHERE transferproductid = 58;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1970', '1', '15.00', '1', '58', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=5725
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1970', '2', '15.00', '1', '2026-10-14'); -- id=3046
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1970, 0, 0
                    , 740.00, 15.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1285
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1970', '2', '15.00', '0', '58', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15.00', '1', '2026-10-14','0','0'); -- id=5726
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1969', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=59
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2986';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1969, 0, 0
                    , 530.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1161
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*530.00," WHERE transferproductid = 59;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1969', '1', '20.00', '1', '59', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=5727
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1969', '2', '20.00', '1', '2026-10-14'); -- id=3047
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1969, 0, 0
                    , 530.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1287
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1969', '2', '20.00', '0', '59', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=5728
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1968', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=60
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2985';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1968, 0, 0
                    , 600.00, 15.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1160
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*600.00," WHERE transferproductid = 60;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1968', '1', '15.00', '1', '60', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=5729
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1968', '2', '15.00', '1', '2026-10-14'); -- id=3048
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1968, 0, 0
                    , 600.00, 15.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1289
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1968', '2', '15.00', '0', '60', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15.00', '1', '2026-10-14','0','0'); -- id=5730
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1967', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=61
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2984';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1967, 0, 0
                    , 540.00, 15.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1159
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*540.00," WHERE transferproductid = 61;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1967', '1', '15.00', '1', '61', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=5731
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1967', '2', '15.00', '1', '2026-10-14'); -- id=3049
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1967, 0, 0
                    , 540.00, 15.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1291
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1967', '2', '15.00', '0', '61', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15.00', '1', '2026-10-14','0','0'); -- id=5732
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1966', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=62
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2983';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1966, 0, 0
                    , 580.00, 15.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1158
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*580.00," WHERE transferproductid = 62;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1966', '1', '15.00', '1', '62', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=5733
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1966', '2', '15.00', '1', '2026-10-14'); -- id=3050
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1966, 0, 0
                    , 580.00, 15.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1293
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1966', '2', '15.00', '0', '62', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15.00', '1', '2026-10-14','0','0'); -- id=5734
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1965', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=63
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2982';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1965, 0, 0
                    , 580.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1157
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*580.00," WHERE transferproductid = 63;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1965', '1', '20.00', '1', '63', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=5735
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1965', '2', '20.00', '1', '2026-10-14'); -- id=3051
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1965, 0, 0
                    , 580.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1295
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1965', '2', '20.00', '0', '63', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=5736
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1964', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=64
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2981';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1964, 0, 0
                    , 600.00, 10.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1156
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*600.00," WHERE transferproductid = 64;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1964', '1', '10.00', '1', '64', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=5737
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1964', '2', '10.00', '1', '2026-10-14'); -- id=3052
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1964, 0, 0
                    , 600.00, 10.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1297
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1964', '2', '10.00', '0', '64', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10.00', '1', '2026-10-14','0','0'); -- id=5738
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1963', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=65
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2980';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1963, 0, 0
                    , 700.00, 10.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1155
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*700.00," WHERE transferproductid = 65;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1963', '1', '10.00', '1', '65', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=5739
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1963', '2', '10.00', '1', '2026-10-14'); -- id=3053
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1963, 0, 0
                    , 700.00, 10.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1299
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1963', '2', '10.00', '0', '65', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10.00', '1', '2026-10-14','0','0'); -- id=5740
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1962', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=66
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2979';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1962, 0, 0
                    , 650.00, 5.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1154
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*650.00," WHERE transferproductid = 66;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1962', '1', '5.00', '1', '66', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=5741
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1962', '2', '5.00', '1', '2026-10-14'); -- id=3054
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1962, 0, 0
                    , 650.00, 5.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1301
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1962', '2', '5.00', '0', '66', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5.00', '1', '2026-10-14','0','0'); -- id=5742
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1961', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=67
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2978';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1961, 0, 0
                    , 500.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1153
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*500.00," WHERE transferproductid = 67;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1961', '1', '30.00', '1', '67', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=5743
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1961', '2', '30.00', '1', '2026-10-14'); -- id=3055
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1961, 0, 0
                    , 500.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1303
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1961', '2', '30.00', '0', '67', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=5744
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1960', '72.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=68
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2977';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1960, 0, 0
                    , 475.00, 72.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1137
UPDATE storemovement SET  buyPricesHistoryBookData = "72.00*2026-10-14*475.00," WHERE transferproductid = 68;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1960', '1', '72.00', '1', '68', 'تحويل منتجات من المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=5745
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1960', '2', '72.00', '1', '2026-10-14'); -- id=3056
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1960, 0, 0
                    , 475.00, 72.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1305
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1960', '2', '72.00', '0', '68', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '72.00', '1', '2026-10-14','0','0'); -- id=5746
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1959', '16.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=69
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2976';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1959, 0, 0
                    , 490.00, 16.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-16.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1152
UPDATE storemovement SET  buyPricesHistoryBookData = "16.00*2026-10-14*490.00," WHERE transferproductid = 69;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1959', '1', '16.00', '1', '69', 'تحويل منتجات من المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=5747
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1959', '2', '16.00', '1', '2026-10-14'); -- id=3057
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1959, 0, 0
                    , 490.00, 16.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1307
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1959', '2', '16.00', '0', '69', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16.00', '1', '2026-10-14','0','0'); -- id=5748
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1958', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=70
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2975';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1958, 0, 0
                    , 470.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1151
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*470.00," WHERE transferproductid = 70;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1958', '1', '20.00', '1', '70', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=5749
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1958', '2', '20.00', '1', '2026-10-14'); -- id=3058
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1958, 0, 0
                    , 470.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1309
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1958', '2', '20.00', '0', '70', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=5750
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1957', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=71
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2974';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1957, 0, 0
                    , 630.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1149
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*630.00," WHERE transferproductid = 71;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1957', '1', '20.00', '1', '71', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=5751
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1957', '2', '20.00', '1', '2026-10-14'); -- id=3059
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1957, 0, 0
                    , 630.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1311
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1957', '2', '20.00', '0', '71', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=5752
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1956', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=72
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2973';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1956, 0, 0
                    , 550.00, 48.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1147
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-14*550.00," WHERE transferproductid = 72;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1956', '1', '48.00', '1', '72', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=5753
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1956', '2', '48.00', '1', '2026-10-14'); -- id=3060
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1956, 0, 0
                    , 550.00, 48.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1313
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1956', '2', '48.00', '0', '72', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48.00', '1', '2026-10-14','0','0'); -- id=5754
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1955', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=73
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2972';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1955, 0, 0
                    , 650.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1146
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*650.00," WHERE transferproductid = 73;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1955', '1', '20.00', '1', '73', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=5755
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1955', '2', '20.00', '1', '2026-10-14'); -- id=3061
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1955, 0, 0
                    , 650.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1315
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1955', '2', '20.00', '0', '73', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=5756
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1954', '56.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=74
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2971';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1954, 0, 0
                    , 620.00, 56.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-56.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1143
UPDATE storemovement SET  buyPricesHistoryBookData = "56.00*2026-10-14*620.00," WHERE transferproductid = 74;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1954', '1', '56.00', '1', '74', 'تحويل منتجات من المخزن', 'storemovementController.php', '56', '0', '1', '2026-10-14','0','0'); -- id=5757
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1954', '2', '56.00', '1', '2026-10-14'); -- id=3062
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1954, 0, 0
                    , 620.00, 56.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+56.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1317
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1954', '2', '56.00', '0', '74', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '56.00', '1', '2026-10-14','0','0'); -- id=5758
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1953', '52.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=75
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2970';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1953, 0, 0
                    , 520.00, 52.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-52.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1142
UPDATE storemovement SET  buyPricesHistoryBookData = "52.00*2026-10-14*520.00," WHERE transferproductid = 75;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1953', '1', '52.00', '1', '75', 'تحويل منتجات من المخزن', 'storemovementController.php', '52', '0', '1', '2026-10-14','0','0'); -- id=5759
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1953', '2', '52.00', '1', '2026-10-14'); -- id=3063
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1953, 0, 0
                    , 520.00, 52.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+52.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1319
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1953', '2', '52.00', '0', '75', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '52.00', '1', '2026-10-14','0','0'); -- id=5760
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1952', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=76
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2969';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1952, 0, 0
                    , 570.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1141
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*570.00," WHERE transferproductid = 76;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1952', '1', '20.00', '1', '76', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=5761
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1952', '2', '20.00', '1', '2026-10-14'); -- id=3064
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1952, 0, 0
                    , 570.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1321
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1952', '2', '20.00', '0', '76', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=5762
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1951', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=77
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2968';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1951, 0, 0
                    , 450.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1140
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*450.00," WHERE transferproductid = 77;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1951', '1', '20.00', '1', '77', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=5763
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1951', '2', '20.00', '1', '2026-10-14'); -- id=3065
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1951, 0, 0
                    , 450.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1323
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1951', '2', '20.00', '0', '77', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=5764
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1950', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=78
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2967';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1950, 0, 0
                    , 500.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1139
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-14*500.00," WHERE transferproductid = 78;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1950', '1', '24.00', '1', '78', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5765
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1950', '2', '24.00', '1', '2026-10-14'); -- id=3066
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1950, 0, 0
                    , 500.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1325
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1950', '2', '24.00', '0', '78', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5766
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1949', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=79
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2966';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1949, 0, 0
                    , 480.00, 12.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1138
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*480.00," WHERE transferproductid = 79;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1949', '1', '12.00', '1', '79', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=5767
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1949', '2', '12.00', '1', '2026-10-14'); -- id=3067
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1949, 0, 0
                    , 480.00, 12.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1327
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1949', '2', '12.00', '0', '79', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=5768
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1948', '192.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=80
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2965';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1948, 0, 0
                    , 500.00, 192.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-192.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1136
UPDATE storemovement SET  buyPricesHistoryBookData = "192.00*2026-10-14*500.00," WHERE transferproductid = 80;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1948', '1', '192.00', '1', '80', 'تحويل منتجات من المخزن', 'storemovementController.php', '192', '0', '1', '2026-10-14','0','0'); -- id=5769
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1948', '2', '192.00', '1', '2026-10-14'); -- id=3068
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1948, 0, 0
                    , 500.00, 192.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+192.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1329
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1948', '2', '192.00', '0', '80', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '192.00', '1', '2026-10-14','0','0'); -- id=5770
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1947', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=81
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2964';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1947, 0, 0
                    , 540.00, 40.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1135
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*540.00," WHERE transferproductid = 81;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1947', '1', '40.00', '1', '81', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=5771
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1947', '2', '40.00', '1', '2026-10-14'); -- id=3069
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1947, 0, 0
                    , 540.00, 40.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1331
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1947', '2', '40.00', '0', '81', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40.00', '1', '2026-10-14','0','0'); -- id=5772
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1946', '240.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=82
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2963';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1946, 0, 0
                    , 460.00, 240.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-240.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1134
UPDATE storemovement SET  buyPricesHistoryBookData = "240.00*2026-10-14*460.00," WHERE transferproductid = 82;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1946', '1', '240.00', '1', '82', 'تحويل منتجات من المخزن', 'storemovementController.php', '240', '0', '1', '2026-10-14','0','0'); -- id=5773
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1946', '2', '240.00', '1', '2026-10-14'); -- id=3070
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1946, 0, 0
                    , 460.00, 240.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+240.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1333
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1946', '2', '240.00', '0', '82', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '240.00', '1', '2026-10-14','0','0'); -- id=5774
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1945', '16.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=83
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2962';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1945, 0, 0
                    , 782.00, 16.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-16.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1133
UPDATE storemovement SET  buyPricesHistoryBookData = "16.00*2026-10-14*782.00," WHERE transferproductid = 83;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1945', '1', '16.00', '1', '83', 'تحويل منتجات من المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=5775
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1945', '2', '16.00', '1', '2026-10-14'); -- id=3071
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1945, 0, 0
                    , 782.00, 16.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1335
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1945', '2', '16.00', '0', '83', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16.00', '1', '2026-10-14','0','0'); -- id=5776
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1944', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=84
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2961';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1944, 0, 0
                    , 782.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1132
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*782.00," WHERE transferproductid = 84;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1944', '1', '20.00', '1', '84', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=5777
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1944', '2', '20.00', '1', '2026-10-14'); -- id=3072
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1944, 0, 0
                    , 782.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1337
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1944', '2', '20.00', '0', '84', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=5778
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1943', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=85
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2960';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1943, 0, 0
                    , 782.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1131
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*782.00," WHERE transferproductid = 85;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1943', '1', '20.00', '1', '85', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=5779
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1943', '2', '20.00', '1', '2026-10-14'); -- id=3073
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1943, 0, 0
                    , 782.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1339
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1943', '2', '20.00', '0', '85', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=5780
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1942', '16.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=86
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2959';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1942, 0, 0
                    , 782.00, 16.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-16.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1130
UPDATE storemovement SET  buyPricesHistoryBookData = "16.00*2026-10-14*782.00," WHERE transferproductid = 86;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1942', '1', '16.00', '1', '86', 'تحويل منتجات من المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=5781
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1942', '2', '16.00', '1', '2026-10-14'); -- id=3074
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1942, 0, 0
                    , 782.00, 16.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1341
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1942', '2', '16.00', '0', '86', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16.00', '1', '2026-10-14','0','0'); -- id=5782
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1941', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=87
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2958';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1941, 0, 0
                    , 782.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1129
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*782.00," WHERE transferproductid = 87;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1941', '1', '20.00', '1', '87', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=5783
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1941', '2', '20.00', '1', '2026-10-14'); -- id=3075
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1941, 0, 0
                    , 782.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1343
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1941', '2', '20.00', '0', '87', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=5784
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1940', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=88
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2957';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1940, 0, 0
                    , 782.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1128
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-14*782.00," WHERE transferproductid = 88;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1940', '1', '24.00', '1', '88', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5785
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1940', '2', '24.00', '1', '2026-10-14'); -- id=3076
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1940, 0, 0
                    , 782.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1345
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1940', '2', '24.00', '0', '88', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5786
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1939', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=89
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2956';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1939, 0, 0
                    , 532.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1127
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*532.00," WHERE transferproductid = 89;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1939', '1', '20.00', '1', '89', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=5787
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1939', '2', '20.00', '1', '2026-10-14'); -- id=3077
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1939, 0, 0
                    , 532.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1347
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1939', '2', '20.00', '0', '89', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=5788
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1938', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=90
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2955';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1938, 0, 0
                    , 697.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1126
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*697.00," WHERE transferproductid = 90;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1938', '1', '30.00', '1', '90', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=5789
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1938', '2', '30.00', '1', '2026-10-14'); -- id=3078
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1938, 0, 0
                    , 697.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1349
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1938', '2', '30.00', '0', '90', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=5790
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1937', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=91
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2954';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1937, 0, 0
                    , 652.00, 5.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1125
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*652.00," WHERE transferproductid = 91;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1937', '1', '5.00', '1', '91', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=5791
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1937', '2', '5.00', '1', '2026-10-14'); -- id=3079
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1937, 0, 0
                    , 652.00, 5.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1351
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1937', '2', '5.00', '0', '91', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5.00', '1', '2026-10-14','0','0'); -- id=5792
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1936', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=92
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2953';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1936, 0, 0
                    , 617.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1124
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*617.00," WHERE transferproductid = 92;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1936', '1', '20.00', '1', '92', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=5793
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1936', '2', '20.00', '1', '2026-10-14'); -- id=3080
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1936, 0, 0
                    , 617.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1353
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1936', '2', '20.00', '0', '92', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=5794
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1935', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=93
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2952';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1935, 0, 0
                    , 522.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1123
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*522.00," WHERE transferproductid = 93;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1935', '1', '20.00', '1', '93', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=5795
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1935', '2', '20.00', '1', '2026-10-14'); -- id=3081
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1935, 0, 0
                    , 522.00, 20.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1355
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1935', '2', '20.00', '0', '93', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=5796
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1934', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=94
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2951';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1934, 0, 0
                    , 592.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1122
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*592.00," WHERE transferproductid = 94;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1934', '1', '30.00', '1', '94', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=5797
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1934', '2', '30.00', '1', '2026-10-14'); -- id=3082
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1934, 0, 0
                    , 592.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1357
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1934', '2', '30.00', '0', '94', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=5798
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1933', '72.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=95
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2950';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1933, 0, 0
                    , 400.00, 72.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1120
UPDATE storemovement SET  buyPricesHistoryBookData = "72.00*2026-10-14*400.00," WHERE transferproductid = 95;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1933', '1', '72.00', '1', '95', 'تحويل منتجات من المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=5799
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1933', '2', '72.00', '1', '2026-10-14'); -- id=3083
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1933, 0, 0
                    , 400.00, 72.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1359
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1933', '2', '72.00', '0', '95', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '72.00', '1', '2026-10-14','0','0'); -- id=5800
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1932', '174.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=96
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2949';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1932, 0, 0
                    , 310.00, 174.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-174.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1119
UPDATE storemovement SET  buyPricesHistoryBookData = "174.00*2026-10-14*310.00," WHERE transferproductid = 96;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1932', '1', '174.00', '1', '96', 'تحويل منتجات من المخزن', 'storemovementController.php', '174', '0', '1', '2026-10-14','0','0'); -- id=5801
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1932', '2', '174.00', '1', '2026-10-14'); -- id=3084
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1932, 0, 0
                    , 310.00, 174.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+174.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1361
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1932', '2', '174.00', '0', '96', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '174.00', '1', '2026-10-14','0','0'); -- id=5802
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1931', '54.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=97
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2948';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1931, 0, 0
                    , 350.00, 54.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-54.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1118
UPDATE storemovement SET  buyPricesHistoryBookData = "54.00*2026-10-14*350.00," WHERE transferproductid = 97;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1931', '1', '54.00', '1', '97', 'تحويل منتجات من المخزن', 'storemovementController.php', '54', '0', '1', '2026-10-14','0','0'); -- id=5803
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1931', '2', '54.00', '1', '2026-10-14'); -- id=3085
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1931, 0, 0
                    , 350.00, 54.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+54.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1363
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1931', '2', '54.00', '0', '97', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '54.00', '1', '2026-10-14','0','0'); -- id=5804
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1930', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=98
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2947';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1930, 0, 0
                    , 395.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1117
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-14*395.00," WHERE transferproductid = 98;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1930', '1', '24.00', '1', '98', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5805
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1930', '2', '24.00', '1', '2026-10-14'); -- id=3086
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1930, 0, 0
                    , 395.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1365
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1930', '2', '24.00', '0', '98', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5806
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1929', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=99
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2946';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1929, 0, 0
                    , 425.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1116
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-14*425.00," WHERE transferproductid = 99;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1929', '1', '24.00', '1', '99', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5807
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1929', '2', '24.00', '1', '2026-10-14'); -- id=3087
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1929, 0, 0
                    , 425.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1367
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1929', '2', '24.00', '0', '99', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5808
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1928', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=100
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2945';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1928, 0, 0
                    , 850.00, 12.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1115
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*850.00," WHERE transferproductid = 100;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1928', '1', '12.00', '1', '100', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=5809
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1928', '2', '12.00', '1', '2026-10-14'); -- id=3088
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1928, 0, 0
                    , 850.00, 12.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1369
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1928', '2', '12.00', '0', '100', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=5810
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1927', '612.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=101
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2944';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1927, 0, 0
                    , 220.00, -612, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-612, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1370
UPDATE storemovement SET  buyPricesHistoryBookData = "612.00*2026-10-14*220.00," WHERE transferproductid = 101;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1927', '1', '612.00', '1', '101', 'تحويل منتجات من المخزن', 'storemovementController.php', '612', '0', '1', '2026-10-14','0','0'); -- id=5811
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1927', '2', '612.00', '1', '2026-10-14'); -- id=3089
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1927, 0, 0
                    , 220.00, 612.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+612.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1371
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1927', '2', '612.00', '0', '101', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '612.00', '1', '2026-10-14','0','0'); -- id=5812
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1926', '308.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=102
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2943';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1926, 0, 0
                    , 395.00, 308.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-308.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1114
UPDATE storemovement SET  buyPricesHistoryBookData = "308.00*2026-10-14*395.00," WHERE transferproductid = 102;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1926', '1', '308.00', '1', '102', 'تحويل منتجات من المخزن', 'storemovementController.php', '308', '0', '1', '2026-10-14','0','0'); -- id=5813
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1926', '2', '308.00', '1', '2026-10-14'); -- id=3090
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1926, 0, 0
                    , 395.00, 308.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+308.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1373
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1926', '2', '308.00', '0', '102', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '308.00', '1', '2026-10-14','0','0'); -- id=5814
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1925', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=103
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2942';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1925, 0, 0
                    , 495.00, 40.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1113
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-09*495.00," WHERE transferproductid = 103;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1925', '1', '40.00', '1', '103', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=5815
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1925', '2', '40.00', '1', '2026-10-14'); -- id=3091
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1925, 0, 0
                    , 495.00, 40.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1375
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1925', '2', '40.00', '0', '103', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40.00', '1', '2026-10-14','0','0'); -- id=5816
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1924', '180.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=104
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2941';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1924, 0, 0
                    , 275.00, 180.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-180.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1085
UPDATE storemovement SET  buyPricesHistoryBookData = "180.00*2026-10-13*275.00," WHERE transferproductid = 104;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1924', '1', '180.00', '1', '104', 'تحويل منتجات من المخزن', 'storemovementController.php', '180', '0', '1', '2026-10-14','0','0'); -- id=5817
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1924', '2', '180.00', '1', '2026-10-14'); -- id=3092
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1924, 0, 0
                    , 275.00, 180.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+180.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1377
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1924', '2', '180.00', '0', '104', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '180.00', '1', '2026-10-14','0','0'); -- id=5818
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1923', '180.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=105
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2940';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1923, 0, 0
                    , 230.00, 180.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-180.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1084
UPDATE storemovement SET  buyPricesHistoryBookData = "180.00*2026-10-13*230.00," WHERE transferproductid = 105;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1923', '1', '180.00', '1', '105', 'تحويل منتجات من المخزن', 'storemovementController.php', '180', '0', '1', '2026-10-14','0','0'); -- id=5819
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1923', '2', '180.00', '1', '2026-10-14'); -- id=3093
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1923, 0, 0
                    , 230.00, 180.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+180.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1379
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1923', '2', '180.00', '0', '105', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '180.00', '1', '2026-10-14','0','0'); -- id=5820
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1922', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=106
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2939';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1922, 0, 0
                    , 325.00, 27.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1083
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-13*325.00," WHERE transferproductid = 106;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1922', '1', '27.00', '1', '106', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=5821
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1922', '2', '27.00', '1', '2026-10-14'); -- id=3094
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1922, 0, 0
                    , 325.00, 27.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1381
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1922', '2', '27.00', '0', '106', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27.00', '1', '2026-10-14','0','0'); -- id=5822
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1921', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=107
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2938';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1921, 0, 0
                    , 460.00, 27.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1121
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-14*460.00," WHERE transferproductid = 107;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '27.00', '1', '107', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=5823
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1921', '2', '27.00', '1', '2026-10-14'); -- id=3095
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1921, 0, 0
                    , 460.00, 27.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1383
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '2', '27.00', '0', '107', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27.00', '1', '2026-10-14','0','0'); -- id=5824
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1920', '327.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=108
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2937';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1920, 0, 0
                    , 370.00, 327.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-327.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1081
UPDATE storemovement SET  buyPricesHistoryBookData = "327.00*2026-10-13*370.00," WHERE transferproductid = 108;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1920', '1', '327.00', '1', '108', 'تحويل منتجات من المخزن', 'storemovementController.php', '327', '0', '1', '2026-10-14','0','0'); -- id=5825
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1920', '2', '327.00', '1', '2026-10-14'); -- id=3096
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1920, 0, 0
                    , 370.00, 327.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+327.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1385
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1920', '2', '327.00', '0', '108', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '327.00', '1', '2026-10-14','0','0'); -- id=5826
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1919', '252.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=109
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2936';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1919, 0, 0
                    , 425.00, 252.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-252.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1080
UPDATE storemovement SET  buyPricesHistoryBookData = "252.00*2026-10-13*425.00," WHERE transferproductid = 109;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '1', '252.00', '1', '109', 'تحويل منتجات من المخزن', 'storemovementController.php', '252', '0', '1', '2026-10-14','0','0'); -- id=5827
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1919', '2', '252.00', '1', '2026-10-14'); -- id=3097
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1919, 0, 0
                    , 425.00, 252.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+252.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1387
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '2', '252.00', '0', '109', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '252.00', '1', '2026-10-14','0','0'); -- id=5828
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1918', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=110
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2935';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1918, 0, 0
                    , 300.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1079
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-13*300.00," WHERE transferproductid = 110;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1918', '1', '30.00', '1', '110', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=5829
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1918', '2', '30.00', '1', '2026-10-14'); -- id=3098
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1918, 0, 0
                    , 300.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1389
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1918', '2', '30.00', '0', '110', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=5830
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1917', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=111
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2934';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1917, 0, 0
                    , 500.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1078
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-13*500.00," WHERE transferproductid = 111;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1917', '1', '30.00', '1', '111', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=5831
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1917', '2', '30.00', '1', '2026-10-14'); -- id=3099
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1917, 0, 0
                    , 500.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1391
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1917', '2', '30.00', '0', '111', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=5832
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1916', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=112
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2933';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1916, 0, 0
                    , 500.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1077
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-13*500.00," WHERE transferproductid = 112;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1916', '1', '30.00', '1', '112', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=5833
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1916', '2', '30.00', '1', '2026-10-14'); -- id=3100
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1916, 0, 0
                    , 500.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1393
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1916', '2', '30.00', '0', '112', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=5834
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1915', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=113
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2932';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1915, 0, 0
                    , 700.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1076
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-13*700.00," WHERE transferproductid = 113;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1915', '1', '30.00', '1', '113', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=5835
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1915', '2', '30.00', '1', '2026-10-14'); -- id=3101
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1915, 0, 0
                    , 700.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1395
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1915', '2', '30.00', '0', '113', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=5836
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1914', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=114
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2931';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1914, 0, 0
                    , 450.00, 48.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1065
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-13*450.00," WHERE transferproductid = 114;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1914', '1', '48.00', '1', '114', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=5837
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1914', '2', '48.00', '1', '2026-10-14'); -- id=3102
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1914, 0, 0
                    , 450.00, 48.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1397
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1914', '2', '48.00', '0', '114', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48.00', '1', '2026-10-14','0','0'); -- id=5838
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1913', '42.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=115
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2930';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1913, 0, 0
                    , 580.00, 42.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-42.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1064
UPDATE storemovement SET  buyPricesHistoryBookData = "42.00*2026-10-13*580.00," WHERE transferproductid = 115;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1913', '1', '42.00', '1', '115', 'تحويل منتجات من المخزن', 'storemovementController.php', '42', '0', '1', '2026-10-14','0','0'); -- id=5839
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1913', '2', '42.00', '1', '2026-10-14'); -- id=3103
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1913, 0, 0
                    , 580.00, 42.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1399
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1913', '2', '42.00', '0', '115', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '42.00', '1', '2026-10-14','0','0'); -- id=5840
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1912', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=116
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2929';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1912, 0, 0
                    , 540.00, 48.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1063
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-13*540.00," WHERE transferproductid = 116;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1912', '1', '48.00', '1', '116', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=5841
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1912', '2', '48.00', '1', '2026-10-14'); -- id=3104
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1912, 0, 0
                    , 540.00, 48.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1401
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1912', '2', '48.00', '0', '116', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48.00', '1', '2026-10-14','0','0'); -- id=5842
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1911', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=117
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2928';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1911, 0, 0
                    , 525.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1062
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-13*525.00," WHERE transferproductid = 117;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1911', '1', '30.00', '1', '117', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=5843
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1911', '2', '30.00', '1', '2026-10-14'); -- id=3105
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1911, 0, 0
                    , 525.00, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1403
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1911', '2', '30.00', '0', '117', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=5844
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1910', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=118
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2927';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 118;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1910', '1', '0.00', '1', '118', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5845
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1910', '2', '0.00', '1', '2026-10-14'); -- id=3106
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1910', '2', '0.00', '0', '118', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=5846
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1909', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=119
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2926';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 119;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1909', '1', '0.00', '1', '119', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5847
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1909', '2', '0.00', '1', '2026-10-14'); -- id=3107
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1909', '2', '0.00', '0', '119', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=5848
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1908', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=120
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2925';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 120;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1908', '1', '0.00', '1', '120', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5849
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1908', '2', '0.00', '1', '2026-10-14'); -- id=3108
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1908', '2', '0.00', '0', '120', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=5850
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1907', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=121
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2924';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 121;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1907', '1', '0.00', '1', '121', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5851
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1907', '2', '0.00', '1', '2026-10-14'); -- id=3109
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1907', '2', '0.00', '0', '121', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=5852
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1906', '452.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=122
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2923';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1906, 0, 0
                    , 250.00, 452.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-452.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1000
UPDATE storemovement SET  buyPricesHistoryBookData = "452.00*2026-10-13*250.00," WHERE transferproductid = 122;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1906', '1', '452.00', '1', '122', 'تحويل منتجات من المخزن', 'storemovementController.php', '452', '0', '1', '2026-10-14','0','0'); -- id=5853
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1906', '2', '452.00', '1', '2026-10-14'); -- id=3110
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1906, 0, 0
                    , 250.00, 452.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+452.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1405
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1906', '2', '452.00', '0', '122', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '452.00', '1', '2026-10-14','0','0'); -- id=5854
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1905', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=123
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2922';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1905, 0, 0
                    , 441.60, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=999
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-13*441.60," WHERE transferproductid = 123;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1905', '1', '30.00', '1', '123', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=5855
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1905', '2', '30.00', '1', '2026-10-14'); -- id=3111
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1905, 0, 0
                    , 441.60, 30.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1407
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1905', '2', '30.00', '0', '123', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=5856
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1904', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=124
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2921';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1904, 0, 0
                    , 322.00, 12.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=998
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-13*322.00," WHERE transferproductid = 124;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1904', '1', '12.00', '1', '124', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=5857
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1904', '2', '12.00', '1', '2026-10-14'); -- id=3112
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1904, 0, 0
                    , 322.00, 12.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1409
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1904', '2', '12.00', '0', '124', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=5858
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1903', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=125
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2920';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1903, 0, 0
                    , 423.20, 18.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=997
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-13*423.20," WHERE transferproductid = 125;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1903', '1', '18.00', '1', '125', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=5859
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1903', '2', '18.00', '1', '2026-10-14'); -- id=3113
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1903, 0, 0
                    , 423.20, 18.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1411
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1903', '2', '18.00', '0', '125', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18.00', '1', '2026-10-14','0','0'); -- id=5860
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1902', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=126
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2919';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1902, 0, 0
                    , 414.00, 18.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=996
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-13*414.00," WHERE transferproductid = 126;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1902', '1', '18.00', '1', '126', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=5861
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1902', '2', '18.00', '1', '2026-10-14'); -- id=3114
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1902, 0, 0
                    , 414.00, 18.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1413
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1902', '2', '18.00', '0', '126', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18.00', '1', '2026-10-14','0','0'); -- id=5862
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1901', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=127
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2918';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1901, 0, 0
                    , 414.00, 21.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=995
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-13*414.00," WHERE transferproductid = 127;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1901', '1', '21.00', '1', '127', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=5863
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1901', '2', '21.00', '1', '2026-10-14'); -- id=3115
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1901, 0, 0
                    , 414.00, 21.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1415
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1901', '2', '21.00', '0', '127', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21.00', '1', '2026-10-14','0','0'); -- id=5864
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1900', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=128
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2917';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1900, 0, 0
                    , 368.00, 3.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=994
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-13*368.00," WHERE transferproductid = 128;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1900', '1', '3.00', '1', '128', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=5865
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1900', '2', '3.00', '1', '2026-10-14'); -- id=3116
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1900, 0, 0
                    , 368.00, 3.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1417
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1900', '2', '3.00', '0', '128', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3.00', '1', '2026-10-14','0','0'); -- id=5866
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1899', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=129
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2916';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1899, 0, 0
                    , 414.00, 27.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=993
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-13*414.00," WHERE transferproductid = 129;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1899', '1', '27.00', '1', '129', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=5867
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1899', '2', '27.00', '1', '2026-10-14'); -- id=3117
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1899, 0, 0
                    , 414.00, 27.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1419
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1899', '2', '27.00', '0', '129', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27.00', '1', '2026-10-14','0','0'); -- id=5868
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1898', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=130
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2915';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1898, 0, 0
                    , 441.60, 12.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=992
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-13*441.60," WHERE transferproductid = 130;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1898', '1', '12.00', '1', '130', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=5869
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1898', '2', '12.00', '1', '2026-10-14'); -- id=3118
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1898, 0, 0
                    , 441.60, 12.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1421
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1898', '2', '12.00', '0', '130', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=5870
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1897', '72.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=131
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2914';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1897, 0, 0
                    , 312.80, 72.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=991
UPDATE storemovement SET  buyPricesHistoryBookData = "72.00*2026-10-13*312.80," WHERE transferproductid = 131;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1897', '1', '72.00', '1', '131', 'تحويل منتجات من المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=5871
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1897', '2', '72.00', '1', '2026-10-14'); -- id=3119
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1897, 0, 0
                    , 312.80, 72.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1423
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1897', '2', '72.00', '0', '131', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '72.00', '1', '2026-10-14','0','0'); -- id=5872
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1896', '63.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=132
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2913';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1896, 0, 0
                    , 285.20, 63.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-63.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=990
UPDATE storemovement SET  buyPricesHistoryBookData = "63.00*2026-10-13*285.20," WHERE transferproductid = 132;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1896', '1', '63.00', '1', '132', 'تحويل منتجات من المخزن', 'storemovementController.php', '63', '0', '1', '2026-10-14','0','0'); -- id=5873
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1896', '2', '63.00', '1', '2026-10-14'); -- id=3120
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1896, 0, 0
                    , 285.20, 63.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+63.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1425
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1896', '2', '63.00', '0', '132', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '63.00', '1', '2026-10-14','0','0'); -- id=5874
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1895', '81.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=133
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2912';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1895, 0, 0
                    , 358.80, 81.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-81.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=989
UPDATE storemovement SET  buyPricesHistoryBookData = "81.00*2026-10-13*358.80," WHERE transferproductid = 133;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1895', '1', '81.00', '1', '133', 'تحويل منتجات من المخزن', 'storemovementController.php', '81', '0', '1', '2026-10-14','0','0'); -- id=5875
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1895', '2', '81.00', '1', '2026-10-14'); -- id=3121
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1895, 0, 0
                    , 358.80, 81.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+81.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1427
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1895', '2', '81.00', '0', '133', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '81.00', '1', '2026-10-14','0','0'); -- id=5876
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1894', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=134
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2911';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1894, 0, 0
                    , 630.00, 32.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=988
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-12*630.00," WHERE transferproductid = 134;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1894', '1', '32.00', '1', '134', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=5877
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1894', '2', '32.00', '1', '2026-10-14'); -- id=3122
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1894, 0, 0
                    , 630.00, 32.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1429
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1894', '2', '32.00', '0', '134', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32.00', '1', '2026-10-14','0','0'); -- id=5878
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1893', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=135
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2910';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1893, 0, 0
                    , 620.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=987
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*620.00," WHERE transferproductid = 135;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1893', '1', '24.00', '1', '135', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5879
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1893', '2', '24.00', '1', '2026-10-14'); -- id=3123
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1893, 0, 0
                    , 620.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1431
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1893', '2', '24.00', '0', '135', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5880
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1892', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=136
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2909';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1892, 0, 0
                    , 1100.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=986
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*1100.00," WHERE transferproductid = 136;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1892', '1', '24.00', '1', '136', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5881
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1892', '2', '24.00', '1', '2026-10-14'); -- id=3124
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1892, 0, 0
                    , 1100.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1433
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1892', '2', '24.00', '0', '136', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5882
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1891', '297.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=137
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2908';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1891, 0, 0
                    , 364.00, 297.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-297.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=985
UPDATE storemovement SET  buyPricesHistoryBookData = "297.00*2026-10-12*364.00," WHERE transferproductid = 137;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1891', '1', '297.00', '1', '137', 'تحويل منتجات من المخزن', 'storemovementController.php', '297', '0', '1', '2026-10-14','0','0'); -- id=5883
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1891', '2', '297.00', '1', '2026-10-14'); -- id=3125
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1891, 0, 0
                    , 364.00, 297.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+297.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1435
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1891', '2', '297.00', '0', '137', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '297.00', '1', '2026-10-14','0','0'); -- id=5884
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1890', '420.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=138
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2907';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1890, 0, 0
                    , 314.00, 420.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-420.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=984
UPDATE storemovement SET  buyPricesHistoryBookData = "420.00*2026-10-12*314.00," WHERE transferproductid = 138;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1890', '1', '420.00', '1', '138', 'تحويل منتجات من المخزن', 'storemovementController.php', '420', '0', '1', '2026-10-14','0','0'); -- id=5885
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1890', '2', '420.00', '1', '2026-10-14'); -- id=3126
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1890, 0, 0
                    , 314.00, 420.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+420.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1437
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1890', '2', '420.00', '0', '138', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '420.00', '1', '2026-10-14','0','0'); -- id=5886
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1889', '312.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=139
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2906';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1889, 0, 0
                    , 319.00, 312.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-312.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=983
UPDATE storemovement SET  buyPricesHistoryBookData = "312.00*2026-10-12*319.00," WHERE transferproductid = 139;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1889', '1', '312.00', '1', '139', 'تحويل منتجات من المخزن', 'storemovementController.php', '312', '0', '1', '2026-10-14','0','0'); -- id=5887
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1889', '2', '312.00', '1', '2026-10-14'); -- id=3127
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1889, 0, 0
                    , 319.00, 312.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+312.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1439
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1889', '2', '312.00', '0', '139', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '312.00', '1', '2026-10-14','0','0'); -- id=5888
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1888', '411.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=140
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2905';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1888, 0, 0
                    , 269.00, 411.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-411.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=982
UPDATE storemovement SET  buyPricesHistoryBookData = "411.00*2026-10-12*269.00," WHERE transferproductid = 140;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1888', '1', '411.00', '1', '140', 'تحويل منتجات من المخزن', 'storemovementController.php', '411', '0', '1', '2026-10-14','0','0'); -- id=5889
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1888', '2', '411.00', '1', '2026-10-14'); -- id=3128
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1888, 0, 0
                    , 269.00, 411.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+411.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1441
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1888', '2', '411.00', '0', '140', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '411.00', '1', '2026-10-14','0','0'); -- id=5890
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1887', '351.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=141
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2904';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1887, 0, 0
                    , 379.00, 351.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-351.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=981
UPDATE storemovement SET  buyPricesHistoryBookData = "351.00*2026-10-12*379.00," WHERE transferproductid = 141;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1887', '1', '351.00', '1', '141', 'تحويل منتجات من المخزن', 'storemovementController.php', '351', '0', '1', '2026-10-14','0','0'); -- id=5891
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1887', '2', '351.00', '1', '2026-10-14'); -- id=3129
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1887, 0, 0
                    , 379.00, 351.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+351.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1443
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1887', '2', '351.00', '0', '141', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '351.00', '1', '2026-10-14','0','0'); -- id=5892
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1886', '65.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=142
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2903';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1886, 0, 0
                    , 289.00, 65.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-65.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=980
UPDATE storemovement SET  buyPricesHistoryBookData = "65.00*2026-10-12*289.00," WHERE transferproductid = 142;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1886', '1', '65.00', '1', '142', 'تحويل منتجات من المخزن', 'storemovementController.php', '65', '0', '1', '2026-10-14','0','0'); -- id=5893
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1886', '2', '65.00', '1', '2026-10-14'); -- id=3130
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1886, 0, 0
                    , 289.00, 65.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+65.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1445
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1886', '2', '65.00', '0', '142', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '65.00', '1', '2026-10-14','0','0'); -- id=5894
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1885', '22.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=143
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2902';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1885, 0, 0
                    , 359.00, 22.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-22.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=979
UPDATE storemovement SET  buyPricesHistoryBookData = "22.00*2026-10-12*359.00," WHERE transferproductid = 143;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1885', '1', '22.00', '1', '143', 'تحويل منتجات من المخزن', 'storemovementController.php', '22', '0', '1', '2026-10-14','0','0'); -- id=5895
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1885', '2', '22.00', '1', '2026-10-14'); -- id=3131
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1885, 0, 0
                    , 359.00, 22.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1447
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1885', '2', '22.00', '0', '143', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22.00', '1', '2026-10-14','0','0'); -- id=5896
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1884', '283.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=144
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2901';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1884, 0, 0
                    , 429.00, 283.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-283.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=978
UPDATE storemovement SET  buyPricesHistoryBookData = "283.00*2026-10-12*429.00," WHERE transferproductid = 144;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1884', '1', '283.00', '1', '144', 'تحويل منتجات من المخزن', 'storemovementController.php', '283', '0', '1', '2026-10-14','0','0'); -- id=5897
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1884', '2', '283.00', '1', '2026-10-14'); -- id=3132
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1884, 0, 0
                    , 429.00, 283.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+283.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1449
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1884', '2', '283.00', '0', '144', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '283.00', '1', '2026-10-14','0','0'); -- id=5898
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1883', '162.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=145
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2900';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1883, 0, 0
                    , 364.00, 162.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-162.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=977
UPDATE storemovement SET  buyPricesHistoryBookData = "162.00*2026-10-12*364.00," WHERE transferproductid = 145;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1883', '1', '162.00', '1', '145', 'تحويل منتجات من المخزن', 'storemovementController.php', '162', '0', '1', '2026-10-14','0','0'); -- id=5899
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1883', '2', '162.00', '1', '2026-10-14'); -- id=3133
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1883, 0, 0
                    , 364.00, 162.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+162.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1451
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1883', '2', '162.00', '0', '145', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '162.00', '1', '2026-10-14','0','0'); -- id=5900
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1882', '33.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=146
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2899';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1882, 0, 0
                    , 333.00, 33.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=960
UPDATE storemovement SET  buyPricesHistoryBookData = "33.00*2026-10-12*333.00," WHERE transferproductid = 146;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1882', '1', '33.00', '1', '146', 'تحويل منتجات من المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=5901
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1882', '2', '33.00', '1', '2026-10-14'); -- id=3134
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1882, 0, 0
                    , 333.00, 33.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1453
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1882', '2', '33.00', '0', '146', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '33.00', '1', '2026-10-14','0','0'); -- id=5902
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1881', '54.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=147
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2898';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1881, 0, 0
                    , 328.50, 54.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-54.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=959
UPDATE storemovement SET  buyPricesHistoryBookData = "54.00*2026-10-12*328.50," WHERE transferproductid = 147;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1881', '1', '54.00', '1', '147', 'تحويل منتجات من المخزن', 'storemovementController.php', '54', '0', '1', '2026-10-14','0','0'); -- id=5903
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1881', '2', '54.00', '1', '2026-10-14'); -- id=3135
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1881, 0, 0
                    , 328.50, 54.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+54.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1455
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1881', '2', '54.00', '0', '147', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '54.00', '1', '2026-10-14','0','0'); -- id=5904
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1880', '51.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=148
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2897';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1880, 0, 0
                    , 360.00, 51.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-51.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=958
UPDATE storemovement SET  buyPricesHistoryBookData = "51.00*2026-10-12*360.00," WHERE transferproductid = 148;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1880', '1', '51.00', '1', '148', 'تحويل منتجات من المخزن', 'storemovementController.php', '51', '0', '1', '2026-10-14','0','0'); -- id=5905
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1880', '2', '51.00', '1', '2026-10-14'); -- id=3136
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1880, 0, 0
                    , 360.00, 51.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+51.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1457
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1880', '2', '51.00', '0', '148', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '51.00', '1', '2026-10-14','0','0'); -- id=5906
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1879', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=149
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2896';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1879, 0, 0
                    , 351.00, 32.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=957
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-12*351.00," WHERE transferproductid = 149;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1879', '1', '32.00', '1', '149', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=5907
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1879', '2', '32.00', '1', '2026-10-14'); -- id=3137
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1879, 0, 0
                    , 351.00, 32.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1459
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1879', '2', '32.00', '0', '149', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32.00', '1', '2026-10-14','0','0'); -- id=5908
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1878', '51.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=150
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2895';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1878, 0, 0
                    , 333.00, 51.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-51.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=956
UPDATE storemovement SET  buyPricesHistoryBookData = "51.00*2026-10-12*333.00," WHERE transferproductid = 150;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1878', '1', '51.00', '1', '150', 'تحويل منتجات من المخزن', 'storemovementController.php', '51', '0', '1', '2026-10-14','0','0'); -- id=5909
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1878', '2', '51.00', '1', '2026-10-14'); -- id=3138
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1878, 0, 0
                    , 333.00, 51.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+51.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1461
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1878', '2', '51.00', '0', '150', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '51.00', '1', '2026-10-14','0','0'); -- id=5910
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1877', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=151
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2894';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1877, 0, 0
                    , 324.00, 60.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=955
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-12*324.00," WHERE transferproductid = 151;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1877', '1', '60.00', '1', '151', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=5911
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1877', '2', '60.00', '1', '2026-10-14'); -- id=3139
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1877, 0, 0
                    , 324.00, 60.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1463
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1877', '2', '60.00', '0', '151', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60.00', '1', '2026-10-14','0','0'); -- id=5912
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1876', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=152
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2893';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1876, 0, 0
                    , 552.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=946
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*552.00," WHERE transferproductid = 152;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1876', '1', '24.00', '1', '152', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5913
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1876', '2', '24.00', '1', '2026-10-14'); -- id=3140
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1876, 0, 0
                    , 552.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1465
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1876', '2', '24.00', '0', '152', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5914
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1875', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=153
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2892';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1875, 0, 0
                    , 542.80, 28.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=945
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-12*542.80," WHERE transferproductid = 153;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1875', '1', '28.00', '1', '153', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=5915
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1875', '2', '28.00', '1', '2026-10-14'); -- id=3141
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1875, 0, 0
                    , 542.80, 28.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1467
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1875', '2', '28.00', '0', '153', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28.00', '1', '2026-10-14','0','0'); -- id=5916
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1874', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=154
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2891';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1874, 0, 0
                    , 478.40, 12.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=944
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-12*478.40," WHERE transferproductid = 154;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1874', '1', '12.00', '1', '154', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=5917
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1874', '2', '12.00', '1', '2026-10-14'); -- id=3142
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1874, 0, 0
                    , 478.40, 12.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1469
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1874', '2', '12.00', '0', '154', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=5918
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1873', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=155
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2890';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1873, 0, 0
                    , 432.40, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=943
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*432.40," WHERE transferproductid = 155;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1873', '1', '24.00', '1', '155', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5919
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1873', '2', '24.00', '1', '2026-10-14'); -- id=3143
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1873, 0, 0
                    , 432.40, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1471
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1873', '2', '24.00', '0', '155', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5920
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1872', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=156
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2889';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1872, 0, 0
                    , 450.80, 21.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=942
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-12*450.80," WHERE transferproductid = 156;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1872', '1', '21.00', '1', '156', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=5921
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1872', '2', '21.00', '1', '2026-10-14'); -- id=3144
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1872, 0, 0
                    , 450.80, 21.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1473
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1872', '2', '21.00', '0', '156', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21.00', '1', '2026-10-14','0','0'); -- id=5922
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1871', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=157
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2888';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1871, 0, 0
                    , 441.60, 28.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=941
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-12*441.60," WHERE transferproductid = 157;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1871', '1', '28.00', '1', '157', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=5923
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1871', '2', '28.00', '1', '2026-10-14'); -- id=3145
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1871, 0, 0
                    , 441.60, 28.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1475
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1871', '2', '28.00', '0', '157', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28.00', '1', '2026-10-14','0','0'); -- id=5924
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1870', '8.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=158
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2887';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1870, 0, 0
                    , 460.00, 8.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=940
UPDATE storemovement SET  buyPricesHistoryBookData = "8.00*2026-10-12*460.00," WHERE transferproductid = 158;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1870', '1', '8.00', '1', '158', 'تحويل منتجات من المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=5925
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1870', '2', '8.00', '1', '2026-10-14'); -- id=3146
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1870, 0, 0
                    , 460.00, 8.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1477
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1870', '2', '8.00', '0', '158', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8.00', '1', '2026-10-14','0','0'); -- id=5926
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1869', '56.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=159
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2886';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1869, 0, 0
                    , 340.40, 56.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-56.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=939
UPDATE storemovement SET  buyPricesHistoryBookData = "56.00*2026-10-12*340.40," WHERE transferproductid = 159;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1869', '1', '56.00', '1', '159', 'تحويل منتجات من المخزن', 'storemovementController.php', '56', '0', '1', '2026-10-14','0','0'); -- id=5927
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1869', '2', '56.00', '1', '2026-10-14'); -- id=3147
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1869, 0, 0
                    , 340.40, 56.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+56.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1479
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1869', '2', '56.00', '0', '159', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '56.00', '1', '2026-10-14','0','0'); -- id=5928
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1868', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=160
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2885';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1868, 0, 0
                    , 763.60, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=938
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*763.60," WHERE transferproductid = 160;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1868', '1', '24.00', '1', '160', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5929
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1868', '2', '24.00', '1', '2026-10-14'); -- id=3148
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1868, 0, 0
                    , 763.60, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1481
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1868', '2', '24.00', '0', '160', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5930
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1867', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=161
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2884';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1867, 0, 0
                    , 524.40, 32.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=937
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-12*524.40," WHERE transferproductid = 161;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1867', '1', '32.00', '1', '161', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=5931
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1867', '2', '32.00', '1', '2026-10-14'); -- id=3149
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1867, 0, 0
                    , 524.40, 32.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1483
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1867', '2', '32.00', '0', '161', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32.00', '1', '2026-10-14','0','0'); -- id=5932
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1866', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=162
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2883';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1866, 0, 0
                    , 358.80, 18.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=936
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-12*358.80," WHERE transferproductid = 162;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1866', '1', '18.00', '1', '162', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=5933
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1866', '2', '18.00', '1', '2026-10-14'); -- id=3150
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1866, 0, 0
                    , 358.80, 18.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1485
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1866', '2', '18.00', '0', '162', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18.00', '1', '2026-10-14','0','0'); -- id=5934
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1865', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=163
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2882';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 163;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1865', '1', '0.00', '1', '163', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5935
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1865', '2', '0.00', '1', '2026-10-14'); -- id=3151
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1865', '2', '0.00', '0', '163', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=5936
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1864', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=164
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2881';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1864, 0, 0
                    , 450.80, 28.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=935
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-12*450.80," WHERE transferproductid = 164;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1864', '1', '28.00', '1', '164', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=5937
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1864', '2', '28.00', '1', '2026-10-14'); -- id=3152
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1864, 0, 0
                    , 450.80, 28.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1487
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1864', '2', '28.00', '0', '164', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28.00', '1', '2026-10-14','0','0'); -- id=5938
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1863', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=165
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2880';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1863, 0, 0
                    , 404.80, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=934
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*404.80," WHERE transferproductid = 165;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1863', '1', '24.00', '1', '165', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5939
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1863', '2', '24.00', '1', '2026-10-14'); -- id=3153
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1863, 0, 0
                    , 404.80, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1489
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1863', '2', '24.00', '0', '165', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5940
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1862', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=166
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2879';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1862, 0, 0
                    , 580.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=951
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*580.00," WHERE transferproductid = 166;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1862', '1', '24.00', '1', '166', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5941
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1862', '2', '24.00', '1', '2026-10-14'); -- id=3154
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1862, 0, 0
                    , 580.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1491
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1862', '2', '24.00', '0', '166', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5942
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1861', '45.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=167
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2878';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1861, 0, 0
                    , 600.00, 45.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-45.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=950
UPDATE storemovement SET  buyPricesHistoryBookData = "45.00*2026-10-12*600.00," WHERE transferproductid = 167;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1861', '1', '45.00', '1', '167', 'تحويل منتجات من المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=5943
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1861', '2', '45.00', '1', '2026-10-14'); -- id=3155
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1861, 0, 0
                    , 600.00, 45.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1493
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1861', '2', '45.00', '0', '167', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45.00', '1', '2026-10-14','0','0'); -- id=5944
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1860', '19.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=168
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2877';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1860, 0, 0
                    , 435.00, 19.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-19.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=933
UPDATE storemovement SET  buyPricesHistoryBookData = "19.00*2026-10-12*435.00," WHERE transferproductid = 168;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1860', '1', '19.00', '1', '168', 'تحويل منتجات من المخزن', 'storemovementController.php', '19', '0', '1', '2026-10-14','0','0'); -- id=5945
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1860', '2', '19.00', '1', '2026-10-14'); -- id=3156
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1860, 0, 0
                    , 435.00, 19.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1495
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1860', '2', '19.00', '0', '168', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19.00', '1', '2026-10-14','0','0'); -- id=5946
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1859', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=169
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2876';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1859, 0, 0
                    , 435.00, 9.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=932
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-12*435.00," WHERE transferproductid = 169;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1859', '1', '9.00', '1', '169', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=5947
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1859', '2', '9.00', '1', '2026-10-14'); -- id=3157
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1859, 0, 0
                    , 435.00, 9.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1497
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1859', '2', '9.00', '0', '169', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9.00', '1', '2026-10-14','0','0'); -- id=5948
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1858', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=170
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2875';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 170;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1858', '1', '0.00', '1', '170', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5949
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1858', '2', '0.00', '1', '2026-10-14'); -- id=3158
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1858', '2', '0.00', '0', '170', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=5950
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1857', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=171
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2874';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1857, 0, 0
                    , 415.00, 6.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=930
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-12*415.00," WHERE transferproductid = 171;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1857', '1', '6.00', '1', '171', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=5951
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1857', '2', '6.00', '1', '2026-10-14'); -- id=3159
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1857, 0, 0
                    , 415.00, 6.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1499
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1857', '2', '6.00', '0', '171', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6.00', '1', '2026-10-14','0','0'); -- id=5952
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1856', '144.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=172
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2873';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1856, 0, 0
                    , 367.35, 144.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-144.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=903
UPDATE storemovement SET  buyPricesHistoryBookData = "144.00*2026-10-12*367.35," WHERE transferproductid = 172;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1856', '1', '144.00', '1', '172', 'تحويل منتجات من المخزن', 'storemovementController.php', '144', '0', '1', '2026-10-14','0','0'); -- id=5953
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1856', '2', '144.00', '1', '2026-10-14'); -- id=3160
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1856, 0, 0
                    , 367.35, 144.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+144.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1501
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1856', '2', '144.00', '0', '172', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '144.00', '1', '2026-10-14','0','0'); -- id=5954
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1855', '219.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=173
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2872';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1855, 0, 0
                    , 372.00, 219.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-219.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=902
UPDATE storemovement SET  buyPricesHistoryBookData = "219.00*2026-10-12*372.00," WHERE transferproductid = 173;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1855', '1', '219.00', '1', '173', 'تحويل منتجات من المخزن', 'storemovementController.php', '219', '0', '1', '2026-10-14','0','0'); -- id=5955
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1855', '2', '219.00', '1', '2026-10-14'); -- id=3161
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1855, 0, 0
                    , 372.00, 219.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+219.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1503
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1855', '2', '219.00', '0', '173', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '219.00', '1', '2026-10-14','0','0'); -- id=5956
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1854', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=174
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2871';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1854, 0, 0
                    , 780.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=901
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*780.00," WHERE transferproductid = 174;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1854', '1', '24.00', '1', '174', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5957
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1854', '2', '24.00', '1', '2026-10-14'); -- id=3162
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1854, 0, 0
                    , 780.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1505
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1854', '2', '24.00', '0', '174', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5958
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1853', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=175
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2870';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1853, 0, 0
                    , 730.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=900
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*730.00," WHERE transferproductid = 175;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1853', '1', '24.00', '1', '175', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5959
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1853', '2', '24.00', '1', '2026-10-14'); -- id=3163
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1853, 0, 0
                    , 730.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1507
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1853', '2', '24.00', '0', '175', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5960
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1852', '8.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=176
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2869';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1852, 0, 0
                    , 750.00, 8.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=899
UPDATE storemovement SET  buyPricesHistoryBookData = "8.00*2026-10-12*750.00," WHERE transferproductid = 176;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1852', '1', '8.00', '1', '176', 'تحويل منتجات من المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=5961
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1852', '2', '8.00', '1', '2026-10-14'); -- id=3164
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1852, 0, 0
                    , 750.00, 8.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1509
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1852', '2', '8.00', '0', '176', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8.00', '1', '2026-10-14','0','0'); -- id=5962
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1851', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=177
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2868';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1851, 0, 0
                    , 740.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=898
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*740.00," WHERE transferproductid = 177;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1851', '1', '24.00', '1', '177', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5963
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1851', '2', '24.00', '1', '2026-10-14'); -- id=3165
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1851, 0, 0
                    , 740.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1511
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1851', '2', '24.00', '0', '177', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5964
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1850', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:16','0','','0','','0','0','0','','','','0','0','','0'); -- id=178
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2867';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1850, 0, 0
                    , 740.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=897
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*740.00," WHERE transferproductid = 178;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1850', '1', '24.00', '1', '178', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5965
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1850', '2', '24.00', '1', '2026-10-14'); -- id=3166
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1850, 0, 0
                    , 740.00, 24.00, 0, 0, 1, '2026-10-14 18:00:16')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:16' ; -- id=1513
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1850', '2', '24.00', '0', '178', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5966
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1849', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=179
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2866';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1849, 0, 0
                    , 650.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=896
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*650.00," WHERE transferproductid = 179;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1849', '1', '24.00', '1', '179', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5967
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1849', '2', '24.00', '1', '2026-10-14'); -- id=3167
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1849, 0, 0
                    , 650.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1515
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1849', '2', '24.00', '0', '179', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5968
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1848', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=180
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2865';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1848, 0, 0
                    , 750.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=895
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-12*750.00," WHERE transferproductid = 180;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1848', '1', '28.00', '1', '180', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=5969
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1848', '2', '28.00', '1', '2026-10-14'); -- id=3168
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1848, 0, 0
                    , 750.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1517
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1848', '2', '28.00', '0', '180', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28.00', '1', '2026-10-14','0','0'); -- id=5970
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1847', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=181
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2864';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1847, 0, 0
                    , 750.00, 20.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=894
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-12*750.00," WHERE transferproductid = 181;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1847', '1', '20.00', '1', '181', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=5971
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1847', '2', '20.00', '1', '2026-10-14'); -- id=3169
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1847, 0, 0
                    , 750.00, 20.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1519
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1847', '2', '20.00', '0', '181', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=5972
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1846', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=182
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2863';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1846, 0, 0
                    , 600.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=893
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-12*600.00," WHERE transferproductid = 182;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1846', '1', '28.00', '1', '182', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=5973
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1846', '2', '28.00', '1', '2026-10-14'); -- id=3170
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1846, 0, 0
                    , 600.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1521
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1846', '2', '28.00', '0', '182', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28.00', '1', '2026-10-14','0','0'); -- id=5974
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1845', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=183
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2862';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1845, 0, 0
                    , 740.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=892
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*740.00," WHERE transferproductid = 183;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1845', '1', '24.00', '1', '183', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5975
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1845', '2', '24.00', '1', '2026-10-14'); -- id=3171
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1845, 0, 0
                    , 740.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1523
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1845', '2', '24.00', '0', '183', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5976
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1844', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=184
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2861';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1844, 0, 0
                    , 770.00, 20.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=891
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-12*770.00," WHERE transferproductid = 184;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1844', '1', '20.00', '1', '184', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=5977
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1844', '2', '20.00', '1', '2026-10-14'); -- id=3172
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1844, 0, 0
                    , 770.00, 20.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1525
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1844', '2', '20.00', '0', '184', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=5978
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1843', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=185
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2860';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1843, 0, 0
                    , 740.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=890
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*740.00," WHERE transferproductid = 185;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1843', '1', '24.00', '1', '185', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5979
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1843', '2', '24.00', '1', '2026-10-14'); -- id=3173
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1843, 0, 0
                    , 740.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1527
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1843', '2', '24.00', '0', '185', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5980
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1842', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=186
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2859';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1842, 0, 0
                    , 740.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=889
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*740.00," WHERE transferproductid = 186;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1842', '1', '24.00', '1', '186', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=5981
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1842', '2', '24.00', '1', '2026-10-14'); -- id=3174
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1842, 0, 0
                    , 740.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1529
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1842', '2', '24.00', '0', '186', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=5982
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1841', '84.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=187
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2856';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1841, 0, 0
                    , 235.00, 84.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-84.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=866
UPDATE storemovement SET  buyPricesHistoryBookData = "84.00*2026-10-12*235.00," WHERE transferproductid = 187;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1841', '1', '84.00', '1', '187', 'تحويل منتجات من المخزن', 'storemovementController.php', '84', '0', '1', '2026-10-14','0','0'); -- id=5983
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1841', '2', '84.00', '1', '2026-10-14'); -- id=3175
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1841, 0, 0
                    , 235.00, 84.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+84.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1531
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1841', '2', '84.00', '0', '187', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '84.00', '1', '2026-10-14','0','0'); -- id=5984
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1840', '138.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=188
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2855';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1840, 0, 0
                    , 297.00, 138.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-138.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=865
UPDATE storemovement SET  buyPricesHistoryBookData = "138.00*2026-10-12*297.00," WHERE transferproductid = 188;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1840', '1', '138.00', '1', '188', 'تحويل منتجات من المخزن', 'storemovementController.php', '138', '0', '1', '2026-10-14','0','0'); -- id=5985
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1840', '2', '138.00', '1', '2026-10-14'); -- id=3176
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1840, 0, 0
                    , 297.00, 138.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+138.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1533
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1840', '2', '138.00', '0', '188', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '138.00', '1', '2026-10-14','0','0'); -- id=5986
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1839', '72.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=189
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2854';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1839, 0, 0
                    , 405.00, 72.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=864
UPDATE storemovement SET  buyPricesHistoryBookData = "72.00*2026-10-12*405.00," WHERE transferproductid = 189;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1839', '1', '72.00', '1', '189', 'تحويل منتجات من المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=5987
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1839', '2', '72.00', '1', '2026-10-14'); -- id=3177
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1839, 0, 0
                    , 405.00, 72.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1535
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1839', '2', '72.00', '0', '189', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '72.00', '1', '2026-10-14','0','0'); -- id=5988
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1838', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=190
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2853';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1838, 0, 0
                    , 404.80, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=863
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-12*404.80," WHERE transferproductid = 190;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1838', '1', '21.00', '1', '190', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=5989
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1838', '2', '21.00', '1', '2026-10-14'); -- id=3178
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1838, 0, 0
                    , 404.80, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1537
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1838', '2', '21.00', '0', '190', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21.00', '1', '2026-10-14','0','0'); -- id=5990
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1837', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=191
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2852';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1837, 0, 0
                    , 437.00, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=862
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-12*437.00," WHERE transferproductid = 191;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1837', '1', '21.00', '1', '191', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=5991
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1837', '2', '21.00', '1', '2026-10-14'); -- id=3179
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1837, 0, 0
                    , 437.00, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1539
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1837', '2', '21.00', '0', '191', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21.00', '1', '2026-10-14','0','0'); -- id=5992
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1836', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=192
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2851';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1836, 0, 0
                    , 515.20, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=861
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-12*515.20," WHERE transferproductid = 192;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1836', '1', '21.00', '1', '192', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=5993
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1836', '2', '21.00', '1', '2026-10-14'); -- id=3180
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1836, 0, 0
                    , 515.20, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1541
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1836', '2', '21.00', '0', '192', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21.00', '1', '2026-10-14','0','0'); -- id=5994
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1835', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=193
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2850';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 193;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1835', '1', '0.00', '1', '193', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5995
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2858';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1835', '2', '0.00', '0', '193', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '24', '1', '2026-10-14','0','0'); -- id=5996
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1834', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=194
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2849';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 194;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1834', '1', '0.00', '1', '194', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=5997
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2857';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1834', '2', '0.00', '0', '194', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '24', '1', '2026-10-14','0','0'); -- id=5998
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1833', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=195
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2848';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1833, 0, 0
                    , 333.00, 18.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=858
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-12*333.00," WHERE transferproductid = 195;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1833', '1', '18.00', '1', '195', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=5999
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1833', '2', '18.00', '1', '2026-10-14'); -- id=3181
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1833, 0, 0
                    , 333.00, 18.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1543
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1833', '2', '18.00', '0', '195', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18.00', '1', '2026-10-14','0','0'); -- id=6000
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1832', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=196
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2847';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1832, 0, 0
                    , 324.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=857
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*324.00," WHERE transferproductid = 196;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1832', '1', '24.00', '1', '196', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6001
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1832', '2', '24.00', '1', '2026-10-14'); -- id=3182
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1832, 0, 0
                    , 324.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1545
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1832', '2', '24.00', '0', '196', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6002
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1831', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=197
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2846';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1831, 0, 0
                    , 315.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=856
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*315.00," WHERE transferproductid = 197;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1831', '1', '24.00', '1', '197', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6003
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1831', '2', '24.00', '1', '2026-10-14'); -- id=3183
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1831, 0, 0
                    , 315.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1547
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1831', '2', '24.00', '0', '197', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6004
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1830', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=198
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2845';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1830, 0, 0
                    , 315.00, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=855
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-12*315.00," WHERE transferproductid = 198;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1830', '1', '15.00', '1', '198', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6005
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1830', '2', '15.00', '1', '2026-10-14'); -- id=3184
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1830, 0, 0
                    , 315.00, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1549
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1830', '2', '15.00', '0', '198', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15.00', '1', '2026-10-14','0','0'); -- id=6006
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1829', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=199
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2844';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1829, 0, 0
                    , 315.00, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=854
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-12*315.00," WHERE transferproductid = 199;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1829', '1', '30.00', '1', '199', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6007
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1829', '2', '30.00', '1', '2026-10-14'); -- id=3185
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1829, 0, 0
                    , 315.00, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1551
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1829', '2', '30.00', '0', '199', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=6008
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1828', '33.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=200
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2843';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1828, 0, 0
                    , 324.00, 33.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=853
UPDATE storemovement SET  buyPricesHistoryBookData = "33.00*2026-10-12*324.00," WHERE transferproductid = 200;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1828', '1', '33.00', '1', '200', 'تحويل منتجات من المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=6009
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1828', '2', '33.00', '1', '2026-10-14'); -- id=3186
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1828, 0, 0
                    , 324.00, 33.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1553
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1828', '2', '33.00', '0', '200', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '33.00', '1', '2026-10-14','0','0'); -- id=6010
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1827', '55.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=201
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2841';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-10', 1, 1827, 0, 0
                    , 322.00, 55.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-55.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=829
UPDATE storemovement SET  buyPricesHistoryBookData = "55.00*2026-10-10*322.00," WHERE transferproductid = 201;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1827', '1', '55.00', '1', '201', 'تحويل منتجات من المخزن', 'storemovementController.php', '55', '0', '1', '2026-10-14','0','0'); -- id=6011
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1827', '2', '55.00', '1', '2026-10-14'); -- id=3187
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-10', 2, 1827, 0, 0
                    , 322.00, 55.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+55.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1555
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1827', '2', '55.00', '0', '201', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '55.00', '1', '2026-10-14','0','0'); -- id=6012
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1826', '56.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=202
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2840';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-10', 1, 1826, 0, 0
                    , 345.00, 56.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-56.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=828
UPDATE storemovement SET  buyPricesHistoryBookData = "56.00*2026-10-10*345.00," WHERE transferproductid = 202;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1826', '1', '56.00', '1', '202', 'تحويل منتجات من المخزن', 'storemovementController.php', '56', '0', '1', '2026-10-14','0','0'); -- id=6013
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1826', '2', '56.00', '1', '2026-10-14'); -- id=3188
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-10', 2, 1826, 0, 0
                    , 345.00, 56.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+56.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1557
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1826', '2', '56.00', '0', '202', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '56.00', '1', '2026-10-14','0','0'); -- id=6014
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1825', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=203
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2839';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1825, 0, 0
                    , 459.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=827
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-09*459.00," WHERE transferproductid = 203;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1825', '1', '12.00', '1', '203', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6015
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1825', '2', '12.00', '1', '2026-10-14'); -- id=3189
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1825, 0, 0
                    , 459.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1559
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1825', '2', '12.00', '0', '203', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=6016
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1824', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=204
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2838';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 204;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1824', '1', '0.00', '1', '204', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6017
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1824', '2', '0.00', '1', '2026-10-14'); -- id=3190
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1824', '2', '0.00', '0', '204', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=6018
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1823', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=205
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2837';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1823, 0, 0
                    , 585.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=825
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-09*585.00," WHERE transferproductid = 205;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1823', '1', '12.00', '1', '205', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6019
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1823', '2', '12.00', '1', '2026-10-14'); -- id=3191
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1823, 0, 0
                    , 585.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1561
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1823', '2', '12.00', '0', '205', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=6020
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1822', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=206
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2836';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1822, 0, 0
                    , 495.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=824
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*495.00," WHERE transferproductid = 206;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1822', '1', '24.00', '1', '206', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6021
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1822', '2', '24.00', '1', '2026-10-14'); -- id=3192
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1822, 0, 0
                    , 495.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1563
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1822', '2', '24.00', '0', '206', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6022
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1821', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=207
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2835';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1821, 0, 0
                    , 459.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=823
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*459.00," WHERE transferproductid = 207;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1821', '1', '24.00', '1', '207', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6023
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1821', '2', '24.00', '1', '2026-10-14'); -- id=3193
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1821, 0, 0
                    , 459.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1565
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1821', '2', '24.00', '0', '207', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6024
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1820', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=208
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2834';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1820, 0, 0
                    , 477.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=822
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*477.00," WHERE transferproductid = 208;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1820', '1', '24.00', '1', '208', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6025
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1820', '2', '24.00', '1', '2026-10-14'); -- id=3194
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1820, 0, 0
                    , 477.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1567
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1820', '2', '24.00', '0', '208', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6026
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1819', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=209
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2833';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1819, 0, 0
                    , 585.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=821
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-09*585.00," WHERE transferproductid = 209;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1819', '1', '12.00', '1', '209', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6027
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1819', '2', '12.00', '1', '2026-10-14'); -- id=3195
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1819, 0, 0
                    , 585.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1569
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1819', '2', '12.00', '0', '209', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=6028
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1818', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=210
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2832';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1818, 0, 0
                    , 585.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=820
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-09*585.00," WHERE transferproductid = 210;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1818', '1', '12.00', '1', '210', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6029
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1818', '2', '12.00', '1', '2026-10-14'); -- id=3196
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1818, 0, 0
                    , 585.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1571
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1818', '2', '12.00', '0', '210', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=6030
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1817', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=211
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2831';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1817, 0, 0
                    , 468.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=819
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-09*468.00," WHERE transferproductid = 211;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1817', '1', '12.00', '1', '211', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6031
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1817', '2', '12.00', '1', '2026-10-14'); -- id=3197
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1817, 0, 0
                    , 468.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1573
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1817', '2', '12.00', '0', '211', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=6032
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1816', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=212
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2830';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1816, 0, 0
                    , 459.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=818
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*459.00," WHERE transferproductid = 212;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1816', '1', '24.00', '1', '212', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6033
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1816', '2', '24.00', '1', '2026-10-14'); -- id=3198
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1816, 0, 0
                    , 459.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1575
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1816', '2', '24.00', '0', '212', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6034
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1815', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=213
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2829';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1815, 0, 0
                    , 405.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=817
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*405.00," WHERE transferproductid = 213;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1815', '1', '24.00', '1', '213', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6035
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1815', '2', '24.00', '1', '2026-10-14'); -- id=3199
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1815, 0, 0
                    , 405.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1577
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1815', '2', '24.00', '0', '213', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6036
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1814', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=214
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2828';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1814, 0, 0
                    , 459.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=816
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-09*459.00," WHERE transferproductid = 214;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1814', '1', '12.00', '1', '214', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6037
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1814', '2', '12.00', '1', '2026-10-14'); -- id=3200
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1814, 0, 0
                    , 459.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1579
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1814', '2', '12.00', '0', '214', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=6038
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1813', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=215
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2827';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1813, 0, 0
                    , 459.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=815
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-09*459.00," WHERE transferproductid = 215;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1813', '1', '12.00', '1', '215', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6039
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1813', '2', '12.00', '1', '2026-10-14'); -- id=3201
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1813, 0, 0
                    , 459.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1581
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1813', '2', '12.00', '0', '215', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=6040
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1812', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=216
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2826';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1812, 0, 0
                    , 522.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=814
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*522.00," WHERE transferproductid = 216;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1812', '1', '24.00', '1', '216', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6041
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1812', '2', '24.00', '1', '2026-10-14'); -- id=3202
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1812, 0, 0
                    , 522.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1583
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1812', '2', '24.00', '0', '216', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6042
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1811', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=217
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2825';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 217;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1811', '1', '0.00', '1', '217', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6043
UPDATE storedetail SET  productquantity = '1269', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2842';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1811', '2', '0.00', '0', '217', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '1269', '1269', '1', '2026-10-14','0','0'); -- id=6044
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1810', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=218
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2824';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1810, 0, 0
                    , 432.00, 36.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=793
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-09*432.00," WHERE transferproductid = 218;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1810', '1', '36.00', '1', '218', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6045
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1810', '2', '36.00', '1', '2026-10-14'); -- id=3203
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1810, 0, 0
                    , 432.00, 36.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1585
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1810', '2', '36.00', '0', '218', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36.00', '1', '2026-10-14','0','0'); -- id=6046
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1809', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=219
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2823';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1809, 0, 0
                    , 315.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=792
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*315.00," WHERE transferproductid = 219;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1809', '1', '24.00', '1', '219', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6047
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1809', '2', '24.00', '1', '2026-10-14'); -- id=3204
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1809, 0, 0
                    , 315.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1587
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1809', '2', '24.00', '0', '219', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6048
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1808', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=220
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2822';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1808, 0, 0
                    , 423.00, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=791
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-09*423.00," WHERE transferproductid = 220;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1808', '1', '15.00', '1', '220', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6049
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1808', '2', '15.00', '1', '2026-10-14'); -- id=3205
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1808, 0, 0
                    , 423.00, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1589
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1808', '2', '15.00', '0', '220', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15.00', '1', '2026-10-14','0','0'); -- id=6050
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1807', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=221
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2821';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1807, 0, 0
                    , 405.00, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=790
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-09*405.00," WHERE transferproductid = 221;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1807', '1', '15.00', '1', '221', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6051
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1807', '2', '15.00', '1', '2026-10-14'); -- id=3206
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1807, 0, 0
                    , 405.00, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1591
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1807', '2', '15.00', '0', '221', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15.00', '1', '2026-10-14','0','0'); -- id=6052
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1806', '39.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=222
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2820';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1806, 0, 0
                    , 297.00, 39.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-39.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=789
UPDATE storemovement SET  buyPricesHistoryBookData = "39.00*2026-10-09*297.00," WHERE transferproductid = 222;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1806', '1', '39.00', '1', '222', 'تحويل منتجات من المخزن', 'storemovementController.php', '39', '0', '1', '2026-10-14','0','0'); -- id=6053
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1806', '2', '39.00', '1', '2026-10-14'); -- id=3207
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1806, 0, 0
                    , 297.00, 39.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1593
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1806', '2', '39.00', '0', '222', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39.00', '1', '2026-10-14','0','0'); -- id=6054
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1805', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=223
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2819';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1805, 0, 0
                    , 441.00, 18.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=788
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-09*441.00," WHERE transferproductid = 223;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1805', '1', '18.00', '1', '223', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=6055
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1805', '2', '18.00', '1', '2026-10-14'); -- id=3208
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1805, 0, 0
                    , 441.00, 18.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1595
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1805', '2', '18.00', '0', '223', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18.00', '1', '2026-10-14','0','0'); -- id=6056
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1804', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=224
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2818';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1804, 0, 0
                    , 279.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=782
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-09*279.00," WHERE transferproductid = 224;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1804', '1', '28.00', '1', '224', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=6057
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1804', '2', '28.00', '1', '2026-10-14'); -- id=3209
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1804, 0, 0
                    , 279.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1597
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1804', '2', '28.00', '0', '224', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28.00', '1', '2026-10-14','0','0'); -- id=6058
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1803', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=225
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2817';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1803, 0, 0
                    , 279.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=787
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-09*279.00," WHERE transferproductid = 225;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1803', '1', '32.00', '1', '225', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=6059
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1803', '2', '32.00', '1', '2026-10-14'); -- id=3210
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1803, 0, 0
                    , 279.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1599
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1803', '2', '32.00', '0', '225', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32.00', '1', '2026-10-14','0','0'); -- id=6060
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1802', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=226
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2816';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1802, 0, 0
                    , 324.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=786
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*324.00," WHERE transferproductid = 226;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1802', '1', '24.00', '1', '226', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6061
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1802', '2', '24.00', '1', '2026-10-14'); -- id=3211
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1802, 0, 0
                    , 324.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1601
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1802', '2', '24.00', '0', '226', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6062
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1801', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=227
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2815';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1801, 0, 0
                    , 270.00, 40.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=785
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-09*270.00," WHERE transferproductid = 227;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1801', '1', '40.00', '1', '227', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=6063
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1801', '2', '40.00', '1', '2026-10-14'); -- id=3212
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1801, 0, 0
                    , 270.00, 40.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1603
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1801', '2', '40.00', '0', '227', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40.00', '1', '2026-10-14','0','0'); -- id=6064
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1800', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=228
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2814';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1800, 0, 0
                    , 288.00, 40.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=784
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-09*288.00," WHERE transferproductid = 228;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1800', '1', '40.00', '1', '228', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=6065
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1800', '2', '40.00', '1', '2026-10-14'); -- id=3213
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1800, 0, 0
                    , 288.00, 40.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1605
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1800', '2', '40.00', '0', '228', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40.00', '1', '2026-10-14','0','0'); -- id=6066
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1799', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=229
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2813';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1799, 0, 0
                    , 234.00, 40.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=783
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-09*234.00," WHERE transferproductid = 229;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1799', '1', '40.00', '1', '229', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=6067
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1799', '2', '40.00', '1', '2026-10-14'); -- id=3214
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1799, 0, 0
                    , 234.00, 40.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1607
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1799', '2', '40.00', '0', '229', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40.00', '1', '2026-10-14','0','0'); -- id=6068
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1798', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=230
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2812';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 230;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1798', '1', '0.00', '1', '230', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6069
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1798', '2', '0.00', '1', '2026-10-14'); -- id=3215
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1798', '2', '0.00', '0', '230', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=6070
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1797', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=231
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2811';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1797, 0, 0
                    , 279.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=781
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-09*279.00," WHERE transferproductid = 231;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1797', '1', '28.00', '1', '231', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=6071
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1797', '2', '28.00', '1', '2026-10-14'); -- id=3216
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1797, 0, 0
                    , 279.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1609
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1797', '2', '28.00', '0', '231', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28.00', '1', '2026-10-14','0','0'); -- id=6072
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1796', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=232
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2809';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 232;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1796', '1', '0.00', '1', '232', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6073
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1796', '2', '0.00', '1', '2026-10-14'); -- id=3217
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1796', '2', '0.00', '0', '232', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=6074
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1795', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=233
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2808';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1795, 0, 0
                    , 423.20, 6.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=777
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-09*423.20," WHERE transferproductid = 233;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1795', '1', '6.00', '1', '233', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=6075
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1795', '2', '6.00', '1', '2026-10-14'); -- id=3218
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1795, 0, 0
                    , 423.20, 6.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1611
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1795', '2', '6.00', '0', '233', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6.00', '1', '2026-10-14','0','0'); -- id=6076
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1794', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=234
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2807';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1794, 0, 0
                    , 404.80, 3.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=776
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-09*404.80," WHERE transferproductid = 234;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1794', '1', '3.00', '1', '234', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=6077
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1794', '2', '3.00', '1', '2026-10-14'); -- id=3219
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1794, 0, 0
                    , 404.80, 3.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1613
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1794', '2', '3.00', '0', '234', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3.00', '1', '2026-10-14','0','0'); -- id=6078
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1793', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=235
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2806';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 235;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1793', '1', '0.00', '1', '235', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6079
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1793', '2', '0.00', '1', '2026-10-14'); -- id=3220
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1793', '2', '0.00', '0', '235', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=6080
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1792', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=236
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2805';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1792, 0, 0
                    , 470.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=766
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*470.00," WHERE transferproductid = 236;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1792', '1', '24.00', '1', '236', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6081
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1792', '2', '24.00', '1', '2026-10-14'); -- id=3221
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1792, 0, 0
                    , 470.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1615
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1792', '2', '24.00', '0', '236', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6082
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1791', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=237
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2804';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1791, 0, 0
                    , 430.00, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=765
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-09*430.00," WHERE transferproductid = 237;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1791', '1', '21.00', '1', '237', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6083
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1791', '2', '21.00', '1', '2026-10-14'); -- id=3222
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1791, 0, 0
                    , 430.00, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1617
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1791', '2', '21.00', '0', '237', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21.00', '1', '2026-10-14','0','0'); -- id=6084
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1790', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=238
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2803';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1790, 0, 0
                    , 430.00, 9.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=764
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-09*430.00," WHERE transferproductid = 238;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1790', '1', '9.00', '1', '238', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6085
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1790', '2', '9.00', '1', '2026-10-14'); -- id=3223
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1790, 0, 0
                    , 430.00, 9.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1619
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1790', '2', '9.00', '0', '238', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9.00', '1', '2026-10-14','0','0'); -- id=6086
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1789', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=239
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2802';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1789, 0, 0
                    , 445.00, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=763
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-09*445.00," WHERE transferproductid = 239;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1789', '1', '30.00', '1', '239', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6087
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1789', '2', '30.00', '1', '2026-10-14'); -- id=3224
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1789, 0, 0
                    , 445.00, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1621
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1789', '2', '30.00', '0', '239', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=6088
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1788', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=240
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2801';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1788, 0, 0
                    , 345.00, 27.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=762
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-09*345.00," WHERE transferproductid = 240;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1788', '1', '27.00', '1', '240', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=6089
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1788', '2', '27.00', '1', '2026-10-14'); -- id=3225
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1788, 0, 0
                    , 345.00, 27.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1623
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1788', '2', '27.00', '0', '240', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27.00', '1', '2026-10-14','0','0'); -- id=6090
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1787', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=241
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2800';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1787, 0, 0
                    , 410.00, 9.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=761
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-09*410.00," WHERE transferproductid = 241;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1787', '1', '9.00', '1', '241', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6091
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1787', '2', '9.00', '1', '2026-10-14'); -- id=3226
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1787, 0, 0
                    , 410.00, 9.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1625
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1787', '2', '9.00', '0', '241', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9.00', '1', '2026-10-14','0','0'); -- id=6092
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1786', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=242
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2799';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1786, 0, 0
                    , 440.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=760
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*440.00," WHERE transferproductid = 242;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1786', '1', '24.00', '1', '242', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6093
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1786', '2', '24.00', '1', '2026-10-14'); -- id=3227
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1786, 0, 0
                    , 440.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1627
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1786', '2', '24.00', '0', '242', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6094
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1785', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=243
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2798';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1785, 0, 0
                    , 400.00, 6.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=759
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-09*400.00," WHERE transferproductid = 243;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1785', '1', '6.00', '1', '243', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=6095
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1785', '2', '6.00', '1', '2026-10-14'); -- id=3228
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1785, 0, 0
                    , 400.00, 6.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1629
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1785', '2', '6.00', '0', '243', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6.00', '1', '2026-10-14','0','0'); -- id=6096
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1784', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=244
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2797';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1784, 0, 0
                    , 350.00, 27.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=758
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-09*350.00," WHERE transferproductid = 244;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1784', '1', '27.00', '1', '244', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=6097
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1784', '2', '27.00', '1', '2026-10-14'); -- id=3229
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1784, 0, 0
                    , 350.00, 27.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1631
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1784', '2', '27.00', '0', '244', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27.00', '1', '2026-10-14','0','0'); -- id=6098
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1783', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=245
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2796';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1783, 0, 0
                    , 350.00, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=757
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-09*350.00," WHERE transferproductid = 245;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1783', '1', '30.00', '1', '245', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6099
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1783', '2', '30.00', '1', '2026-10-14'); -- id=3230
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1783, 0, 0
                    , 350.00, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1633
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1783', '2', '30.00', '0', '245', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=6100
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1782', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=246
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2795';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1782, 0, 0
                    , 390.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=756
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*390.00," WHERE transferproductid = 246;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1782', '1', '24.00', '1', '246', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6101
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1782', '2', '24.00', '1', '2026-10-14'); -- id=3231
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1782, 0, 0
                    , 390.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1635
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1782', '2', '24.00', '0', '246', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6102
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1781', '96.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=247
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2794';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1781, 0, 0
                    , 378.00, 96.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-96.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=739
UPDATE storemovement SET  buyPricesHistoryBookData = "96.00*2026-10-09*378.00," WHERE transferproductid = 247;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1781', '1', '96.00', '1', '247', 'تحويل منتجات من المخزن', 'storemovementController.php', '96', '0', '1', '2026-10-14','0','0'); -- id=6103
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1781', '2', '96.00', '1', '2026-10-14'); -- id=3232
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1781, 0, 0
                    , 378.00, 96.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+96.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1637
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1781', '2', '96.00', '0', '247', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '96.00', '1', '2026-10-14','0','0'); -- id=6104
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1780', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=248
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2793';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 248;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1780', '1', '0.00', '1', '248', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6105
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1780', '2', '0.00', '1', '2026-10-14'); -- id=3233
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1780', '2', '0.00', '0', '248', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=6106
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1779', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=249
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2792';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 249;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1779', '1', '0.00', '1', '249', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6107
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2810';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1779', '2', '0.00', '0', '249', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6108
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1778', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=250
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2791';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1778, 0, 0
                    , 450.00, 48.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=736
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-09*450.00," WHERE transferproductid = 250;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1778', '1', '48.00', '1', '250', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=6109
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1778', '2', '48.00', '1', '2026-10-14'); -- id=3234
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1778, 0, 0
                    , 450.00, 48.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1639
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1778', '2', '48.00', '0', '250', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48.00', '1', '2026-10-14','0','0'); -- id=6110
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1777', '100.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=251
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2790';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1777, 0, 0
                    , 324.00, 100.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-100.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=735
UPDATE storemovement SET  buyPricesHistoryBookData = "100.00*2026-10-09*324.00," WHERE transferproductid = 251;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1777', '1', '100.00', '1', '251', 'تحويل منتجات من المخزن', 'storemovementController.php', '100', '0', '1', '2026-10-14','0','0'); -- id=6111
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1777', '2', '100.00', '1', '2026-10-14'); -- id=3235
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1777, 0, 0
                    , 324.00, 100.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+100.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1641
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1777', '2', '100.00', '0', '251', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '100.00', '1', '2026-10-14','0','0'); -- id=6112
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1776', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=252
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2789';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1776, 0, 0
                    , 405.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=734
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*405.00," WHERE transferproductid = 252;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1776', '1', '24.00', '1', '252', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6113
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1776', '2', '24.00', '1', '2026-10-14'); -- id=3236
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1776, 0, 0
                    , 405.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1643
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1776', '2', '24.00', '0', '252', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6114
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1775', '124.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=253
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2788';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1775, 0, 0
                    , 450.00, 124.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-124.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=733
UPDATE storemovement SET  buyPricesHistoryBookData = "124.00*2026-10-09*450.00," WHERE transferproductid = 253;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1775', '1', '124.00', '1', '253', 'تحويل منتجات من المخزن', 'storemovementController.php', '124', '0', '1', '2026-10-14','0','0'); -- id=6115
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1775', '2', '124.00', '1', '2026-10-14'); -- id=3237
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1775, 0, 0
                    , 450.00, 124.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+124.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1645
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1775', '2', '124.00', '0', '253', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '124.00', '1', '2026-10-14','0','0'); -- id=6116
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1774', '108.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=254
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2787';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1774, 0, 0
                    , 378.00, 108.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-108.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=732
UPDATE storemovement SET  buyPricesHistoryBookData = "108.00*2026-10-09*378.00," WHERE transferproductid = 254;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1774', '1', '108.00', '1', '254', 'تحويل منتجات من المخزن', 'storemovementController.php', '108', '0', '1', '2026-10-14','0','0'); -- id=6117
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1774', '2', '108.00', '1', '2026-10-14'); -- id=3238
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1774, 0, 0
                    , 378.00, 108.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+108.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1647
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1774', '2', '108.00', '0', '254', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '108.00', '1', '2026-10-14','0','0'); -- id=6118
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1773', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=255
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2786';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1773, 0, 0
                    , 890.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=687
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-08*890.00," WHERE transferproductid = 255;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1773', '1', '32.00', '1', '255', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=6119
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1773', '2', '32.00', '1', '2026-10-14'); -- id=3239
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1773, 0, 0
                    , 890.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1649
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1773', '2', '32.00', '0', '255', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32.00', '1', '2026-10-14','0','0'); -- id=6120
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1772', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=256
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2785';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1772, 0, 0
                    , 940.00, 48.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=686
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-08*940.00," WHERE transferproductid = 256;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1772', '1', '48.00', '1', '256', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=6121
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1772', '2', '48.00', '1', '2026-10-14'); -- id=3240
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1772, 0, 0
                    , 940.00, 48.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1651
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1772', '2', '48.00', '0', '256', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48.00', '1', '2026-10-14','0','0'); -- id=6122
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1771', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=257
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2784';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1771, 0, 0
                    , 920.00, 48.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=685
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-08*920.00," WHERE transferproductid = 257;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1771', '1', '48.00', '1', '257', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=6123
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1771', '2', '48.00', '1', '2026-10-14'); -- id=3241
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1771, 0, 0
                    , 920.00, 48.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1653
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1771', '2', '48.00', '0', '257', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48.00', '1', '2026-10-14','0','0'); -- id=6124
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1770', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=258
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2783';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1770, 0, 0
                    , 490.00, 36.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=684
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-08*490.00," WHERE transferproductid = 258;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1770', '1', '36.00', '1', '258', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6125
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1770', '2', '36.00', '1', '2026-10-14'); -- id=3242
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1770, 0, 0
                    , 490.00, 36.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1655
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1770', '2', '36.00', '0', '258', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36.00', '1', '2026-10-14','0','0'); -- id=6126
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1769', '8.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=259
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2782';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1769, 0, 0
                    , 980.00, 8.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=683
UPDATE storemovement SET  buyPricesHistoryBookData = "8.00*2026-10-08*980.00," WHERE transferproductid = 259;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1769', '1', '8.00', '1', '259', 'تحويل منتجات من المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=6127
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1769', '2', '8.00', '1', '2026-10-14'); -- id=3243
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1769, 0, 0
                    , 980.00, 8.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1657
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1769', '2', '8.00', '0', '259', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8.00', '1', '2026-10-14','0','0'); -- id=6128
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1768', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=260
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2781';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1768, 0, 0
                    , 500.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=682
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-08*500.00," WHERE transferproductid = 260;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1768', '1', '28.00', '1', '260', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=6129
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1768', '2', '28.00', '1', '2026-10-14'); -- id=3244
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1768, 0, 0
                    , 500.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1659
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1768', '2', '28.00', '0', '260', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28.00', '1', '2026-10-14','0','0'); -- id=6130
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1767', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=261
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2780';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1767, 0, 0
                    , 525.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=681
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-08*525.00," WHERE transferproductid = 261;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1767', '1', '32.00', '1', '261', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=6131
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1767', '2', '32.00', '1', '2026-10-14'); -- id=3245
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1767, 0, 0
                    , 525.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1661
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1767', '2', '32.00', '0', '261', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32.00', '1', '2026-10-14','0','0'); -- id=6132
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1766', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=262
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2779';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1766, 0, 0
                    , 620.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=680
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-08*620.00," WHERE transferproductid = 262;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1766', '1', '28.00', '1', '262', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=6133
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1766', '2', '28.00', '1', '2026-10-14'); -- id=3246
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1766, 0, 0
                    , 620.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1663
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1766', '2', '28.00', '0', '262', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28.00', '1', '2026-10-14','0','0'); -- id=6134
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1765', '16.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=263
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2778';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1765, 0, 0
                    , 920.00, 16.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-16.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=679
UPDATE storemovement SET  buyPricesHistoryBookData = "16.00*2026-10-08*920.00," WHERE transferproductid = 263;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1765', '1', '16.00', '1', '263', 'تحويل منتجات من المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=6135
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1765', '2', '16.00', '1', '2026-10-14'); -- id=3247
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1765, 0, 0
                    , 920.00, 16.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1665
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1765', '2', '16.00', '0', '263', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16.00', '1', '2026-10-14','0','0'); -- id=6136
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1764', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=264
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2777';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1764, 0, 0
                    , 550.00, 36.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=678
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-08*550.00," WHERE transferproductid = 264;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1764', '1', '36.00', '1', '264', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6137
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1764', '2', '36.00', '1', '2026-10-14'); -- id=3248
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1764, 0, 0
                    , 550.00, 36.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1667
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1764', '2', '36.00', '0', '264', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36.00', '1', '2026-10-14','0','0'); -- id=6138
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1763', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=265
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2776';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1763, 0, 0
                    , 520.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=677
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-08*520.00," WHERE transferproductid = 265;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1763', '1', '32.00', '1', '265', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=6139
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1763', '2', '32.00', '1', '2026-10-14'); -- id=3249
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1763, 0, 0
                    , 520.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1669
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1763', '2', '32.00', '0', '265', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32.00', '1', '2026-10-14','0','0'); -- id=6140
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1762', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=266
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2775';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1762, 0, 0
                    , 590.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=676
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-08*590.00," WHERE transferproductid = 266;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1762', '1', '32.00', '1', '266', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=6141
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1762', '2', '32.00', '1', '2026-10-14'); -- id=3250
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1762, 0, 0
                    , 590.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1671
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1762', '2', '32.00', '0', '266', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32.00', '1', '2026-10-14','0','0'); -- id=6142
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1761', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=267
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2774';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1761, 0, 0
                    , 470.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=675
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*470.00," WHERE transferproductid = 267;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1761', '1', '24.00', '1', '267', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6143
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1761', '2', '24.00', '1', '2026-10-14'); -- id=3251
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1761, 0, 0
                    , 470.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1673
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1761', '2', '24.00', '0', '267', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6144
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1760', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=268
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2773';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1760, 0, 0
                    , 460.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=674
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-08*460.00," WHERE transferproductid = 268;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1760', '1', '32.00', '1', '268', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=6145
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1760', '2', '32.00', '1', '2026-10-14'); -- id=3252
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1760, 0, 0
                    , 460.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1675
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1760', '2', '32.00', '0', '268', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32.00', '1', '2026-10-14','0','0'); -- id=6146
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1759', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=269
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2772';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 269;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1759', '1', '0.00', '1', '269', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6147
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1759', '2', '0.00', '1', '2026-10-14'); -- id=3253
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1759', '2', '0.00', '0', '269', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=6148
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1758', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=270
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2771';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1758, 0, 0
                    , 470.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=672
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*470.00," WHERE transferproductid = 270;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1758', '1', '24.00', '1', '270', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6149
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1758', '2', '24.00', '1', '2026-10-14'); -- id=3254
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1758, 0, 0
                    , 470.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1677
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1758', '2', '24.00', '0', '270', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6150
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1757', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=271
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2770';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1757, 0, 0
                    , 450.00, 20.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=671
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-08*450.00," WHERE transferproductid = 271;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1757', '1', '20.00', '1', '271', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=6151
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1757', '2', '20.00', '1', '2026-10-14'); -- id=3255
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1757, 0, 0
                    , 450.00, 20.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1679
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1757', '2', '20.00', '0', '271', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=6152
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1756', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=272
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2769';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1756, 0, 0
                    , 490.00, 5.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=670
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-08*490.00," WHERE transferproductid = 272;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1756', '1', '5.00', '1', '272', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=6153
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1756', '2', '5.00', '1', '2026-10-14'); -- id=3256
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1756, 0, 0
                    , 490.00, 5.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1681
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1756', '2', '5.00', '0', '272', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5.00', '1', '2026-10-14','0','0'); -- id=6154
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1755', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=273
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2768';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1755, 0, 0
                    , 470.00, 20.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=669
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-08*470.00," WHERE transferproductid = 273;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1755', '1', '20.00', '1', '273', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=6155
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1755', '2', '20.00', '1', '2026-10-14'); -- id=3257
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1755, 0, 0
                    , 470.00, 20.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1683
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1755', '2', '20.00', '0', '273', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=6156
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1754', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=274
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2767';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1754, 0, 0
                    , 450.00, 20.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=668
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-08*450.00," WHERE transferproductid = 274;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1754', '1', '20.00', '1', '274', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=6157
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1754', '2', '20.00', '1', '2026-10-14'); -- id=3258
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1754, 0, 0
                    , 450.00, 20.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1685
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1754', '2', '20.00', '0', '274', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=6158
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1753', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=275
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2766';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1753, 0, 0
                    , 430.00, 20.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=667
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-08*430.00," WHERE transferproductid = 275;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1753', '1', '20.00', '1', '275', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=6159
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1753', '2', '20.00', '1', '2026-10-14'); -- id=3259
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1753, 0, 0
                    , 430.00, 20.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1687
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1753', '2', '20.00', '0', '275', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=6160
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1752', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=276
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2765';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1752, 0, 0
                    , 430.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=666
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*430.00," WHERE transferproductid = 276;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1752', '1', '24.00', '1', '276', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6161
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1752', '2', '24.00', '1', '2026-10-14'); -- id=3260
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1752, 0, 0
                    , 430.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1689
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1752', '2', '24.00', '0', '276', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6162
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1751', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=277
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2764';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1751, 0, 0
                    , 450.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=665
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*450.00," WHERE transferproductid = 277;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1751', '1', '24.00', '1', '277', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6163
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1751', '2', '24.00', '1', '2026-10-14'); -- id=3261
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1751, 0, 0
                    , 450.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1691
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1751', '2', '24.00', '0', '277', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6164
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1750', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=278
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2763';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 278;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1750', '1', '0.00', '1', '278', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6165
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1750', '2', '0.00', '1', '2026-10-14'); -- id=3262
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1750', '2', '0.00', '0', '278', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=6166
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1749', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=279
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2762';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1749, 0, 0
                    , 380.00, 27.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=663
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-08*380.00," WHERE transferproductid = 279;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1749', '1', '27.00', '1', '279', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=6167
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1749', '2', '27.00', '1', '2026-10-14'); -- id=3263
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1749, 0, 0
                    , 380.00, 27.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1693
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1749', '2', '27.00', '0', '279', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27.00', '1', '2026-10-14','0','0'); -- id=6168
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1748', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=280
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2761';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1748, 0, 0
                    , 280.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=662
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*280.00," WHERE transferproductid = 280;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1748', '1', '24.00', '1', '280', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6169
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1748', '2', '24.00', '1', '2026-10-14'); -- id=3264
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1748, 0, 0
                    , 280.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1695
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1748', '2', '24.00', '0', '280', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6170
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1747', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=281
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2760';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1747, 0, 0
                    , 470.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=661
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-08*470.00," WHERE transferproductid = 281;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1747', '1', '28.00', '1', '281', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=6171
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1747', '2', '28.00', '1', '2026-10-14'); -- id=3265
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1747, 0, 0
                    , 470.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1697
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1747', '2', '28.00', '0', '281', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28.00', '1', '2026-10-14','0','0'); -- id=6172
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1746', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=282
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2759';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1746, 0, 0
                    , 450.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=660
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*450.00," WHERE transferproductid = 282;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1746', '1', '24.00', '1', '282', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6173
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1746', '2', '24.00', '1', '2026-10-14'); -- id=3266
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1746, 0, 0
                    , 450.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1699
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1746', '2', '24.00', '0', '282', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6174
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1745', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=283
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2758';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1745, 0, 0
                    , 470.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=659
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*470.00," WHERE transferproductid = 283;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1745', '1', '24.00', '1', '283', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6175
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1745', '2', '24.00', '1', '2026-10-14'); -- id=3267
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1745, 0, 0
                    , 470.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1701
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1745', '2', '24.00', '0', '283', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6176
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1744', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=284
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2757';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1744, 0, 0
                    , 280.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=658
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*280.00," WHERE transferproductid = 284;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1744', '1', '24.00', '1', '284', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6177
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1744', '2', '24.00', '1', '2026-10-14'); -- id=3268
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1744, 0, 0
                    , 280.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1703
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1744', '2', '24.00', '0', '284', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6178
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1743', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=285
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2756';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1743, 0, 0
                    , 300.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=656
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-08*300.00," WHERE transferproductid = 285;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1743', '1', '32.00', '1', '285', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=6179
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1743', '2', '32.00', '1', '2026-10-14'); -- id=3269
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1743, 0, 0
                    , 300.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1705
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1743', '2', '32.00', '0', '285', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32.00', '1', '2026-10-14','0','0'); -- id=6180
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1742', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=286
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2755';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1742, 0, 0
                    , 490.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=655
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-08*490.00," WHERE transferproductid = 286;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1742', '1', '28.00', '1', '286', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=6181
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1742', '2', '28.00', '1', '2026-10-14'); -- id=3270
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1742, 0, 0
                    , 490.00, 28.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1707
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1742', '2', '28.00', '0', '286', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28.00', '1', '2026-10-14','0','0'); -- id=6182
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1741', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=287
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2754';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1741, 0, 0
                    , 450.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=654
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*450.00," WHERE transferproductid = 287;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1741', '1', '24.00', '1', '287', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6183
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1741', '2', '24.00', '1', '2026-10-14'); -- id=3271
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1741, 0, 0
                    , 450.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1709
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1741', '2', '24.00', '0', '287', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6184
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1740', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=288
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2753';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1740, 0, 0
                    , 700.00, 48.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=653
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-08*700.00," WHERE transferproductid = 288;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1740', '1', '48.00', '1', '288', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=6185
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1740', '2', '48.00', '1', '2026-10-14'); -- id=3272
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1740, 0, 0
                    , 700.00, 48.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1711
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1740', '2', '48.00', '0', '288', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48.00', '1', '2026-10-14','0','0'); -- id=6186
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1739', '76.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=289
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2752';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1739, 0, 0
                    , 650.00, 76.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-76.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=652
UPDATE storemovement SET  buyPricesHistoryBookData = "76.00*2026-10-08*650.00," WHERE transferproductid = 289;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1739', '1', '76.00', '1', '289', 'تحويل منتجات من المخزن', 'storemovementController.php', '76', '0', '1', '2026-10-14','0','0'); -- id=6187
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1739', '2', '76.00', '1', '2026-10-14'); -- id=3273
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1739, 0, 0
                    , 650.00, 76.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+76.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1713
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1739', '2', '76.00', '0', '289', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '76.00', '1', '2026-10-14','0','0'); -- id=6188
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1738', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=290
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2751';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1738, 0, 0
                    , 750.00, 20.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=651
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-08*750.00," WHERE transferproductid = 290;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1738', '1', '20.00', '1', '290', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=6189
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1738', '2', '20.00', '1', '2026-10-14'); -- id=3274
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1738, 0, 0
                    , 750.00, 20.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1715
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1738', '2', '20.00', '0', '290', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20.00', '1', '2026-10-14','0','0'); -- id=6190
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1737', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=291
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2750';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1737, 0, 0
                    , 800.00, 36.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=650
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-08*800.00," WHERE transferproductid = 291;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1737', '1', '36.00', '1', '291', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6191
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1737', '2', '36.00', '1', '2026-10-14'); -- id=3275
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1737, 0, 0
                    , 800.00, 36.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1717
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1737', '2', '36.00', '0', '291', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36.00', '1', '2026-10-14','0','0'); -- id=6192
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1736', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=292
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2749';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1736, 0, 0
                    , 700.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=649
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-08*700.00," WHERE transferproductid = 292;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1736', '1', '32.00', '1', '292', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=6193
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1736', '2', '32.00', '1', '2026-10-14'); -- id=3276
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1736, 0, 0
                    , 700.00, 32.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1719
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1736', '2', '32.00', '0', '292', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32.00', '1', '2026-10-14','0','0'); -- id=6194
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1735', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=293
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2748';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1735, 0, 0
                    , 900.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=648
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-08*900.00," WHERE transferproductid = 293;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1735', '1', '12.00', '1', '293', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6195
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1735', '2', '12.00', '1', '2026-10-14'); -- id=3277
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1735, 0, 0
                    , 900.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1721
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1735', '2', '12.00', '0', '293', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=6196
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1734', '64.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=294
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2747';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1734, 0, 0
                    , 750.00, 64.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-64.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=647
UPDATE storemovement SET  buyPricesHistoryBookData = "64.00*2026-10-08*750.00," WHERE transferproductid = 294;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1734', '1', '64.00', '1', '294', 'تحويل منتجات من المخزن', 'storemovementController.php', '64', '0', '1', '2026-10-14','0','0'); -- id=6197
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1734', '2', '64.00', '1', '2026-10-14'); -- id=3278
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1734, 0, 0
                    , 750.00, 64.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+64.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1723
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1734', '2', '64.00', '0', '294', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '64.00', '1', '2026-10-14','0','0'); -- id=6198
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1733', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=295
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2746';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1733, 0, 0
                    , 331.20, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=646
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*331.20," WHERE transferproductid = 295;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1733', '1', '24.00', '1', '295', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6199
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1733', '2', '24.00', '1', '2026-10-14'); -- id=3279
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1733, 0, 0
                    , 331.20, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1725
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1733', '2', '24.00', '0', '295', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6200
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1732', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=296
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2745';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1732, 0, 0
                    , 358.80, 27.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=645
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-08*358.80," WHERE transferproductid = 296;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1732', '1', '27.00', '1', '296', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=6201
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1732', '2', '27.00', '1', '2026-10-14'); -- id=3280
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1732, 0, 0
                    , 358.80, 27.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1727
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1732', '2', '27.00', '0', '296', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27.00', '1', '2026-10-14','0','0'); -- id=6202
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1731', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=297
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2744';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1731, 0, 0
                    , 395.60, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=644
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-08*395.60," WHERE transferproductid = 297;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1731', '1', '21.00', '1', '297', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6203
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1731', '2', '21.00', '1', '2026-10-14'); -- id=3281
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1731, 0, 0
                    , 395.60, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1729
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1731', '2', '21.00', '0', '297', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21.00', '1', '2026-10-14','0','0'); -- id=6204
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1730', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=298
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2743';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1730, 0, 0
                    , 496.80, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=643
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-08*496.80," WHERE transferproductid = 298;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1730', '1', '15.00', '1', '298', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6205
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1730', '2', '15.00', '1', '2026-10-14'); -- id=3282
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1730, 0, 0
                    , 496.80, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1731
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1730', '2', '15.00', '0', '298', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15.00', '1', '2026-10-14','0','0'); -- id=6206
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1729', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=299
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2742';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1729, 0, 0
                    , 432.40, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=628
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-08*432.40," WHERE transferproductid = 299;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1729', '1', '30.00', '1', '299', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6207
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1729', '2', '30.00', '1', '2026-10-14'); -- id=3283
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1729, 0, 0
                    , 432.40, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1733
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1729', '2', '30.00', '0', '299', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=6208
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1728', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=300
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2741';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1728, 0, 0
                    , 414.00, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=627
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-08*414.00," WHERE transferproductid = 300;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1728', '1', '30.00', '1', '300', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6209
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1728', '2', '30.00', '1', '2026-10-14'); -- id=3284
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1728, 0, 0
                    , 414.00, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1735
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1728', '2', '30.00', '0', '300', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=6210
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1727', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=301
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2740';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1727, 0, 0
                    , 441.60, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=626
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-08*441.60," WHERE transferproductid = 301;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1727', '1', '21.00', '1', '301', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6211
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1727', '2', '21.00', '1', '2026-10-14'); -- id=3285
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1727, 0, 0
                    , 441.60, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1737
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1727', '2', '21.00', '0', '301', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21.00', '1', '2026-10-14','0','0'); -- id=6212
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1726', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=302
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2739';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1726, 0, 0
                    , 427.80, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=625
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-08*427.80," WHERE transferproductid = 302;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1726', '1', '21.00', '1', '302', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6213
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1726', '2', '21.00', '1', '2026-10-14'); -- id=3286
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1726, 0, 0
                    , 427.80, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1739
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1726', '2', '21.00', '0', '302', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21.00', '1', '2026-10-14','0','0'); -- id=6214
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1725', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=303
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2738';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1725, 0, 0
                    , 345.00, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=624
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-08*345.00," WHERE transferproductid = 303;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1725', '1', '15.00', '1', '303', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6215
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1725', '2', '15.00', '1', '2026-10-14'); -- id=3287
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1725, 0, 0
                    , 345.00, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1741
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1725', '2', '15.00', '0', '303', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15.00', '1', '2026-10-14','0','0'); -- id=6216
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1724', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=304
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2737';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1724, 0, 0
                    , 349.60, 18.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=623
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-08*349.60," WHERE transferproductid = 304;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1724', '1', '18.00', '1', '304', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=6217
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1724', '2', '18.00', '1', '2026-10-14'); -- id=3288
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1724, 0, 0
                    , 349.60, 18.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1743
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1724', '2', '18.00', '0', '304', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18.00', '1', '2026-10-14','0','0'); -- id=6218
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1723', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=305
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2736';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1723, 0, 0
                    , 340.40, 18.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=622
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-08*340.40," WHERE transferproductid = 305;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1723', '1', '18.00', '1', '305', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=6219
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1723', '2', '18.00', '1', '2026-10-14'); -- id=3289
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1723, 0, 0
                    , 340.40, 18.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1745
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1723', '2', '18.00', '0', '305', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18.00', '1', '2026-10-14','0','0'); -- id=6220
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1722', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=306
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2734';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 306;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1722', '1', '0.00', '1', '306', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6221
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2735';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1722', '2', '0.00', '0', '306', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '30', '1', '2026-10-14','0','0'); -- id=6222
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1721', '189.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=307
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2733';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1721, 0, 0
                    , 324.00, 189.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-189.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=584
UPDATE storemovement SET  buyPricesHistoryBookData = "189.00*2026-10-08*324.00," WHERE transferproductid = 307;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1721', '1', '189.00', '1', '307', 'تحويل منتجات من المخزن', 'storemovementController.php', '189', '0', '1', '2026-10-14','0','0'); -- id=6223
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1721', '2', '189.00', '1', '2026-10-14'); -- id=3290
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1721, 0, 0
                    , 324.00, 189.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+189.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1747
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1721', '2', '189.00', '0', '307', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '189.00', '1', '2026-10-14','0','0'); -- id=6224
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1720', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=308
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2732';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1720, 0, 0
                    , 480.00, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=583
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-08*480.00," WHERE transferproductid = 308;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1720', '1', '21.00', '1', '308', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6225
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1720', '2', '21.00', '1', '2026-10-14'); -- id=3291
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1720, 0, 0
                    , 480.00, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1749
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1720', '2', '21.00', '0', '308', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21.00', '1', '2026-10-14','0','0'); -- id=6226
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1719', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=309
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2731';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1719, 0, 0
                    , 500.00, 60.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=582
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-08*500.00," WHERE transferproductid = 309;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1719', '1', '60.00', '1', '309', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=6227
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1719', '2', '60.00', '1', '2026-10-14'); -- id=3292
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1719, 0, 0
                    , 500.00, 60.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1751
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1719', '2', '60.00', '0', '309', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60.00', '1', '2026-10-14','0','0'); -- id=6228
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1718', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=310
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2730';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1718, 0, 0
                    , 510.00, 60.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=581
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-08*510.00," WHERE transferproductid = 310;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1718', '1', '60.00', '1', '310', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=6229
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1718', '2', '60.00', '1', '2026-10-14'); -- id=3293
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1718, 0, 0
                    , 510.00, 60.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1753
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1718', '2', '60.00', '0', '310', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60.00', '1', '2026-10-14','0','0'); -- id=6230
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1717', '107.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=311
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2729';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1717, 0, 0
                    , 520.00, 107.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-107.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=580
UPDATE storemovement SET  buyPricesHistoryBookData = "107.00*2026-10-08*520.00," WHERE transferproductid = 311;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1717', '1', '107.00', '1', '311', 'تحويل منتجات من المخزن', 'storemovementController.php', '107', '0', '1', '2026-10-14','0','0'); -- id=6231
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1717', '2', '107.00', '1', '2026-10-14'); -- id=3294
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1717, 0, 0
                    , 520.00, 107.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+107.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1755
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1717', '2', '107.00', '0', '311', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '107.00', '1', '2026-10-14','0','0'); -- id=6232
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1716', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=312
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2728';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1716, 0, 0
                    , 600.00, 36.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=579
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-08*600.00," WHERE transferproductid = 312;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1716', '1', '36.00', '1', '312', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6233
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1716', '2', '36.00', '1', '2026-10-14'); -- id=3295
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1716, 0, 0
                    , 600.00, 36.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1757
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1716', '2', '36.00', '0', '312', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36.00', '1', '2026-10-14','0','0'); -- id=6234
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1715', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=313
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2727';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1715, 0, 0
                    , 437.00, 27.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=578
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-08*437.00," WHERE transferproductid = 313;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1715', '1', '27.00', '1', '313', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=6235
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1715', '2', '27.00', '1', '2026-10-14'); -- id=3296
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1715, 0, 0
                    , 437.00, 27.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1759
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1715', '2', '27.00', '0', '313', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27.00', '1', '2026-10-14','0','0'); -- id=6236
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1714', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=314
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2726';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1714, 0, 0
                    , 524.40, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=577
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-08*524.40," WHERE transferproductid = 314;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1714', '1', '30.00', '1', '314', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6237
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1714', '2', '30.00', '1', '2026-10-14'); -- id=3297
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1714, 0, 0
                    , 524.40, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1761
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1714', '2', '30.00', '0', '314', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=6238
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1713', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=315
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2725';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1713, 0, 0
                    , 395.60, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=576
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*395.60," WHERE transferproductid = 315;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1713', '1', '24.00', '1', '315', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6239
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1713', '2', '24.00', '1', '2026-10-14'); -- id=3298
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1713, 0, 0
                    , 395.60, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1763
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1713', '2', '24.00', '0', '315', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6240
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1712', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=316
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2724';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1712, 0, 0
                    , 427.80, 18.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=575
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-08*427.80," WHERE transferproductid = 316;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1712', '1', '18.00', '1', '316', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=6241
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1712', '2', '18.00', '1', '2026-10-14'); -- id=3299
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1712, 0, 0
                    , 427.80, 18.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1765
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1712', '2', '18.00', '0', '316', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18.00', '1', '2026-10-14','0','0'); -- id=6242
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1711', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=317
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2723';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1711, 0, 0
                    , 487.60, 27.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=574
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-08*487.60," WHERE transferproductid = 317;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1711', '1', '27.00', '1', '317', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=6243
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1711', '2', '27.00', '1', '2026-10-14'); -- id=3300
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1711, 0, 0
                    , 487.60, 27.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1767
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1711', '2', '27.00', '0', '317', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27.00', '1', '2026-10-14','0','0'); -- id=6244
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1710', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=318
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2722';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1710, 0, 0
                    , 358.80, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=573
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-08*358.80," WHERE transferproductid = 318;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1710', '1', '12.00', '1', '318', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6245
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1710', '2', '12.00', '1', '2026-10-14'); -- id=3301
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1710, 0, 0
                    , 358.80, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1769
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1710', '2', '12.00', '0', '318', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=6246
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1709', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=319
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2721';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1709, 0, 0
                    , 322.00, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=572
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-08*322.00," WHERE transferproductid = 319;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1709', '1', '15.00', '1', '319', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6247
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1709', '2', '15.00', '1', '2026-10-14'); -- id=3302
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1709, 0, 0
                    , 322.00, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1771
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1709', '2', '15.00', '0', '319', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15.00', '1', '2026-10-14','0','0'); -- id=6248
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1708', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=320
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2720';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1708, 0, 0
                    , 432.40, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=571
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-08*432.40," WHERE transferproductid = 320;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1708', '1', '15.00', '1', '320', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6249
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1708', '2', '15.00', '1', '2026-10-14'); -- id=3303
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1708, 0, 0
                    , 432.40, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1773
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1708', '2', '15.00', '0', '320', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15.00', '1', '2026-10-14','0','0'); -- id=6250
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1707', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=321
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2719';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1707, 0, 0
                    , 368.00, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=570
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-08*368.00," WHERE transferproductid = 321;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1707', '1', '21.00', '1', '321', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6251
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1707', '2', '21.00', '1', '2026-10-14'); -- id=3304
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1707, 0, 0
                    , 368.00, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1775
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1707', '2', '21.00', '0', '321', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21.00', '1', '2026-10-14','0','0'); -- id=6252
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1706', '33.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=322
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2718';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1706, 0, 0
                    , 358.80, 33.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=569
UPDATE storemovement SET  buyPricesHistoryBookData = "33.00*2026-10-08*358.80," WHERE transferproductid = 322;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1706', '1', '33.00', '1', '322', 'تحويل منتجات من المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=6253
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1706', '2', '33.00', '1', '2026-10-14'); -- id=3305
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1706, 0, 0
                    , 358.80, 33.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1777
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1706', '2', '33.00', '0', '322', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '33.00', '1', '2026-10-14','0','0'); -- id=6254
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1705', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=323
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2717';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1705, 0, 0
                    , 427.80, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=568
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*427.80," WHERE transferproductid = 323;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1705', '1', '24.00', '1', '323', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6255
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1705', '2', '24.00', '1', '2026-10-14'); -- id=3306
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1705, 0, 0
                    , 427.80, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1779
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1705', '2', '24.00', '0', '323', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6256
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1704', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=324
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2716';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1704, 0, 0
                    , 469.20, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=567
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-08*469.20," WHERE transferproductid = 324;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1704', '1', '21.00', '1', '324', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6257
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1704', '2', '21.00', '1', '2026-10-14'); -- id=3307
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1704, 0, 0
                    , 469.20, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1781
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1704', '2', '21.00', '0', '324', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21.00', '1', '2026-10-14','0','0'); -- id=6258
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1703', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=325
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2715';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1703, 0, 0
                    , 524.40, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=566
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-08*524.40," WHERE transferproductid = 325;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1703', '1', '12.00', '1', '325', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6259
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1703', '2', '12.00', '1', '2026-10-14'); -- id=3308
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1703, 0, 0
                    , 524.40, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1783
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1703', '2', '12.00', '0', '325', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=6260
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1702', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=326
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2714';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1702, 0, 0
                    , 441.60, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=565
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-08*441.60," WHERE transferproductid = 326;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1702', '1', '30.00', '1', '326', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6261
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1702', '2', '30.00', '1', '2026-10-14'); -- id=3309
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1702, 0, 0
                    , 441.60, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1785
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1702', '2', '30.00', '0', '326', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=6262
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1701', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=327
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2713';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1701, 0, 0
                    , 423.20, 18.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=564
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-08*423.20," WHERE transferproductid = 327;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1701', '1', '18.00', '1', '327', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=6263
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1701', '2', '18.00', '1', '2026-10-14'); -- id=3310
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1701, 0, 0
                    , 423.20, 18.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1787
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1701', '2', '18.00', '0', '327', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18.00', '1', '2026-10-14','0','0'); -- id=6264
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1700', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=328
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2712';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1700, 0, 0
                    , 519.80, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=563
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-08*519.80," WHERE transferproductid = 328;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1700', '1', '21.00', '1', '328', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6265
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1700', '2', '21.00', '1', '2026-10-14'); -- id=3311
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1700, 0, 0
                    , 519.80, 21.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1789
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1700', '2', '21.00', '0', '328', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21.00', '1', '2026-10-14','0','0'); -- id=6266
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1699', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=329
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2711';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1699, 0, 0
                    , 437.00, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=562
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-08*437.00," WHERE transferproductid = 329;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1699', '1', '30.00', '1', '329', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6267
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1699', '2', '30.00', '1', '2026-10-14'); -- id=3312
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1699, 0, 0
                    , 437.00, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1791
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1699', '2', '30.00', '0', '329', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=6268
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1698', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=330
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2710';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1698, 0, 0
                    , 800.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=561
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*800.00," WHERE transferproductid = 330;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1698', '1', '24.00', '1', '330', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6269
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1698', '2', '24.00', '1', '2026-10-14'); -- id=3313
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1698, 0, 0
                    , 800.00, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1793
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1698', '2', '24.00', '0', '330', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6270
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1697', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=331
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2709';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 331;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1697', '1', '0.00', '1', '331', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6271
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1697', '2', '0.00', '1', '2026-10-14'); -- id=3314
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1697', '2', '0.00', '0', '331', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=6272
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1696', '93.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=332
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2708';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1696, 0, 0
                    , 405.00, 93.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-93.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=560
UPDATE storemovement SET  buyPricesHistoryBookData = "93.00*2026-10-08*405.00," WHERE transferproductid = 332;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1696', '1', '93.00', '1', '332', 'تحويل منتجات من المخزن', 'storemovementController.php', '93', '0', '1', '2026-10-14','0','0'); -- id=6273
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1696', '2', '93.00', '1', '2026-10-14'); -- id=3315
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1696, 0, 0
                    , 405.00, 93.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+93.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1795
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1696', '2', '93.00', '0', '332', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '93.00', '1', '2026-10-14','0','0'); -- id=6274
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1695', '93.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=333
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2707';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1695, 0, 0
                    , 386.40, 93.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-93.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=559
UPDATE storemovement SET  buyPricesHistoryBookData = "93.00*2026-10-08*386.40," WHERE transferproductid = 333;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1695', '1', '93.00', '1', '333', 'تحويل منتجات من المخزن', 'storemovementController.php', '93', '0', '1', '2026-10-14','0','0'); -- id=6275
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1695', '2', '93.00', '1', '2026-10-14'); -- id=3316
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1695, 0, 0
                    , 386.40, 93.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+93.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1797
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1695', '2', '93.00', '0', '333', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '93.00', '1', '2026-10-14','0','0'); -- id=6276
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1694', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=334
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2706';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1694, 0, 0
                    , 322.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=558
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-08*322.00," WHERE transferproductid = 334;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1694', '1', '12.00', '1', '334', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6277
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1694', '2', '12.00', '1', '2026-10-14'); -- id=3317
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1694, 0, 0
                    , 322.00, 12.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1799
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1694', '2', '12.00', '0', '334', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12.00', '1', '2026-10-14','0','0'); -- id=6278
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1693', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=335
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2705';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1693, 0, 0
                    , 423.20, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=557
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*423.20," WHERE transferproductid = 335;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1693', '1', '24.00', '1', '335', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6279
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1693', '2', '24.00', '1', '2026-10-14'); -- id=3318
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1693, 0, 0
                    , 423.20, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1801
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1693', '2', '24.00', '0', '335', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6280
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1692', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=336
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2704';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1692, 0, 0
                    , 404.80, 3.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=556
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-08*404.80," WHERE transferproductid = 336;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1692', '1', '3.00', '1', '336', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=6281
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1692', '2', '3.00', '1', '2026-10-14'); -- id=3319
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1692, 0, 0
                    , 404.80, 3.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1803
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1692', '2', '3.00', '0', '336', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3.00', '1', '2026-10-14','0','0'); -- id=6282
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1691', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=337
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2703';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 337;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1691', '1', '0.00', '1', '337', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6283
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1691', '2', '0.00', '1', '2026-10-14'); -- id=3320
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1691', '2', '0.00', '0', '337', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=6284
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1690', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=338
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2702';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1690, 0, 0
                    , 450.80, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=554
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*450.80," WHERE transferproductid = 338;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1690', '1', '24.00', '1', '338', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6285
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1690', '2', '24.00', '1', '2026-10-14'); -- id=3321
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1690, 0, 0
                    , 450.80, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1805
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1690', '2', '24.00', '0', '338', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6286
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1689', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=339
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2701';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1689, 0, 0
                    , 441.60, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=553
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-08*441.60," WHERE transferproductid = 339;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1689', '1', '15.00', '1', '339', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6287
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1689', '2', '15.00', '1', '2026-10-14'); -- id=3322
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1689, 0, 0
                    , 441.60, 15.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1807
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1689', '2', '15.00', '0', '339', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15.00', '1', '2026-10-14','0','0'); -- id=6288
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1688', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=340
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2700';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1688, 0, 0
                    , 423.20, 9.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=552
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-08*423.20," WHERE transferproductid = 340;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1688', '1', '9.00', '1', '340', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6289
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1688', '2', '9.00', '1', '2026-10-14'); -- id=3323
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1688, 0, 0
                    , 423.20, 9.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1809
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1688', '2', '9.00', '0', '340', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9.00', '1', '2026-10-14','0','0'); -- id=6290
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1687', '42.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=341
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2699';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1687, 0, 0
                    , 377.20, 42.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-42.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=551
UPDATE storemovement SET  buyPricesHistoryBookData = "42.00*2026-10-08*377.20," WHERE transferproductid = 341;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1687', '1', '42.00', '1', '341', 'تحويل منتجات من المخزن', 'storemovementController.php', '42', '0', '1', '2026-10-14','0','0'); -- id=6291
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1687', '2', '42.00', '1', '2026-10-14'); -- id=3324
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1687, 0, 0
                    , 377.20, 42.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1811
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1687', '2', '42.00', '0', '341', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '42.00', '1', '2026-10-14','0','0'); -- id=6292
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1686', '80.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=342
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2698';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1686, 0, 0
                    , 235.00, 80.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-80.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=550
UPDATE storemovement SET  buyPricesHistoryBookData = "80.00*2026-10-08*235.00," WHERE transferproductid = 342;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1686', '1', '80.00', '1', '342', 'تحويل منتجات من المخزن', 'storemovementController.php', '80', '0', '1', '2026-10-14','0','0'); -- id=6293
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1686', '2', '80.00', '1', '2026-10-14'); -- id=3325
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1686, 0, 0
                    , 235.00, 80.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+80.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1813
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1686', '2', '80.00', '0', '342', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '80.00', '1', '2026-10-14','0','0'); -- id=6294
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1685', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=343
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2697';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1685, 0, 0
                    , 225.00, 48.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=549
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-08*225.00," WHERE transferproductid = 343;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1685', '1', '48.00', '1', '343', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=6295
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1685', '2', '48.00', '1', '2026-10-14'); -- id=3326
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1685, 0, 0
                    , 225.00, 48.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1815
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1685', '2', '48.00', '0', '343', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48.00', '1', '2026-10-14','0','0'); -- id=6296
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1684', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=344
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2696';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 344;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1684', '1', '0.00', '1', '344', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6297
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1684', '2', '0.00', '1', '2026-10-14'); -- id=3327
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1684', '2', '0.00', '0', '344', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=6298
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1683', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=345
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2695';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 345;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1683', '1', '0.00', '1', '345', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6299
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1683', '2', '0.00', '1', '2026-10-14'); -- id=3328
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1683', '2', '0.00', '0', '345', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=6300
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1682', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=346
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2694';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1682, 0, 0
                    , 505.00, 60.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=509
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-08*505.00," WHERE transferproductid = 346;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1682', '1', '60.00', '1', '346', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=6301
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1682', '2', '60.00', '1', '2026-10-14'); -- id=3329
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1682, 0, 0
                    , 505.00, 60.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1817
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1682', '2', '60.00', '0', '346', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60.00', '1', '2026-10-14','0','0'); -- id=6302
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1681', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=347
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2693';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1681, 0, 0
                    , 420.00, 60.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=508
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-08*420.00," WHERE transferproductid = 347;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1681', '1', '60.00', '1', '347', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=6303
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1681', '2', '60.00', '1', '2026-10-14'); -- id=3330
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1681, 0, 0
                    , 420.00, 60.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1819
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1681', '2', '60.00', '0', '347', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60.00', '1', '2026-10-14','0','0'); -- id=6304
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1680', '72.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=348
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2692';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1680, 0, 0
                    , 430.00, 72.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=507
UPDATE storemovement SET  buyPricesHistoryBookData = "72.00*2026-10-08*430.00," WHERE transferproductid = 348;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1680', '1', '72.00', '1', '348', 'تحويل منتجات من المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=6305
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1680', '2', '72.00', '1', '2026-10-14'); -- id=3331
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1680, 0, 0
                    , 430.00, 72.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1821
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1680', '2', '72.00', '0', '348', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '72.00', '1', '2026-10-14','0','0'); -- id=6306
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1679', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=349
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2691';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1679, 0, 0
                    , 450.00, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=506
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-08*450.00," WHERE transferproductid = 349;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1679', '1', '30.00', '1', '349', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6307
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1679', '2', '30.00', '1', '2026-10-14'); -- id=3332
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1679, 0, 0
                    , 450.00, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1823
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1679', '2', '30.00', '0', '349', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=6308
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1678', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=350
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2690';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1678, 0, 0
                    , 386.40, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=527
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-08*386.40," WHERE transferproductid = 350;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1678', '1', '30.00', '1', '350', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6309
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1678', '2', '30.00', '1', '2026-10-14'); -- id=3333
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1678, 0, 0
                    , 386.40, 30.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1825
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1678', '2', '30.00', '0', '350', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=6310
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1677', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=351
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2689';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1677, 0, 0
                    , 478.40, 27.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=526
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-08*478.40," WHERE transferproductid = 351;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1677', '1', '27.00', '1', '351', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=6311
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1677', '2', '27.00', '1', '2026-10-14'); -- id=3334
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1677, 0, 0
                    , 478.40, 27.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1827
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1677', '2', '27.00', '0', '351', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27.00', '1', '2026-10-14','0','0'); -- id=6312
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1676', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=352
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2688';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1676, 0, 0
                    , 492.20, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=525
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*492.20," WHERE transferproductid = 352;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1676', '1', '24.00', '1', '352', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6313
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1676', '2', '24.00', '1', '2026-10-14'); -- id=3335
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1676, 0, 0
                    , 492.20, 24.00, 0, 0, 1, '2026-10-14 18:00:17')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:17' ; -- id=1829
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1676', '2', '24.00', '0', '352', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6314
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1675', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:17','0','','0','','0','0','0','','','','0','0','','0'); -- id=353
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2687';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1675, 0, 0
                    , 478.40, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=524
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-08*478.40," WHERE transferproductid = 353;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1675', '1', '30.00', '1', '353', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6315
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1675', '2', '30.00', '1', '2026-10-14'); -- id=3336
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1675, 0, 0
                    , 478.40, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1831
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1675', '2', '30.00', '0', '353', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=6316
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1674', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=354
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2686';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1674, 0, 0
                    , 450.80, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=523
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-08*450.80," WHERE transferproductid = 354;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1674', '1', '30.00', '1', '354', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6317
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1674', '2', '30.00', '1', '2026-10-14'); -- id=3337
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1674, 0, 0
                    , 450.80, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1833
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1674', '2', '30.00', '0', '354', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=6318
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1673', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=355
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2685';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1673, 0, 0
                    , 460.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=522
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*460.00," WHERE transferproductid = 355;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1673', '1', '24.00', '1', '355', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6319
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1673', '2', '24.00', '1', '2026-10-14'); -- id=3338
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1673, 0, 0
                    , 460.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1835
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1673', '2', '24.00', '0', '355', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6320
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1672', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=356
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2684';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1672, 0, 0
                    , 478.40, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=521
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*478.40," WHERE transferproductid = 356;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1672', '1', '24.00', '1', '356', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6321
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1672', '2', '24.00', '1', '2026-10-14'); -- id=3339
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1672, 0, 0
                    , 478.40, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1837
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1672', '2', '24.00', '0', '356', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6322
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1671', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=357
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2683';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1671, 0, 0
                    , 542.80, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=520
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-08*542.80," WHERE transferproductid = 357;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1671', '1', '21.00', '1', '357', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6323
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1671', '2', '21.00', '1', '2026-10-14'); -- id=3340
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1671, 0, 0
                    , 542.80, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1839
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1671', '2', '21.00', '0', '357', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21.00', '1', '2026-10-14','0','0'); -- id=6324
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1670', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=358
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2682';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1670, 0, 0
                    , 496.80, 3.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=519
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-08*496.80," WHERE transferproductid = 358;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1670', '1', '3.00', '1', '358', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=6325
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1670', '2', '3.00', '1', '2026-10-14'); -- id=3341
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1670, 0, 0
                    , 496.80, 3.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1841
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1670', '2', '3.00', '0', '358', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3.00', '1', '2026-10-14','0','0'); -- id=6326
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1669', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=359
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2681';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1669, 0, 0
                    , 510.60, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=518
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-08*510.60," WHERE transferproductid = 359;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1669', '1', '30.00', '1', '359', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6327
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1669', '2', '30.00', '1', '2026-10-14'); -- id=3342
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1669, 0, 0
                    , 510.60, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1843
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1669', '2', '30.00', '0', '359', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=6328
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1668', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=360
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2680';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1668, 0, 0
                    , 432.40, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=517
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-08*432.40," WHERE transferproductid = 360;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1668', '1', '30.00', '1', '360', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6329
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1668', '2', '30.00', '1', '2026-10-14'); -- id=3343
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1668, 0, 0
                    , 432.40, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1845
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1668', '2', '30.00', '0', '360', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30.00', '1', '2026-10-14','0','0'); -- id=6330
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1667', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=361
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2679';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 361;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1667', '1', '0.00', '1', '361', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6331
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1667', '2', '0.00', '1', '2026-10-14'); -- id=3344
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1667', '2', '0.00', '0', '361', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=6332
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1666', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=362
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2678';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1666, 0, 0
                    , 515.20, 3.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=515
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-08*515.20," WHERE transferproductid = 362;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1666', '1', '3.00', '1', '362', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=6333
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1666', '2', '3.00', '1', '2026-10-14'); -- id=3345
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1666, 0, 0
                    , 515.20, 3.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1847
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1666', '2', '3.00', '0', '362', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3.00', '1', '2026-10-14','0','0'); -- id=6334
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1665', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=363
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2677';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1665, 0, 0
                    , 441.60, 15.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=514
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-08*441.60," WHERE transferproductid = 363;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1665', '1', '15.00', '1', '363', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6335
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1665', '2', '15.00', '1', '2026-10-14'); -- id=3346
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1665, 0, 0
                    , 441.60, 15.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1849
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1665', '2', '15.00', '0', '363', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15.00', '1', '2026-10-14','0','0'); -- id=6336
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1664', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=364
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2676';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1664, 0, 0
                    , 533.60, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=513
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-08*533.60," WHERE transferproductid = 364;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1664', '1', '9.00', '1', '364', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6337
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1664', '2', '9.00', '1', '2026-10-14'); -- id=3347
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1664, 0, 0
                    , 533.60, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1851
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1664', '2', '9.00', '0', '364', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9.00', '1', '2026-10-14','0','0'); -- id=6338
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1663', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=365
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2675';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1663, 0, 0
                    , 404.80, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=512
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*404.80," WHERE transferproductid = 365;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1663', '1', '24.00', '1', '365', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6339
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1663', '2', '24.00', '1', '2026-10-14'); -- id=3348
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1663, 0, 0
                    , 404.80, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1853
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1663', '2', '24.00', '0', '365', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24.00', '1', '2026-10-14','0','0'); -- id=6340
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1662', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=366
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2674';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1662, 0, 0
                    , 460.00, 27.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=511
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-08*460.00," WHERE transferproductid = 366;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1662', '1', '27.00', '1', '366', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=6341
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1662', '2', '27.00', '1', '2026-10-14'); -- id=3349
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1662, 0, 0
                    , 460.00, 27.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1855
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1662', '2', '27.00', '0', '366', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27.00', '1', '2026-10-14','0','0'); -- id=6342
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1661', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=367
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2673';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1661, 0, 0
                    , 515.20, 15.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=510
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-08*515.20," WHERE transferproductid = 367;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1661', '1', '15.00', '1', '367', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6343
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1661', '2', '15.00', '1', '2026-10-14'); -- id=3350
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1661, 0, 0
                    , 515.20, 15.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1857
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1661', '2', '15.00', '0', '367', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15.00', '1', '2026-10-14','0','0'); -- id=6344
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1660', '129.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=368
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2672';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1660, 0, 0
                    , 316.20, 129.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-129.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=502
UPDATE storemovement SET  buyPricesHistoryBookData = "129.00*2026-10-08*316.20," WHERE transferproductid = 368;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1660', '1', '129.00', '1', '368', 'تحويل منتجات من المخزن', 'storemovementController.php', '129', '0', '1', '2026-10-14','0','0'); -- id=6345
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1660', '2', '129.00', '1', '2026-10-14'); -- id=3351
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1660, 0, 0
                    , 316.20, 129.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+129.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1859
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1660', '2', '129.00', '0', '368', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '129.00', '1', '2026-10-14','0','0'); -- id=6346
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1659', '165.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=369
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2671';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1659, 0, 0
                    , 362.70, 165.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-165.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=505
UPDATE storemovement SET  buyPricesHistoryBookData = "165.00*2026-10-08*362.70," WHERE transferproductid = 369;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1659', '1', '165.00', '1', '369', 'تحويل منتجات من المخزن', 'storemovementController.php', '165', '0', '1', '2026-10-14','0','0'); -- id=6347
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1659', '2', '165.00', '1', '2026-10-14'); -- id=3352
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1659, 0, 0
                    , 362.70, 165.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+165.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1861
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1659', '2', '165.00', '0', '369', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '165.00', '1', '2026-10-14','0','0'); -- id=6348
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1658', '105.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=370
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2670';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1658, 0, 0
                    , 320.85, 105.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-105.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=504
UPDATE storemovement SET  buyPricesHistoryBookData = "105.00*2026-10-08*320.85," WHERE transferproductid = 370;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1658', '1', '105.00', '1', '370', 'تحويل منتجات من المخزن', 'storemovementController.php', '105', '0', '1', '2026-10-14','0','0'); -- id=6349
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1658', '2', '105.00', '1', '2026-10-14'); -- id=3353
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1658, 0, 0
                    , 320.85, 105.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+105.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1863
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1658', '2', '105.00', '0', '370', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '105.00', '1', '2026-10-14','0','0'); -- id=6350
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1657', '108.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=371
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2669';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1657, 0, 0
                    , 334.80, 108.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-108.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=503
UPDATE storemovement SET  buyPricesHistoryBookData = "108.00*2026-10-08*334.80," WHERE transferproductid = 371;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1657', '1', '108.00', '1', '371', 'تحويل منتجات من المخزن', 'storemovementController.php', '108', '0', '1', '2026-10-14','0','0'); -- id=6351
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1657', '2', '108.00', '1', '2026-10-14'); -- id=3354
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1657, 0, 0
                    , 334.80, 108.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+108.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1865
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1657', '2', '108.00', '0', '371', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '108.00', '1', '2026-10-14','0','0'); -- id=6352
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1656', '57.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=372
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2668';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1656, 0, 0
                    , 344.10, 57.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-57.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=501
UPDATE storemovement SET  buyPricesHistoryBookData = "57.00*2026-10-08*344.10," WHERE transferproductid = 372;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1656', '1', '57.00', '1', '372', 'تحويل منتجات من المخزن', 'storemovementController.php', '57', '0', '1', '2026-10-14','0','0'); -- id=6353
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1656', '2', '57.00', '1', '2026-10-14'); -- id=3355
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1656, 0, 0
                    , 344.10, 57.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+57.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1867
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1656', '2', '57.00', '0', '372', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '57.00', '1', '2026-10-14','0','0'); -- id=6354
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1655', '174.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=373
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2667';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1655, 0, 0
                    , 288.30, 174.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-174.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=500
UPDATE storemovement SET  buyPricesHistoryBookData = "174.00*2026-10-08*288.30," WHERE transferproductid = 373;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1655', '1', '174.00', '1', '373', 'تحويل منتجات من المخزن', 'storemovementController.php', '174', '0', '1', '2026-10-14','0','0'); -- id=6355
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1655', '2', '174.00', '1', '2026-10-14'); -- id=3356
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1655, 0, 0
                    , 288.30, 174.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+174.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1869
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1655', '2', '174.00', '0', '373', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '174.00', '1', '2026-10-14','0','0'); -- id=6356
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1654', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=374
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1679';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1654, 0, 0
                    , 432.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=775
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*432.00," WHERE transferproductid = 374;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1654', '1', '24.00', '1', '374', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6357
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2666';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1654, 0, 0
                    , 432.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1871
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1654', '2', '24.00', '0', '374', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6358
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1653', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=375
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1678';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1653, 0, 0
                    , 315.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=774
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*315.00," WHERE transferproductid = 375;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1653', '1', '24.00', '1', '375', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6359
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2665';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1653, 0, 0
                    , 315.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1873
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1653', '2', '24.00', '0', '375', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6360
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1652', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=376
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1677';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1652, 0, 0
                    , 315.00, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=773
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-09*315.00," WHERE transferproductid = 376;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1652', '1', '9.00', '1', '376', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6361
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2664';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1652, 0, 0
                    , 315.00, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1875
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1652', '2', '9.00', '0', '376', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=6362
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1651', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=377
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1676';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1651, 0, 0
                    , 369.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=772
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*369.00," WHERE transferproductid = 377;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1651', '1', '24.00', '1', '377', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6363
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2663';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1651, 0, 0
                    , 369.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1877
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1651', '2', '24.00', '0', '377', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6364
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1650', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=378
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1675';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1650, 0, 0
                    , 360.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=771
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*360.00," WHERE transferproductid = 378;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1650', '1', '24.00', '1', '378', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6365
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2662';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1650, 0, 0
                    , 360.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1879
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1650', '2', '24.00', '0', '378', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6366
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1649', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=379
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1674';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1649, 0, 0
                    , 432.00, 12.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=770
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-09*432.00," WHERE transferproductid = 379;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1649', '1', '12.00', '1', '379', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6367
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2661';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1649, 0, 0
                    , 432.00, 12.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1881
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1649', '2', '12.00', '0', '379', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=6368
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1648', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=380
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1673';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1648, 0, 0
                    , 432.00, 12.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=769
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-09*432.00," WHERE transferproductid = 380;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1648', '1', '12.00', '1', '380', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6369
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2660';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1648, 0, 0
                    , 432.00, 12.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1883
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1648', '2', '12.00', '0', '380', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=6370
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1647', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=381
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1672';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1647, 0, 0
                    , 432.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=768
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-09*432.00," WHERE transferproductid = 381;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1647', '1', '24.00', '1', '381', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6371
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2659';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1647, 0, 0
                    , 432.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1885
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1647', '2', '24.00', '0', '381', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6372
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1646', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=382
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1671';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1646, 0, 0
                    , 450.00, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=548
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-08*450.00," WHERE transferproductid = 382;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1646', '1', '9.00', '1', '382', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6373
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2658';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1646, 0, 0
                    , 450.00, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1887
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1646', '2', '9.00', '0', '382', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=6374
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1645', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=383
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1670';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1645, 0, 0
                    , 450.00, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=547
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-08*450.00," WHERE transferproductid = 383;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1645', '1', '9.00', '1', '383', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6375
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2657';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1645, 0, 0
                    , 450.00, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1889
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1645', '2', '9.00', '0', '383', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=6376
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1644', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=384
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1669';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1644, 0, 0
                    , 414.00, 6.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=546
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-08*414.00," WHERE transferproductid = 384;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1644', '1', '6.00', '1', '384', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=6377
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2656';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1644, 0, 0
                    , 414.00, 6.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1891
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1644', '2', '6.00', '0', '384', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=6378
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1643', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=385
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1668';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1643, 0, 0
                    , 423.00, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=545
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-08*423.00," WHERE transferproductid = 385;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1643', '1', '9.00', '1', '385', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6379
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2655';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1643, 0, 0
                    , 423.00, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1893
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1643', '2', '9.00', '0', '385', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=6380
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1642', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=386
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1667';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1642, 0, 0
                    , 432.00, 6.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=544
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-08*432.00," WHERE transferproductid = 386;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1642', '1', '6.00', '1', '386', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=6381
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2654';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1642, 0, 0
                    , 432.00, 6.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1895
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1642', '2', '6.00', '0', '386', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=6382
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1641', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=387
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1666';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1641, 0, 0
                    , 441.00, 6.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=543
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-08*441.00," WHERE transferproductid = 387;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1641', '1', '6.00', '1', '387', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=6383
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2653';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1641, 0, 0
                    , 441.00, 6.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1897
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1641', '2', '6.00', '0', '387', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=6384
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1640', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=388
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1665';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 388;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1640', '1', '0.00', '1', '388', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6385
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2652';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1640', '2', '0.00', '0', '388', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6386
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1639', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=389
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1664';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1639, 0, 0
                    , 315.00, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=541
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-08*315.00," WHERE transferproductid = 389;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1639', '1', '9.00', '1', '389', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6387
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2651';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1639, 0, 0
                    , 315.00, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1899
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1639', '2', '9.00', '0', '389', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=6388
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1638', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=390
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1663';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1638, 0, 0
                    , 297.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=540
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*297.00," WHERE transferproductid = 390;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1638', '1', '24.00', '1', '390', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6389
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2650';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1638, 0, 0
                    , 297.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1901
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1638', '2', '24.00', '0', '390', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6390
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1637', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=391
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1662';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 391;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1637', '1', '0.00', '1', '391', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6391
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2649';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1637', '2', '0.00', '0', '391', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6392
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1636', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=392
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1661';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1636, 0, 0
                    , 386.40, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=538
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-08*386.40," WHERE transferproductid = 392;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1636', '1', '21.00', '1', '392', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6393
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2648';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1636, 0, 0
                    , 386.40, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1903
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1636', '2', '21.00', '0', '392', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=6394
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1635', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=393
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1660';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1635, 0, 0
                    , 303.60, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=537
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-08*303.60," WHERE transferproductid = 393;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1635', '1', '21.00', '1', '393', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6395
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2647';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1635, 0, 0
                    , 303.60, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1905
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1635', '2', '21.00', '0', '393', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=6396
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1634', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=394
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1659';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1634, 0, 0
                    , 386.40, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=536
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-08*386.40," WHERE transferproductid = 394;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1634', '1', '30.00', '1', '394', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6397
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2646';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1634, 0, 0
                    , 386.40, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1907
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1634', '2', '30.00', '0', '394', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=6398
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1633', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=395
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1658';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1633, 0, 0
                    , 386.40, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=535
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-08*386.40," WHERE transferproductid = 395;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1633', '1', '9.00', '1', '395', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6399
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2645';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1633, 0, 0
                    , 386.40, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1909
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1633', '2', '9.00', '0', '395', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=6400
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1632', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=396
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1657';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1632, 0, 0
                    , 303.60, 27.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=534
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-08*303.60," WHERE transferproductid = 396;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1632', '1', '27.00', '1', '396', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=6401
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2644';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1632, 0, 0
                    , 303.60, 27.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1911
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1632', '2', '27.00', '0', '396', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=6402
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1631', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=397
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1656';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1631, 0, 0
                    , 303.60, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=533
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*303.60," WHERE transferproductid = 397;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1631', '1', '24.00', '1', '397', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6403
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2643';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1631, 0, 0
                    , 303.60, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1913
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1631', '2', '24.00', '0', '397', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6404
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1630', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=398
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1655';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1630, 0, 0
                    , 414.00, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=532
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-08*414.00," WHERE transferproductid = 398;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1630', '1', '21.00', '1', '398', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6405
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2642';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1630, 0, 0
                    , 414.00, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1915
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1630', '2', '21.00', '0', '398', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=6406
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1629', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=399
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1654';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1629, 0, 0
                    , 414.00, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=531
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-08*414.00," WHERE transferproductid = 399;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1629', '1', '21.00', '1', '399', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6407
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2641';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1629, 0, 0
                    , 414.00, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1917
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1629', '2', '21.00', '0', '399', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=6408
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1628', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=400
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1653';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1628, 0, 0
                    , 496.80, 18.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=530
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-08*496.80," WHERE transferproductid = 400;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1628', '1', '18.00', '1', '400', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=6409
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2640';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1628, 0, 0
                    , 496.80, 18.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1919
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1628', '2', '18.00', '0', '400', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=6410
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1627', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=401
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1652';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1627, 0, 0
                    , 432.40, 15.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=529
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-08*432.40," WHERE transferproductid = 401;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1627', '1', '15.00', '1', '401', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6411
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2639';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1627, 0, 0
                    , 432.40, 15.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1921
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1627', '2', '15.00', '0', '401', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=6412
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1626', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=402
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1651';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1626, 0, 0
                    , 496.80, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=528
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-08*496.80," WHERE transferproductid = 402;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1626', '1', '24.00', '1', '402', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6413
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2638';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1626, 0, 0
                    , 496.80, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1923
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1626', '2', '24.00', '0', '402', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6414
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1625', '174.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=403
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1650';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1625, 0, 0
                    , 330.00, 174.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-174.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=468
UPDATE storemovement SET  buyPricesHistoryBookData = "174.00*2026-10-07*330.00," WHERE transferproductid = 403;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1625', '1', '174.00', '1', '403', 'تحويل منتجات من المخزن', 'storemovementController.php', '174', '0', '1', '2026-10-14','0','0'); -- id=6415
UPDATE storedetail SET  productquantity = '174', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2637';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1625, 0, 0
                    , 330.00, 174.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+174.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1925
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1625', '2', '174.00', '0', '403', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '174', '1', '2026-10-14','0','0'); -- id=6416
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1624', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=404
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1649';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1624, 0, 0
                    , 330.00, 48.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=467
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-07*330.00," WHERE transferproductid = 404;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1624', '1', '48.00', '1', '404', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=6417
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2636';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1624, 0, 0
                    , 330.00, 48.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1927
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1624', '2', '48.00', '0', '404', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=6418
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1623', '96.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=405
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1648';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1623, 0, 0
                    , 320.00, 96.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-96.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=466
UPDATE storemovement SET  buyPricesHistoryBookData = "96.00*2026-10-07*320.00," WHERE transferproductid = 405;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1623', '1', '96.00', '1', '405', 'تحويل منتجات من المخزن', 'storemovementController.php', '96', '0', '1', '2026-10-14','0','0'); -- id=6419
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2635';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1623, 0, 0
                    , 320.00, 96.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+96.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1929
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1623', '2', '96.00', '0', '405', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '96', '1', '2026-10-14','0','0'); -- id=6420
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1622', '96.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=406
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1647';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1622, 0, 0
                    , 320.00, 96.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-96.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=465
UPDATE storemovement SET  buyPricesHistoryBookData = "96.00*2026-10-07*320.00," WHERE transferproductid = 406;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1622', '1', '96.00', '1', '406', 'تحويل منتجات من المخزن', 'storemovementController.php', '96', '0', '1', '2026-10-14','0','0'); -- id=6421
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2634';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1622, 0, 0
                    , 320.00, 96.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+96.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1931
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1622', '2', '96.00', '0', '406', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '96', '1', '2026-10-14','0','0'); -- id=6422
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1621', '96.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=407
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1646';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1621, 0, 0
                    , 315.00, 96.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-96.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=464
UPDATE storemovement SET  buyPricesHistoryBookData = "96.00*2026-10-07*315.00," WHERE transferproductid = 407;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1621', '1', '96.00', '1', '407', 'تحويل منتجات من المخزن', 'storemovementController.php', '96', '0', '1', '2026-10-14','0','0'); -- id=6423
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2633';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1621, 0, 0
                    , 315.00, 96.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+96.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1933
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1621', '2', '96.00', '0', '407', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '96', '1', '2026-10-14','0','0'); -- id=6424
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1620', '192.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=408
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1645';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1620, 0, 0
                    , 275.00, 192.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-192.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=463
UPDATE storemovement SET  buyPricesHistoryBookData = "192.00*2026-10-07*275.00," WHERE transferproductid = 408;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1620', '1', '192.00', '1', '408', 'تحويل منتجات من المخزن', 'storemovementController.php', '192', '0', '1', '2026-10-14','0','0'); -- id=6425
UPDATE storedetail SET  productquantity = '192', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2632';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1620, 0, 0
                    , 275.00, 192.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+192.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1935
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1620', '2', '192.00', '0', '408', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '192', '1', '2026-10-14','0','0'); -- id=6426
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1619', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=409
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1644';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1619, 0, 0
                    , 253.00, 28.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=462
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-07*253.00," WHERE transferproductid = 409;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1619', '1', '28.00', '1', '409', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=6427
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2631';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1619, 0, 0
                    , 253.00, 28.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1937
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1619', '2', '28.00', '0', '409', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=6428
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1618', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=410
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1643';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1618, 0, 0
                    , 294.40, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=461
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-07*294.40," WHERE transferproductid = 410;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1618', '1', '36.00', '1', '410', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6429
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2630';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1618, 0, 0
                    , 294.40, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1939
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1618', '2', '36.00', '0', '410', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6430
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1617', '224.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=411
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1642';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1617, 0, 0
                    , 276.00, 224.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-224.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=460
UPDATE storemovement SET  buyPricesHistoryBookData = "224.00*2026-10-07*276.00," WHERE transferproductid = 411;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1617', '1', '224.00', '1', '411', 'تحويل منتجات من المخزن', 'storemovementController.php', '224', '0', '1', '2026-10-14','0','0'); -- id=6431
UPDATE storedetail SET  productquantity = '224', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2629';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1617, 0, 0
                    , 276.00, 224.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+224.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1941
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1617', '2', '224.00', '0', '411', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '224', '1', '2026-10-14','0','0'); -- id=6432
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1616', '64.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=412
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1641';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1616, 0, 0
                    , 285.20, 64.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-64.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=459
UPDATE storemovement SET  buyPricesHistoryBookData = "64.00*2026-10-07*285.20," WHERE transferproductid = 412;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1616', '1', '64.00', '1', '412', 'تحويل منتجات من المخزن', 'storemovementController.php', '64', '0', '1', '2026-10-14','0','0'); -- id=6433
UPDATE storedetail SET  productquantity = '64', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2628';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1616, 0, 0
                    , 285.20, 64.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+64.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1943
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1616', '2', '64.00', '0', '412', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '64', '1', '2026-10-14','0','0'); -- id=6434
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1615', '104.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=413
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1640';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1615, 0, 0
                    , 266.80, 104.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-104.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=458
UPDATE storemovement SET  buyPricesHistoryBookData = "104.00*2026-10-07*266.80," WHERE transferproductid = 413;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1615', '1', '104.00', '1', '413', 'تحويل منتجات من المخزن', 'storemovementController.php', '104', '0', '1', '2026-10-14','0','0'); -- id=6435
UPDATE storedetail SET  productquantity = '104', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2627';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1615, 0, 0
                    , 266.80, 104.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+104.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1945
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1615', '2', '104.00', '0', '413', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '104', '1', '2026-10-14','0','0'); -- id=6436
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1614', '76.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=414
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1639';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1614, 0, 0
                    , 322.00, 76.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-76.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=457
UPDATE storemovement SET  buyPricesHistoryBookData = "76.00*2026-10-07*322.00," WHERE transferproductid = 414;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1614', '1', '76.00', '1', '414', 'تحويل منتجات من المخزن', 'storemovementController.php', '76', '0', '1', '2026-10-14','0','0'); -- id=6437
UPDATE storedetail SET  productquantity = '76', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2626';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1614, 0, 0
                    , 322.00, 76.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+76.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1947
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1614', '2', '76.00', '0', '414', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '76', '1', '2026-10-14','0','0'); -- id=6438
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1613', '128.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=415
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1638';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1613, 0, 0
                    , 303.60, 128.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-128.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=456
UPDATE storemovement SET  buyPricesHistoryBookData = "128.00*2026-10-07*303.60," WHERE transferproductid = 415;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1613', '1', '128.00', '1', '415', 'تحويل منتجات من المخزن', 'storemovementController.php', '128', '0', '1', '2026-10-14','0','0'); -- id=6439
UPDATE storedetail SET  productquantity = '128', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2625';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1613, 0, 0
                    , 303.60, 128.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+128.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1949
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1613', '2', '128.00', '0', '415', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '128', '1', '2026-10-14','0','0'); -- id=6440
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1612', '140.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=416
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1637';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1612, 0, 0
                    , 303.60, 140.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-140.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=455
UPDATE storemovement SET  buyPricesHistoryBookData = "140.00*2026-10-07*303.60," WHERE transferproductid = 416;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1612', '1', '140.00', '1', '416', 'تحويل منتجات من المخزن', 'storemovementController.php', '140', '0', '1', '2026-10-14','0','0'); -- id=6441
UPDATE storedetail SET  productquantity = '140', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2624';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1612, 0, 0
                    , 303.60, 140.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+140.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1951
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1612', '2', '140.00', '0', '416', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '140', '1', '2026-10-14','0','0'); -- id=6442
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1611', '-6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=417
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1636';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 417;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1611', '1', '-6.00', '1', '417', 'تحويل منتجات من المخزن', 'storemovementController.php', '-6', '0', '1', '2026-10-14','0','0'); -- id=6443
UPDATE storedetail SET  productquantity = '-6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2623';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1611', '2', '-6.00', '0', '417', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-6', '1', '2026-10-14','0','0'); -- id=6444
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1610', '-20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=418
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1635';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 418;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1610', '1', '-20.00', '1', '418', 'تحويل منتجات من المخزن', 'storemovementController.php', '-20', '0', '1', '2026-10-14','0','0'); -- id=6445
UPDATE storedetail SET  productquantity = '-20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2622';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1610', '2', '-20.00', '0', '418', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-20', '1', '2026-10-14','0','0'); -- id=6446
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1609', '-15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=419
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1634';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 419;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1609', '1', '-15.00', '1', '419', 'تحويل منتجات من المخزن', 'storemovementController.php', '-15', '0', '1', '2026-10-14','0','0'); -- id=6447
UPDATE storedetail SET  productquantity = '-15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2621';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1609', '2', '-15.00', '0', '419', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-15', '1', '2026-10-14','0','0'); -- id=6448
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1608', '-30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=420
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1633';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 420;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1608', '1', '-30.00', '1', '420', 'تحويل منتجات من المخزن', 'storemovementController.php', '-30', '0', '1', '2026-10-14','0','0'); -- id=6449
UPDATE storedetail SET  productquantity = '-30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2620';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1608', '2', '-30.00', '0', '420', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-30', '1', '2026-10-14','0','0'); -- id=6450
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1607', '-25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=421
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1632';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 421;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1607', '1', '-25.00', '1', '421', 'تحويل منتجات من المخزن', 'storemovementController.php', '-25', '0', '1', '2026-10-14','0','0'); -- id=6451
UPDATE storedetail SET  productquantity = '-25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2619';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1607', '2', '-25.00', '0', '421', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-25', '1', '2026-10-14','0','0'); -- id=6452
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1606', '-9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=422
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1631';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 422;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1606', '1', '-9.00', '1', '422', 'تحويل منتجات من المخزن', 'storemovementController.php', '-9', '0', '1', '2026-10-14','0','0'); -- id=6453
UPDATE storedetail SET  productquantity = '-9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2618';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1606', '2', '-9.00', '0', '422', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-9', '1', '2026-10-14','0','0'); -- id=6454
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1605', '-40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=423
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1630';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 423;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1605', '1', '-40.00', '1', '423', 'تحويل منتجات من المخزن', 'storemovementController.php', '-40', '0', '1', '2026-10-14','0','0'); -- id=6455
UPDATE storedetail SET  productquantity = '-40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2617';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1605', '2', '-40.00', '0', '423', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-40', '1', '2026-10-14','0','0'); -- id=6456
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1604', '-15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=424
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1629';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 424;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1604', '1', '-15.00', '1', '424', 'تحويل منتجات من المخزن', 'storemovementController.php', '-15', '0', '1', '2026-10-14','0','0'); -- id=6457
UPDATE storedetail SET  productquantity = '-15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2616';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1604', '2', '-15.00', '0', '424', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-15', '1', '2026-10-14','0','0'); -- id=6458
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1603', '-4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=425
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1628';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 425;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1603', '1', '-4.00', '1', '425', 'تحويل منتجات من المخزن', 'storemovementController.php', '-4', '0', '1', '2026-10-14','0','0'); -- id=6459
UPDATE storedetail SET  productquantity = '-4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2615';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1603', '2', '-4.00', '0', '425', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-4', '1', '2026-10-14','0','0'); -- id=6460
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1602', '-3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=426
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1627';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 426;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1602', '1', '-3.00', '1', '426', 'تحويل منتجات من المخزن', 'storemovementController.php', '-3', '0', '1', '2026-10-14','0','0'); -- id=6461
UPDATE storedetail SET  productquantity = '-3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2614';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1602', '2', '-3.00', '0', '426', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-3', '1', '2026-10-14','0','0'); -- id=6462
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1601', '-8.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=427
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1626';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 427;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1601', '1', '-8.00', '1', '427', 'تحويل منتجات من المخزن', 'storemovementController.php', '-8', '0', '1', '2026-10-14','0','0'); -- id=6463
UPDATE storedetail SET  productquantity = '-8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2613';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1601', '2', '-8.00', '0', '427', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-8', '1', '2026-10-14','0','0'); -- id=6464
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1600', '-10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=428
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1625';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 428;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1600', '1', '-10.00', '1', '428', 'تحويل منتجات من المخزن', 'storemovementController.php', '-10', '0', '1', '2026-10-14','0','0'); -- id=6465
UPDATE storedetail SET  productquantity = '-10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2612';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1600', '2', '-10.00', '0', '428', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-10', '1', '2026-10-14','0','0'); -- id=6466
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1599', '-15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=429
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1624';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 429;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1599', '1', '-15.00', '1', '429', 'تحويل منتجات من المخزن', 'storemovementController.php', '-15', '0', '1', '2026-10-14','0','0'); -- id=6467
UPDATE storedetail SET  productquantity = '-15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2611';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1599', '2', '-15.00', '0', '429', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-15', '1', '2026-10-14','0','0'); -- id=6468
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1598', '556.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=430
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1623';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1598, 0, 0
                    , 700.00, 556.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-556.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=454
UPDATE storemovement SET  buyPricesHistoryBookData = "556.00*2026-10-07*700.00," WHERE transferproductid = 430;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1598', '1', '556.00', '1', '430', 'تحويل منتجات من المخزن', 'storemovementController.php', '556', '0', '1', '2026-10-14','0','0'); -- id=6469
UPDATE storedetail SET  productquantity = '556', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2610';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1598, 0, 0
                    , 700.00, 556.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+556.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1953
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1598', '2', '556.00', '0', '430', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '556', '1', '2026-10-14','0','0'); -- id=6470
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1597', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=431
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1622';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1597, 0, 0
                    , 420.00, 28.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=449
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-07*420.00," WHERE transferproductid = 431;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1597', '1', '28.00', '1', '431', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=6471
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2609';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1597, 0, 0
                    , 420.00, 28.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1955
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1597', '2', '28.00', '0', '431', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=6472
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1596', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=432
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1621';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1596, 0, 0
                    , 588.80, 20.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=448
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-07*588.80," WHERE transferproductid = 432;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1596', '1', '20.00', '1', '432', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=6473
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2608';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1596, 0, 0
                    , 588.80, 20.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1957
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1596', '2', '20.00', '0', '432', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=6474
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1595', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=433
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1620';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1595, 0, 0
                    , 496.80, 28.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=447
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-07*496.80," WHERE transferproductid = 433;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1595', '1', '28.00', '1', '433', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=6475
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2607';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1595, 0, 0
                    , 496.80, 28.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1959
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1595', '2', '28.00', '0', '433', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=6476
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1594', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=434
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1619';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1594, 0, 0
                    , 363.40, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=446
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-07*363.40," WHERE transferproductid = 434;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1594', '1', '36.00', '1', '434', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6477
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2606';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1594, 0, 0
                    , 363.40, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1961
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1594', '2', '36.00', '0', '434', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6478
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1593', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=435
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1618';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1593, 0, 0
                    , 368.00, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=445
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-07*368.00," WHERE transferproductid = 435;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1593', '1', '36.00', '1', '435', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6479
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2605';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1593, 0, 0
                    , 368.00, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1963
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1593', '2', '36.00', '0', '435', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6480
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1592', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=436
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1617';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1592, 0, 0
                    , 533.60, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=444
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-07*533.60," WHERE transferproductid = 436;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1592', '1', '36.00', '1', '436', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6481
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2604';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1592, 0, 0
                    , 533.60, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1965
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1592', '2', '36.00', '0', '436', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6482
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1591', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=437
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1616';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1591, 0, 0
                    , 368.00, 32.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=443
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-07*368.00," WHERE transferproductid = 437;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1591', '1', '32.00', '1', '437', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=6483
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2603';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1591, 0, 0
                    , 368.00, 32.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1967
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1591', '2', '32.00', '0', '437', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=6484
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1590', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=438
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1615';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1590, 0, 0
                    , 377.20, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=442
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-07*377.20," WHERE transferproductid = 438;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1590', '1', '24.00', '1', '438', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6485
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2602';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1590, 0, 0
                    , 377.20, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1969
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1590', '2', '24.00', '0', '438', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6486
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1589', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=439
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1614';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1589, 0, 0
                    , 533.60, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=441
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-07*533.60," WHERE transferproductid = 439;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1589', '1', '36.00', '1', '439', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6487
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2601';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1589, 0, 0
                    , 533.60, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1971
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1589', '2', '36.00', '0', '439', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6488
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1588', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=440
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1613';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1588, 0, 0
                    , 325.50, 18.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=429
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-07*325.50," WHERE transferproductid = 440;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1588', '1', '18.00', '1', '440', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=6489
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2600';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1588, 0, 0
                    , 325.50, 18.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1973
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1588', '2', '18.00', '0', '440', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=6490
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1587', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=441
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1612';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 441;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1587', '1', '0.00', '1', '441', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6491
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2599';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1587', '2', '0.00', '0', '441', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6492
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1586', '33.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=442
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1611';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1586, 0, 0
                    , 302.25, 33.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=427
UPDATE storemovement SET  buyPricesHistoryBookData = "33.00*2026-10-07*302.25," WHERE transferproductid = 442;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1586', '1', '33.00', '1', '442', 'تحويل منتجات من المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=6493
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2598';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1586, 0, 0
                    , 302.25, 33.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1975
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1586', '2', '33.00', '0', '442', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=6494
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1585', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=443
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1610';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 443;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1585', '1', '0.00', '1', '443', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6495
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2597';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1585', '2', '0.00', '0', '443', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6496
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1584', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=444
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1609';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 444;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '1', '0.00', '1', '444', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6497
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2596';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '2', '0.00', '0', '444', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6498
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1583', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=445
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1608';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 445;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1583', '1', '0.00', '1', '445', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6499
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2595';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1583', '2', '0.00', '0', '445', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6500
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1582', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=446
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1607';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1582, 0, 0
                    , 369.00, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=403
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-07*369.00," WHERE transferproductid = 446;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1582', '1', '9.00', '1', '446', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6501
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2594';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1582, 0, 0
                    , 369.00, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1977
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1582', '2', '9.00', '0', '446', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=6502
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1581', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=447
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1606';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1581, 0, 0
                    , 585.00, 20.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=402
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-07*585.00," WHERE transferproductid = 447;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1581', '1', '20.00', '1', '447', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=6503
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2593';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1581, 0, 0
                    , 585.00, 20.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1979
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1581', '2', '20.00', '0', '447', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=6504
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1580', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=448
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1605';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1580, 0, 0
                    , 477.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=401
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-07*477.00," WHERE transferproductid = 448;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1580', '1', '24.00', '1', '448', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6505
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2592';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1580, 0, 0
                    , 477.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1981
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1580', '2', '24.00', '0', '448', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6506
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1579', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=449
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1604';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1579, 0, 0
                    , 423.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=399
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-07*423.00," WHERE transferproductid = 449;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1579', '1', '24.00', '1', '449', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6507
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2591';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1579, 0, 0
                    , 423.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1983
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1579', '2', '24.00', '0', '449', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6508
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1578', '39.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=450
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1603';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1578, 0, 0
                    , 360.00, 39.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-39.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=398
UPDATE storemovement SET  buyPricesHistoryBookData = "39.00*2026-10-07*360.00," WHERE transferproductid = 450;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1578', '1', '39.00', '1', '450', 'تحويل منتجات من المخزن', 'storemovementController.php', '39', '0', '1', '2026-10-14','0','0'); -- id=6509
UPDATE storedetail SET  productquantity = '39', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2590';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1578, 0, 0
                    , 360.00, 39.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1985
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1578', '2', '39.00', '0', '450', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2026-10-14','0','0'); -- id=6510
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1577', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=451
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1602';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1577, 0, 0
                    , 468.00, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=396
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-07*468.00," WHERE transferproductid = 451;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1577', '1', '21.00', '1', '451', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6511
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2589';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1577, 0, 0
                    , 468.00, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1987
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1577', '2', '21.00', '0', '451', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=6512
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1576', '42.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=452
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1601';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1576, 0, 0
                    , 450.00, 42.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-42.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=395
UPDATE storemovement SET  buyPricesHistoryBookData = "42.00*2026-10-07*450.00," WHERE transferproductid = 452;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '1', '42.00', '1', '452', 'تحويل منتجات من المخزن', 'storemovementController.php', '42', '0', '1', '2026-10-14','0','0'); -- id=6513
UPDATE storedetail SET  productquantity = '42', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2588';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1576, 0, 0
                    , 450.00, 42.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1989
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '2', '42.00', '0', '452', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '42', '1', '2026-10-14','0','0'); -- id=6514
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1575', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=453
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1600';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1575, 0, 0
                    , 472.50, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=394
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-07*472.50," WHERE transferproductid = 453;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '1', '24.00', '1', '453', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6515
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2587';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1575, 0, 0
                    , 472.50, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1991
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '2', '24.00', '0', '453', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6516
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1574', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=454
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1599';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1574, 0, 0
                    , 297.00, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=393
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-07*297.00," WHERE transferproductid = 454;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1574', '1', '21.00', '1', '454', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6517
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2586';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1574, 0, 0
                    , 297.00, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1993
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1574', '2', '21.00', '0', '454', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=6518
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1573', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=455
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1598';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1573, 0, 0
                    , 342.00, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=392
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-07*342.00," WHERE transferproductid = 455;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1573', '1', '30.00', '1', '455', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6519
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2585';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1573, 0, 0
                    , 342.00, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1995
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1573', '2', '30.00', '0', '455', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=6520
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1572', '19.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=456
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1597';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1572, 0, 0
                    , 490.00, 19.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-19.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=391
UPDATE storemovement SET  buyPricesHistoryBookData = "19.00*2026-10-07*490.00," WHERE transferproductid = 456;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1572', '1', '19.00', '1', '456', 'تحويل منتجات من المخزن', 'storemovementController.php', '19', '0', '1', '2026-10-14','0','0'); -- id=6521
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2584';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1572, 0, 0
                    , 490.00, 19.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1997
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1572', '2', '19.00', '0', '456', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2026-10-14','0','0'); -- id=6522
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1571', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=457
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1596';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1571, 0, 0
                    , 480.00, 20.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=390
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-07*480.00," WHERE transferproductid = 457;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1571', '1', '20.00', '1', '457', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=6523
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2583';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1571, 0, 0
                    , 480.00, 20.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1999
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1571', '2', '20.00', '0', '457', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=6524
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1570', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=458
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1595';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1570, 0, 0
                    , 430.00, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=389
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-07*430.00," WHERE transferproductid = 458;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1570', '1', '30.00', '1', '458', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6525
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2582';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1570, 0, 0
                    , 430.00, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2001
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1570', '2', '30.00', '0', '458', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=6526
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1569', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=459
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1594';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1569, 0, 0
                    , 465.00, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=388
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-07*465.00," WHERE transferproductid = 459;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1569', '1', '30.00', '1', '459', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6527
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2581';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1569, 0, 0
                    , 465.00, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2003
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1569', '2', '30.00', '0', '459', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=6528
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1568', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=460
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1593';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1568, 0, 0
                    , 500.00, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=386
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-07*500.00," WHERE transferproductid = 460;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1568', '1', '36.00', '1', '460', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6529
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2580';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1568, 0, 0
                    , 500.00, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2005
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1568', '2', '36.00', '0', '460', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6530
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1567', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=461
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1592';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1567, 0, 0
                    , 540.00, 5.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=385
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-07*540.00," WHERE transferproductid = 461;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1567', '1', '5.00', '1', '461', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=6531
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2579';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1567, 0, 0
                    , 540.00, 5.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2007
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1567', '2', '5.00', '0', '461', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=6532
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1566', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=462
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1591';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1566, 0, 0
                    , 600.00, 5.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=384
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-07*600.00," WHERE transferproductid = 462;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1566', '1', '5.00', '1', '462', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=6533
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2578';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1566, 0, 0
                    , 600.00, 5.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2009
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1566', '2', '5.00', '0', '462', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=6534
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1565', '2.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=463
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1590';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1565, 0, 0
                    , 580.00, 2.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-2.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=383
UPDATE storemovement SET  buyPricesHistoryBookData = "2.00*2026-10-07*580.00," WHERE transferproductid = 463;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1565', '1', '2.00', '1', '463', 'تحويل منتجات من المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=6535
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2577';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1565, 0, 0
                    , 580.00, 2.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2011
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1565', '2', '2.00', '0', '463', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=6536
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1564', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=464
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1589';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 464;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1564', '1', '0.00', '1', '464', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6537
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2576';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1564', '2', '0.00', '0', '464', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6538
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1563', '35.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=465
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1588';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1563, 0, 0
                    , 650.00, 15, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=381
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1563, 0, 0
                    , 650.00, 20, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=1165
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-07*650.00,20*2026-10-14*650.00," WHERE transferproductid = 465;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1563', '1', '35.00', '1', '465', 'تحويل منتجات من المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=6539
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2575';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1563, 0, 0
                    , 650.00, 15, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2014
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1563, 0, 0
                    , 650.00, 20, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2015
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1563', '2', '35.00', '0', '465', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=6540
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1562', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=466
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1587';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1562, 0, 0
                    , 680.00, 5.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=380
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-07*680.00," WHERE transferproductid = 466;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1562', '1', '5.00', '1', '466', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=6541
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2574';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1562, 0, 0
                    , 680.00, 5.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2017
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1562', '2', '5.00', '0', '466', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=6542
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1561', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=467
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1586';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 467;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1561', '1', '0.00', '1', '467', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6543
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2573';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1561', '2', '0.00', '0', '467', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6544
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1560', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=468
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1585';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 468;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1560', '1', '0.00', '1', '468', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6545
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2572';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1560', '2', '0.00', '0', '468', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6546
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1559', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=469
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1584';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1559, 0, 0
                    , 577.00, 15.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=377
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-07*577.00," WHERE transferproductid = 469;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1559', '1', '15.00', '1', '469', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6547
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2571';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1559, 0, 0
                    , 577.00, 15.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2019
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1559', '2', '15.00', '0', '469', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=6548
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1558', '16.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=470
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1583';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1558, 0, 0
                    , 657.00, 15, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=376
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1558, 0, 0
                    , 657.00, -1, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyprice = 657.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2021
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-07*657.00,1*2026-10-14*657.00," WHERE transferproductid = 470;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1558', '1', '16.00', '1', '470', 'تحويل منتجات من المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=6549
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2570';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1558, 0, 0
                    , 657.00, 15, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2022
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1558, 0, 0
                    , 657.00, 1, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2023
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1558', '2', '16.00', '0', '470', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2026-10-14','0','0'); -- id=6550
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1557', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=471
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1582';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1557, 0, 0
                    , 617.00, 10.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=375
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-07*617.00," WHERE transferproductid = 471;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1557', '1', '10.00', '1', '471', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=6551
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2569';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1557, 0, 0
                    , 617.00, 10.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2025
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1557', '2', '10.00', '0', '471', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=6552
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1556', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=472
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1581';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1556, 0, 0
                    , 637.00, 25.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=374
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-07*637.00," WHERE transferproductid = 472;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1556', '1', '25.00', '1', '472', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=6553
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2568';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1556, 0, 0
                    , 637.00, 25.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2027
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1556', '2', '25.00', '0', '472', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=6554
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1555', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=473
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1580';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1555, 0, 0
                    , 457.00, 15.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=373
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-07*457.00," WHERE transferproductid = 473;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1555', '1', '15.00', '1', '473', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6555
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2567';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1555, 0, 0
                    , 457.00, 15.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2029
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1555', '2', '15.00', '0', '473', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=6556
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1554', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=474
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1579';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1554, 0, 0
                    , 532.00, 15.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=372
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-07*532.00," WHERE transferproductid = 474;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1554', '1', '15.00', '1', '474', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6557
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2566';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1554, 0, 0
                    , 532.00, 15.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2031
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1554', '2', '15.00', '0', '474', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=6558
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1553', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=475
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1578';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1553, 0, 0
                    , 572.00, 20.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=371
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-07*572.00," WHERE transferproductid = 475;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1553', '1', '20.00', '1', '475', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=6559
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2565';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1553, 0, 0
                    , 572.00, 20.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2033
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1553', '2', '20.00', '0', '475', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=6560
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1552', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=476
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1577';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 476;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1552', '1', '0.00', '1', '476', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6561
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2564';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1552', '2', '0.00', '0', '476', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6562
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1551', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=477
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1576';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 477;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1551', '1', '0.00', '1', '477', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6563
UPDATE storedetail SET  productquantity = '396', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2563';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1551', '2', '0.00', '0', '477', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '396', '396', '1', '2026-10-14','0','0'); -- id=6564
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1550', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=478
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1575';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 478;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1550', '1', '0.00', '1', '478', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6565
UPDATE storedetail SET  productquantity = '123', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2562';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1550', '2', '0.00', '0', '478', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '123', '123', '1', '2026-10-14','0','0'); -- id=6566
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1549', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=479
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1574';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1549, 0, 0
                    , 485.00, 25.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=358
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-07*485.00," WHERE transferproductid = 479;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1549', '1', '25.00', '1', '479', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=6567
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2561';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1549, 0, 0
                    , 485.00, 25.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2035
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1549', '2', '25.00', '0', '479', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=6568
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1548', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=480
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1573';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1548, 0, 0
                    , 517.50, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=326
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-06*517.50," WHERE transferproductid = 480;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1548', '1', '24.00', '1', '480', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6569
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2560';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1548, 0, 0
                    , 517.50, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2037
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1548', '2', '24.00', '0', '480', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6570
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1547', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=481
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1572';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1547, 0, 0
                    , 513.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=325
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-06*513.00," WHERE transferproductid = 481;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1547', '1', '24.00', '1', '481', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6571
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2559';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1547, 0, 0
                    , 513.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2039
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1547', '2', '24.00', '0', '481', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6572
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1546', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=482
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1571';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1546, 0, 0
                    , 522.00, 25.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=324
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-06*522.00," WHERE transferproductid = 482;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1546', '1', '25.00', '1', '482', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=6573
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2558';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1546, 0, 0
                    , 522.00, 25.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2041
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1546', '2', '25.00', '0', '482', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=6574
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1545', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=483
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1570';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1545, 0, 0
                    , 517.50, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=323
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-06*517.50," WHERE transferproductid = 483;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1545', '1', '24.00', '1', '483', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6575
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2557';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1545, 0, 0
                    , 517.50, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2043
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1545', '2', '24.00', '0', '483', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6576
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1544', '39.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=484
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1569';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1544, 0, 0
                    , 495.00, 39.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-39.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=322
UPDATE storemovement SET  buyPricesHistoryBookData = "39.00*2026-10-06*495.00," WHERE transferproductid = 484;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1544', '1', '39.00', '1', '484', 'تحويل منتجات من المخزن', 'storemovementController.php', '39', '0', '1', '2026-10-14','0','0'); -- id=6577
UPDATE storedetail SET  productquantity = '39', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2556';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1544, 0, 0
                    , 495.00, 39.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2045
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1544', '2', '39.00', '0', '484', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2026-10-14','0','0'); -- id=6578
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1543', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=485
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1568';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1543, 0, 0
                    , 481.50, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=321
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-06*481.50," WHERE transferproductid = 485;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1543', '1', '21.00', '1', '485', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6579
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2555';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1543, 0, 0
                    , 481.50, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2047
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1543', '2', '21.00', '0', '485', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=6580
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1542', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=486
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1567';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1542, 0, 0
                    , 517.50, 25.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=320
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-06*517.50," WHERE transferproductid = 486;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1542', '1', '25.00', '1', '486', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=6581
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2554';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1542, 0, 0
                    , 517.50, 25.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2049
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1542', '2', '25.00', '0', '486', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=6582
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1541', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=487
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1566';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1541, 0, 0
                    , 441.00, 12.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=319
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-06*441.00," WHERE transferproductid = 487;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1541', '1', '12.00', '1', '487', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6583
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2553';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1541, 0, 0
                    , 441.00, 12.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2051
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1541', '2', '12.00', '0', '487', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=6584
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1540', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=488
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1565';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1540, 0, 0
                    , 495.00, 10.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=318
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-06*495.00," WHERE transferproductid = 488;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1540', '1', '10.00', '1', '488', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=6585
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2552';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1540, 0, 0
                    , 495.00, 10.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2053
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1540', '2', '10.00', '0', '488', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=6586
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1539', '16.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=489
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1564';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1539, 0, 0
                    , 477.00, 16.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-16.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=317
UPDATE storemovement SET  buyPricesHistoryBookData = "16.00*2026-10-06*477.00," WHERE transferproductid = 489;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1539', '1', '16.00', '1', '489', 'تحويل منتجات من المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=6587
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2551';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1539, 0, 0
                    , 477.00, 16.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2055
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1539', '2', '16.00', '0', '489', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2026-10-14','0','0'); -- id=6588
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1538', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=490
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1563';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1538, 0, 0
                    , 445.50, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=316
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-06*445.50," WHERE transferproductid = 490;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1538', '1', '36.00', '1', '490', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6589
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2550';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1538, 0, 0
                    , 445.50, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2057
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1538', '2', '36.00', '0', '490', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6590
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1537', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=491
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1562';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1537, 0, 0
                    , 445.50, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=315
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-06*445.50," WHERE transferproductid = 491;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1537', '1', '30.00', '1', '491', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6591
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2549';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1537, 0, 0
                    , 445.50, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2059
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1537', '2', '30.00', '0', '491', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=6592
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1536', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=492
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1561';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1536, 0, 0
                    , 373.50, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=314
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-06*373.50," WHERE transferproductid = 492;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1536', '1', '36.00', '1', '492', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6593
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2548';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1536, 0, 0
                    , 373.50, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2061
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1536', '2', '36.00', '0', '492', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6594
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1535', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=493
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1560';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1535, 0, 0
                    , 373.50, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=313
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-06*373.50," WHERE transferproductid = 493;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1535', '1', '30.00', '1', '493', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6595
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2547';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1535, 0, 0
                    , 373.50, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2063
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1535', '2', '30.00', '0', '493', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=6596
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1534', '37.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=494
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1559';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1534, 0, 0
                    , 324.00, 37.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-37.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=312
UPDATE storemovement SET  buyPricesHistoryBookData = "37.00*2026-10-06*324.00," WHERE transferproductid = 494;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1534', '1', '37.00', '1', '494', 'تحويل منتجات من المخزن', 'storemovementController.php', '37', '0', '1', '2026-10-14','0','0'); -- id=6597
UPDATE storedetail SET  productquantity = '37', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2546';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1534, 0, 0
                    , 324.00, 37.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2065
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1534', '2', '37.00', '0', '494', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '37', '1', '2026-10-14','0','0'); -- id=6598
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1533', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=495
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1558';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1533, 0, 0
                    , 373.50, 40.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=311
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-06*373.50," WHERE transferproductid = 495;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1533', '1', '40.00', '1', '495', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=6599
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2545';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1533, 0, 0
                    , 373.50, 40.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2067
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1533', '2', '40.00', '0', '495', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=6600
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1532', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=496
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1557';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1532, 0, 0
                    , 427.50, 5.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=310
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-06*427.50," WHERE transferproductid = 496;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1532', '1', '5.00', '1', '496', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=6601
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2544';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1532, 0, 0
                    , 427.50, 5.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2069
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1532', '2', '5.00', '0', '496', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=6602
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1531', '37.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=497
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1556';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1531, 0, 0
                    , 409.50, 37.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-37.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=309
UPDATE storemovement SET  buyPricesHistoryBookData = "37.00*2026-10-06*409.50," WHERE transferproductid = 497;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1531', '1', '37.00', '1', '497', 'تحويل منتجات من المخزن', 'storemovementController.php', '37', '0', '1', '2026-10-14','0','0'); -- id=6603
UPDATE storedetail SET  productquantity = '37', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2543';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1531, 0, 0
                    , 409.50, 37.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2071
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1531', '2', '37.00', '0', '497', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '37', '1', '2026-10-14','0','0'); -- id=6604
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1530', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=498
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1555';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1530, 0, 0
                    , 400.50, 28.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=308
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-06*400.50," WHERE transferproductid = 498;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1530', '1', '28.00', '1', '498', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=6605
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2542';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1530, 0, 0
                    , 400.50, 28.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2073
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1530', '2', '28.00', '0', '498', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=6606
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1529', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=499
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1554';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1529, 0, 0
                    , 405.00, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=307
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-06*405.00," WHERE transferproductid = 499;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1529', '1', '30.00', '1', '499', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6607
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2541';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1529, 0, 0
                    , 405.00, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2075
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1529', '2', '30.00', '0', '499', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=6608
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1528', '38.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=500
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1553';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1528, 0, 0
                    , 409.50, 38.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-38.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=306
UPDATE storemovement SET  buyPricesHistoryBookData = "38.00*2026-10-06*409.50," WHERE transferproductid = 500;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1528', '1', '38.00', '1', '500', 'تحويل منتجات من المخزن', 'storemovementController.php', '38', '0', '1', '2026-10-14','0','0'); -- id=6609
UPDATE storedetail SET  productquantity = '38', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2540';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1528, 0, 0
                    , 409.50, 38.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+38.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2077
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1528', '2', '38.00', '0', '500', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '38', '1', '2026-10-14','0','0'); -- id=6610
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1527', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=501
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1552';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1527, 0, 0
                    , 445.50, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=305
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-06*445.50," WHERE transferproductid = 501;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1527', '1', '36.00', '1', '501', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6611
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2539';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1527, 0, 0
                    , 445.50, 36.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2079
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1527', '2', '36.00', '0', '501', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6612
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1526', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=502
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1551';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1526, 0, 0
                    , 346.50, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=304
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-06*346.50," WHERE transferproductid = 502;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1526', '1', '30.00', '1', '502', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6613
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2538';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1526, 0, 0
                    , 346.50, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2081
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1526', '2', '30.00', '0', '502', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=6614
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1525', '22.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=503
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1550';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1525, 0, 0
                    , 405.00, 22.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-22.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=303
UPDATE storemovement SET  buyPricesHistoryBookData = "22.00*2026-10-06*405.00," WHERE transferproductid = 503;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1525', '1', '22.00', '1', '503', 'تحويل منتجات من المخزن', 'storemovementController.php', '22', '0', '1', '2026-10-14','0','0'); -- id=6615
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2537';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1525, 0, 0
                    , 405.00, 22.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2083
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1525', '2', '22.00', '0', '503', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2026-10-14','0','0'); -- id=6616
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1524', '1.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=504
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1549';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1524, 0, 0
                    , 418.50, 1.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-1.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=302
UPDATE storemovement SET  buyPricesHistoryBookData = "1.00*2026-10-06*418.50," WHERE transferproductid = 504;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1524', '1', '1.00', '1', '504', 'تحويل منتجات من المخزن', 'storemovementController.php', '1', '0', '1', '2026-10-14','0','0'); -- id=6617
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2536';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1524, 0, 0
                    , 418.50, 1.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2085
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1524', '2', '1.00', '0', '504', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2026-10-14','0','0'); -- id=6618
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1523', '34.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=505
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1548';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1523, 0, 0
                    , 360.00, 34.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-34.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=301
UPDATE storemovement SET  buyPricesHistoryBookData = "34.00*2026-10-06*360.00," WHERE transferproductid = 505;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1523', '1', '34.00', '1', '505', 'تحويل منتجات من المخزن', 'storemovementController.php', '34', '0', '1', '2026-10-14','0','0'); -- id=6619
UPDATE storedetail SET  productquantity = '34', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2535';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1523, 0, 0
                    , 360.00, 34.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2087
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1523', '2', '34.00', '0', '505', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2026-10-14','0','0'); -- id=6620
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1522', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=506
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1547';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1522, 0, 0
                    , 427.50, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=300
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-06*427.50," WHERE transferproductid = 506;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1522', '1', '30.00', '1', '506', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6621
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2534';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1522, 0, 0
                    , 427.50, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2089
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1522', '2', '30.00', '0', '506', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=6622
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1521', '33.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=507
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1546';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1521, 0, 0
                    , 378.00, 33.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=299
UPDATE storemovement SET  buyPricesHistoryBookData = "33.00*2026-10-06*378.00," WHERE transferproductid = 507;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1521', '1', '33.00', '1', '507', 'تحويل منتجات من المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=6623
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2533';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1521, 0, 0
                    , 378.00, 33.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2091
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1521', '2', '33.00', '0', '507', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=6624
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1520', '37.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=508
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1545';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1520, 0, 0
                    , 427.50, 37.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-37.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=298
UPDATE storemovement SET  buyPricesHistoryBookData = "37.00*2026-10-06*427.50," WHERE transferproductid = 508;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1520', '1', '37.00', '1', '508', 'تحويل منتجات من المخزن', 'storemovementController.php', '37', '0', '1', '2026-10-14','0','0'); -- id=6625
UPDATE storedetail SET  productquantity = '37', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2532';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1520, 0, 0
                    , 427.50, 37.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2093
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1520', '2', '37.00', '0', '508', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '37', '1', '2026-10-14','0','0'); -- id=6626
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1519', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=509
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1544';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1519, 0, 0
                    , 333.00, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=297
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-06*333.00," WHERE transferproductid = 509;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1519', '1', '9.00', '1', '509', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6627
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2531';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1519, 0, 0
                    , 333.00, 9.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2095
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1519', '2', '9.00', '0', '509', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=6628
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1518', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=510
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1543';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1518, 0, 0
                    , 495.00, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=296
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-06*495.00," WHERE transferproductid = 510;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1518', '1', '30.00', '1', '510', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6629
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2530';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1518, 0, 0
                    , 495.00, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2097
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1518', '2', '30.00', '0', '510', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=6630
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1517', '50.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=511
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1542';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1517, 0, 0
                    , 380.00, 50.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-50.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=295
UPDATE storemovement SET  buyPricesHistoryBookData = "50.00*2026-10-06*380.00," WHERE transferproductid = 511;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1517', '1', '50.00', '1', '511', 'تحويل منتجات من المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=6631
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2529';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1517, 0, 0
                    , 380.00, 50.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2099
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1517', '2', '50.00', '0', '511', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=6632
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1516', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=512
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1541';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1516, 0, 0
                    , 450.00, 32.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=294
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-06*450.00," WHERE transferproductid = 512;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1516', '1', '32.00', '1', '512', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=6633
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2528';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1516, 0, 0
                    , 450.00, 32.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2101
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1516', '2', '32.00', '0', '512', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=6634
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1515', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=513
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1540';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1515, 0, 0
                    , 450.00, 32.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=293
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-06*450.00," WHERE transferproductid = 513;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1515', '1', '32.00', '1', '513', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=6635
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2527';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1515, 0, 0
                    , 450.00, 32.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2103
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1515', '2', '32.00', '0', '513', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=6636
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1514', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=514
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1539';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1514, 0, 0
                    , 690.00, 18.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=292
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-06*690.00," WHERE transferproductid = 514;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1514', '1', '18.00', '1', '514', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=6637
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2526';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1514, 0, 0
                    , 690.00, 18.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2105
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1514', '2', '18.00', '0', '514', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=6638
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1513', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=515
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1538';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1513, 0, 0
                    , 630.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=291
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-06*630.00," WHERE transferproductid = 515;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1513', '1', '24.00', '1', '515', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6639
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2525';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1513, 0, 0
                    , 630.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2107
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1513', '2', '24.00', '0', '515', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6640
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1512', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=516
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1537';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1512, 0, 0
                    , 640.00, 27.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=290
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-06*640.00," WHERE transferproductid = 516;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1512', '1', '27.00', '1', '516', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=6641
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2524';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1512, 0, 0
                    , 640.00, 27.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2109
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1512', '2', '27.00', '0', '516', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=6642
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1511', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=517
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1536';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1511, 0, 0
                    , 670.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=289
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-06*670.00," WHERE transferproductid = 517;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1511', '1', '24.00', '1', '517', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6643
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2523';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1511, 0, 0
                    , 670.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2111
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1511', '2', '24.00', '0', '517', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6644
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1510', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=518
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1535';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1510, 0, 0
                    , 720.00, 12.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=288
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-06*720.00," WHERE transferproductid = 518;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1510', '1', '12.00', '1', '518', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6645
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2522';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1510, 0, 0
                    , 720.00, 12.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2113
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1510', '2', '12.00', '0', '518', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=6646
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1509', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=519
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1534';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1509, 0, 0
                    , 720.00, 12.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=287
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-06*720.00," WHERE transferproductid = 519;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1509', '1', '12.00', '1', '519', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6647
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2521';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1509, 0, 0
                    , 720.00, 12.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2115
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1509', '2', '12.00', '0', '519', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=6648
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1508', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=520
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1533';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1508, 0, 0
                    , 600.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=343
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-07*600.00," WHERE transferproductid = 520;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1508', '1', '24.00', '1', '520', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6649
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2520';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1508, 0, 0
                    , 600.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2117
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1508', '2', '24.00', '0', '520', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6650
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1507', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=521
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1532';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 521;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1507', '1', '0.00', '1', '521', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6651
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2519';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1507', '2', '0.00', '0', '521', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6652
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1506', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=522
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1531';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1506, 0, 0
                    , 480.00, 27.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=352
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-07*480.00," WHERE transferproductid = 522;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1506', '1', '27.00', '1', '522', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=6653
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2518';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1506, 0, 0
                    , 480.00, 27.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2119
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1506', '2', '27.00', '0', '522', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=6654
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1505', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=523
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1530';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 523;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1505', '1', '0.00', '1', '523', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6655
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2517';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1505', '2', '0.00', '0', '523', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6656
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1504', '2.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=524
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1529';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1504, 0, 0
                    , 580.00, 2.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-2.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=349
UPDATE storemovement SET  buyPricesHistoryBookData = "2.00*2026-10-07*580.00," WHERE transferproductid = 524;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1504', '1', '2.00', '1', '524', 'تحويل منتجات من المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=6657
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2516';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1504, 0, 0
                    , 580.00, 2.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2121
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1504', '2', '2.00', '0', '524', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=6658
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1503', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=525
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1528';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1503, 0, 0
                    , 580.00, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=348
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-07*580.00," WHERE transferproductid = 525;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1503', '1', '30.00', '1', '525', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6659
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2515';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1503, 0, 0
                    , 580.00, 30.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2123
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1503', '2', '30.00', '0', '525', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=6660
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1502', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=526
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1527';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 526;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1502', '1', '0.00', '1', '526', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6661
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2514';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1502', '2', '0.00', '0', '526', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6662
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1501', '22.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=527
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1526';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1501, 0, 0
                    , 650.00, 22.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-22.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=346
UPDATE storemovement SET  buyPricesHistoryBookData = "22.00*2026-10-07*650.00," WHERE transferproductid = 527;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1501', '1', '22.00', '1', '527', 'تحويل منتجات من المخزن', 'storemovementController.php', '22', '0', '1', '2026-10-14','0','0'); -- id=6663
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2513';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1501, 0, 0
                    , 650.00, 22.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2125
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1501', '2', '22.00', '0', '527', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2026-10-14','0','0'); -- id=6664
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1500', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=528
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1525';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1500, 0, 0
                    , 675.00, 12.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=345
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-07*675.00," WHERE transferproductid = 528;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1500', '1', '12.00', '1', '528', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6665
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2512';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1500, 0, 0
                    , 675.00, 12.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2127
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1500', '2', '12.00', '0', '528', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=6666
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1499', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=529
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1524';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1499, 0, 0
                    , 675.00, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=344
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-07*675.00," WHERE transferproductid = 529;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1499', '1', '21.00', '1', '529', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6667
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2511';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1499, 0, 0
                    , 675.00, 21.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2129
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1499', '2', '21.00', '0', '529', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=6668
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1498', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=530
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1523';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1498, 0, 0
                    , 480.00, 12.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=342
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-07*480.00," WHERE transferproductid = 530;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1498', '1', '12.00', '1', '530', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6669
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2510';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1498, 0, 0
                    , 480.00, 12.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2131
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1498', '2', '12.00', '0', '530', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=6670
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1497', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=531
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1522';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1497, 0, 0
                    , 430.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=949
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-12*430.00," WHERE transferproductid = 531;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1497', '1', '24.00', '1', '531', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6671
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2509';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1497, 0, 0
                    , 430.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2133
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1497', '2', '24.00', '0', '531', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6672
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1496', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=532
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1521';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 532;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1496', '1', '0.00', '1', '532', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6673
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2508';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1496', '2', '0.00', '0', '532', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6674
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1495', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=533
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1520';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 533;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1495', '1', '0.00', '1', '533', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6675
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2507';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1495', '2', '0.00', '0', '533', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6676
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1494', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=534
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1519';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 534;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1494', '1', '0.00', '1', '534', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6677
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2506';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1494', '2', '0.00', '0', '534', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6678
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1493', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=535
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1518';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1493, 0, 0
                    , 600.00, 3.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=338
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-07*600.00," WHERE transferproductid = 535;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1493', '1', '3.00', '1', '535', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=6679
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2505';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1493, 0, 0
                    , 600.00, 3.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2135
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1493', '2', '3.00', '0', '535', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=6680
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1492', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=536
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1517';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 536;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1492', '1', '0.00', '1', '536', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6681
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2504';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1492', '2', '0.00', '0', '536', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6682
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1491', '39.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=537
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1516';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1491, 0, 0
                    , 675.00, 39.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-39.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=948
UPDATE storemovement SET  buyPricesHistoryBookData = "39.00*2026-10-12*675.00," WHERE transferproductid = 537;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1491', '1', '39.00', '1', '537', 'تحويل منتجات من المخزن', 'storemovementController.php', '39', '0', '1', '2026-10-14','0','0'); -- id=6683
UPDATE storedetail SET  productquantity = '39', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2503';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1491, 0, 0
                    , 675.00, 39.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2137
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1491', '2', '39.00', '0', '537', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2026-10-14','0','0'); -- id=6684
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1490', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=538
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1515';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1490, 0, 0
                    , 600.00, 32.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=253
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-06*600.00," WHERE transferproductid = 538;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1490', '1', '32.00', '1', '538', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=6685
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2502';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1490, 0, 0
                    , 600.00, 32.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2139
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1490', '2', '32.00', '0', '538', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=6686
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1489', '8.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=539
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1514';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1489, 0, 0
                    , 550.00, 8.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=252
UPDATE storemovement SET  buyPricesHistoryBookData = "8.00*2026-10-06*550.00," WHERE transferproductid = 539;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1489', '1', '8.00', '1', '539', 'تحويل منتجات من المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=6687
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2501';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1489, 0, 0
                    , 550.00, 8.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2141
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1489', '2', '8.00', '0', '539', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=6688
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1488', '8.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=540
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1513';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1488, 0, 0
                    , 550.00, 8.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=251
UPDATE storemovement SET  buyPricesHistoryBookData = "8.00*2026-10-06*550.00," WHERE transferproductid = 540;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1488', '1', '8.00', '1', '540', 'تحويل منتجات من المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=6689
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2500';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1488, 0, 0
                    , 550.00, 8.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2143
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1488', '2', '8.00', '0', '540', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=6690
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1487', '8.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=541
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1512';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1487, 0, 0
                    , 480.00, 8.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=250
UPDATE storemovement SET  buyPricesHistoryBookData = "8.00*2026-10-06*480.00," WHERE transferproductid = 541;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1487', '1', '8.00', '1', '541', 'تحويل منتجات من المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=6691
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2499';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1487, 0, 0
                    , 480.00, 8.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2145
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1487', '2', '8.00', '0', '541', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=6692
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1486', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=542
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1511';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1486, 0, 0
                    , 500.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=249
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-06*500.00," WHERE transferproductid = 542;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1486', '1', '24.00', '1', '542', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6693
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2498';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1486, 0, 0
                    , 500.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2147
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1486', '2', '24.00', '0', '542', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6694
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1485', '8.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=543
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1510';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1485, 0, 0
                    , 570.00, 8.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=248
UPDATE storemovement SET  buyPricesHistoryBookData = "8.00*2026-10-06*570.00," WHERE transferproductid = 543;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1485', '1', '8.00', '1', '543', 'تحويل منتجات من المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=6695
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2497';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1485, 0, 0
                    , 570.00, 8.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2149
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1485', '2', '8.00', '0', '543', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=6696
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1484', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=544
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1509';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1484, 0, 0
                    , 550.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=247
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-06*550.00," WHERE transferproductid = 544;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1484', '1', '24.00', '1', '544', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6697
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2496';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1484, 0, 0
                    , 550.00, 24.00, 0, 0, 1, '2026-10-14 18:00:18')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:18' ; -- id=2151
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1484', '2', '24.00', '0', '544', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6698
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1483', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=545
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1508';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 545;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1483', '1', '0.00', '1', '545', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6699
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2495';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1483', '2', '0.00', '0', '545', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6700
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1482', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:18','0','','0','','0','0','0','','','','0','0','','0'); -- id=546
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1507';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1482, 0, 0
                    , 600.00, 24.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=244
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-06*600.00," WHERE transferproductid = 546;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1482', '1', '24.00', '1', '546', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6701
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2494';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1482, 0, 0
                    , 600.00, 24.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2153
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1482', '2', '24.00', '0', '546', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6702
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1481', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=547
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1506';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1481, 0, 0
                    , 580.00, 24.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=243
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-06*580.00," WHERE transferproductid = 547;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1481', '1', '24.00', '1', '547', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6703
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2493';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1481, 0, 0
                    , 580.00, 24.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2155
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1481', '2', '24.00', '0', '547', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6704
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1480', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=548
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1505';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1480, 0, 0
                    , 620.00, 24.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=242
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-06*620.00," WHERE transferproductid = 548;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1480', '1', '24.00', '1', '548', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6705
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2492';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1480, 0, 0
                    , 620.00, 24.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2157
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1480', '2', '24.00', '0', '548', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6706
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1479', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=549
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1504';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1479, 0, 0
                    , 500.00, 24.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=245
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-06*500.00," WHERE transferproductid = 549;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1479', '1', '24.00', '1', '549', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6707
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2491';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1479, 0, 0
                    , 500.00, 24.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2159
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1479', '2', '24.00', '0', '549', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6708
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1478', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=550
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1503';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1478, 0, 0
                    , 450.00, 48.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=240
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-06*450.00," WHERE transferproductid = 550;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1478', '1', '48.00', '1', '550', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=6709
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2490';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1478, 0, 0
                    , 450.00, 48.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2161
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1478', '2', '48.00', '0', '550', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=6710
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1477', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=551
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1502';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1477, 0, 0
                    , 500.00, 20.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=239
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-06*500.00," WHERE transferproductid = 551;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1477', '1', '20.00', '1', '551', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=6711
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2489';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1477, 0, 0
                    , 500.00, 20.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2163
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1477', '2', '20.00', '0', '551', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=6712
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1476', '16.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=552
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1501';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1476, 0, 0
                    , 1000.00, 16.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-16.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=238
UPDATE storemovement SET  buyPricesHistoryBookData = "16.00*2026-10-06*1000.00," WHERE transferproductid = 552;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1476', '1', '16.00', '1', '552', 'تحويل منتجات من المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=6713
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2488';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1476, 0, 0
                    , 1000.00, 16.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2165
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1476', '2', '16.00', '0', '552', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2026-10-14','0','0'); -- id=6714
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1475', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=553
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1500';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1475, 0, 0
                    , 1200.00, 40.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=236
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-06*1200.00," WHERE transferproductid = 553;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1475', '1', '40.00', '1', '553', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=6715
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2487';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1475, 0, 0
                    , 1200.00, 40.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2167
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1475', '2', '40.00', '0', '553', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=6716
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1474', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=554
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1499';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1474, 0, 0
                    , 387.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=286
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-06*387.00," WHERE transferproductid = 554;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1474', '1', '36.00', '1', '554', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6717
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2486';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1474, 0, 0
                    , 387.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2169
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1474', '2', '36.00', '0', '554', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6718
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1473', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=555
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1498';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1473, 0, 0
                    , 396.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=285
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-06*396.00," WHERE transferproductid = 555;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1473', '1', '36.00', '1', '555', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6719
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2485';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1473, 0, 0
                    , 396.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2171
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1473', '2', '36.00', '0', '555', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6720
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1472', '63.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=556
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1497';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1472, 0, 0
                    , 288.00, 60, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=282
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1472, 0, 0
                    , 320.00, -3, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2173
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-06*288.00,3*2026-10-14*320.00," WHERE transferproductid = 556;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1472', '1', '63.00', '1', '556', 'تحويل منتجات من المخزن', 'storemovementController.php', '63', '0', '1', '2026-10-14','0','0'); -- id=6721
UPDATE storedetail SET  productquantity = '63', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2484';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1472, 0, 0
                    , 288.00, 60, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2174
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1472, 0, 0
                    , 320.00, 3, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2175
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1472', '2', '63.00', '0', '556', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '63', '1', '2026-10-14','0','0'); -- id=6722
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1471', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=557
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1496';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1471, 0, 0
                    , 414.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=279
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-06*414.00," WHERE transferproductid = 557;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1471', '1', '36.00', '1', '557', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6723
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2483';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1471, 0, 0
                    , 414.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2177
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1471', '2', '36.00', '0', '557', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6724
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1470', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=558
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1495';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1470, 0, 0
                    , 351.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=278
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-06*351.00," WHERE transferproductid = 558;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1470', '1', '36.00', '1', '558', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6725
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2482';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1470, 0, 0
                    , 351.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2179
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1470', '2', '36.00', '0', '558', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6726
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1469', '99.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=559
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1494';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1469, 0, 0
                    , 378.00, 99.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-99.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=275
UPDATE storemovement SET  buyPricesHistoryBookData = "99.00*2026-10-06*378.00," WHERE transferproductid = 559;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1469', '1', '99.00', '1', '559', 'تحويل منتجات من المخزن', 'storemovementController.php', '99', '0', '1', '2026-10-14','0','0'); -- id=6727
UPDATE storedetail SET  productquantity = '99', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2481';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1469, 0, 0
                    , 378.00, 99.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+99.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2181
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1469', '2', '99.00', '0', '559', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '99', '1', '2026-10-14','0','0'); -- id=6728
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1468', '90.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=560
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1493';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1468, 0, 0
                    , 342.00, 90.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-90.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=274
UPDATE storemovement SET  buyPricesHistoryBookData = "90.00*2026-10-06*342.00," WHERE transferproductid = 560;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1468', '1', '90.00', '1', '560', 'تحويل منتجات من المخزن', 'storemovementController.php', '90', '0', '1', '2026-10-14','0','0'); -- id=6729
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2480';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1468, 0, 0
                    , 342.00, 90.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+90.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2183
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1468', '2', '90.00', '0', '560', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '90', '1', '2026-10-14','0','0'); -- id=6730
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1467', '500.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=561
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1492';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1467, 0, 0
                    , 276.00, 500.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-500.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=688
UPDATE storemovement SET  buyPricesHistoryBookData = "500.00*2026-10-08*276.00," WHERE transferproductid = 561;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1467', '1', '500.00', '1', '561', 'تحويل منتجات من المخزن', 'storemovementController.php', '500', '0', '1', '2026-10-14','0','0'); -- id=6731
UPDATE storedetail SET  productquantity = '500', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2479';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1467, 0, 0
                    , 276.00, 500.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+500.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2185
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1467', '2', '500.00', '0', '561', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '500', '1', '2026-10-14','0','0'); -- id=6732
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1466', '392.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=562
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1491';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1466, 0, 0
                    , 300.00, 392.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-392.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=354
UPDATE storemovement SET  buyPricesHistoryBookData = "392.00*2026-10-07*300.00," WHERE transferproductid = 562;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1466', '1', '392.00', '1', '562', 'تحويل منتجات من المخزن', 'storemovementController.php', '392', '0', '1', '2026-10-14','0','0'); -- id=6733
UPDATE storedetail SET  productquantity = '392', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2478';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1466, 0, 0
                    , 300.00, 392.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+392.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2187
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1466', '2', '392.00', '0', '562', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '392', '1', '2026-10-14','0','0'); -- id=6734
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1465', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=563
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1490';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1465, 0, 0
                    , 480.00, 30.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=335
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-07*480.00," WHERE transferproductid = 563;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1465', '1', '30.00', '1', '563', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6735
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2477';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1465, 0, 0
                    , 480.00, 30.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2189
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1465', '2', '30.00', '0', '563', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=6736
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1464', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=564
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1489';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1464, 0, 0
                    , 580.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=334
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-07*580.00," WHERE transferproductid = 564;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1464', '1', '36.00', '1', '564', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6737
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2476';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1464, 0, 0
                    , 580.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2191
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1464', '2', '36.00', '0', '564', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6738
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1463', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=565
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1488';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1463, 0, 0
                    , 450.00, 25.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=333
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-07*450.00," WHERE transferproductid = 565;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1463', '1', '25.00', '1', '565', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=6739
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2475';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1463, 0, 0
                    , 450.00, 25.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2193
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1463', '2', '25.00', '0', '565', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=6740
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1462', '207.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=566
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1487';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1462, 0, 0
                    , 410.00, 135, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-135, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=332
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1462, 0, 0
                    , 410.00, 72, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=954
UPDATE storemovement SET  buyPricesHistoryBookData = "135*2026-10-07*410.00,72*2026-10-12*410.00," WHERE transferproductid = 566;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1462', '1', '207.00', '1', '566', 'تحويل منتجات من المخزن', 'storemovementController.php', '207', '0', '1', '2026-10-14','0','0'); -- id=6741
UPDATE storedetail SET  productquantity = '207', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2474';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1462, 0, 0
                    , 410.00, 135, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+135, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2196
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1462, 0, 0
                    , 410.00, 72, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2197
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1462', '2', '207.00', '0', '566', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '207', '1', '2026-10-14','0','0'); -- id=6742
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1461', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=567
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1486';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1461, 0, 0
                    , 530.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=331
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-07*530.00," WHERE transferproductid = 567;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1461', '1', '36.00', '1', '567', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6743
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2473';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1461, 0, 0
                    , 530.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2199
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1461', '2', '36.00', '0', '567', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6744
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1460', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=568
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1485';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1460, 0, 0
                    , 360.00, 18.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=330
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-07*360.00," WHERE transferproductid = 568;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1460', '1', '18.00', '1', '568', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=6745
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2472';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1460, 0, 0
                    , 360.00, 18.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2201
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1460', '2', '18.00', '0', '568', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=6746
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1459', '79.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=569
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1484';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1459, 0, 0
                    , 310.00, 7, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-7, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=329
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1459, 0, 0
                    , 310.00, 72, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=952
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2026-10-07*310.00,72*2026-10-12*310.00," WHERE transferproductid = 569;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1459', '1', '79.00', '1', '569', 'تحويل منتجات من المخزن', 'storemovementController.php', '79', '0', '1', '2026-10-14','0','0'); -- id=6747
UPDATE storedetail SET  productquantity = '79', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2471';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1459, 0, 0
                    , 310.00, 7, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2204
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1459, 0, 0
                    , 310.00, 72, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2205
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1459', '2', '79.00', '0', '569', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '79', '1', '2026-10-14','0','0'); -- id=6748
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1458', '90.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=570
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1483';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1458, 0, 0
                    , 300.00, 18, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=328
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1458, 0, 0
                    , 300.00, 72, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=953
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-07*300.00,72*2026-10-12*300.00," WHERE transferproductid = 570;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1458', '1', '90.00', '1', '570', 'تحويل منتجات من المخزن', 'storemovementController.php', '90', '0', '1', '2026-10-14','0','0'); -- id=6749
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2470';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1458, 0, 0
                    , 300.00, 18, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2208
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1458, 0, 0
                    , 300.00, 72, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2209
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1458', '2', '90.00', '0', '570', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '90', '1', '2026-10-14','0','0'); -- id=6750
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1457', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=571
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1482';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1457, 0, 0
                    , 430.00, 6.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=327
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-07*430.00," WHERE transferproductid = 571;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1457', '1', '6.00', '1', '571', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=6751
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2469';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1457, 0, 0
                    , 430.00, 6.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2211
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1457', '2', '6.00', '0', '571', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=6752
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1456', '81.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=572
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1481';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1456, 0, 0
                    , 320.00, 75, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-75, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=235
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1456, 0, 0
                    , 320.00, -6, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2213
UPDATE storemovement SET  buyPricesHistoryBookData = "75*2026-10-06*320.00,6*2026-10-14*320.00," WHERE transferproductid = 572;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1456', '1', '81.00', '1', '572', 'تحويل منتجات من المخزن', 'storemovementController.php', '81', '0', '1', '2026-10-14','0','0'); -- id=6753
UPDATE storedetail SET  productquantity = '81', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2468';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1456, 0, 0
                    , 320.00, 75, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+75, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2214
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1456, 0, 0
                    , 320.00, 6, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2215
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1456', '2', '81.00', '0', '572', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '81', '1', '2026-10-14','0','0'); -- id=6754
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1455', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=573
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1480';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 573;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1455', '1', '0.00', '1', '573', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6755
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2467';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1455', '2', '0.00', '0', '573', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6756
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1454', '171.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=574
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1479';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1454, 0, 0
                    , 500.00, 171.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-171.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=231
UPDATE storemovement SET  buyPricesHistoryBookData = "171.00*2026-10-05*500.00," WHERE transferproductid = 574;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1454', '1', '171.00', '1', '574', 'تحويل منتجات من المخزن', 'storemovementController.php', '171', '0', '1', '2026-10-14','0','0'); -- id=6757
UPDATE storedetail SET  productquantity = '171', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2466';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1454, 0, 0
                    , 500.00, 171.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+171.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2217
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1454', '2', '171.00', '0', '574', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '171', '1', '2026-10-14','0','0'); -- id=6758
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1453', '150.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=575
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1478';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1453, 0, 0
                    , 800.00, 150.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-150.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=228
UPDATE storemovement SET  buyPricesHistoryBookData = "150.00*2026-10-05*800.00," WHERE transferproductid = 575;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1453', '1', '150.00', '1', '575', 'تحويل منتجات من المخزن', 'storemovementController.php', '150', '0', '1', '2026-10-14','0','0'); -- id=6759
UPDATE storedetail SET  productquantity = '150', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2465';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1453, 0, 0
                    , 800.00, 150.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+150.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2219
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1453', '2', '150.00', '0', '575', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '150', '1', '2026-10-14','0','0'); -- id=6760
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1452', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=576
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1469';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1452, 0, 0
                    , 216.00, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=201
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-05*216.00," WHERE transferproductid = 576;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1452', '1', '15.00', '1', '576', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6761
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2464';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1452, 0, 0
                    , 216.00, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2221
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1452', '2', '15.00', '0', '576', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=6762
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1451', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=577
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1468';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1451, 0, 0
                    , 207.00, 18.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=200
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-05*207.00," WHERE transferproductid = 577;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1451', '1', '18.00', '1', '577', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=6763
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2463';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1451, 0, 0
                    , 207.00, 18.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2223
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1451', '2', '18.00', '0', '577', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=6764
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1450', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=578
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1467';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1450, 0, 0
                    , 180.00, 9.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=199
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-05*180.00," WHERE transferproductid = 578;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1450', '1', '9.00', '1', '578', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6765
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2462';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1450, 0, 0
                    , 180.00, 9.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2225
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1450', '2', '9.00', '0', '578', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=6766
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1449', '76.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=579
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1466';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1449, 0, 0
                    , 166.50, 76.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-76.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=198
UPDATE storemovement SET  buyPricesHistoryBookData = "76.00*2026-10-05*166.50," WHERE transferproductid = 579;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1449', '1', '76.00', '1', '579', 'تحويل منتجات من المخزن', 'storemovementController.php', '76', '0', '1', '2026-10-14','0','0'); -- id=6767
UPDATE storedetail SET  productquantity = '76', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2461';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1449, 0, 0
                    , 166.50, 76.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+76.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2227
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1449', '2', '76.00', '0', '579', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '76', '1', '2026-10-14','0','0'); -- id=6768
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1448', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=580
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1465';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1448, 0, 0
                    , 144.00, 12.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=197
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-05*144.00," WHERE transferproductid = 580;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1448', '1', '12.00', '1', '580', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6769
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2460';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1448, 0, 0
                    , 144.00, 12.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2229
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1448', '2', '12.00', '0', '580', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=6770
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1447', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=581
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1460';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 581;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1447', '1', '0.00', '1', '581', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6771
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2459';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1447', '2', '0.00', '0', '581', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6772
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1446', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=582
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1459';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 582;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1446', '1', '0.00', '1', '582', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6773
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1477';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1446', '2', '0.00', '0', '582', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '14', '14', '1', '2026-10-14','0','0'); -- id=6774
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1445', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=583
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1458';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 583;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1445', '1', '0.00', '1', '583', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6775
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1476';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1445', '2', '0.00', '0', '583', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '8', '8', '1', '2026-10-14','0','0'); -- id=6776
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1444', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=584
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1457';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 584;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1444', '1', '0.00', '1', '584', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6777
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1475';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1444', '2', '0.00', '0', '584', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '4', '1', '2026-10-14','0','0'); -- id=6778
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1443', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=585
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1456';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 585;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1443', '1', '0.00', '1', '585', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6779
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1474';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1443', '2', '0.00', '0', '585', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '15', '1', '2026-10-14','0','0'); -- id=6780
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1442', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=586
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1455';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 586;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1442', '1', '0.00', '1', '586', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6781
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1473';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1442', '2', '0.00', '0', '586', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6782
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1441', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=587
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1454';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 587;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1441', '1', '0.00', '1', '587', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6783
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1472';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1441', '2', '0.00', '0', '587', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '16', '16', '1', '2026-10-14','0','0'); -- id=6784
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1440', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=588
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1453';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 588;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1440', '1', '0.00', '1', '588', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6785
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1471';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1440', '2', '0.00', '0', '588', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '32', '1', '2026-10-14','0','0'); -- id=6786
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1439', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=589
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1452';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 589;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1439', '1', '0.00', '1', '589', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6787
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1470';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1439', '2', '0.00', '0', '589', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6788
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1438', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=590
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1451';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1438, 0, 0
                    , 390.00, 21.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=219
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-05*390.00," WHERE transferproductid = 590;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1438', '1', '21.00', '1', '590', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6789
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2458';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1438, 0, 0
                    , 390.00, 21.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2231
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1438', '2', '21.00', '0', '590', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=6790
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1437', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=591
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1450';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1437, 0, 0
                    , 290.00, 9.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=218
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-05*290.00," WHERE transferproductid = 591;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1437', '1', '9.00', '1', '591', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6791
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2457';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1437, 0, 0
                    , 290.00, 9.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2233
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1437', '2', '9.00', '0', '591', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=6792
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1436', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=592
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1449';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 592;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1436', '1', '0.00', '1', '592', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6793
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2456';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1436', '2', '0.00', '0', '592', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6794
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1435', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=593
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1448';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1435, 0, 0
                    , 410.00, 9.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=216
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-05*410.00," WHERE transferproductid = 593;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1435', '1', '9.00', '1', '593', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6795
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2455';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1435, 0, 0
                    , 410.00, 9.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2235
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1435', '2', '9.00', '0', '593', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=6796
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1434', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=594
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1447';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1434, 0, 0
                    , 310.00, 27.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=215
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-05*310.00," WHERE transferproductid = 594;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1434', '1', '27.00', '1', '594', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=6797
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2454';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1434, 0, 0
                    , 310.00, 27.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2237
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1434', '2', '27.00', '0', '594', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=6798
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1433', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=595
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1446';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1433, 0, 0
                    , 350.00, 12.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=214
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-05*350.00," WHERE transferproductid = 595;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1433', '1', '12.00', '1', '595', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6799
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2453';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1433, 0, 0
                    , 350.00, 12.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2239
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1433', '2', '12.00', '0', '595', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=6800
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1432', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=596
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1445';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1432, 0, 0
                    , 485.00, 9.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=213
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-05*485.00," WHERE transferproductid = 596;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1432', '1', '9.00', '1', '596', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=6801
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2452';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1432, 0, 0
                    , 485.00, 9.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2241
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1432', '2', '9.00', '0', '596', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=6802
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1431', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=597
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1444';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1431, 0, 0
                    , 510.00, 5.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=212
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-05*510.00," WHERE transferproductid = 597;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1431', '1', '5.00', '1', '597', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=6803
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2451';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1431, 0, 0
                    , 510.00, 5.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2243
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1431', '2', '5.00', '0', '597', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=6804
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1430', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=598
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1443';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1430, 0, 0
                    , 420.00, 21.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=211
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-05*420.00," WHERE transferproductid = 598;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1430', '1', '21.00', '1', '598', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6805
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2450';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1430, 0, 0
                    , 420.00, 21.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2245
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1430', '2', '21.00', '0', '598', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=6806
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1429', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=599
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1442';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1429, 0, 0
                    , 345.00, 12.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=210
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-05*345.00," WHERE transferproductid = 599;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1429', '1', '12.00', '1', '599', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6807
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2449';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1429, 0, 0
                    , 345.00, 12.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2247
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1429', '2', '12.00', '0', '599', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=6808
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1428', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=600
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1441';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1428, 0, 0
                    , 400.00, 6.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=209
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-05*400.00," WHERE transferproductid = 600;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1428', '1', '6.00', '1', '600', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=6809
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2448';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1428, 0, 0
                    , 400.00, 6.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2249
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1428', '2', '6.00', '0', '600', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=6810
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1427', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=601
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1440';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 601;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1427', '1', '0.00', '1', '601', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6811
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2447';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1427', '2', '0.00', '0', '601', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6812
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1426', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=602
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1439';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1426, 0, 0
                    , 560.00, 6.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=207
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-05*560.00," WHERE transferproductid = 602;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1426', '1', '6.00', '1', '602', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=6813
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2446';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1426, 0, 0
                    , 560.00, 6.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2251
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1426', '2', '6.00', '0', '602', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=6814
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1425', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=603
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1438';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1425, 0, 0
                    , 265.00, 6.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=206
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-05*265.00," WHERE transferproductid = 603;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1425', '1', '6.00', '1', '603', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=6815
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2445';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1425, 0, 0
                    , 265.00, 6.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2253
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1425', '2', '6.00', '0', '603', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=6816
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1424', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=604
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1437';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1424, 0, 0
                    , 460.00, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=205
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-05*460.00," WHERE transferproductid = 604;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1424', '1', '15.00', '1', '604', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6817
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2444';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1424, 0, 0
                    , 460.00, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2255
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1424', '2', '15.00', '0', '604', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=6818
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1423', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=605
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1436';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 605;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1423', '1', '0.00', '1', '605', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6819
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2443';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1423', '2', '0.00', '0', '605', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6820
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1422', '90.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=606
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1435';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1422, 0, 0
                    , 260.00, 90.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-90.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=203
UPDATE storemovement SET  buyPricesHistoryBookData = "90.00*2026-10-05*260.00," WHERE transferproductid = 606;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1422', '1', '90.00', '1', '606', 'تحويل منتجات من المخزن', 'storemovementController.php', '90', '0', '1', '2026-10-14','0','0'); -- id=6821
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2442';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1422, 0, 0
                    , 260.00, 90.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+90.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2257
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1422', '2', '90.00', '0', '606', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '90', '1', '2026-10-14','0','0'); -- id=6822
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1421', '70.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=607
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1434';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1421, 0, 0
                    , 300.00, 70.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-70.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=202
UPDATE storemovement SET  buyPricesHistoryBookData = "70.00*2026-10-05*300.00," WHERE transferproductid = 607;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1421', '1', '70.00', '1', '607', 'تحويل منتجات من المخزن', 'storemovementController.php', '70', '0', '1', '2026-10-14','0','0'); -- id=6823
UPDATE storedetail SET  productquantity = '70', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2441';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1421, 0, 0
                    , 300.00, 70.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+70.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2259
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1421', '2', '70.00', '0', '607', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '70', '1', '2026-10-14','0','0'); -- id=6824
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1420', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=608
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1433';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1420, 0, 0
                    , 495.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=188
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-03*495.00," WHERE transferproductid = 608;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1420', '1', '36.00', '1', '608', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6825
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2440';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1420, 0, 0
                    , 495.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2261
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1420', '2', '36.00', '0', '608', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6826
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1419', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=609
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1432';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1419, 0, 0
                    , 495.00, 21.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=187
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-03*495.00," WHERE transferproductid = 609;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1419', '1', '21.00', '1', '609', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=6827
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2439';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1419, 0, 0
                    , 495.00, 21.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2263
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1419', '2', '21.00', '0', '609', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=6828
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1418', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=610
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1431';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1418, 0, 0
                    , 558.00, 27.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=186
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-03*558.00," WHERE transferproductid = 610;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1418', '1', '27.00', '1', '610', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=6829
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2438';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1418, 0, 0
                    , 558.00, 27.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2265
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1418', '2', '27.00', '0', '610', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=6830
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1417', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=611
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1430';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1417, 0, 0
                    , 495.00, 32.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=185
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-03*495.00," WHERE transferproductid = 611;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1417', '1', '32.00', '1', '611', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=6831
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2437';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1417, 0, 0
                    , 495.00, 32.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2267
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1417', '2', '32.00', '0', '611', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=6832
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1416', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=612
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1429';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1416, 0, 0
                    , 720.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=184
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-03*720.00," WHERE transferproductid = 612;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1416', '1', '36.00', '1', '612', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6833
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2436';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1416, 0, 0
                    , 720.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2269
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1416', '2', '36.00', '0', '612', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6834
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1415', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=613
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1428';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1415, 0, 0
                    , 720.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=183
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-03*720.00," WHERE transferproductid = 613;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1415', '1', '36.00', '1', '613', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6835
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2435';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1415, 0, 0
                    , 720.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2271
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1415', '2', '36.00', '0', '613', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6836
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1414', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=614
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1427';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1414, 0, 0
                    , 720.00, 30.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=182
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-03*720.00," WHERE transferproductid = 614;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1414', '1', '30.00', '1', '614', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6837
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2434';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1414, 0, 0
                    , 720.00, 30.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2273
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1414', '2', '30.00', '0', '614', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=6838
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1413', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=615
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1426';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1413, 0, 0
                    , 720.00, 27.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=181
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-03*720.00," WHERE transferproductid = 615;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1413', '1', '27.00', '1', '615', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=6839
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2433';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1413, 0, 0
                    , 720.00, 27.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2275
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1413', '2', '27.00', '0', '615', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=6840
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1412', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=616
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1425';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1412, 0, 0
                    , 720.00, 27.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=180
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-03*720.00," WHERE transferproductid = 616;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1412', '1', '27.00', '1', '616', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=6841
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2432';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1412, 0, 0
                    , 720.00, 27.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2277
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1412', '2', '27.00', '0', '616', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=6842
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1411', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=617
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1424';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1411, 0, 0
                    , 720.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=179
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-03*720.00," WHERE transferproductid = 617;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1411', '1', '36.00', '1', '617', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6843
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2431';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1411, 0, 0
                    , 720.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2279
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1411', '2', '36.00', '0', '617', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6844
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1410', '33.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=618
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1423';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1410, 0, 0
                    , 720.00, 33.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=178
UPDATE storemovement SET  buyPricesHistoryBookData = "33.00*2026-10-03*720.00," WHERE transferproductid = 618;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1410', '1', '33.00', '1', '618', 'تحويل منتجات من المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=6845
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2430';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1410, 0, 0
                    , 720.00, 33.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2281
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1410', '2', '33.00', '0', '618', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=6846
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1409', '68.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=619
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1422';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1409, 0, 0
                    , 379.99, 68.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-68.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=159
UPDATE storemovement SET  buyPricesHistoryBookData = "68.00*2026-10-03*379.99," WHERE transferproductid = 619;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1409', '1', '68.00', '1', '619', 'تحويل منتجات من المخزن', 'storemovementController.php', '68', '0', '1', '2026-10-14','0','0'); -- id=6847
UPDATE storedetail SET  productquantity = '68', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2429';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1409, 0, 0
                    , 379.99, 68.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+68.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2283
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1409', '2', '68.00', '0', '619', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '68', '1', '2026-10-14','0','0'); -- id=6848
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1408', '116.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=620
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1421';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1408, 0, 0
                    , 499.99, 116.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-116.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=158
UPDATE storemovement SET  buyPricesHistoryBookData = "116.00*2026-10-03*499.99," WHERE transferproductid = 620;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1408', '1', '116.00', '1', '620', 'تحويل منتجات من المخزن', 'storemovementController.php', '116', '0', '1', '2026-10-14','0','0'); -- id=6849
UPDATE storedetail SET  productquantity = '116', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2428';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1408, 0, 0
                    , 499.99, 116.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+116.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2285
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1408', '2', '116.00', '0', '620', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '116', '1', '2026-10-14','0','0'); -- id=6850
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1407', '92.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=621
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1420';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1407, 0, 0
                    , 374.99, 92.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-92.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=157
UPDATE storemovement SET  buyPricesHistoryBookData = "92.00*2026-10-03*374.99," WHERE transferproductid = 621;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1407', '1', '92.00', '1', '621', 'تحويل منتجات من المخزن', 'storemovementController.php', '92', '0', '1', '2026-10-14','0','0'); -- id=6851
UPDATE storedetail SET  productquantity = '92', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2427';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1407, 0, 0
                    , 374.99, 92.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+92.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2287
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1407', '2', '92.00', '0', '621', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '92', '1', '2026-10-14','0','0'); -- id=6852
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1406', '92.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=622
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1419';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1406, 0, 0
                    , 364.99, 92.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-92.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=156
UPDATE storemovement SET  buyPricesHistoryBookData = "92.00*2026-10-03*364.99," WHERE transferproductid = 622;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1406', '1', '92.00', '1', '622', 'تحويل منتجات من المخزن', 'storemovementController.php', '92', '0', '1', '2026-10-14','0','0'); -- id=6853
UPDATE storedetail SET  productquantity = '92', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2426';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1406, 0, 0
                    , 364.99, 92.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+92.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2289
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1406', '2', '92.00', '0', '622', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '92', '1', '2026-10-14','0','0'); -- id=6854
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1405', '220.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=623
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1418';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1405, 0, 0
                    , 339.99, 220.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-220.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=155
UPDATE storemovement SET  buyPricesHistoryBookData = "220.00*2026-10-03*339.99," WHERE transferproductid = 623;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1405', '1', '220.00', '1', '623', 'تحويل منتجات من المخزن', 'storemovementController.php', '220', '0', '1', '2026-10-14','0','0'); -- id=6855
UPDATE storedetail SET  productquantity = '220', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2425';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1405, 0, 0
                    , 339.99, 220.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+220.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2291
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1405', '2', '220.00', '0', '623', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '220', '1', '2026-10-14','0','0'); -- id=6856
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1404', '505.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=624
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1417';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1404, 0, 0
                    , 419.99, 505.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-505.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=154
UPDATE storemovement SET  buyPricesHistoryBookData = "505.00*2026-10-03*419.99," WHERE transferproductid = 624;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1404', '1', '505.00', '1', '624', 'تحويل منتجات من المخزن', 'storemovementController.php', '505', '0', '1', '2026-10-14','0','0'); -- id=6857
UPDATE storedetail SET  productquantity = '505', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2424';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1404, 0, 0
                    , 419.99, 505.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+505.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2293
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1404', '2', '505.00', '0', '624', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '505', '1', '2026-10-14','0','0'); -- id=6858
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1403', '26.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=625
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1403';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1403, 0, 0
                    , 205.00, -26, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2294
UPDATE storemovement SET  buyPricesHistoryBookData = "26.00*2026-10-14*205.00," WHERE transferproductid = 625;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1403', '1', '26.00', '1', '625', 'تحويل منتجات من المخزن', 'storemovementController.php', '26', '0', '1', '2026-10-14','0','0'); -- id=6859
UPDATE storedetail SET  productquantity = '26', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2423';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1403, 0, 0
                    , 205.00, 26.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2295
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1403', '2', '26.00', '0', '625', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2026-10-14','0','0'); -- id=6860
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1402', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=626
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1402';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1402, 0, 0
                    , 295.00, -24, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 295.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2296
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-14*295.00," WHERE transferproductid = 626;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1402', '1', '24.00', '1', '626', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6861
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2422';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1402, 0, 0
                    , 295.00, 24.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2297
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1402', '2', '24.00', '0', '626', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6862
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1401', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=627
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1401';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 627;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1401', '1', '0.00', '1', '627', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6863
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2421';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1401', '2', '0.00', '0', '627', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6864
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1400', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=628
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1400';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1400, 0, 0
                    , 305.00, -20, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 305.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2298
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*305.00," WHERE transferproductid = 628;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1400', '1', '20.00', '1', '628', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=6865
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2420';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1400, 0, 0
                    , 305.00, 20.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2299
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1400', '2', '20.00', '0', '628', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=6866
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1399', '14.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=629
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1399';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1399, 0, 0
                    , 345.00, -14, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 345.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2300
UPDATE storemovement SET  buyPricesHistoryBookData = "14.00*2026-10-14*345.00," WHERE transferproductid = 629;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1399', '1', '14.00', '1', '629', 'تحويل منتجات من المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=6867
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2419';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1399, 0, 0
                    , 345.00, 14.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2301
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1399', '2', '14.00', '0', '629', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=6868
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1398', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=630
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1398';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1398, 0, 0
                    , 315.00, -12, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 315.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2302
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*315.00," WHERE transferproductid = 630;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1398', '1', '12.00', '1', '630', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6869
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2418';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1398, 0, 0
                    , 315.00, 12.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2303
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1398', '2', '12.00', '0', '630', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=6870
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1397', '8.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=631
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1397';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1397, 0, 0
                    , 360.00, -8, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2304
UPDATE storemovement SET  buyPricesHistoryBookData = "8.00*2026-10-14*360.00," WHERE transferproductid = 631;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1397', '1', '8.00', '1', '631', 'تحويل منتجات من المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=6871
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2417';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1397, 0, 0
                    , 360.00, 8.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2305
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1397', '2', '8.00', '0', '631', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=6872
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1396', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=632
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1396';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1396, 0, 0
                    , 350.00, -15, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2306
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*350.00," WHERE transferproductid = 632;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1396', '1', '15.00', '1', '632', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6873
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2416';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1396, 0, 0
                    , 350.00, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2307
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1396', '2', '15.00', '0', '632', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=6874
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1395', '112.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=633
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1395';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1395, 0, 0
                    , 345.00, -112, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 345.00,
                        buyQuantity =buyQuantity+-112, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2308
UPDATE storemovement SET  buyPricesHistoryBookData = "112.00*2026-10-14*345.00," WHERE transferproductid = 633;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1395', '1', '112.00', '1', '633', 'تحويل منتجات من المخزن', 'storemovementController.php', '112', '0', '1', '2026-10-14','0','0'); -- id=6875
UPDATE storedetail SET  productquantity = '112', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2415';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1395, 0, 0
                    , 345.00, 112.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+112.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2309
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1395', '2', '112.00', '0', '633', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '112', '1', '2026-10-14','0','0'); -- id=6876
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1394', '66.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=634
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1394';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1394, 0, 0
                    , 335.00, -66, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 335.00,
                        buyQuantity =buyQuantity+-66, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2310
UPDATE storemovement SET  buyPricesHistoryBookData = "66.00*2026-10-14*335.00," WHERE transferproductid = 634;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1394', '1', '66.00', '1', '634', 'تحويل منتجات من المخزن', 'storemovementController.php', '66', '0', '1', '2026-10-14','0','0'); -- id=6877
UPDATE storedetail SET  productquantity = '66', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2414';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1394, 0, 0
                    , 335.00, 66.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+66.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2311
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1394', '2', '66.00', '0', '634', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '66', '1', '2026-10-14','0','0'); -- id=6878
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1393', '183.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=635
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1393';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1393, 0, 0
                    , 200.00, -183, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-183, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2312
UPDATE storemovement SET  buyPricesHistoryBookData = "183.00*2026-10-14*200.00," WHERE transferproductid = 635;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1393', '1', '183.00', '1', '635', 'تحويل منتجات من المخزن', 'storemovementController.php', '183', '0', '1', '2026-10-14','0','0'); -- id=6879
UPDATE storedetail SET  productquantity = '183', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2413';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1393, 0, 0
                    , 200.00, 183.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+183.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2313
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1393', '2', '183.00', '0', '635', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '183', '1', '2026-10-14','0','0'); -- id=6880
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1392', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=636
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1392';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1392, 0, 0
                    , 360.00, 24.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=84
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-01*360.00," WHERE transferproductid = 636;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1392', '1', '24.00', '1', '636', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6881
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2412';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1392, 0, 0
                    , 360.00, 24.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2315
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1392', '2', '24.00', '0', '636', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6882
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1391', '42.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=637
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1391';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1391, 0, 0
                    , 468.00, 42.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-42.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=83
UPDATE storemovement SET  buyPricesHistoryBookData = "42.00*2026-10-01*468.00," WHERE transferproductid = 637;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1391', '1', '42.00', '1', '637', 'تحويل منتجات من المخزن', 'storemovementController.php', '42', '0', '1', '2026-10-14','0','0'); -- id=6883
UPDATE storedetail SET  productquantity = '42', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2411';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1391, 0, 0
                    , 468.00, 42.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2317
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1391', '2', '42.00', '0', '637', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '42', '1', '2026-10-14','0','0'); -- id=6884
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1390', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=638
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1390';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1390, 0, 0
                    , 378.00, 48.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=82
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-01*378.00," WHERE transferproductid = 638;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1390', '1', '48.00', '1', '638', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=6885
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2410';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1390, 0, 0
                    , 378.00, 48.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2319
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1390', '2', '48.00', '0', '638', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=6886
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1389', '42.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=639
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1389';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1389, 0, 0
                    , 324.00, 42.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-42.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=81
UPDATE storemovement SET  buyPricesHistoryBookData = "42.00*2026-10-01*324.00," WHERE transferproductid = 639;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1389', '1', '42.00', '1', '639', 'تحويل منتجات من المخزن', 'storemovementController.php', '42', '0', '1', '2026-10-14','0','0'); -- id=6887
UPDATE storedetail SET  productquantity = '42', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2409';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1389, 0, 0
                    , 324.00, 42.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2321
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1389', '2', '42.00', '0', '639', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '42', '1', '2026-10-14','0','0'); -- id=6888
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1388', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=640
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1388';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1388, 0, 0
                    , 288.00, 24.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=80
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-01*288.00," WHERE transferproductid = 640;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1388', '1', '24.00', '1', '640', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=6889
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2408';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1388, 0, 0
                    , 288.00, 24.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2323
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1388', '2', '24.00', '0', '640', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=6890
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1387', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=641
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1387';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 641;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1387', '1', '0.00', '1', '641', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6891
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2407';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1387', '2', '0.00', '0', '641', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6892
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1386', '162.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=642
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1386';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1386, 0, 0
                    , 351.00, 162.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-162.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=77
UPDATE storemovement SET  buyPricesHistoryBookData = "162.00*2026-10-01*351.00," WHERE transferproductid = 642;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1386', '1', '162.00', '1', '642', 'تحويل منتجات من المخزن', 'storemovementController.php', '162', '0', '1', '2026-10-14','0','0'); -- id=6893
UPDATE storedetail SET  productquantity = '162', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2406';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1386, 0, 0
                    , 351.00, 162.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+162.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2325
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1386', '2', '162.00', '0', '642', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '162', '1', '2026-10-14','0','0'); -- id=6894
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1385', '180.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=643
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1385';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1385, 0, 0
                    , 405.00, 180.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-180.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=78
UPDATE storemovement SET  buyPricesHistoryBookData = "180.00*2026-10-01*405.00," WHERE transferproductid = 643;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1385', '1', '180.00', '1', '643', 'تحويل منتجات من المخزن', 'storemovementController.php', '180', '0', '1', '2026-10-14','0','0'); -- id=6895
UPDATE storedetail SET  productquantity = '180', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2405';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1385, 0, 0
                    , 405.00, 180.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+180.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2327
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1385', '2', '180.00', '0', '643', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '180', '1', '2026-10-14','0','0'); -- id=6896
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1384', '252.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=644
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1384';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1384, 0, 0
                    , 441.00, 252.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-252.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=76
UPDATE storemovement SET  buyPricesHistoryBookData = "252.00*2026-10-01*441.00," WHERE transferproductid = 644;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1384', '1', '252.00', '1', '644', 'تحويل منتجات من المخزن', 'storemovementController.php', '252', '0', '1', '2026-10-14','0','0'); -- id=6897
UPDATE storedetail SET  productquantity = '252', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2404';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1384, 0, 0
                    , 441.00, 252.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+252.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2329
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1384', '2', '252.00', '0', '644', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '252', '1', '2026-10-14','0','0'); -- id=6898
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1383', '351.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=645
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1383';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1383, 0, 0
                    , 300.00, 339, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-339, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=75
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1383, 0, 0
                    , 300.00, -12, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2331
UPDATE storemovement SET  buyPricesHistoryBookData = "339*2026-10-01*300.00,12*2026-10-14*300.00," WHERE transferproductid = 645;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1383', '1', '351.00', '1', '645', 'تحويل منتجات من المخزن', 'storemovementController.php', '351', '0', '1', '2026-10-14','0','0'); -- id=6899
UPDATE storedetail SET  productquantity = '351', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2403';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1383, 0, 0
                    , 300.00, 339, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+339, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2332
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1383, 0, 0
                    , 300.00, 12, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2333
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1383', '2', '351.00', '0', '645', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '351', '1', '2026-10-14','0','0'); -- id=6900
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1382', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=646
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1382';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 646;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1382', '1', '0.00', '1', '646', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6901
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2402';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1382', '2', '0.00', '0', '646', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6902
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1381', '234.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=647
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1381';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1381, 0, 0
                    , 260.00, 234.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-234.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=73
UPDATE storemovement SET  buyPricesHistoryBookData = "234.00*2026-10-01*260.00," WHERE transferproductid = 647;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1381', '1', '234.00', '1', '647', 'تحويل منتجات من المخزن', 'storemovementController.php', '234', '0', '1', '2026-10-14','0','0'); -- id=6903
UPDATE storedetail SET  productquantity = '234', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2401';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1381, 0, 0
                    , 260.00, 234.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+234.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2335
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1381', '2', '234.00', '0', '647', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '234', '1', '2026-10-14','0','0'); -- id=6904
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1380', '501.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=648
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1380';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1380, 0, 0
                    , 350.00, 501.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-501.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=72
UPDATE storemovement SET  buyPricesHistoryBookData = "501.00*2026-10-01*350.00," WHERE transferproductid = 648;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1380', '1', '501.00', '1', '648', 'تحويل منتجات من المخزن', 'storemovementController.php', '501', '0', '1', '2026-10-14','0','0'); -- id=6905
UPDATE storedetail SET  productquantity = '501', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2400';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1380, 0, 0
                    , 350.00, 501.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+501.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2337
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1380', '2', '501.00', '0', '648', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '501', '1', '2026-10-14','0','0'); -- id=6906
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1379', '441.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=649
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1379';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1379, 0, 0
                    , 270.00, 441.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-441.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=71
UPDATE storemovement SET  buyPricesHistoryBookData = "441.00*2026-10-01*270.00," WHERE transferproductid = 649;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1379', '1', '441.00', '1', '649', 'تحويل منتجات من المخزن', 'storemovementController.php', '441', '0', '1', '2026-10-14','0','0'); -- id=6907
UPDATE storedetail SET  productquantity = '441', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2399';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1379, 0, 0
                    , 270.00, 441.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+441.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2339
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1379', '2', '441.00', '0', '649', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '441', '1', '2026-10-14','0','0'); -- id=6908
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1378', '543.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=650
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1378';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1378, 0, 0
                    , 320.00, 537, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-537, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=70
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1378, 0, 0
                    , 320.00, -6, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2341
UPDATE storemovement SET  buyPricesHistoryBookData = "537*2026-10-01*320.00,6*2026-10-14*320.00," WHERE transferproductid = 650;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1378', '1', '543.00', '1', '650', 'تحويل منتجات من المخزن', 'storemovementController.php', '543', '0', '1', '2026-10-14','0','0'); -- id=6909
UPDATE storedetail SET  productquantity = '543', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2398';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1378, 0, 0
                    , 320.00, 537, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+537, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2342
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1378, 0, 0
                    , 320.00, 6, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2343
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1378', '2', '543.00', '0', '650', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '543', '1', '2026-10-14','0','0'); -- id=6910
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1377', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=651
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1377';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 651;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1377', '1', '0.00', '1', '651', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6911
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2397';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1377', '2', '0.00', '0', '651', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6912
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1375', '112.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=652
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1375';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1375, 0, 0
                    , 240.00, 112.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-112.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=60
UPDATE storemovement SET  buyPricesHistoryBookData = "112.00*2026-10-01*240.00," WHERE transferproductid = 652;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1375', '1', '112.00', '1', '652', 'تحويل منتجات من المخزن', 'storemovementController.php', '112', '0', '1', '2026-10-14','0','0'); -- id=6913
UPDATE storedetail SET  productquantity = '112', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2396';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1375, 0, 0
                    , 240.00, 112.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+112.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2345
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1375', '2', '112.00', '0', '652', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '112', '1', '2026-10-14','0','0'); -- id=6914
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1374', '57.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=653
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1374';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1374, 0, 0
                    , 390.00, 57.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-57.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=59
UPDATE storemovement SET  buyPricesHistoryBookData = "57.00*2026-10-01*390.00," WHERE transferproductid = 653;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1374', '1', '57.00', '1', '653', 'تحويل منتجات من المخزن', 'storemovementController.php', '57', '0', '1', '2026-10-14','0','0'); -- id=6915
UPDATE storedetail SET  productquantity = '57', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2395';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1374, 0, 0
                    , 390.00, 57.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+57.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2347
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1374', '2', '57.00', '0', '653', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '57', '1', '2026-10-14','0','0'); -- id=6916
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1373', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=654
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1373';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1373, 0, 0
                    , 410.00, 60.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=58
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-01*410.00," WHERE transferproductid = 654;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1373', '1', '60.00', '1', '654', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=6917
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2394';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1373, 0, 0
                    , 410.00, 60.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2349
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1373', '2', '60.00', '0', '654', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=6918
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1372', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=655
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1372';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1372, 0, 0
                    , 420.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=57
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-01*420.00," WHERE transferproductid = 655;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1372', '1', '36.00', '1', '655', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=6919
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2393';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1372, 0, 0
                    , 420.00, 36.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2351
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1372', '2', '36.00', '0', '655', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=6920
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1371', '57.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=656
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1371';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1371, 0, 0
                    , 420.00, 57.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-57.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=56
UPDATE storemovement SET  buyPricesHistoryBookData = "57.00*2026-10-01*420.00," WHERE transferproductid = 656;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1371', '1', '57.00', '1', '656', 'تحويل منتجات من المخزن', 'storemovementController.php', '57', '0', '1', '2026-10-14','0','0'); -- id=6921
UPDATE storedetail SET  productquantity = '57', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2392';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1371, 0, 0
                    , 420.00, 57.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+57.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2353
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1371', '2', '57.00', '0', '656', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '57', '1', '2026-10-14','0','0'); -- id=6922
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1370', '57.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=657
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1370';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1370, 0, 0
                    , 440.00, 57.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-57.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=55
UPDATE storemovement SET  buyPricesHistoryBookData = "57.00*2026-10-01*440.00," WHERE transferproductid = 657;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1370', '1', '57.00', '1', '657', 'تحويل منتجات من المخزن', 'storemovementController.php', '57', '0', '1', '2026-10-14','0','0'); -- id=6923
UPDATE storedetail SET  productquantity = '57', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2391';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1370, 0, 0
                    , 440.00, 57.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+57.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2355
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1370', '2', '57.00', '0', '657', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '57', '1', '2026-10-14','0','0'); -- id=6924
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1369', '72.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=658
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1369';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1369, 0, 0
                    , 430.00, 72.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=54
UPDATE storemovement SET  buyPricesHistoryBookData = "72.00*2026-10-01*430.00," WHERE transferproductid = 658;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1369', '1', '72.00', '1', '658', 'تحويل منتجات من المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=6925
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2390';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1369, 0, 0
                    , 430.00, 72.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2357
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1369', '2', '72.00', '0', '658', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '72', '1', '2026-10-14','0','0'); -- id=6926
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1368', '104.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=659
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1368';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1368, 0, 0
                    , 270.00, 104.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-104.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=53
UPDATE storemovement SET  buyPricesHistoryBookData = "104.00*2026-10-01*270.00," WHERE transferproductid = 659;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1368', '1', '104.00', '1', '659', 'تحويل منتجات من المخزن', 'storemovementController.php', '104', '0', '1', '2026-10-14','0','0'); -- id=6927
UPDATE storedetail SET  productquantity = '104', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2389';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1368, 0, 0
                    , 270.00, 104.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+104.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2359
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1368', '2', '104.00', '0', '659', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '104', '1', '2026-10-14','0','0'); -- id=6928
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1367', '62.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=660
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1367';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1367, 0, 0
                    , 520.00, 62.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-62.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=65
UPDATE storemovement SET  buyPricesHistoryBookData = "62.00*2026-10-01*520.00," WHERE transferproductid = 660;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1367', '1', '62.00', '1', '660', 'تحويل منتجات من المخزن', 'storemovementController.php', '62', '0', '1', '2026-10-14','0','0'); -- id=6929
UPDATE storedetail SET  productquantity = '62', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2388';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1367, 0, 0
                    , 520.00, 62.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+62.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2361
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1367', '2', '62.00', '0', '660', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '62', '1', '2026-10-14','0','0'); -- id=6930
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1366', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=661
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1366';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1366, 0, 0
                    , 450.00, 60.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=64
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-01*450.00," WHERE transferproductid = 661;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1366', '1', '60.00', '1', '661', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=6931
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2387';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1366, 0, 0
                    , 450.00, 60.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2363
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1366', '2', '60.00', '0', '661', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=6932
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1365', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=662
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1365';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 662;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1365', '1', '0.00', '1', '662', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6933
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1412';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1365', '2', '0.00', '0', '662', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '28', '1', '2026-10-14','0','0'); -- id=6934
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1364', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=663
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1364';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 663;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1364', '1', '0.00', '1', '663', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6935
UPDATE storedetail SET  productquantity = '76', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1411';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1364', '2', '0.00', '0', '663', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '76', '76', '1', '2026-10-14','0','0'); -- id=6936
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1363', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=664
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1363';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 664;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1363', '1', '0.00', '1', '664', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6937
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1410';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1363', '2', '0.00', '0', '664', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6938
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1362', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=665
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1362';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 665;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1362', '1', '0.00', '1', '665', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6939
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1409';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1362', '2', '0.00', '0', '665', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '12', '1', '2026-10-14','0','0'); -- id=6940
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1361', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=666
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1361';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 666;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1361', '1', '0.00', '1', '666', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6941
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1408';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1361', '2', '0.00', '0', '666', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6942
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1360', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=667
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1360';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 667;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1360', '1', '0.00', '1', '667', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6943
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2386';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1360', '2', '0.00', '0', '667', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6944
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1359', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=668
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1359';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 668;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1359', '1', '0.00', '1', '668', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6945
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1416';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1359', '2', '0.00', '0', '668', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '10', '1', '2026-10-14','0','0'); -- id=6946
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1358', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=669
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1358';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 669;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1358', '1', '0.00', '1', '669', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6947
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1415';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1358', '2', '0.00', '0', '669', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '16', '16', '1', '2026-10-14','0','0'); -- id=6948
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1357', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=670
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1357';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 670;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1357', '1', '0.00', '1', '670', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6949
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1414';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1357', '2', '0.00', '0', '670', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '10', '1', '2026-10-14','0','0'); -- id=6950
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1356', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=671
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1356';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 671;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1356', '1', '0.00', '1', '671', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6951
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1413';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1356', '2', '0.00', '0', '671', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '25', '1', '2026-10-14','0','0'); -- id=6952
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1355', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=672
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1355';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 672;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1355', '1', '0.00', '1', '672', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6953
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2385';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1355', '2', '0.00', '0', '672', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6954
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1354', '35.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=673
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1354';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1354, 0, 0
                    , 530.00, 35.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=69
UPDATE storemovement SET  buyPricesHistoryBookData = "35.00*2026-10-01*530.00," WHERE transferproductid = 673;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1354', '1', '35.00', '1', '673', 'تحويل منتجات من المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=6955
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2384';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1354, 0, 0
                    , 530.00, 35.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2365
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1354', '2', '35.00', '0', '673', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=6956
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1353', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=674
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1353';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1353, 0, 0
                    , 600.00, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=45
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-09-30*600.00," WHERE transferproductid = 674;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1353', '1', '15.00', '1', '674', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6957
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2383';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1353, 0, 0
                    , 600.00, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2367
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1353', '2', '15.00', '0', '674', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=6958
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1352', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=675
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1352';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1352, 0, 0
                    , 615.00, -12, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 615.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2368
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*615.00," WHERE transferproductid = 675;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1352', '1', '12.00', '1', '675', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6959
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2382';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1352, 0, 0
                    , 615.00, 12.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2369
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1352', '2', '12.00', '0', '675', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=6960
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1351', '35.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=676
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1351';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1351, 0, 0
                    , 440.00, 35.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=43
UPDATE storemovement SET  buyPricesHistoryBookData = "35.00*2026-09-30*440.00," WHERE transferproductid = 676;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1351', '1', '35.00', '1', '676', 'تحويل منتجات من المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=6961
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2381';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1351, 0, 0
                    , 440.00, 35.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2371
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1351', '2', '35.00', '0', '676', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=6962
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1350', '35.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=677
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1350';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1350, 0, 0
                    , 555.00, 35.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=42
UPDATE storemovement SET  buyPricesHistoryBookData = "35.00*2026-09-30*555.00," WHERE transferproductid = 677;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1350', '1', '35.00', '1', '677', 'تحويل منتجات من المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=6963
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2380';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1350, 0, 0
                    , 555.00, 35.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2373
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1350', '2', '35.00', '0', '677', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=6964
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1349', '35.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=678
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1349';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1349, 0, 0
                    , 440.00, 35.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=41
UPDATE storemovement SET  buyPricesHistoryBookData = "35.00*2026-09-30*440.00," WHERE transferproductid = 678;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1349', '1', '35.00', '1', '678', 'تحويل منتجات من المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=6965
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2379';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1349, 0, 0
                    , 440.00, 35.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2375
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1349', '2', '35.00', '0', '678', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=6966
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1348', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=679
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1348';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1348, 0, 0
                    , 440.00, 40.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=40
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-09-30*440.00," WHERE transferproductid = 679;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1348', '1', '40.00', '1', '679', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=6967
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2378';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1348, 0, 0
                    , 440.00, 40.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2377
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1348', '2', '40.00', '0', '679', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=6968
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1347', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=680
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1347';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1347, 0, 0
                    , 475.00, 30.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=39
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-09-30*475.00," WHERE transferproductid = 680;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1347', '1', '30.00', '1', '680', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=6969
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2377';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1347, 0, 0
                    , 475.00, 30.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2379
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1347', '2', '30.00', '0', '680', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=6970
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1346', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=681
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1346';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1346, 0, 0
                    , 535.00, 12.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=38
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-09-30*535.00," WHERE transferproductid = 681;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1346', '1', '12.00', '1', '681', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=6971
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2376';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1346, 0, 0
                    , 535.00, 12.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2381
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1346', '2', '12.00', '0', '681', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=6972
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1345', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=682
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1345';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1345, 0, 0
                    , 570.00, -18, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 570.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2382
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-14*570.00," WHERE transferproductid = 682;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1345', '1', '18.00', '1', '682', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=6973
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2375';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1345, 0, 0
                    , 570.00, 18.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2383
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1345', '2', '18.00', '0', '682', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=6974
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1344', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=683
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1344';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1344, 0, 0
                    , 485.00, 25.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=36
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-09-30*485.00," WHERE transferproductid = 683;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1344', '1', '25.00', '1', '683', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=6975
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2374';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1344, 0, 0
                    , 485.00, 25.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2385
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1344', '2', '25.00', '0', '683', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=6976
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1343', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=684
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1343';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1343, 0, 0
                    , 670.00, 10.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=23
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-09-30*670.00," WHERE transferproductid = 684;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1343', '1', '10.00', '1', '684', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=6977
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2373';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1343, 0, 0
                    , 670.00, 10.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2387
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1343', '2', '10.00', '0', '684', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=6978
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1342', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=685
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1342';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 685;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1342', '1', '0.00', '1', '685', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6979
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2372';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1342', '2', '0.00', '0', '685', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6980
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1341', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=686
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1341';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 686;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1341', '1', '0.00', '1', '686', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6981
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2371';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1341', '2', '0.00', '0', '686', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6982
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1340', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=687
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1340';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 687;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1340', '1', '0.00', '1', '687', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6983
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2370';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1340', '2', '0.00', '0', '687', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6984
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1339', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=688
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1339';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1339, 0, 0
                    , 430.00, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=1164
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*430.00," WHERE transferproductid = 688;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1339', '1', '15.00', '1', '688', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6985
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2369';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1339, 0, 0
                    , 430.00, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2389
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1339', '2', '15.00', '0', '688', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=6986
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1338', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=689
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1338';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1338, 0, 0
                    , 700.00, 5.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=18
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-09-30*700.00," WHERE transferproductid = 689;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1338', '1', '5.00', '1', '689', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=6987
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2368';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1338, 0, 0
                    , 700.00, 5.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2391
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1338', '2', '5.00', '0', '689', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=6988
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1337', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=690
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1337';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1337, 0, 0
                    , 646.16, 20.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=31
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-09-30*646.16," WHERE transferproductid = 690;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1337', '1', '20.00', '1', '690', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=6989
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2367';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1337, 0, 0
                    , 646.16, 20.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2393
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1337', '2', '20.00', '0', '690', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=6990
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1336', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=691
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1336';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1336, 0, 0
                    , 537.64, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=30
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-09-30*537.64," WHERE transferproductid = 691;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1336', '1', '15.00', '1', '691', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6991
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2366';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1336, 0, 0
                    , 537.64, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2395
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1336', '2', '15.00', '0', '691', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=6992
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1335', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=692
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1335';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1335, 0, 0
                    , 621.50, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=29
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-09-30*621.50," WHERE transferproductid = 692;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1335', '1', '15.00', '1', '692', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=6993
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2365';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1335, 0, 0
                    , 621.50, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2397
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1335', '2', '15.00', '0', '692', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=6994
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1334', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=693
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1334';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 693;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1334', '1', '0.00', '1', '693', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6995
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2364';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1334', '2', '0.00', '0', '693', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=6996
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1333', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=694
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1333';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1333, 0, 0
                    , 503.12, 10.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=27
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-09-30*503.12," WHERE transferproductid = 694;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1333', '1', '10.00', '1', '694', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=6997
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2363';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1333, 0, 0
                    , 503.12, 10.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2399
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1333', '2', '10.00', '0', '694', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=6998
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1332', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=695
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1332';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1332, 0, 0
                    , 641.23, 5.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=26
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-09-30*641.23," WHERE transferproductid = 695;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1332', '1', '5.00', '1', '695', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=6999
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2362';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1332, 0, 0
                    , 641.23, 5.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2401
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1332', '2', '5.00', '0', '695', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7000
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1331', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=696
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1331';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1331, 0, 0
                    , 591.90, 10.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=25
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-09-30*591.90," WHERE transferproductid = 696;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1331', '1', '10.00', '1', '696', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7001
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2361';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1331, 0, 0
                    , 591.90, 10.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2403
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1331', '2', '10.00', '0', '696', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7002
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1330', '45.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=697
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1330';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1330, 0, 0
                    , 580.00, 45.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-45.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=35
UPDATE storemovement SET  buyPricesHistoryBookData = "45.00*2026-09-30*580.00," WHERE transferproductid = 697;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1330', '1', '45.00', '1', '697', 'تحويل منتجات من المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=7003
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2360';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1330, 0, 0
                    , 580.00, 45.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2405
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1330', '2', '45.00', '0', '697', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=7004
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1329', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=698
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1329';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1329, 0, 0
                    , 570.00, 30.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=34
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-09-30*570.00," WHERE transferproductid = 698;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1329', '1', '30.00', '1', '698', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=7005
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2359';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1329, 0, 0
                    , 570.00, 30.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2407
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1329', '2', '30.00', '0', '698', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=7006
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1328', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=699
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1328';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1328, 0, 0
                    , 550.00, 20.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=33
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-09-30*550.00," WHERE transferproductid = 699;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1328', '1', '20.00', '1', '699', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7007
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2358';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1328, 0, 0
                    , 550.00, 20.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2409
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1328', '2', '20.00', '0', '699', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7008
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1327', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=700
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1327';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1327, 0, 0
                    , 460.00, 25.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=32
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-09-30*460.00," WHERE transferproductid = 700;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1327', '1', '25.00', '1', '700', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7009
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2357';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1327, 0, 0
                    , 460.00, 25.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2411
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1327', '2', '25.00', '0', '700', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7010
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1326', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=701
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1326';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 701;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1326', '1', '0.00', '1', '701', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7011
UPDATE storedetail SET  productquantity = '140', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1407';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1326', '2', '0.00', '0', '701', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '140', '140', '1', '2026-10-14','0','0'); -- id=7012
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1325', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=702
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1325';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 702;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1325', '1', '0.00', '1', '702', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7013
UPDATE storedetail SET  productquantity = '215', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1406';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1325', '2', '0.00', '0', '702', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '215', '215', '1', '2026-10-14','0','0'); -- id=7014
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1324', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=703
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1324';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 703;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1324', '1', '0.00', '1', '703', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7015
UPDATE storedetail SET  productquantity = '1425', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1405';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1324', '2', '0.00', '0', '703', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '1425', '1425', '1', '2026-10-14','0','0'); -- id=7016
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1323', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=704
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1323';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 704;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1323', '1', '0.00', '1', '704', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7017
UPDATE storedetail SET  productquantity = '-6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1404';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1323', '2', '0.00', '0', '704', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '-6', '-6', '1', '2026-10-14','0','0'); -- id=7018
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1322', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=705
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1322';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 1, 1322, 0, 0
                    , 360.00, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=6
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-09-29*360.00," WHERE transferproductid = 705;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1322', '1', '15.00', '1', '705', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7019
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2356';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 2, 1322, 0, 0
                    , 360.00, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2413
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1322', '2', '15.00', '0', '705', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7020
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1321', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=706
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1321';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 706;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1321', '1', '0.00', '1', '706', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7021
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2355';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1321', '2', '0.00', '0', '706', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7022
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1320', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=707
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1320';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 1, 1320, 0, 0
                    , 400.00, 60.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=4
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-09-29*400.00," WHERE transferproductid = 707;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1320', '1', '60.00', '1', '707', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=7023
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2354';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 2, 1320, 0, 0
                    , 400.00, 60.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2415
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1320', '2', '60.00', '0', '707', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=7024
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1319', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=708
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1319';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 1, 1319, 0, 0
                    , 420.00, 60.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60.00, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=3
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-09-29*420.00," WHERE transferproductid = 708;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1319', '1', '60.00', '1', '708', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=7025
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2353';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 2, 1319, 0, 0
                    , 420.00, 60.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2417
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1319', '2', '60.00', '0', '708', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=7026
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1318', '-70.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=709
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1318';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 709;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1318', '1', '-70.00', '1', '709', 'تحويل منتجات من المخزن', 'storemovementController.php', '-70', '0', '1', '2026-10-14','0','0'); -- id=7027
UPDATE storedetail SET  productquantity = '-70', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2352';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1318', '2', '-70.00', '0', '709', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-70', '1', '2026-10-14','0','0'); -- id=7028
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1317', '95.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=710
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1317';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1317, 0, 0
                    , 220.00, -95, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-95, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2418
UPDATE storemovement SET  buyPricesHistoryBookData = "95.00*2026-10-14*220.00," WHERE transferproductid = 710;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1317', '1', '95.00', '1', '710', 'تحويل منتجات من المخزن', 'storemovementController.php', '95', '0', '1', '2026-10-14','0','0'); -- id=7029
UPDATE storedetail SET  productquantity = '95', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2351';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1317, 0, 0
                    , 220.00, 95.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+95.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2419
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1317', '2', '95.00', '0', '710', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '95', '1', '2026-10-14','0','0'); -- id=7030
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1316', '45.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=711
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1316';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1316, 0, 0
                    , 390.00, -45, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 390.00,
                        buyQuantity =buyQuantity+-45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2420
UPDATE storemovement SET  buyPricesHistoryBookData = "45.00*2026-10-14*390.00," WHERE transferproductid = 711;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1316', '1', '45.00', '1', '711', 'تحويل منتجات من المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=7031
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2350';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1316, 0, 0
                    , 390.00, 45.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2421
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1316', '2', '45.00', '0', '711', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=7032
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1315', '33.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=712
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1315';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1315, 0, 0
                    , 200.00, -33, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2422
UPDATE storemovement SET  buyPricesHistoryBookData = "33.00*2026-10-14*200.00," WHERE transferproductid = 712;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1315', '1', '33.00', '1', '712', 'تحويل منتجات من المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=7033
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2349';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1315, 0, 0
                    , 200.00, 33.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2423
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1315', '2', '33.00', '0', '712', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=7034
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1314', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=713
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1314';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1314, 0, 0
                    , 220.00, -15, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2424
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*220.00," WHERE transferproductid = 713;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1314', '1', '15.00', '1', '713', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7035
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2348';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1314, 0, 0
                    , 220.00, 15.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2425
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1314', '2', '15.00', '0', '713', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7036
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1313', '34.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=714
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1313';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1313, 0, 0
                    , 215.00, -34, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 215.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2426
UPDATE storemovement SET  buyPricesHistoryBookData = "34.00*2026-10-14*215.00," WHERE transferproductid = 714;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1313', '1', '34.00', '1', '714', 'تحويل منتجات من المخزن', 'storemovementController.php', '34', '0', '1', '2026-10-14','0','0'); -- id=7037
UPDATE storedetail SET  productquantity = '34', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2347';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1313, 0, 0
                    , 215.00, 34.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2427
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1313', '2', '34.00', '0', '714', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2026-10-14','0','0'); -- id=7038
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1312', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=715
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1312';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1312, 0, 0
                    , 340.00, -5, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2428
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*340.00," WHERE transferproductid = 715;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1312', '1', '5.00', '1', '715', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7039
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2346';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1312, 0, 0
                    , 340.00, 5.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2429
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1312', '2', '5.00', '0', '715', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7040
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1311', '44.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=716
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1311';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1311, 0, 0
                    , 275.00, -44, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 275.00,
                        buyQuantity =buyQuantity+-44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2430
UPDATE storemovement SET  buyPricesHistoryBookData = "44.00*2026-10-14*275.00," WHERE transferproductid = 716;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1311', '1', '44.00', '1', '716', 'تحويل منتجات من المخزن', 'storemovementController.php', '44', '0', '1', '2026-10-14','0','0'); -- id=7041
UPDATE storedetail SET  productquantity = '44', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2345';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1311, 0, 0
                    , 275.00, 44.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+44.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2431
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1311', '2', '44.00', '0', '716', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '44', '1', '2026-10-14','0','0'); -- id=7042
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1310', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=717
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1310';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1310, 0, 0
                    , 345.00, -5, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 345.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2432
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*345.00," WHERE transferproductid = 717;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1310', '1', '5.00', '1', '717', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7043
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2344';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1310, 0, 0
                    , 345.00, 5.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2433
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1310', '2', '5.00', '0', '717', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7044
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1309', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=718
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1309';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1309, 0, 0
                    , 195.00, -12, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2434
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*195.00," WHERE transferproductid = 718;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1309', '1', '12.00', '1', '718', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=7045
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2343';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1309, 0, 0
                    , 195.00, 12.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2435
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1309', '2', '12.00', '0', '718', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=7046
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1308', '13.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=719
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1308';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1308, 0, 0
                    , 210.00, -13, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2436
UPDATE storemovement SET  buyPricesHistoryBookData = "13.00*2026-10-14*210.00," WHERE transferproductid = 719;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1308', '1', '13.00', '1', '719', 'تحويل منتجات من المخزن', 'storemovementController.php', '13', '0', '1', '2026-10-14','0','0'); -- id=7047
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2342';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1308, 0, 0
                    , 210.00, 13.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2437
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1308', '2', '13.00', '0', '719', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2026-10-14','0','0'); -- id=7048
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1307', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=720
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1307';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1307, 0, 0
                    , 270.00, -12, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2438
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*270.00," WHERE transferproductid = 720;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1307', '1', '12.00', '1', '720', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=7049
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2341';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1307, 0, 0
                    , 270.00, 12.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2439
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1307', '2', '12.00', '0', '720', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=7050
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1306', '7.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=721
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1306';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1306, 0, 0
                    , 330.00, -7, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2440
UPDATE storemovement SET  buyPricesHistoryBookData = "7.00*2026-10-14*330.00," WHERE transferproductid = 721;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1306', '1', '7.00', '1', '721', 'تحويل منتجات من المخزن', 'storemovementController.php', '7', '0', '1', '2026-10-14','0','0'); -- id=7051
UPDATE storedetail SET  productquantity = '7', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2340';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1306, 0, 0
                    , 330.00, 7.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2441
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1306', '2', '7.00', '0', '721', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2026-10-14','0','0'); -- id=7052
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1305', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=722
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1305';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1305, 0, 0
                    , 400.00, -9, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2442
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-14*400.00," WHERE transferproductid = 722;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1305', '1', '9.00', '1', '722', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=7053
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2339';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1305, 0, 0
                    , 400.00, 9.00, 0, 0, 1, '2026-10-14 18:00:19')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:19' ; -- id=2443
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1305', '2', '9.00', '0', '722', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=7054
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1304', '4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:19','0','','0','','0','0','0','','','','0','0','','0'); -- id=723
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1304';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1304, 0, 0
                    , 355.00, -4, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 355.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2444
UPDATE storemovement SET  buyPricesHistoryBookData = "4.00*2026-10-14*355.00," WHERE transferproductid = 723;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1304', '1', '4.00', '1', '723', 'تحويل منتجات من المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=7055
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2338';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1304, 0, 0
                    , 355.00, 4.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2445
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1304', '2', '4.00', '0', '723', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=7056
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1303', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=724
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1303';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1303, 0, 0
                    , 240.00, -5, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2446
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*240.00," WHERE transferproductid = 724;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1303', '1', '5.00', '1', '724', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7057
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2337';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1303, 0, 0
                    , 240.00, 5.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2447
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1303', '2', '5.00', '0', '724', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7058
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1302', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=725
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1302';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1302, 0, 0
                    , 430.00, -10, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2448
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*430.00," WHERE transferproductid = 725;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1302', '1', '10.00', '1', '725', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7059
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2336';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1302, 0, 0
                    , 430.00, 10.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2449
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1302', '2', '10.00', '0', '725', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7060
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1301', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=726
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1301';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1301, 0, 0
                    , 215.00, -10, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 215.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2450
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*215.00," WHERE transferproductid = 726;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1301', '1', '10.00', '1', '726', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7061
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2335';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1301, 0, 0
                    , 215.00, 10.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2451
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1301', '2', '10.00', '0', '726', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7062
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1300', '14.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=727
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1300';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1300, 0, 0
                    , 215.00, -14, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 215.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2452
UPDATE storemovement SET  buyPricesHistoryBookData = "14.00*2026-10-14*215.00," WHERE transferproductid = 727;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1300', '1', '14.00', '1', '727', 'تحويل منتجات من المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=7063
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2334';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1300, 0, 0
                    , 215.00, 14.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2453
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1300', '2', '14.00', '0', '727', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=7064
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1299', '74.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=728
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1299';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1299, 0, 0
                    , 210.00, -74, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-74, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2454
UPDATE storemovement SET  buyPricesHistoryBookData = "74.00*2026-10-14*210.00," WHERE transferproductid = 728;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1299', '1', '74.00', '1', '728', 'تحويل منتجات من المخزن', 'storemovementController.php', '74', '0', '1', '2026-10-14','0','0'); -- id=7065
UPDATE storedetail SET  productquantity = '74', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2333';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1299, 0, 0
                    , 210.00, 74.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+74.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2455
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1299', '2', '74.00', '0', '728', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '74', '1', '2026-10-14','0','0'); -- id=7066
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1298', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=729
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1298';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1298, 0, 0
                    , 275.00, -20, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 275.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2456
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*275.00," WHERE transferproductid = 729;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1298', '1', '20.00', '1', '729', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7067
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2332';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1298, 0, 0
                    , 275.00, 20.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2457
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1298', '2', '20.00', '0', '729', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7068
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1297', '69.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=730
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1297';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1297, 0, 0
                    , 230.00, -69, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 230.00,
                        buyQuantity =buyQuantity+-69, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2458
UPDATE storemovement SET  buyPricesHistoryBookData = "69.00*2026-10-14*230.00," WHERE transferproductid = 730;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1297', '1', '69.00', '1', '730', 'تحويل منتجات من المخزن', 'storemovementController.php', '69', '0', '1', '2026-10-14','0','0'); -- id=7069
UPDATE storedetail SET  productquantity = '69', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2331';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1297, 0, 0
                    , 230.00, 69.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+69.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2459
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1297', '2', '69.00', '0', '730', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '69', '1', '2026-10-14','0','0'); -- id=7070
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1296', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=731
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1296';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1296, 0, 0
                    , 200.00, -28, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-28, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2460
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-14*200.00," WHERE transferproductid = 731;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1296', '1', '28.00', '1', '731', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=7071
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2330';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1296, 0, 0
                    , 200.00, 28.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2461
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1296', '2', '28.00', '0', '731', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=7072
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1295', '73.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=732
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1295';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1295, 0, 0
                    , 225.00, -73, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 225.00,
                        buyQuantity =buyQuantity+-73, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2462
UPDATE storemovement SET  buyPricesHistoryBookData = "73.00*2026-10-14*225.00," WHERE transferproductid = 732;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1295', '1', '73.00', '1', '732', 'تحويل منتجات من المخزن', 'storemovementController.php', '73', '0', '1', '2026-10-14','0','0'); -- id=7073
UPDATE storedetail SET  productquantity = '73', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2329';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1295, 0, 0
                    , 225.00, 73.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+73.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2463
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1295', '2', '73.00', '0', '732', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '73', '1', '2026-10-14','0','0'); -- id=7074
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1294', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=733
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1294';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1294, 0, 0
                    , 195.00, -6, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2464
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-14*195.00," WHERE transferproductid = 733;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1294', '1', '6.00', '1', '733', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=7075
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2328';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1294, 0, 0
                    , 195.00, 6.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2465
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1294', '2', '6.00', '0', '733', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=7076
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1293', '11.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=734
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1293';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1293, 0, 0
                    , 215.00, -11, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 215.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2466
UPDATE storemovement SET  buyPricesHistoryBookData = "11.00*2026-10-14*215.00," WHERE transferproductid = 734;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1293', '1', '11.00', '1', '734', 'تحويل منتجات من المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=7077
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2327';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1293, 0, 0
                    , 215.00, 11.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2467
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1293', '2', '11.00', '0', '734', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=7078
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1292', '163.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=735
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1292';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1292, 0, 0
                    , 215.00, -163, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 215.00,
                        buyQuantity =buyQuantity+-163, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2468
UPDATE storemovement SET  buyPricesHistoryBookData = "163.00*2026-10-14*215.00," WHERE transferproductid = 735;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1292', '1', '163.00', '1', '735', 'تحويل منتجات من المخزن', 'storemovementController.php', '163', '0', '1', '2026-10-14','0','0'); -- id=7079
UPDATE storedetail SET  productquantity = '163', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2326';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1292, 0, 0
                    , 215.00, 163.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+163.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2469
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1292', '2', '163.00', '0', '735', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '163', '1', '2026-10-14','0','0'); -- id=7080
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1291', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=736
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1291';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1291, 0, 0
                    , 270.00, -6, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2470
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-14*270.00," WHERE transferproductid = 736;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1291', '1', '6.00', '1', '736', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=7081
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2325';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1291, 0, 0
                    , 270.00, 6.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2471
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1291', '2', '6.00', '0', '736', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=7082
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1290', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=737
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1290';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1290, 0, 0
                    , 270.00, -20, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2472
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*270.00," WHERE transferproductid = 737;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1290', '1', '20.00', '1', '737', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7083
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2324';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1290, 0, 0
                    , 270.00, 20.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2473
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1290', '2', '20.00', '0', '737', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7084
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1289', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=738
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1289';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1289, 0, 0
                    , 280.00, -6, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2474
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-14*280.00," WHERE transferproductid = 738;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1289', '1', '6.00', '1', '738', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=7085
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2323';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1289, 0, 0
                    , 280.00, 6.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2475
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1289', '2', '6.00', '0', '738', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=7086
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1288', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=739
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1288';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1288, 0, 0
                    , 280.00, -5, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2476
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*280.00," WHERE transferproductid = 739;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1288', '1', '5.00', '1', '739', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7087
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2322';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1288, 0, 0
                    , 280.00, 5.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2477
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1288', '2', '5.00', '0', '739', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7088
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1287', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=740
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1287';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1287, 0, 0
                    , 440.00, -6, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 440.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2478
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-14*440.00," WHERE transferproductid = 740;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1287', '1', '6.00', '1', '740', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=7089
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2321';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1287, 0, 0
                    , 440.00, 6.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2479
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1287', '2', '6.00', '0', '740', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=7090
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1286', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=741
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1286';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1286, 0, 0
                    , 430.00, -3, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2480
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-14*430.00," WHERE transferproductid = 741;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1286', '1', '3.00', '1', '741', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=7091
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2320';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1286, 0, 0
                    , 430.00, 3.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2481
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1286', '2', '3.00', '0', '741', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=7092
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1285', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=742
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1285';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 742;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1285', '1', '0.00', '1', '742', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7093
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2319';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1285', '2', '0.00', '0', '742', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7094
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1284', '4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=743
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1284';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1284, 0, 0
                    , 410.00, -4, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2482
UPDATE storemovement SET  buyPricesHistoryBookData = "4.00*2026-10-14*410.00," WHERE transferproductid = 743;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1284', '1', '4.00', '1', '743', 'تحويل منتجات من المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=7095
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2318';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1284, 0, 0
                    , 410.00, 4.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2483
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1284', '2', '4.00', '0', '743', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=7096
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1283', '1.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=744
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1283';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1283, 0, 0
                    , 390.00, -1, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 390.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2484
UPDATE storemovement SET  buyPricesHistoryBookData = "1.00*2026-10-14*390.00," WHERE transferproductid = 744;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1283', '1', '1.00', '1', '744', 'تحويل منتجات من المخزن', 'storemovementController.php', '1', '0', '1', '2026-10-14','0','0'); -- id=7097
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2317';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1283, 0, 0
                    , 390.00, 1.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2485
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1283', '2', '1.00', '0', '744', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2026-10-14','0','0'); -- id=7098
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1282', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=745
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1282';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1282, 0, 0
                    , 195.00, -27, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2486
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-14*195.00," WHERE transferproductid = 745;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1282', '1', '27.00', '1', '745', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=7099
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2316';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1282, 0, 0
                    , 195.00, 27.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2487
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1282', '2', '27.00', '0', '745', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=7100
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1281', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=746
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1281';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 746;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1281', '1', '0.00', '1', '746', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7101
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2315';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1281', '2', '0.00', '0', '746', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7102
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1280', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=747
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1280';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 747;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1280', '1', '0.00', '1', '747', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7103
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2314';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1280', '2', '0.00', '0', '747', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7104
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1279', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=748
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1279';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 748;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1279', '1', '0.00', '1', '748', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7105
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2313';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1279', '2', '0.00', '0', '748', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7106
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1278', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=749
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1278';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 749;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1278', '1', '0.00', '1', '749', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7107
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2312';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1278', '2', '0.00', '0', '749', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7108
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1277', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=750
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1277';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 750;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1277', '1', '0.00', '1', '750', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7109
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2311';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1277', '2', '0.00', '0', '750', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7110
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1276', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=751
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1276';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 751;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1276', '1', '0.00', '1', '751', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7111
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2310';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1276', '2', '0.00', '0', '751', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7112
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1275', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=752
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1275';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1275, 0, 0
                    , 260.00, -20, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 260.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2488
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*260.00," WHERE transferproductid = 752;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1275', '1', '20.00', '1', '752', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7113
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2309';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1275, 0, 0
                    , 260.00, 20.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2489
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1275', '2', '20.00', '0', '752', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7114
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1274', '97.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=753
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1274';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1274, 0, 0
                    , 435.00, -97, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 435.00,
                        buyQuantity =buyQuantity+-97, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2490
UPDATE storemovement SET  buyPricesHistoryBookData = "97.00*2026-10-14*435.00," WHERE transferproductid = 753;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1274', '1', '97.00', '1', '753', 'تحويل منتجات من المخزن', 'storemovementController.php', '97', '0', '1', '2026-10-14','0','0'); -- id=7115
UPDATE storedetail SET  productquantity = '97', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2308';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1274, 0, 0
                    , 435.00, 97.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+97.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2491
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1274', '2', '97.00', '0', '753', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '97', '1', '2026-10-14','0','0'); -- id=7116
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1273', '47.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=754
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1273';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1273, 0, 0
                    , 400.00, -47, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-47, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2492
UPDATE storemovement SET  buyPricesHistoryBookData = "47.00*2026-10-14*400.00," WHERE transferproductid = 754;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1273', '1', '47.00', '1', '754', 'تحويل منتجات من المخزن', 'storemovementController.php', '47', '0', '1', '2026-10-14','0','0'); -- id=7117
UPDATE storedetail SET  productquantity = '47', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2307';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1273, 0, 0
                    , 400.00, 47.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+47.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2493
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1273', '2', '47.00', '0', '754', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '47', '1', '2026-10-14','0','0'); -- id=7118
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1272', '85.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=755
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1272';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1272, 0, 0
                    , 120.00, -85, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 120.00,
                        buyQuantity =buyQuantity+-85, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2494
UPDATE storemovement SET  buyPricesHistoryBookData = "85.00*2026-10-14*120.00," WHERE transferproductid = 755;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1272', '1', '85.00', '1', '755', 'تحويل منتجات من المخزن', 'storemovementController.php', '85', '0', '1', '2026-10-14','0','0'); -- id=7119
UPDATE storedetail SET  productquantity = '85', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2306';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1272, 0, 0
                    , 120.00, 85.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+85.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2495
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1272', '2', '85.00', '0', '755', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '85', '1', '2026-10-14','0','0'); -- id=7120
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1271', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=756
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1271';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1271, 0, 0
                    , 260.00, -6, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 260.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2496
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-14*260.00," WHERE transferproductid = 756;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1271', '1', '6.00', '1', '756', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=7121
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2305';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1271, 0, 0
                    , 260.00, 6.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2497
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1271', '2', '6.00', '0', '756', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=7122
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1270', '7.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=757
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1270';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1270, 0, 0
                    , 260.00, -7, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 260.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2498
UPDATE storemovement SET  buyPricesHistoryBookData = "7.00*2026-10-14*260.00," WHERE transferproductid = 757;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1270', '1', '7.00', '1', '757', 'تحويل منتجات من المخزن', 'storemovementController.php', '7', '0', '1', '2026-10-14','0','0'); -- id=7123
UPDATE storedetail SET  productquantity = '7', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2304';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1270, 0, 0
                    , 260.00, 7.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2499
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1270', '2', '7.00', '0', '757', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2026-10-14','0','0'); -- id=7124
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1269', '11.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=758
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1269';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1269, 0, 0
                    , 250.00, -11, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2500
UPDATE storemovement SET  buyPricesHistoryBookData = "11.00*2026-10-14*250.00," WHERE transferproductid = 758;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1269', '1', '11.00', '1', '758', 'تحويل منتجات من المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=7125
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2303';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1269, 0, 0
                    , 250.00, 11.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2501
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1269', '2', '11.00', '0', '758', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=7126
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1268', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=759
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1268';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 759;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1268', '1', '0.00', '1', '759', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7127
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2302';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1268', '2', '0.00', '0', '759', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7128
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1267', '11.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=760
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1267';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1267, 0, 0
                    , 250.00, -11, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2502
UPDATE storemovement SET  buyPricesHistoryBookData = "11.00*2026-10-14*250.00," WHERE transferproductid = 760;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1267', '1', '11.00', '1', '760', 'تحويل منتجات من المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=7129
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2301';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1267, 0, 0
                    , 250.00, 11.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2503
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1267', '2', '11.00', '0', '760', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=7130
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1266', '29.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=761
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1266';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1266, 0, 0
                    , 235.00, -29, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 235.00,
                        buyQuantity =buyQuantity+-29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2504
UPDATE storemovement SET  buyPricesHistoryBookData = "29.00*2026-10-14*235.00," WHERE transferproductid = 761;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1266', '1', '29.00', '1', '761', 'تحويل منتجات من المخزن', 'storemovementController.php', '29', '0', '1', '2026-10-14','0','0'); -- id=7131
UPDATE storedetail SET  productquantity = '29', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2300';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1266, 0, 0
                    , 235.00, 29.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2505
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1266', '2', '29.00', '0', '761', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '29', '1', '2026-10-14','0','0'); -- id=7132
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1265', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=762
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1265';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1265, 0, 0
                    , 250.00, -3, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2506
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-14*250.00," WHERE transferproductid = 762;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1265', '1', '3.00', '1', '762', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=7133
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2299';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1265, 0, 0
                    , 250.00, 3.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2507
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1265', '2', '3.00', '0', '762', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=7134
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1264', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=763
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1264';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1264, 0, 0
                    , 235.00, -3, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 235.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2508
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-14*235.00," WHERE transferproductid = 763;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1264', '1', '3.00', '1', '763', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=7135
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2298';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1264, 0, 0
                    , 235.00, 3.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2509
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1264', '2', '3.00', '0', '763', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=7136
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1263', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=764
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1263';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1263, 0, 0
                    , 250.00, -12, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2510
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*250.00," WHERE transferproductid = 764;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1263', '1', '12.00', '1', '764', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=7137
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2297';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1263, 0, 0
                    , 250.00, 12.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2511
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1263', '2', '12.00', '0', '764', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=7138
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1262', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=765
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1262';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1262, 0, 0
                    , 215.00, -3, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 215.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2512
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-14*215.00," WHERE transferproductid = 765;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1262', '1', '3.00', '1', '765', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=7139
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2296';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1262, 0, 0
                    , 215.00, 3.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2513
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1262', '2', '3.00', '0', '765', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=7140
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1261', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=766
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1261';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1261, 0, 0
                    , 240.00, -10, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2514
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*240.00," WHERE transferproductid = 766;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1261', '1', '10.00', '1', '766', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7141
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2295';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1261, 0, 0
                    , 240.00, 10.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2515
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1261', '2', '10.00', '0', '766', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7142
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1260', '556.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=767
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1260';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1260, 0, 0
                    , 370.00, -556, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-556, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2516
UPDATE storemovement SET  buyPricesHistoryBookData = "556.00*2026-10-14*370.00," WHERE transferproductid = 767;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1260', '1', '556.00', '1', '767', 'تحويل منتجات من المخزن', 'storemovementController.php', '556', '0', '1', '2026-10-14','0','0'); -- id=7143
UPDATE storedetail SET  productquantity = '556', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2294';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1260, 0, 0
                    , 370.00, 556.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+556.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2517
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1260', '2', '556.00', '0', '767', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '556', '1', '2026-10-14','0','0'); -- id=7144
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1259', '1.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=768
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1259';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1259, 0, 0
                    , 370.00, -1, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2518
UPDATE storemovement SET  buyPricesHistoryBookData = "1.00*2026-10-14*370.00," WHERE transferproductid = 768;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1259', '1', '1.00', '1', '768', 'تحويل منتجات من المخزن', 'storemovementController.php', '1', '0', '1', '2026-10-14','0','0'); -- id=7145
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2293';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1259, 0, 0
                    , 370.00, 1.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2519
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1259', '2', '1.00', '0', '768', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2026-10-14','0','0'); -- id=7146
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1258', '4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=769
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1258';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1258, 0, 0
                    , 370.00, -4, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2520
UPDATE storemovement SET  buyPricesHistoryBookData = "4.00*2026-10-14*370.00," WHERE transferproductid = 769;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1258', '1', '4.00', '1', '769', 'تحويل منتجات من المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=7147
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2292';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1258, 0, 0
                    , 370.00, 4.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2521
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1258', '2', '4.00', '0', '769', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=7148
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1257', '-3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=770
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1257';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 770;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1257', '1', '-3.00', '1', '770', 'تحويل منتجات من المخزن', 'storemovementController.php', '-3', '0', '1', '2026-10-14','0','0'); -- id=7149
UPDATE storedetail SET  productquantity = '-3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2291';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1257', '2', '-3.00', '0', '770', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-3', '1', '2026-10-14','0','0'); -- id=7150
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1256', '2.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=771
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1256';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1256, 0, 0
                    , 210.00, -2, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2522
UPDATE storemovement SET  buyPricesHistoryBookData = "2.00*2026-10-14*210.00," WHERE transferproductid = 771;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1256', '1', '2.00', '1', '771', 'تحويل منتجات من المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=7151
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2290';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1256, 0, 0
                    , 210.00, 2.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2523
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1256', '2', '2.00', '0', '771', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=7152
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1255', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=772
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1255';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1255, 0, 0
                    , 250.00, -12, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2524
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*250.00," WHERE transferproductid = 772;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1255', '1', '12.00', '1', '772', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=7153
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2289';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1255, 0, 0
                    , 250.00, 12.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2525
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1255', '2', '12.00', '0', '772', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=7154
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1254', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=773
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1254';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1254, 0, 0
                    , 235.00, -12, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 235.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2526
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*235.00," WHERE transferproductid = 773;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1254', '1', '12.00', '1', '773', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=7155
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2288';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1254, 0, 0
                    , 235.00, 12.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2527
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1254', '2', '12.00', '0', '773', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=7156
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1253', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=774
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1253';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1253, 0, 0
                    , 370.00, -20, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2528
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*370.00," WHERE transferproductid = 774;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1253', '1', '20.00', '1', '774', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7157
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2287';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1253, 0, 0
                    , 370.00, 20.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2529
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1253', '2', '20.00', '0', '774', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7158
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1252', '11.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=775
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1252';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1252, 0, 0
                    , 360.00, -11, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2530
UPDATE storemovement SET  buyPricesHistoryBookData = "11.00*2026-10-14*360.00," WHERE transferproductid = 775;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1252', '1', '11.00', '1', '775', 'تحويل منتجات من المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=7159
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2286';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1252, 0, 0
                    , 360.00, 11.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2531
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1252', '2', '11.00', '0', '775', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=7160
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1251', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=776
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1251';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1251, 0, 0
                    , 270.00, -24, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2532
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-14*270.00," WHERE transferproductid = 776;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1251', '1', '24.00', '1', '776', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=7161
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2285';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1251, 0, 0
                    , 270.00, 24.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2533
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1251', '2', '24.00', '0', '776', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=7162
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1250', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=777
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1250';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 777;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1250', '1', '0.00', '1', '777', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7163
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2284';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1250', '2', '0.00', '0', '777', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7164
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1249', '51.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=778
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1249';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1249, 0, 0
                    , 315.00, -51, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 315.00,
                        buyQuantity =buyQuantity+-51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2534
UPDATE storemovement SET  buyPricesHistoryBookData = "51.00*2026-10-14*315.00," WHERE transferproductid = 778;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1249', '1', '51.00', '1', '778', 'تحويل منتجات من المخزن', 'storemovementController.php', '51', '0', '1', '2026-10-14','0','0'); -- id=7165
UPDATE storedetail SET  productquantity = '51', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2283';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1249, 0, 0
                    , 315.00, 51.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+51.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2535
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1249', '2', '51.00', '0', '778', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '51', '1', '2026-10-14','0','0'); -- id=7166
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1248', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=779
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1248';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 779;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1248', '1', '0.00', '1', '779', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7167
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2282';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1248', '2', '0.00', '0', '779', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7168
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1247', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=780
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1247';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 780;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1247', '1', '0.00', '1', '780', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7169
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2281';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1247', '2', '0.00', '0', '780', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7170
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1246', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=781
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1246';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 781;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1246', '1', '0.00', '1', '781', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7171
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2280';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1246', '2', '0.00', '0', '781', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7172
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1245', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=782
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1245';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 782;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1245', '1', '0.00', '1', '782', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7173
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2279';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1245', '2', '0.00', '0', '782', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7174
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1244', '50.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=783
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1244';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1244, 0, 0
                    , 365.00, -50, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 365.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2536
UPDATE storemovement SET  buyPricesHistoryBookData = "50.00*2026-10-14*365.00," WHERE transferproductid = 783;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1244', '1', '50.00', '1', '783', 'تحويل منتجات من المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=7175
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2278';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1244, 0, 0
                    , 365.00, 50.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2537
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1244', '2', '50.00', '0', '783', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=7176
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1243', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=784
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1243';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 784;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1243', '1', '0.00', '1', '784', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7177
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2277';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1243', '2', '0.00', '0', '784', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7178
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1242', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=785
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1242';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1242, 0, 0
                    , 160.00, -3, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 160.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2538
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-14*160.00," WHERE transferproductid = 785;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1242', '1', '3.00', '1', '785', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=7179
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2276';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1242, 0, 0
                    , 160.00, 3.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2539
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1242', '2', '3.00', '0', '785', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=7180
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1241', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=786
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1241';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1241, 0, 0
                    , 250.00, -24, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2540
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-14*250.00," WHERE transferproductid = 786;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1241', '1', '24.00', '1', '786', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=7181
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2275';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1241, 0, 0
                    , 250.00, 24.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2541
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1241', '2', '24.00', '0', '786', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=7182
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1240', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=787
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1240';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1240, 0, 0
                    , 225.00, -48, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 225.00,
                        buyQuantity =buyQuantity+-48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2542
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-14*225.00," WHERE transferproductid = 787;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1240', '1', '48.00', '1', '787', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=7183
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2274';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1240, 0, 0
                    , 225.00, 48.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2543
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1240', '2', '48.00', '0', '787', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=7184
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1239', '130.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=788
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1239';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1239, 0, 0
                    , 430.00, -130, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-130, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2544
UPDATE storemovement SET  buyPricesHistoryBookData = "130.00*2026-10-14*430.00," WHERE transferproductid = 788;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1239', '1', '130.00', '1', '788', 'تحويل منتجات من المخزن', 'storemovementController.php', '130', '0', '1', '2026-10-14','0','0'); -- id=7185
UPDATE storedetail SET  productquantity = '130', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2273';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1239, 0, 0
                    , 430.00, 130.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+130.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2545
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1239', '2', '130.00', '0', '788', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '130', '1', '2026-10-14','0','0'); -- id=7186
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1238', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=789
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1238';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 789;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1238', '1', '0.00', '1', '789', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7187
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2272';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1238', '2', '0.00', '0', '789', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7188
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1237', '8.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=790
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1237';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1237, 0, 0
                    , 270.00, -8, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2546
UPDATE storemovement SET  buyPricesHistoryBookData = "8.00*2026-10-14*270.00," WHERE transferproductid = 790;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1237', '1', '8.00', '1', '790', 'تحويل منتجات من المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=7189
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2271';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1237, 0, 0
                    , 270.00, 8.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2547
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1237', '2', '8.00', '0', '790', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=7190
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1236', '4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=791
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1236';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1236, 0, 0
                    , 245.00, -4, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 245.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2548
UPDATE storemovement SET  buyPricesHistoryBookData = "4.00*2026-10-14*245.00," WHERE transferproductid = 791;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1236', '1', '4.00', '1', '791', 'تحويل منتجات من المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=7191
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2270';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1236, 0, 0
                    , 245.00, 4.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2549
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1236', '2', '4.00', '0', '791', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=7192
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1235', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=792
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1235';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1235, 0, 0
                    , 200.00, -3, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2550
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-14*200.00," WHERE transferproductid = 792;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1235', '1', '3.00', '1', '792', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=7193
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2269';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1235, 0, 0
                    , 200.00, 3.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2551
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1235', '2', '3.00', '0', '792', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=7194
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1234', '4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=793
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1234';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1234, 0, 0
                    , 250.00, -4, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2552
UPDATE storemovement SET  buyPricesHistoryBookData = "4.00*2026-10-14*250.00," WHERE transferproductid = 793;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1234', '1', '4.00', '1', '793', 'تحويل منتجات من المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=7195
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2268';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1234, 0, 0
                    , 250.00, 4.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2553
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1234', '2', '4.00', '0', '793', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=7196
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1233', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=794
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1233';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1233, 0, 0
                    , 230.00, -27, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 230.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2554
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-14*230.00," WHERE transferproductid = 794;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1233', '1', '27.00', '1', '794', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=7197
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2267';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1233, 0, 0
                    , 230.00, 27.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2555
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1233', '2', '27.00', '0', '794', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=7198
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1232', '26.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=795
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1232';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1232, 0, 0
                    , 125.00, -26, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2556
UPDATE storemovement SET  buyPricesHistoryBookData = "26.00*2026-10-14*125.00," WHERE transferproductid = 795;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1232', '1', '26.00', '1', '795', 'تحويل منتجات من المخزن', 'storemovementController.php', '26', '0', '1', '2026-10-14','0','0'); -- id=7199
UPDATE storedetail SET  productquantity = '26', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2266';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1232, 0, 0
                    , 125.00, 26.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2557
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1232', '2', '26.00', '0', '795', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2026-10-14','0','0'); -- id=7200
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1231', '63.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=796
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1231';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1231, 0, 0
                    , 330.00, -63, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-63, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2558
UPDATE storemovement SET  buyPricesHistoryBookData = "63.00*2026-10-14*330.00," WHERE transferproductid = 796;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1231', '1', '63.00', '1', '796', 'تحويل منتجات من المخزن', 'storemovementController.php', '63', '0', '1', '2026-10-14','0','0'); -- id=7201
UPDATE storedetail SET  productquantity = '63', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2265';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1231, 0, 0
                    , 330.00, 63.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+63.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2559
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1231', '2', '63.00', '0', '796', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '63', '1', '2026-10-14','0','0'); -- id=7202
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1230', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=797
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1230';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1230, 0, 0
                    , 315.00, -12, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 315.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2560
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*315.00," WHERE transferproductid = 797;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1230', '1', '12.00', '1', '797', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=7203
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2264';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1230, 0, 0
                    , 315.00, 12.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2561
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1230', '2', '12.00', '0', '797', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=7204
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1229', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=798
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1229';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1229, 0, 0
                    , 280.00, -27, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2562
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-14*280.00," WHERE transferproductid = 798;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1229', '1', '27.00', '1', '798', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=7205
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2263';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1229, 0, 0
                    , 280.00, 27.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2563
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1229', '2', '27.00', '0', '798', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=7206
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1228', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=799
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1228';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 799;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1228', '1', '0.00', '1', '799', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7207
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2262';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1228', '2', '0.00', '0', '799', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7208
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1227', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=800
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1227';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 800;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1227', '1', '0.00', '1', '800', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7209
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2261';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1227', '2', '0.00', '0', '800', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7210
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1226', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=801
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1226';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 801;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1226', '1', '0.00', '1', '801', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7211
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2260';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1226', '2', '0.00', '0', '801', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7212
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1225', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=802
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1225';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 802;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1225', '1', '0.00', '1', '802', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7213
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2259';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1225', '2', '0.00', '0', '802', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7214
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1224', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=803
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1224';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 803;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1224', '1', '0.00', '1', '803', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7215
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2258';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1224', '2', '0.00', '0', '803', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7216
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1223', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=804
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1223';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 804;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1223', '1', '0.00', '1', '804', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7217
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2257';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1223', '2', '0.00', '0', '804', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7218
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1222', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=805
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1222';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 805;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1222', '1', '0.00', '1', '805', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7219
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2256';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1222', '2', '0.00', '0', '805', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7220
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1221', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=806
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1221';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 806;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1221', '1', '0.00', '1', '806', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7221
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2255';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1221', '2', '0.00', '0', '806', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7222
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1220', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=807
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1220';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 807;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1220', '1', '0.00', '1', '807', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7223
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2254';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1220', '2', '0.00', '0', '807', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7224
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1219', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=808
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1219';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 808;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1219', '1', '0.00', '1', '808', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7225
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2253';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1219', '2', '0.00', '0', '808', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7226
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1218', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=809
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1218';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1218, 0, 0
                    , 325.00, -48, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 325.00,
                        buyQuantity =buyQuantity+-48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2564
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-14*325.00," WHERE transferproductid = 809;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1218', '1', '48.00', '1', '809', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=7227
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2252';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1218, 0, 0
                    , 325.00, 48.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2565
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1218', '2', '48.00', '0', '809', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=7228
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1217', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=810
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1217';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1217, 0, 0
                    , 355.00, -20, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 355.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2566
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*355.00," WHERE transferproductid = 810;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1217', '1', '20.00', '1', '810', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7229
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2251';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1217, 0, 0
                    , 355.00, 20.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2567
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1217', '2', '20.00', '0', '810', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7230
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1216', '4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=811
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1216';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1216, 0, 0
                    , 395.00, -4, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 395.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2568
UPDATE storemovement SET  buyPricesHistoryBookData = "4.00*2026-10-14*395.00," WHERE transferproductid = 811;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1216', '1', '4.00', '1', '811', 'تحويل منتجات من المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=7231
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2250';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1216, 0, 0
                    , 395.00, 4.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2569
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1216', '2', '4.00', '0', '811', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=7232
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1215', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=812
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1215';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1215, 0, 0
                    , 370.00, -18, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2570
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-14*370.00," WHERE transferproductid = 812;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1215', '1', '18.00', '1', '812', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=7233
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2249';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1215, 0, 0
                    , 370.00, 18.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2571
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1215', '2', '18.00', '0', '812', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=7234
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1214', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=813
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1214';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1214, 0, 0
                    , 390.00, -48, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 390.00,
                        buyQuantity =buyQuantity+-48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2572
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-14*390.00," WHERE transferproductid = 813;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1214', '1', '48.00', '1', '813', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=7235
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2248';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1214, 0, 0
                    , 390.00, 48.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2573
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1214', '2', '48.00', '0', '813', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=7236
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1213', '16.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=814
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1213';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1213, 0, 0
                    , 340.00, -16, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2574
UPDATE storemovement SET  buyPricesHistoryBookData = "16.00*2026-10-14*340.00," WHERE transferproductid = 814;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1213', '1', '16.00', '1', '814', 'تحويل منتجات من المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=7237
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2247';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1213, 0, 0
                    , 340.00, 16.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2575
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1213', '2', '16.00', '0', '814', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2026-10-14','0','0'); -- id=7238
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1212', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=815
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1212';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1212, 0, 0
                    , 330.00, -48, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2576
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-14*330.00," WHERE transferproductid = 815;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1212', '1', '48.00', '1', '815', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=7239
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2246';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1212, 0, 0
                    , 330.00, 48.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2577
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1212', '2', '48.00', '0', '815', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=7240
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1211', '105.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=816
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1211';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1211, 0, 0
                    , 350.00, -105, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-105, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2578
UPDATE storemovement SET  buyPricesHistoryBookData = "105.00*2026-10-14*350.00," WHERE transferproductid = 816;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1211', '1', '105.00', '1', '816', 'تحويل منتجات من المخزن', 'storemovementController.php', '105', '0', '1', '2026-10-14','0','0'); -- id=7241
UPDATE storedetail SET  productquantity = '105', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2245';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1211, 0, 0
                    , 350.00, 105.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+105.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2579
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1211', '2', '105.00', '0', '816', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '105', '1', '2026-10-14','0','0'); -- id=7242
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1210', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=817
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1210';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1210, 0, 0
                    , 125.00, -48, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 125.00,
                        buyQuantity =buyQuantity+-48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2580
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-14*125.00," WHERE transferproductid = 817;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1210', '1', '48.00', '1', '817', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=7243
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2244';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1210, 0, 0
                    , 125.00, 48.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2581
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1210', '2', '48.00', '0', '817', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=7244
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1209', '230.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=818
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1209';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1209, 0, 0
                    , 155.00, -230, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-230, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2582
UPDATE storemovement SET  buyPricesHistoryBookData = "230.00*2026-10-14*155.00," WHERE transferproductid = 818;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1209', '1', '230.00', '1', '818', 'تحويل منتجات من المخزن', 'storemovementController.php', '230', '0', '1', '2026-10-14','0','0'); -- id=7245
UPDATE storedetail SET  productquantity = '230', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2243';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1209, 0, 0
                    , 155.00, 230.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+230.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2583
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1209', '2', '230.00', '0', '818', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '230', '1', '2026-10-14','0','0'); -- id=7246
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1208', '273.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=819
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1208';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1208, 0, 0
                    , 155.00, -273, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-273, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2584
UPDATE storemovement SET  buyPricesHistoryBookData = "273.00*2026-10-14*155.00," WHERE transferproductid = 819;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1208', '1', '273.00', '1', '819', 'تحويل منتجات من المخزن', 'storemovementController.php', '273', '0', '1', '2026-10-14','0','0'); -- id=7247
UPDATE storedetail SET  productquantity = '273', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2242';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1208, 0, 0
                    , 155.00, 273.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+273.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2585
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1208', '2', '273.00', '0', '819', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '273', '1', '2026-10-14','0','0'); -- id=7248
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1207', '51.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=820
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1207';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1207, 0, 0
                    , 330.00, -51, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2586
UPDATE storemovement SET  buyPricesHistoryBookData = "51.00*2026-10-14*330.00," WHERE transferproductid = 820;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1207', '1', '51.00', '1', '820', 'تحويل منتجات من المخزن', 'storemovementController.php', '51', '0', '1', '2026-10-14','0','0'); -- id=7249
UPDATE storedetail SET  productquantity = '51', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2241';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1207, 0, 0
                    , 330.00, 51.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+51.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2587
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1207', '2', '51.00', '0', '820', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '51', '1', '2026-10-14','0','0'); -- id=7250
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1206', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=821
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1206';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1206, 0, 0
                    , 320.00, -30, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2588
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*320.00," WHERE transferproductid = 821;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1206', '1', '30.00', '1', '821', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=7251
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2240';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1206, 0, 0
                    , 320.00, 30.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2589
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1206', '2', '30.00', '0', '821', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=7252
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1205', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=822
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1205';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1205, 0, 0
                    , 290.00, -6, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 290.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2590
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-14*290.00," WHERE transferproductid = 822;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1205', '1', '6.00', '1', '822', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=7253
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2239';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1205, 0, 0
                    , 290.00, 6.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2591
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1205', '2', '6.00', '0', '822', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=7254
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1204', '1.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=823
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1204';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1204, 0, 0
                    , 320.00, -1, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2592
UPDATE storemovement SET  buyPricesHistoryBookData = "1.00*2026-10-14*320.00," WHERE transferproductid = 823;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1204', '1', '1.00', '1', '823', 'تحويل منتجات من المخزن', 'storemovementController.php', '1', '0', '1', '2026-10-14','0','0'); -- id=7255
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2238';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1204, 0, 0
                    , 320.00, 1.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2593
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1204', '2', '1.00', '0', '823', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2026-10-14','0','0'); -- id=7256
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1203', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=824
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1203';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 824;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1203', '1', '0.00', '1', '824', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7257
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2237';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1203', '2', '0.00', '0', '824', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7258
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1202', '105.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=825
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1202';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1202, 0, 0
                    , 150.00, -105, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-105, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2594
UPDATE storemovement SET  buyPricesHistoryBookData = "105.00*2026-10-14*150.00," WHERE transferproductid = 825;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1202', '1', '105.00', '1', '825', 'تحويل منتجات من المخزن', 'storemovementController.php', '105', '0', '1', '2026-10-14','0','0'); -- id=7259
UPDATE storedetail SET  productquantity = '105', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2236';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1202, 0, 0
                    , 150.00, 105.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+105.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2595
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1202', '2', '105.00', '0', '825', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '105', '1', '2026-10-14','0','0'); -- id=7260
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1201', '50.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=826
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1201';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1201, 0, 0
                    , 250.00, -50, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2596
UPDATE storemovement SET  buyPricesHistoryBookData = "50.00*2026-10-14*250.00," WHERE transferproductid = 826;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1201', '1', '50.00', '1', '826', 'تحويل منتجات من المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=7261
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2235';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1201, 0, 0
                    , 250.00, 50.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2597
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1201', '2', '50.00', '0', '826', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=7262
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1200', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=827
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1200';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1200, 0, 0
                    , 250.00, -36, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2598
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-14*250.00," WHERE transferproductid = 827;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1200', '1', '36.00', '1', '827', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=7263
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2234';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1200, 0, 0
                    , 250.00, 36.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2599
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1200', '2', '36.00', '0', '827', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=7264
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1199', '45.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=828
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1199';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1199, 0, 0
                    , 230.00, -45, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 230.00,
                        buyQuantity =buyQuantity+-45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2600
UPDATE storemovement SET  buyPricesHistoryBookData = "45.00*2026-10-14*230.00," WHERE transferproductid = 828;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1199', '1', '45.00', '1', '828', 'تحويل منتجات من المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=7265
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2233';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1199, 0, 0
                    , 230.00, 45.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2601
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1199', '2', '45.00', '0', '828', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=7266
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1198', '1.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=829
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1198';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1198, 0, 0
                    , 250.00, -1, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2602
UPDATE storemovement SET  buyPricesHistoryBookData = "1.00*2026-10-14*250.00," WHERE transferproductid = 829;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1198', '1', '1.00', '1', '829', 'تحويل منتجات من المخزن', 'storemovementController.php', '1', '0', '1', '2026-10-14','0','0'); -- id=7267
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2232';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1198, 0, 0
                    , 250.00, 1.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2603
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1198', '2', '1.00', '0', '829', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2026-10-14','0','0'); -- id=7268
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1197', '33.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=830
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1197';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1197, 0, 0
                    , 260.00, -33, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 260.00,
                        buyQuantity =buyQuantity+-33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2604
UPDATE storemovement SET  buyPricesHistoryBookData = "33.00*2026-10-14*260.00," WHERE transferproductid = 830;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1197', '1', '33.00', '1', '830', 'تحويل منتجات من المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=7269
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2231';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1197, 0, 0
                    , 260.00, 33.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2605
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1197', '2', '33.00', '0', '830', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=7270
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1196', '175.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=831
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1196';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1196, 0, 0
                    , 310.00, -175, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-175, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2606
UPDATE storemovement SET  buyPricesHistoryBookData = "175.00*2026-10-14*310.00," WHERE transferproductid = 831;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1196', '1', '175.00', '1', '831', 'تحويل منتجات من المخزن', 'storemovementController.php', '175', '0', '1', '2026-10-14','0','0'); -- id=7271
UPDATE storedetail SET  productquantity = '175', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2230';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1196, 0, 0
                    , 310.00, 175.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+175.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2607
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1196', '2', '175.00', '0', '831', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '175', '1', '2026-10-14','0','0'); -- id=7272
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1195', '33.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=832
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1195';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1195, 0, 0
                    , 165.00, -33, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 165.00,
                        buyQuantity =buyQuantity+-33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2608
UPDATE storemovement SET  buyPricesHistoryBookData = "33.00*2026-10-14*165.00," WHERE transferproductid = 832;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1195', '1', '33.00', '1', '832', 'تحويل منتجات من المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=7273
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2229';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1195, 0, 0
                    , 165.00, 33.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2609
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1195', '2', '33.00', '0', '832', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=7274
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1194', '71.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=833
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1194';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1194, 0, 0
                    , 250.00, -71, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-71, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2610
UPDATE storemovement SET  buyPricesHistoryBookData = "71.00*2026-10-14*250.00," WHERE transferproductid = 833;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1194', '1', '71.00', '1', '833', 'تحويل منتجات من المخزن', 'storemovementController.php', '71', '0', '1', '2026-10-14','0','0'); -- id=7275
UPDATE storedetail SET  productquantity = '71', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2228';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1194, 0, 0
                    , 250.00, 71.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+71.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2611
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1194', '2', '71.00', '0', '833', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '71', '1', '2026-10-14','0','0'); -- id=7276
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1193', '57.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=834
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1193';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1193, 0, 0
                    , 280.00, -57, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-57, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2612
UPDATE storemovement SET  buyPricesHistoryBookData = "57.00*2026-10-14*280.00," WHERE transferproductid = 834;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1193', '1', '57.00', '1', '834', 'تحويل منتجات من المخزن', 'storemovementController.php', '57', '0', '1', '2026-10-14','0','0'); -- id=7277
UPDATE storedetail SET  productquantity = '57', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2227';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1193, 0, 0
                    , 280.00, 57.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+57.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2613
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1193', '2', '57.00', '0', '834', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '57', '1', '2026-10-14','0','0'); -- id=7278
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1192', '54.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=835
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1192';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1192, 0, 0
                    , 175.00, -54, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 175.00,
                        buyQuantity =buyQuantity+-54, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2614
UPDATE storemovement SET  buyPricesHistoryBookData = "54.00*2026-10-14*175.00," WHERE transferproductid = 835;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1192', '1', '54.00', '1', '835', 'تحويل منتجات من المخزن', 'storemovementController.php', '54', '0', '1', '2026-10-14','0','0'); -- id=7279
UPDATE storedetail SET  productquantity = '54', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2226';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1192, 0, 0
                    , 175.00, 54.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+54.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2615
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1192', '2', '54.00', '0', '835', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '54', '1', '2026-10-14','0','0'); -- id=7280
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1191', '45.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=836
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1191';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1191, 0, 0
                    , 145.00, -45, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2616
UPDATE storemovement SET  buyPricesHistoryBookData = "45.00*2026-10-14*145.00," WHERE transferproductid = 836;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1191', '1', '45.00', '1', '836', 'تحويل منتجات من المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=7281
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2225';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1191, 0, 0
                    , 145.00, 45.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2617
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1191', '2', '45.00', '0', '836', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=7282
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1190', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=837
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1190';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1190, 0, 0
                    , 135.00, -3, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 135.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2618
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-14*135.00," WHERE transferproductid = 837;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1190', '1', '3.00', '1', '837', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=7283
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2224';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1190, 0, 0
                    , 135.00, 3.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2619
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1190', '2', '3.00', '0', '837', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=7284
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1189', '72.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=838
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1189';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1189, 0, 0
                    , 80.00, -72, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 80.00,
                        buyQuantity =buyQuantity+-72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2620
UPDATE storemovement SET  buyPricesHistoryBookData = "72.00*2026-10-14*80.00," WHERE transferproductid = 838;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1189', '1', '72.00', '1', '838', 'تحويل منتجات من المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=7285
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2223';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1189, 0, 0
                    , 80.00, 72.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2621
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1189', '2', '72.00', '0', '838', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '72', '1', '2026-10-14','0','0'); -- id=7286
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1188', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=839
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1188';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1188, 0, 0
                    , 360.00, -25, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2622
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*360.00," WHERE transferproductid = 839;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1188', '1', '25.00', '1', '839', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7287
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2222';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1188, 0, 0
                    , 360.00, 25.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2623
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1188', '2', '25.00', '0', '839', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7288
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1187', '28.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=840
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1187';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1187, 0, 0
                    , 300.00, -28, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-28, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2624
UPDATE storemovement SET  buyPricesHistoryBookData = "28.00*2026-10-14*300.00," WHERE transferproductid = 840;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1187', '1', '28.00', '1', '840', 'تحويل منتجات من المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=7289
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2221';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1187, 0, 0
                    , 300.00, 28.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2625
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1187', '2', '28.00', '0', '840', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=7290
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1186', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=841
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1186';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1186, 0, 0
                    , 250.00, -18, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2626
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-14*250.00," WHERE transferproductid = 841;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1186', '1', '18.00', '1', '841', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=7291
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2220';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1186, 0, 0
                    , 250.00, 18.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2627
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1186', '2', '18.00', '0', '841', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=7292
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1185', '78.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=842
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1185';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1185, 0, 0
                    , 230.00, -78, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 230.00,
                        buyQuantity =buyQuantity+-78, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2628
UPDATE storemovement SET  buyPricesHistoryBookData = "78.00*2026-10-14*230.00," WHERE transferproductid = 842;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1185', '1', '78.00', '1', '842', 'تحويل منتجات من المخزن', 'storemovementController.php', '78', '0', '1', '2026-10-14','0','0'); -- id=7293
UPDATE storedetail SET  productquantity = '78', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2219';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1185, 0, 0
                    , 230.00, 78.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+78.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2629
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1185', '2', '78.00', '0', '842', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '78', '1', '2026-10-14','0','0'); -- id=7294
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1184', '76.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=843
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1184';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1184, 0, 0
                    , 280.00, -76, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-76, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2630
UPDATE storemovement SET  buyPricesHistoryBookData = "76.00*2026-10-14*280.00," WHERE transferproductid = 843;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1184', '1', '76.00', '1', '843', 'تحويل منتجات من المخزن', 'storemovementController.php', '76', '0', '1', '2026-10-14','0','0'); -- id=7295
UPDATE storedetail SET  productquantity = '76', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2218';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1184, 0, 0
                    , 280.00, 76.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+76.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2631
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1184', '2', '76.00', '0', '843', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '76', '1', '2026-10-14','0','0'); -- id=7296
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1183', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=844
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1183';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1183, 0, 0
                    , 230.00, -9, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 230.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2632
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-14*230.00," WHERE transferproductid = 844;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1183', '1', '9.00', '1', '844', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=7297
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2217';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1183, 0, 0
                    , 230.00, 9.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2633
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1183', '2', '9.00', '0', '844', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=7298
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1182', '7.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=845
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1182';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1182, 0, 0
                    , 155.00, -7, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 155.00,
                        buyQuantity =buyQuantity+-7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2634
UPDATE storemovement SET  buyPricesHistoryBookData = "7.00*2026-10-14*155.00," WHERE transferproductid = 845;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1182', '1', '7.00', '1', '845', 'تحويل منتجات من المخزن', 'storemovementController.php', '7', '0', '1', '2026-10-14','0','0'); -- id=7299
UPDATE storedetail SET  productquantity = '7', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2216';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1182, 0, 0
                    , 155.00, 7.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2635
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1182', '2', '7.00', '0', '845', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '7', '1', '2026-10-14','0','0'); -- id=7300
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1181', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=846
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1181';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 846;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1181', '1', '0.00', '1', '846', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7301
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2215';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1181', '2', '0.00', '0', '846', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7302
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1180', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=847
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1180';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 847;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1180', '1', '0.00', '1', '847', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7303
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2214';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1180', '2', '0.00', '0', '847', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7304
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1179', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=848
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1179';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1179, 0, 0
                    , 330.00, -15, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2636
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*330.00," WHERE transferproductid = 848;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1179', '1', '15.00', '1', '848', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7305
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2213';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1179, 0, 0
                    , 330.00, 15.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2637
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1179', '2', '15.00', '0', '848', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7306
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1178', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=849
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1178';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1178, 0, 0
                    , 380.00, -21, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 380.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2638
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-14*380.00," WHERE transferproductid = 849;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1178', '1', '21.00', '1', '849', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=7307
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2212';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1178, 0, 0
                    , 380.00, 21.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2639
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1178', '2', '21.00', '0', '849', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=7308
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1177', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=850
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1177';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1177, 0, 0
                    , 290.00, -6, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 290.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2640
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-14*290.00," WHERE transferproductid = 850;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1177', '1', '6.00', '1', '850', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=7309
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2211';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1177, 0, 0
                    , 290.00, 6.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2641
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1177', '2', '6.00', '0', '850', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=7310
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1176', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=851
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1176';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 851;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1176', '1', '0.00', '1', '851', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7311
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2210';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1176', '2', '0.00', '0', '851', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7312
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1175', '2.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=852
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1175';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1175, 0, 0
                    , 210.00, -2, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2642
UPDATE storemovement SET  buyPricesHistoryBookData = "2.00*2026-10-14*210.00," WHERE transferproductid = 852;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1175', '1', '2.00', '1', '852', 'تحويل منتجات من المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=7313
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2209';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1175, 0, 0
                    , 210.00, 2.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2643
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1175', '2', '2.00', '0', '852', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=7314
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1174', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=853
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1174';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1174, 0, 0
                    , 290.00, -6, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 290.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2644
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-14*290.00," WHERE transferproductid = 853;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1174', '1', '6.00', '1', '853', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=7315
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2208';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1174, 0, 0
                    , 290.00, 6.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2645
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1174', '2', '6.00', '0', '853', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=7316
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1173', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=854
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1173';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1173, 0, 0
                    , 185.00, -3, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 185.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2646
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-14*185.00," WHERE transferproductid = 854;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1173', '1', '3.00', '1', '854', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=7317
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2207';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1173, 0, 0
                    , 185.00, 3.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2647
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1173', '2', '3.00', '0', '854', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=7318
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1172', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=855
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1172';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1172, 0, 0
                    , 290.00, -12, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 290.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2648
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*290.00," WHERE transferproductid = 855;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1172', '1', '12.00', '1', '855', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=7319
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2206';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1172, 0, 0
                    , 290.00, 12.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2649
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1172', '2', '12.00', '0', '855', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=7320
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1171', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=856
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1171';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1171, 0, 0
                    , 350.00, -6, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2650
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-14*350.00," WHERE transferproductid = 856;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1171', '1', '6.00', '1', '856', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=7321
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2205';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1171, 0, 0
                    , 350.00, 6.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2651
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1171', '2', '6.00', '0', '856', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=7322
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1170', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=857
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1170';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 857;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1170', '1', '0.00', '1', '857', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7323
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2204';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1170', '2', '0.00', '0', '857', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7324
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1169', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=858
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1169';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 858;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1169', '1', '0.00', '1', '858', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7325
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2203';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1169', '2', '0.00', '0', '858', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7326
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1168', '2.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=859
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1168';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1168, 0, 0
                    , 420.00, -2, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 420.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2652
UPDATE storemovement SET  buyPricesHistoryBookData = "2.00*2026-10-14*420.00," WHERE transferproductid = 859;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1168', '1', '2.00', '1', '859', 'تحويل منتجات من المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=7327
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2202';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1168, 0, 0
                    , 420.00, 2.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2653
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1168', '2', '2.00', '0', '859', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=7328
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1167', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=860
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1167';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 860;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1167', '1', '0.00', '1', '860', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7329
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2201';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1167', '2', '0.00', '0', '860', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7330
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1166', '11.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=861
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1166';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1166, 0, 0
                    , 240.00, -11, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2654
UPDATE storemovement SET  buyPricesHistoryBookData = "11.00*2026-10-14*240.00," WHERE transferproductid = 861;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1166', '1', '11.00', '1', '861', 'تحويل منتجات من المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=7331
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2200';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1166, 0, 0
                    , 240.00, 11.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2655
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1166', '2', '11.00', '0', '861', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=7332
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1165', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=862
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1165';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1165, 0, 0
                    , 190.00, -3, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 190.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2656
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-14*190.00," WHERE transferproductid = 862;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1165', '1', '3.00', '1', '862', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=7333
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2199';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1165, 0, 0
                    , 190.00, 3.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2657
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1165', '2', '3.00', '0', '862', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=7334
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1164', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=863
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1164';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 863;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1164', '1', '0.00', '1', '863', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7335
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2198';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1164', '2', '0.00', '0', '863', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7336
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1163', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=864
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1163';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 864;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1163', '1', '0.00', '1', '864', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7337
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2197';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1163', '2', '0.00', '0', '864', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7338
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1162', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=865
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1162';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1162, 0, 0
                    , 200.00, -21, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2658
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-14*200.00," WHERE transferproductid = 865;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1162', '1', '21.00', '1', '865', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=7339
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2196';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1162, 0, 0
                    , 200.00, 21.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2659
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1162', '2', '21.00', '0', '865', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=7340
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1161', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=866
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1161';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 866;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1161', '1', '0.00', '1', '866', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7341
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2195';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1161', '2', '0.00', '0', '866', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7342
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1160', '2.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=867
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1160';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1160, 0, 0
                    , 280.00, -2, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2660
UPDATE storemovement SET  buyPricesHistoryBookData = "2.00*2026-10-14*280.00," WHERE transferproductid = 867;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1160', '1', '2.00', '1', '867', 'تحويل منتجات من المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=7343
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2194';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1160, 0, 0
                    , 280.00, 2.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2661
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1160', '2', '2.00', '0', '867', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=7344
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1159', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=868
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1159';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1159, 0, 0
                    , 245.00, -12, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 245.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2662
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*245.00," WHERE transferproductid = 868;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1159', '1', '12.00', '1', '868', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=7345
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2193';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1159, 0, 0
                    , 245.00, 12.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2663
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1159', '2', '12.00', '0', '868', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=7346
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1158', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=869
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1158';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 869;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1158', '1', '0.00', '1', '869', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7347
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2192';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1158', '2', '0.00', '0', '869', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7348
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1157', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=870
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1157';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1157, 0, 0
                    , 340.00, -3, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2664
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-14*340.00," WHERE transferproductid = 870;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1157', '1', '3.00', '1', '870', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=7349
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2191';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1157, 0, 0
                    , 340.00, 3.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2665
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1157', '2', '3.00', '0', '870', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=7350
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1156', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=871
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1156';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 871;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1156', '1', '0.00', '1', '871', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7351
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2190';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1156', '2', '0.00', '0', '871', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7352
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1155', '51.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=872
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1155';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1155, 0, 0
                    , 345.00, -51, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 345.00,
                        buyQuantity =buyQuantity+-51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2666
UPDATE storemovement SET  buyPricesHistoryBookData = "51.00*2026-10-14*345.00," WHERE transferproductid = 872;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1155', '1', '51.00', '1', '872', 'تحويل منتجات من المخزن', 'storemovementController.php', '51', '0', '1', '2026-10-14','0','0'); -- id=7353
UPDATE storedetail SET  productquantity = '51', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2189';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1155, 0, 0
                    , 345.00, 51.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+51.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2667
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1155', '2', '51.00', '0', '872', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '51', '1', '2026-10-14','0','0'); -- id=7354
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1154', '152.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=873
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1154';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1154, 0, 0
                    , 270.00, -152, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-152, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2668
UPDATE storemovement SET  buyPricesHistoryBookData = "152.00*2026-10-14*270.00," WHERE transferproductid = 873;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1154', '1', '152.00', '1', '873', 'تحويل منتجات من المخزن', 'storemovementController.php', '152', '0', '1', '2026-10-14','0','0'); -- id=7355
UPDATE storedetail SET  productquantity = '152', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2188';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1154, 0, 0
                    , 270.00, 152.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+152.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2669
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1154', '2', '152.00', '0', '873', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '152', '1', '2026-10-14','0','0'); -- id=7356
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1153', '41.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=874
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1153';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1153, 0, 0
                    , 205.00, -41, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 205.00,
                        buyQuantity =buyQuantity+-41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2670
UPDATE storemovement SET  buyPricesHistoryBookData = "41.00*2026-10-14*205.00," WHERE transferproductid = 874;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1153', '1', '41.00', '1', '874', 'تحويل منتجات من المخزن', 'storemovementController.php', '41', '0', '1', '2026-10-14','0','0'); -- id=7357
UPDATE storedetail SET  productquantity = '41', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2187';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1153, 0, 0
                    , 205.00, 41.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+41.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2671
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1153', '2', '41.00', '0', '874', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '41', '1', '2026-10-14','0','0'); -- id=7358
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1152', '33.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=875
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1152';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1152, 0, 0
                    , 370.00, -33, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-33, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2672
UPDATE storemovement SET  buyPricesHistoryBookData = "33.00*2026-10-14*370.00," WHERE transferproductid = 875;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1152', '1', '33.00', '1', '875', 'تحويل منتجات من المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=7359
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2186';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1152, 0, 0
                    , 370.00, 33.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2673
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1152', '2', '33.00', '0', '875', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=7360
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1151', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=876
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1151';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1151, 0, 0
                    , 400.00, -3, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2674
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-14*400.00," WHERE transferproductid = 876;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1151', '1', '3.00', '1', '876', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=7361
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2185';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1151, 0, 0
                    , 400.00, 3.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2675
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1151', '2', '3.00', '0', '876', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=7362
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1150', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=877
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1150';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 877;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1150', '1', '0.00', '1', '877', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7363
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2184';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1150', '2', '0.00', '0', '877', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7364
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1149', '36.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=878
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1149';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1149, 0, 0
                    , 340.00, -36, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2676
UPDATE storemovement SET  buyPricesHistoryBookData = "36.00*2026-10-14*340.00," WHERE transferproductid = 878;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1149', '1', '36.00', '1', '878', 'تحويل منتجات من المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=7365
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2183';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1149, 0, 0
                    , 340.00, 36.00, 0, 0, 1, '2026-10-14 18:00:20')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:20' ; -- id=2677
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1149', '2', '36.00', '0', '878', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=7366
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1148', '8.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:20','0','','0','','0','0','0','','','','0','0','','0'); -- id=879
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1148';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1148, 0, 0
                    , 265.00, -8, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 265.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2678
UPDATE storemovement SET  buyPricesHistoryBookData = "8.00*2026-10-14*265.00," WHERE transferproductid = 879;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1148', '1', '8.00', '1', '879', 'تحويل منتجات من المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=7367
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2182';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1148, 0, 0
                    , 265.00, 8.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2679
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1148', '2', '8.00', '0', '879', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=7368
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1147', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=880
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1147';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1147, 0, 0
                    , 370.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2680
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*370.00," WHERE transferproductid = 880;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1147', '1', '20.00', '1', '880', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7369
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2181';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1147, 0, 0
                    , 370.00, 20.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2681
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1147', '2', '20.00', '0', '880', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7370
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1146', '64.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=881
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1146';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1146, 0, 0
                    , 355.00, -64, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 355.00,
                        buyQuantity =buyQuantity+-64, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2682
UPDATE storemovement SET  buyPricesHistoryBookData = "64.00*2026-10-14*355.00," WHERE transferproductid = 881;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1146', '1', '64.00', '1', '881', 'تحويل منتجات من المخزن', 'storemovementController.php', '64', '0', '1', '2026-10-14','0','0'); -- id=7371
UPDATE storedetail SET  productquantity = '64', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2180';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1146, 0, 0
                    , 355.00, 64.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+64.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2683
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1146', '2', '64.00', '0', '881', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '64', '1', '2026-10-14','0','0'); -- id=7372
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1145', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=882
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1145';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 882;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1145', '1', '0.00', '1', '882', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7373
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2179';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1145', '2', '0.00', '0', '882', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7374
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1144', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=883
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1144';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 883;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1144', '1', '0.00', '1', '883', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7375
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2178';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1144', '2', '0.00', '0', '883', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7376
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1143', '32.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=884
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1143';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1143, 0, 0
                    , 360.00, -32, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2684
UPDATE storemovement SET  buyPricesHistoryBookData = "32.00*2026-10-14*360.00," WHERE transferproductid = 884;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1143', '1', '32.00', '1', '884', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=7377
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2177';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1143, 0, 0
                    , 360.00, 32.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2685
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1143', '2', '32.00', '0', '884', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=7378
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1142', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=885
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1142';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1142, 0, 0
                    , 355.00, -12, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 355.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2686
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*355.00," WHERE transferproductid = 885;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1142', '1', '12.00', '1', '885', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=7379
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2176';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1142, 0, 0
                    , 355.00, 12.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2687
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1142', '2', '12.00', '0', '885', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=7380
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1141', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=886
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1141';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 886;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1141', '1', '0.00', '1', '886', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7381
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2175';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1141', '2', '0.00', '0', '886', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7382
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1140', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=887
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1140';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1140, 0, 0
                    , 220.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2688
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*220.00," WHERE transferproductid = 887;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1140', '1', '20.00', '1', '887', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7383
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2174';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1140, 0, 0
                    , 220.00, 20.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2689
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1140', '2', '20.00', '0', '887', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7384
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1139', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=888
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1139';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 888;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1139', '1', '0.00', '1', '888', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7385
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2173';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1139', '2', '0.00', '0', '888', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7386
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1138', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=889
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1138';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1138, 0, 0
                    , 200.00, -27, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2690
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-14*200.00," WHERE transferproductid = 889;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1138', '1', '27.00', '1', '889', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=7387
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2172';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1138, 0, 0
                    , 200.00, 27.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2691
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1138', '2', '27.00', '0', '889', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=7388
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1137', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=890
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1137';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 890;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1137', '1', '0.00', '1', '890', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7389
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2171';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1137', '2', '0.00', '0', '890', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7390
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1136', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=891
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1136';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 891;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1136', '1', '0.00', '1', '891', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7391
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2170';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1136', '2', '0.00', '0', '891', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7392
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1135', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=892
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1135';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1135, 0, 0
                    , 375.00, -25, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 375.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2692
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*375.00," WHERE transferproductid = 892;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1135', '1', '25.00', '1', '892', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7393
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2169';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1135, 0, 0
                    , 375.00, 25.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2693
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1135', '2', '25.00', '0', '892', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7394
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1134', '102.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=893
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1134';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1134, 0, 0
                    , 300.00, -102, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-102, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2694
UPDATE storemovement SET  buyPricesHistoryBookData = "102.00*2026-10-14*300.00," WHERE transferproductid = 893;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1134', '1', '102.00', '1', '893', 'تحويل منتجات من المخزن', 'storemovementController.php', '102', '0', '1', '2026-10-14','0','0'); -- id=7395
UPDATE storedetail SET  productquantity = '102', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2168';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1134, 0, 0
                    , 300.00, 102.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+102.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2695
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1134', '2', '102.00', '0', '893', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '102', '1', '2026-10-14','0','0'); -- id=7396
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1133', '50.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=894
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1133';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1133, 0, 0
                    , 275.00, -50, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 275.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2696
UPDATE storemovement SET  buyPricesHistoryBookData = "50.00*2026-10-14*275.00," WHERE transferproductid = 894;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1133', '1', '50.00', '1', '894', 'تحويل منتجات من المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=7397
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2167';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1133, 0, 0
                    , 275.00, 50.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2697
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1133', '2', '50.00', '0', '894', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=7398
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1132', '320.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=895
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1132';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1132, 0, 0
                    , 320.00, -320, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-320, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2698
UPDATE storemovement SET  buyPricesHistoryBookData = "320.00*2026-10-14*320.00," WHERE transferproductid = 895;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1132', '1', '320.00', '1', '895', 'تحويل منتجات من المخزن', 'storemovementController.php', '320', '0', '1', '2026-10-14','0','0'); -- id=7399
UPDATE storedetail SET  productquantity = '320', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2166';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1132, 0, 0
                    , 320.00, 320.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+320.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2699
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1132', '2', '320.00', '0', '895', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '320', '1', '2026-10-14','0','0'); -- id=7400
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1131', '460.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=896
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1131';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1131, 0, 0
                    , 310.00, -460, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-460, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2700
UPDATE storemovement SET  buyPricesHistoryBookData = "460.00*2026-10-14*310.00," WHERE transferproductid = 896;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1131', '1', '460.00', '1', '896', 'تحويل منتجات من المخزن', 'storemovementController.php', '460', '0', '1', '2026-10-14','0','0'); -- id=7401
UPDATE storedetail SET  productquantity = '460', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2165';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1131, 0, 0
                    , 310.00, 460.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+460.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2701
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1131', '2', '460.00', '0', '896', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '460', '1', '2026-10-14','0','0'); -- id=7402
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1130', '304.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=897
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1130';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1130, 0, 0
                    , 300.00, -304, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-304, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2702
UPDATE storemovement SET  buyPricesHistoryBookData = "304.00*2026-10-14*300.00," WHERE transferproductid = 897;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1130', '1', '304.00', '1', '897', 'تحويل منتجات من المخزن', 'storemovementController.php', '304', '0', '1', '2026-10-14','0','0'); -- id=7403
UPDATE storedetail SET  productquantity = '304', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2164';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1130, 0, 0
                    , 300.00, 304.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+304.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2703
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1130', '2', '304.00', '0', '897', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '304', '1', '2026-10-14','0','0'); -- id=7404
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1129', '497.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=898
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1129';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1129, 0, 0
                    , 275.00, -497, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 275.00,
                        buyQuantity =buyQuantity+-497, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2704
UPDATE storemovement SET  buyPricesHistoryBookData = "497.00*2026-10-14*275.00," WHERE transferproductid = 898;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1129', '1', '497.00', '1', '898', 'تحويل منتجات من المخزن', 'storemovementController.php', '497', '0', '1', '2026-10-14','0','0'); -- id=7405
UPDATE storedetail SET  productquantity = '497', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2163';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1129, 0, 0
                    , 275.00, 497.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+497.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2705
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1129', '2', '497.00', '0', '898', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '497', '1', '2026-10-14','0','0'); -- id=7406
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1128', '100.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=899
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1128';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1128, 0, 0
                    , 280.00, -100, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-100, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2706
UPDATE storemovement SET  buyPricesHistoryBookData = "100.00*2026-10-14*280.00," WHERE transferproductid = 899;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1128', '1', '100.00', '1', '899', 'تحويل منتجات من المخزن', 'storemovementController.php', '100', '0', '1', '2026-10-14','0','0'); -- id=7407
UPDATE storedetail SET  productquantity = '100', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2162';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1128, 0, 0
                    , 280.00, 100.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+100.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2707
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1128', '2', '100.00', '0', '899', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '100', '1', '2026-10-14','0','0'); -- id=7408
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1127', '167.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=900
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1127';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1127, 0, 0
                    , 290.00, -167, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 290.00,
                        buyQuantity =buyQuantity+-167, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2708
UPDATE storemovement SET  buyPricesHistoryBookData = "167.00*2026-10-14*290.00," WHERE transferproductid = 900;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1127', '1', '167.00', '1', '900', 'تحويل منتجات من المخزن', 'storemovementController.php', '167', '0', '1', '2026-10-14','0','0'); -- id=7409
UPDATE storedetail SET  productquantity = '167', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2161';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1127, 0, 0
                    , 290.00, 167.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+167.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2709
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1127', '2', '167.00', '0', '900', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '167', '1', '2026-10-14','0','0'); -- id=7410
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1126', '70.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=901
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1126';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1126, 0, 0
                    , 300.00, -70, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-70, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2710
UPDATE storemovement SET  buyPricesHistoryBookData = "70.00*2026-10-14*300.00," WHERE transferproductid = 901;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1126', '1', '70.00', '1', '901', 'تحويل منتجات من المخزن', 'storemovementController.php', '70', '0', '1', '2026-10-14','0','0'); -- id=7411
UPDATE storedetail SET  productquantity = '70', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2160';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1126, 0, 0
                    , 300.00, 70.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+70.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2711
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1126', '2', '70.00', '0', '901', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '70', '1', '2026-10-14','0','0'); -- id=7412
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1125', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=902
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1125';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1125, 0, 0
                    , 300.00, -12, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2712
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*300.00," WHERE transferproductid = 902;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1125', '1', '12.00', '1', '902', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=7413
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2159';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1125, 0, 0
                    , 300.00, 12.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2713
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1125', '2', '12.00', '0', '902', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=7414
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1124', '38.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=903
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1124';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1124, 0, 0
                    , 270.00, -38, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-38, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2714
UPDATE storemovement SET  buyPricesHistoryBookData = "38.00*2026-10-14*270.00," WHERE transferproductid = 903;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1124', '1', '38.00', '1', '903', 'تحويل منتجات من المخزن', 'storemovementController.php', '38', '0', '1', '2026-10-14','0','0'); -- id=7415
UPDATE storedetail SET  productquantity = '38', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2158';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1124, 0, 0
                    , 270.00, 38.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+38.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2715
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1124', '2', '38.00', '0', '903', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '38', '1', '2026-10-14','0','0'); -- id=7416
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1123', '38.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=904
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1123';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1123, 0, 0
                    , 290.00, -38, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 290.00,
                        buyQuantity =buyQuantity+-38, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2716
UPDATE storemovement SET  buyPricesHistoryBookData = "38.00*2026-10-14*290.00," WHERE transferproductid = 904;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1123', '1', '38.00', '1', '904', 'تحويل منتجات من المخزن', 'storemovementController.php', '38', '0', '1', '2026-10-14','0','0'); -- id=7417
UPDATE storedetail SET  productquantity = '38', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2157';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1123, 0, 0
                    , 290.00, 38.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+38.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2717
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1123', '2', '38.00', '0', '904', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '38', '1', '2026-10-14','0','0'); -- id=7418
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1122', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=905
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1122';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1122, 0, 0
                    , 310.00, -60, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2718
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*310.00," WHERE transferproductid = 905;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1122', '1', '60.00', '1', '905', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=7419
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2156';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1122, 0, 0
                    , 310.00, 60.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2719
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1122', '2', '60.00', '0', '905', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=7420
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1121', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=906
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1121';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1121, 0, 0
                    , 270.00, -15, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2720
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*270.00," WHERE transferproductid = 906;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1121', '1', '15.00', '1', '906', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7421
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2155';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1121, 0, 0
                    , 270.00, 15.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2721
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1121', '2', '15.00', '0', '906', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7422
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1120', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=907
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1120';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1120, 0, 0
                    , 265.00, -10, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 265.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2722
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*265.00," WHERE transferproductid = 907;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1120', '1', '10.00', '1', '907', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7423
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2154';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1120, 0, 0
                    , 265.00, 10.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2723
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1120', '2', '10.00', '0', '907', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7424
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1119', '-20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=908
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1119';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 908;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1119', '1', '-20.00', '1', '908', 'تحويل منتجات من المخزن', 'storemovementController.php', '-20', '0', '1', '2026-10-14','0','0'); -- id=7425
UPDATE storedetail SET  productquantity = '-20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2153';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1119', '2', '-20.00', '0', '908', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-20', '1', '2026-10-14','0','0'); -- id=7426
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1118', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=909
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1118';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1118, 0, 0
                    , 375.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 375.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2724
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*375.00," WHERE transferproductid = 909;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1118', '1', '20.00', '1', '909', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7427
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2152';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1118, 0, 0
                    , 375.00, 20.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2725
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1118', '2', '20.00', '0', '909', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7428
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1117', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=910
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1117';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 910;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1117', '1', '0.00', '1', '910', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7429
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2151';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1117', '2', '0.00', '0', '910', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7430
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1116', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=911
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1116';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 911;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1116', '1', '0.00', '1', '911', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7431
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2150';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1116', '2', '0.00', '0', '911', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7432
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1115', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=912
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1115';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 912;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1115', '1', '0.00', '1', '912', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7433
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2149';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1115', '2', '0.00', '0', '912', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7434
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1114', '69.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=913
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1114';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1114, 0, 0
                    , 380.00, -69, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 380.00,
                        buyQuantity =buyQuantity+-69, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2726
UPDATE storemovement SET  buyPricesHistoryBookData = "69.00*2026-10-14*380.00," WHERE transferproductid = 913;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1114', '1', '69.00', '1', '913', 'تحويل منتجات من المخزن', 'storemovementController.php', '69', '0', '1', '2026-10-14','0','0'); -- id=7435
UPDATE storedetail SET  productquantity = '69', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2148';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1114, 0, 0
                    , 380.00, 69.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+69.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2727
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1114', '2', '69.00', '0', '913', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '69', '1', '2026-10-14','0','0'); -- id=7436
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1113', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=914
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1113';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 914;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1113', '1', '0.00', '1', '914', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7437
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2147';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1113', '2', '0.00', '0', '914', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7438
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1112', '1.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=915
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1112';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1112, 0, 0
                    , 380.00, -1, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 380.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2728
UPDATE storemovement SET  buyPricesHistoryBookData = "1.00*2026-10-14*380.00," WHERE transferproductid = 915;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1112', '1', '1.00', '1', '915', 'تحويل منتجات من المخزن', 'storemovementController.php', '1', '0', '1', '2026-10-14','0','0'); -- id=7439
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2146';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1112, 0, 0
                    , 380.00, 1.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2729
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1112', '2', '1.00', '0', '915', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2026-10-14','0','0'); -- id=7440
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1111', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=916
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1111';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 916;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1111', '1', '0.00', '1', '916', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7441
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2145';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1111', '2', '0.00', '0', '916', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7442
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1110', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=917
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1110';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 917;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1110', '1', '0.00', '1', '917', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7443
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2144';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1110', '2', '0.00', '0', '917', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7444
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1109', '-5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=918
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1109';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 918;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1109', '1', '-5.00', '1', '918', 'تحويل منتجات من المخزن', 'storemovementController.php', '-5', '0', '1', '2026-10-14','0','0'); -- id=7445
UPDATE storedetail SET  productquantity = '-5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2143';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1109', '2', '-5.00', '0', '918', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-5', '1', '2026-10-14','0','0'); -- id=7446
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1108', '-2.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=919
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1108';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 919;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1108', '1', '-2.00', '1', '919', 'تحويل منتجات من المخزن', 'storemovementController.php', '-2', '0', '1', '2026-10-14','0','0'); -- id=7447
UPDATE storedetail SET  productquantity = '-2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2142';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1108', '2', '-2.00', '0', '919', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-2', '1', '2026-10-14','0','0'); -- id=7448
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1107', '-16.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=920
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1107';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 920;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1107', '1', '-16.00', '1', '920', 'تحويل منتجات من المخزن', 'storemovementController.php', '-16', '0', '1', '2026-10-14','0','0'); -- id=7449
UPDATE storedetail SET  productquantity = '-16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2141';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1107', '2', '-16.00', '0', '920', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-16', '1', '2026-10-14','0','0'); -- id=7450
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1106', '-2.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=921
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1106';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 921;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1106', '1', '-2.00', '1', '921', 'تحويل منتجات من المخزن', 'storemovementController.php', '-2', '0', '1', '2026-10-14','0','0'); -- id=7451
UPDATE storedetail SET  productquantity = '-2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2140';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1106', '2', '-2.00', '0', '921', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-2', '1', '2026-10-14','0','0'); -- id=7452
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1105', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=922
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1105';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 922;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1105', '1', '0.00', '1', '922', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7453
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2139';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1105', '2', '0.00', '0', '922', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7454
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1104', '-20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=923
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1104';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 923;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1104', '1', '-20.00', '1', '923', 'تحويل منتجات من المخزن', 'storemovementController.php', '-20', '0', '1', '2026-10-14','0','0'); -- id=7455
UPDATE storedetail SET  productquantity = '-20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2138';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1104', '2', '-20.00', '0', '923', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-20', '1', '2026-10-14','0','0'); -- id=7456
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1103', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=924
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1103';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1103, 0, 0
                    , 385.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 385.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2730
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*385.00," WHERE transferproductid = 924;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1103', '1', '20.00', '1', '924', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7457
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2137';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1103, 0, 0
                    , 385.00, 20.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2731
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1103', '2', '20.00', '0', '924', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7458
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1102', '4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=925
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1102';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1102, 0, 0
                    , 395.00, -4, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 395.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2732
UPDATE storemovement SET  buyPricesHistoryBookData = "4.00*2026-10-14*395.00," WHERE transferproductid = 925;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1102', '1', '4.00', '1', '925', 'تحويل منتجات من المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=7459
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2136';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1102, 0, 0
                    , 395.00, 4.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2733
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1102', '2', '4.00', '0', '925', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=7460
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1101', '-1.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=926
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1101';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 926;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1101', '1', '-1.00', '1', '926', 'تحويل منتجات من المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=7461
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2135';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1101', '2', '-1.00', '0', '926', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=7462
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1100', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=927
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1100';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 927;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1100', '1', '0.00', '1', '927', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7463
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2134';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1100', '2', '0.00', '0', '927', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7464
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1099', '-1.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=928
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1099';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 928;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1099', '1', '-1.00', '1', '928', 'تحويل منتجات من المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=7465
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2133';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1099', '2', '-1.00', '0', '928', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=7466
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1098', '-5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=929
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1098';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 929;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1098', '1', '-5.00', '1', '929', 'تحويل منتجات من المخزن', 'storemovementController.php', '-5', '0', '1', '2026-10-14','0','0'); -- id=7467
UPDATE storedetail SET  productquantity = '-5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2132';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1098', '2', '-5.00', '0', '929', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-5', '1', '2026-10-14','0','0'); -- id=7468
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1097', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=930
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1097';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1097, 0, 0
                    , 415.00, -15, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 415.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2734
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*415.00," WHERE transferproductid = 930;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1097', '1', '15.00', '1', '930', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7469
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2131';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1097, 0, 0
                    , 415.00, 15.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2735
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1097', '2', '15.00', '0', '930', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7470
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1096', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=931
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1096';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1096, 0, 0
                    , 600.00, -25, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 600.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2736
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*600.00," WHERE transferproductid = 931;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1096', '1', '25.00', '1', '931', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7471
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2130';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1096, 0, 0
                    , 600.00, 25.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2737
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1096', '2', '25.00', '0', '931', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7472
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1095', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=932
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1095';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 932;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1095', '1', '0.00', '1', '932', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7473
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2129';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1095', '2', '0.00', '0', '932', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7474
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1094', '55.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=933
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1094';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1094, 0, 0
                    , 580.00, -55, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 580.00,
                        buyQuantity =buyQuantity+-55, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2738
UPDATE storemovement SET  buyPricesHistoryBookData = "55.00*2026-10-14*580.00," WHERE transferproductid = 933;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1094', '1', '55.00', '1', '933', 'تحويل منتجات من المخزن', 'storemovementController.php', '55', '0', '1', '2026-10-14','0','0'); -- id=7475
UPDATE storedetail SET  productquantity = '55', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2128';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1094, 0, 0
                    , 580.00, 55.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+55.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2739
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1094', '2', '55.00', '0', '933', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '55', '1', '2026-10-14','0','0'); -- id=7476
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1093', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=934
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1093';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1093, 0, 0
                    , 560.00, -30, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 560.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2740
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*560.00," WHERE transferproductid = 934;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1093', '1', '30.00', '1', '934', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=7477
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2127';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1093, 0, 0
                    , 560.00, 30.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2741
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1093', '2', '30.00', '0', '934', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=7478
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1092', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=935
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1092';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1092, 0, 0
                    , 530.00, -10, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 530.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2742
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*530.00," WHERE transferproductid = 935;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1092', '1', '10.00', '1', '935', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7479
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2126';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1092, 0, 0
                    , 530.00, 10.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2743
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1092', '2', '10.00', '0', '935', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7480
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1091', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=936
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1091';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1091, 0, 0
                    , 480.00, -5, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 480.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2744
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*480.00," WHERE transferproductid = 936;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1091', '1', '5.00', '1', '936', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7481
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2125';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1091, 0, 0
                    , 480.00, 5.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2745
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1091', '2', '5.00', '0', '936', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7482
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1090', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=937
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1090';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1090, 0, 0
                    , 430.00, -5, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2746
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*430.00," WHERE transferproductid = 937;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1090', '1', '5.00', '1', '937', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7483
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2124';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1090, 0, 0
                    , 430.00, 5.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2747
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1090', '2', '5.00', '0', '937', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7484
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1089', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=938
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1089';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 938;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1089', '1', '0.00', '1', '938', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7485
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2123';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1089', '2', '0.00', '0', '938', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7486
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1088', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=939
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1088';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1088, 0, 0
                    , 420.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 420.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2748
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*420.00," WHERE transferproductid = 939;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1088', '1', '20.00', '1', '939', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7487
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2122';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1088, 0, 0
                    , 420.00, 20.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2749
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1088', '2', '20.00', '0', '939', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7488
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1087', '4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=940
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1087';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1087, 0, 0
                    , 440.00, -4, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 440.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2750
UPDATE storemovement SET  buyPricesHistoryBookData = "4.00*2026-10-14*440.00," WHERE transferproductid = 940;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1087', '1', '4.00', '1', '940', 'تحويل منتجات من المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=7489
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2121';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1087, 0, 0
                    , 440.00, 4.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2751
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1087', '2', '4.00', '0', '940', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=7490
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1086', '4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=941
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1086';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1086, 0, 0
                    , 530.00, -4, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 530.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2752
UPDATE storemovement SET  buyPricesHistoryBookData = "4.00*2026-10-14*530.00," WHERE transferproductid = 941;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1086', '1', '4.00', '1', '941', 'تحويل منتجات من المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=7491
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2120';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1086, 0, 0
                    , 530.00, 4.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2753
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1086', '2', '4.00', '0', '941', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=7492
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1085', '215.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=942
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1085';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1085, 0, 0
                    , 425.00, -215, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 425.00,
                        buyQuantity =buyQuantity+-215, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2754
UPDATE storemovement SET  buyPricesHistoryBookData = "215.00*2026-10-14*425.00," WHERE transferproductid = 942;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1085', '1', '215.00', '1', '942', 'تحويل منتجات من المخزن', 'storemovementController.php', '215', '0', '1', '2026-10-14','0','0'); -- id=7493
UPDATE storedetail SET  productquantity = '215', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2119';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1085, 0, 0
                    , 425.00, 215.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+215.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2755
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1085', '2', '215.00', '0', '942', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '215', '1', '2026-10-14','0','0'); -- id=7494
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1084', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=943
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1084';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1084, 0, 0
                    , 480.00, -5, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 480.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2756
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*480.00," WHERE transferproductid = 943;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1084', '1', '5.00', '1', '943', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7495
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2118';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1084, 0, 0
                    , 480.00, 5.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2757
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1084', '2', '5.00', '0', '943', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7496
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1083', '74.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=944
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1083';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1083, 0, 0
                    , 280.00, -74, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-74, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2758
UPDATE storemovement SET  buyPricesHistoryBookData = "74.00*2026-10-14*280.00," WHERE transferproductid = 944;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1083', '1', '74.00', '1', '944', 'تحويل منتجات من المخزن', 'storemovementController.php', '74', '0', '1', '2026-10-14','0','0'); -- id=7497
UPDATE storedetail SET  productquantity = '74', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2117';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1083, 0, 0
                    , 280.00, 74.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+74.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2759
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1083', '2', '74.00', '0', '944', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '74', '1', '2026-10-14','0','0'); -- id=7498
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1082', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=945
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1082';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1082, 0, 0
                    , 305.00, -48, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 305.00,
                        buyQuantity =buyQuantity+-48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2760
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-14*305.00," WHERE transferproductid = 945;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1082', '1', '48.00', '1', '945', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=7499
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2116';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1082, 0, 0
                    , 305.00, 48.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2761
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1082', '2', '48.00', '0', '945', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=7500
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1081', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=946
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1081';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1081, 0, 0
                    , 360.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2762
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*360.00," WHERE transferproductid = 946;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1081', '1', '20.00', '1', '946', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7501
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2115';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1081, 0, 0
                    , 360.00, 20.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2763
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1081', '2', '20.00', '0', '946', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7502
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1080', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=947
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1080';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1080, 0, 0
                    , 310.00, -40, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2764
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*310.00," WHERE transferproductid = 947;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1080', '1', '40.00', '1', '947', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=7503
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2114';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1080, 0, 0
                    , 310.00, 40.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2765
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1080', '2', '40.00', '0', '947', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=7504
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1079', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=948
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1079';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1079, 0, 0
                    , 350.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2766
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*350.00," WHERE transferproductid = 948;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1079', '1', '20.00', '1', '948', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7505
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2113';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1079, 0, 0
                    , 350.00, 20.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2767
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1079', '2', '20.00', '0', '948', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7506
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1078', '46.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=949
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1078';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1078, 0, 0
                    , 310.00, -46, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-46, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2768
UPDATE storemovement SET  buyPricesHistoryBookData = "46.00*2026-10-14*310.00," WHERE transferproductid = 949;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1078', '1', '46.00', '1', '949', 'تحويل منتجات من المخزن', 'storemovementController.php', '46', '0', '1', '2026-10-14','0','0'); -- id=7507
UPDATE storedetail SET  productquantity = '46', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2112';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1078, 0, 0
                    , 310.00, 46.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+46.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2769
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1078', '2', '46.00', '0', '949', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '46', '1', '2026-10-14','0','0'); -- id=7508
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1077', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=950
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1077';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1077, 0, 0
                    , 330.00, -60, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2770
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*330.00," WHERE transferproductid = 950;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1077', '1', '60.00', '1', '950', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=7509
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2111';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1077, 0, 0
                    , 330.00, 60.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2771
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1077', '2', '60.00', '0', '950', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=7510
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1076', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=951
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1076';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1076, 0, 0
                    , 430.00, -60, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2772
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*430.00," WHERE transferproductid = 951;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1076', '1', '60.00', '1', '951', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=7511
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2110';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1076, 0, 0
                    , 430.00, 60.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2773
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1076', '2', '60.00', '0', '951', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=7512
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1075', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=952
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1075';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1075, 0, 0
                    , 280.00, -5, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2774
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*280.00," WHERE transferproductid = 952;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1075', '1', '5.00', '1', '952', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7513
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2109';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1075, 0, 0
                    , 280.00, 5.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2775
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1075', '2', '5.00', '0', '952', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7514
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1074', '206.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=953
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1074';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1074, 0, 0
                    , 270.00, -206, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-206, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2776
UPDATE storemovement SET  buyPricesHistoryBookData = "206.00*2026-10-14*270.00," WHERE transferproductid = 953;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1074', '1', '206.00', '1', '953', 'تحويل منتجات من المخزن', 'storemovementController.php', '206', '0', '1', '2026-10-14','0','0'); -- id=7515
UPDATE storedetail SET  productquantity = '206', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2108';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1074, 0, 0
                    , 270.00, 206.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+206.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2777
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1074', '2', '206.00', '0', '953', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '206', '1', '2026-10-14','0','0'); -- id=7516
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1073', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=954
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1073';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1073, 0, 0
                    , 430.00, -25, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2778
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*430.00," WHERE transferproductid = 954;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1073', '1', '25.00', '1', '954', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7517
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2107';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1073, 0, 0
                    , 430.00, 25.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2779
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1073', '2', '25.00', '0', '954', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7518
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1072', '11.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=955
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1072';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1072, 0, 0
                    , 430.00, -11, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2780
UPDATE storemovement SET  buyPricesHistoryBookData = "11.00*2026-10-14*430.00," WHERE transferproductid = 955;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1072', '1', '11.00', '1', '955', 'تحويل منتجات من المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=7519
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2106';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1072, 0, 0
                    , 430.00, 11.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2781
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1072', '2', '11.00', '0', '955', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=7520
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1071', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=956
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1071';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1071, 0, 0
                    , 480.00, -25, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 480.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2782
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*480.00," WHERE transferproductid = 956;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1071', '1', '25.00', '1', '956', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7521
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2105';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1071, 0, 0
                    , 480.00, 25.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2783
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1071', '2', '25.00', '0', '956', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7522
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1070', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=957
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1070';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1070, 0, 0
                    , 520.00, -40, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 520.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2784
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*520.00," WHERE transferproductid = 957;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1070', '1', '40.00', '1', '957', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=7523
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2104';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1070, 0, 0
                    , 520.00, 40.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2785
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1070', '2', '40.00', '0', '957', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=7524
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1069', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=958
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1069';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1069, 0, 0
                    , 450.00, -40, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 450.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2786
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*450.00," WHERE transferproductid = 958;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1069', '1', '40.00', '1', '958', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=7525
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2103';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1069, 0, 0
                    , 450.00, 40.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2787
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1069', '2', '40.00', '0', '958', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=7526
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1068', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=959
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1068';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1068, 0, 0
                    , 400.00, -5, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2788
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*400.00," WHERE transferproductid = 959;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1068', '1', '5.00', '1', '959', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7527
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2102';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1068, 0, 0
                    , 400.00, 5.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2789
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1068', '2', '5.00', '0', '959', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7528
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1067', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=960
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1067';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1067, 0, 0
                    , 435.00, -30, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 435.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2790
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*435.00," WHERE transferproductid = 960;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1067', '1', '30.00', '1', '960', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=7529
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2101';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1067, 0, 0
                    , 435.00, 30.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2791
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1067', '2', '30.00', '0', '960', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=7530
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1066', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=961
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1066';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1066, 0, 0
                    , 400.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2792
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*400.00," WHERE transferproductid = 961;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1066', '1', '20.00', '1', '961', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7531
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2100';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1066, 0, 0
                    , 400.00, 20.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2793
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1066', '2', '20.00', '0', '961', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7532
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1065', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=962
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1065';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1065, 0, 0
                    , 475.00, -10, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 475.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2794
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*475.00," WHERE transferproductid = 962;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1065', '1', '10.00', '1', '962', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7533
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2099';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1065, 0, 0
                    , 475.00, 10.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2795
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1065', '2', '10.00', '0', '962', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7534
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1064', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=963
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1064';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1064, 0, 0
                    , 445.00, -5, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 445.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2796
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*445.00," WHERE transferproductid = 963;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1064', '1', '5.00', '1', '963', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7535
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2098';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1064, 0, 0
                    , 445.00, 5.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2797
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1064', '2', '5.00', '0', '963', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7536
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1063', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=964
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1063';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1063, 0, 0
                    , 485.00, -15, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 485.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2798
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*485.00," WHERE transferproductid = 964;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1063', '1', '15.00', '1', '964', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7537
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2097';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1063, 0, 0
                    , 485.00, 15.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2799
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1063', '2', '15.00', '0', '964', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7538
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1062', '35.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=965
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1062';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1062, 0, 0
                    , 450.00, -35, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 450.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2800
UPDATE storemovement SET  buyPricesHistoryBookData = "35.00*2026-10-14*450.00," WHERE transferproductid = 965;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1062', '1', '35.00', '1', '965', 'تحويل منتجات من المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=7539
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2096';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1062, 0, 0
                    , 450.00, 35.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2801
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1062', '2', '35.00', '0', '965', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=7540
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1061', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=966
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1061';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1061, 0, 0
                    , 440.00, -5, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 440.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2802
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*440.00," WHERE transferproductid = 966;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1061', '1', '5.00', '1', '966', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7541
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2095';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1061, 0, 0
                    , 440.00, 5.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2803
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1061', '2', '5.00', '0', '966', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7542
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1060', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=967
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1060';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 967;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1060', '1', '0.00', '1', '967', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7543
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2094';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1060', '2', '0.00', '0', '967', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7544
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1059', '11.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=968
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1059';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1059, 0, 0
                    , 780.00, -11, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 780.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2804
UPDATE storemovement SET  buyPricesHistoryBookData = "11.00*2026-10-14*780.00," WHERE transferproductid = 968;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1059', '1', '11.00', '1', '968', 'تحويل منتجات من المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=7545
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2093';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1059, 0, 0
                    , 780.00, 11.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2805
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1059', '2', '11.00', '0', '968', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=7546
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1058', '14.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=969
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1058';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1058, 0, 0
                    , 360.00, -14, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2806
UPDATE storemovement SET  buyPricesHistoryBookData = "14.00*2026-10-14*360.00," WHERE transferproductid = 969;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1058', '1', '14.00', '1', '969', 'تحويل منتجات من المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=7547
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2092';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1058, 0, 0
                    , 360.00, 14.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2807
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1058', '2', '14.00', '0', '969', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=7548
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1057', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=970
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1057';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1057, 0, 0
                    , 365.00, -3, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 365.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2808
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-14*365.00," WHERE transferproductid = 970;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1057', '1', '3.00', '1', '970', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=7549
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2091';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1057, 0, 0
                    , 365.00, 3.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2809
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1057', '2', '3.00', '0', '970', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=7550
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1056', '4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=971
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1056';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1056, 0, 0
                    , 430.00, -4, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2810
UPDATE storemovement SET  buyPricesHistoryBookData = "4.00*2026-10-14*430.00," WHERE transferproductid = 971;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1056', '1', '4.00', '1', '971', 'تحويل منتجات من المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=7551
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2090';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1056, 0, 0
                    , 430.00, 4.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2811
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1056', '2', '4.00', '0', '971', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=7552
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1055', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=972
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1055';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1055, 0, 0
                    , 430.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2812
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*430.00," WHERE transferproductid = 972;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1055', '1', '20.00', '1', '972', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7553
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2089';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1055, 0, 0
                    , 430.00, 20.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2813
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1055', '2', '20.00', '0', '972', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7554
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1054', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=973
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1054';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1054, 0, 0
                    , 485.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 485.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2814
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*485.00," WHERE transferproductid = 973;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1054', '1', '20.00', '1', '973', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7555
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2088';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1054, 0, 0
                    , 485.00, 20.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2815
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1054', '2', '20.00', '0', '973', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7556
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1053', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=974
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1053';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1053, 0, 0
                    , 385.00, -24, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 385.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2816
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-14*385.00," WHERE transferproductid = 974;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1053', '1', '24.00', '1', '974', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=7557
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2087';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1053, 0, 0
                    , 385.00, 24.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2817
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1053', '2', '24.00', '0', '974', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=7558
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1052', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=975
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1052';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1052, 0, 0
                    , 385.00, -10, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 385.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2818
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*385.00," WHERE transferproductid = 975;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1052', '1', '10.00', '1', '975', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7559
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2086';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1052, 0, 0
                    , 385.00, 10.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2819
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1052', '2', '10.00', '0', '975', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7560
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1051', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=976
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1051';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1051, 0, 0
                    , 420.00, -5, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 420.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2820
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*420.00," WHERE transferproductid = 976;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1051', '1', '5.00', '1', '976', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7561
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2085';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1051, 0, 0
                    , 420.00, 5.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2821
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1051', '2', '5.00', '0', '976', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7562
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1050', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=977
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1050';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1050, 0, 0
                    , 385.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 385.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2822
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*385.00," WHERE transferproductid = 977;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1050', '1', '20.00', '1', '977', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7563
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2084';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1050, 0, 0
                    , 385.00, 20.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2823
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1050', '2', '20.00', '0', '977', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7564
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1049', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=978
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1049';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1049, 0, 0
                    , 345.00, -25, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 345.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2824
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*345.00," WHERE transferproductid = 978;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1049', '1', '25.00', '1', '978', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7565
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2083';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1049, 0, 0
                    , 345.00, 25.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2825
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1049', '2', '25.00', '0', '978', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7566
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1048', '13.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=979
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1048';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1048, 0, 0
                    , 385.00, -13, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 385.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2826
UPDATE storemovement SET  buyPricesHistoryBookData = "13.00*2026-10-14*385.00," WHERE transferproductid = 979;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1048', '1', '13.00', '1', '979', 'تحويل منتجات من المخزن', 'storemovementController.php', '13', '0', '1', '2026-10-14','0','0'); -- id=7567
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2082';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1048, 0, 0
                    , 385.00, 13.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2827
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1048', '2', '13.00', '0', '979', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2026-10-14','0','0'); -- id=7568
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1047', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=980
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1047';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1047, 0, 0
                    , 435.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 435.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2828
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*435.00," WHERE transferproductid = 980;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1047', '1', '20.00', '1', '980', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7569
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2081';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1047, 0, 0
                    , 435.00, 20.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2829
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1047', '2', '20.00', '0', '980', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7570
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1046', '14.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=981
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1046';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1046, 0, 0
                    , 300.00, -14, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2830
UPDATE storemovement SET  buyPricesHistoryBookData = "14.00*2026-10-14*300.00," WHERE transferproductid = 981;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1046', '1', '14.00', '1', '981', 'تحويل منتجات من المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=7571
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2080';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1046, 0, 0
                    , 300.00, 14.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2831
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1046', '2', '14.00', '0', '981', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=7572
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1045', '85.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=982
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1045';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1045, 0, 0
                    , 250.00, 65, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-65, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=61
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1045, 0, 0
                    , 250.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2833
UPDATE storemovement SET  buyPricesHistoryBookData = "65*2026-10-01*250.00,20*2026-10-14*250.00," WHERE transferproductid = 982;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1045', '1', '85.00', '1', '982', 'تحويل منتجات من المخزن', 'storemovementController.php', '85', '0', '1', '2026-10-14','0','0'); -- id=7573
UPDATE storedetail SET  productquantity = '85', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2079';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1045, 0, 0
                    , 250.00, 65, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+65, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2834
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1045, 0, 0
                    , 250.00, 20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2835
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1045', '2', '85.00', '0', '982', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '85', '1', '2026-10-14','0','0'); -- id=7574
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1044', '120.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=983
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1044';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1044, 0, 0
                    , 270.00, -120, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-120, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2836
UPDATE storemovement SET  buyPricesHistoryBookData = "120.00*2026-10-14*270.00," WHERE transferproductid = 983;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1044', '1', '120.00', '1', '983', 'تحويل منتجات من المخزن', 'storemovementController.php', '120', '0', '1', '2026-10-14','0','0'); -- id=7575
UPDATE storedetail SET  productquantity = '120', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2078';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1044, 0, 0
                    , 270.00, 120.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+120.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2837
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1044', '2', '120.00', '0', '983', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '120', '1', '2026-10-14','0','0'); -- id=7576
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1043', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=984
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1043';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1043, 0, 0
                    , 360.00, -10, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2838
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*360.00," WHERE transferproductid = 984;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1043', '1', '10.00', '1', '984', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7577
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2077';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1043, 0, 0
                    , 360.00, 10.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2839
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1043', '2', '10.00', '0', '984', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7578
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1042', '35.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=985
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1042';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1042, 0, 0
                    , 150.00, -35, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 150.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2840
UPDATE storemovement SET  buyPricesHistoryBookData = "35.00*2026-10-14*150.00," WHERE transferproductid = 985;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1042', '1', '35.00', '1', '985', 'تحويل منتجات من المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=7579
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2076';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1042, 0, 0
                    , 150.00, 35.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2841
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1042', '2', '35.00', '0', '985', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=7580
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1041', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=986
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1041';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1041, 0, 0
                    , 340.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2842
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*340.00," WHERE transferproductid = 986;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1041', '1', '20.00', '1', '986', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7581
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2075';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1041, 0, 0
                    , 340.00, 20.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2843
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1041', '2', '20.00', '0', '986', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7582
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1040', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=987
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1040';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1040, 0, 0
                    , 300.00, -10, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2844
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*300.00," WHERE transferproductid = 987;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1040', '1', '10.00', '1', '987', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7583
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2074';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1040, 0, 0
                    , 300.00, 10.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2845
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1040', '2', '10.00', '0', '987', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7584
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1039', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=988
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1039';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1039, 0, 0
                    , 300.00, -30, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2846
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*300.00," WHERE transferproductid = 988;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1039', '1', '30.00', '1', '988', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=7585
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2073';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1039, 0, 0
                    , 300.00, 30.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2847
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1039', '2', '30.00', '0', '988', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=7586
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1038', '38.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=989
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1038';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1038, 0, 0
                    , 290.00, -38, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 290.00,
                        buyQuantity =buyQuantity+-38, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2848
UPDATE storemovement SET  buyPricesHistoryBookData = "38.00*2026-10-14*290.00," WHERE transferproductid = 989;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1038', '1', '38.00', '1', '989', 'تحويل منتجات من المخزن', 'storemovementController.php', '38', '0', '1', '2026-10-14','0','0'); -- id=7587
UPDATE storedetail SET  productquantity = '38', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2072';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1038, 0, 0
                    , 290.00, 38.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+38.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2849
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1038', '2', '38.00', '0', '989', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '38', '1', '2026-10-14','0','0'); -- id=7588
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1037', '35.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=990
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1037';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1037, 0, 0
                    , 430.00, -35, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2850
UPDATE storemovement SET  buyPricesHistoryBookData = "35.00*2026-10-14*430.00," WHERE transferproductid = 990;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1037', '1', '35.00', '1', '990', 'تحويل منتجات من المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=7589
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2071';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1037, 0, 0
                    , 430.00, 35.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2851
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1037', '2', '35.00', '0', '990', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=7590
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1036', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=991
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1036';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1036, 0, 0
                    , 380.00, -30, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 380.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2852
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*380.00," WHERE transferproductid = 991;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1036', '1', '30.00', '1', '991', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=7591
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2070';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1036, 0, 0
                    , 380.00, 30.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2853
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1036', '2', '30.00', '0', '991', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=7592
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1035', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=992
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1035';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1035, 0, 0
                    , 430.00, -40, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2854
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*430.00," WHERE transferproductid = 992;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1035', '1', '40.00', '1', '992', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=7593
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2069';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1035, 0, 0
                    , 430.00, 40.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2855
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1035', '2', '40.00', '0', '992', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=7594
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1034', '90.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=993
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1034';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1034, 0, 0
                    , 400.00, -90, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-90, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2856
UPDATE storemovement SET  buyPricesHistoryBookData = "90.00*2026-10-14*400.00," WHERE transferproductid = 993;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1034', '1', '90.00', '1', '993', 'تحويل منتجات من المخزن', 'storemovementController.php', '90', '0', '1', '2026-10-14','0','0'); -- id=7595
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2068';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1034, 0, 0
                    , 400.00, 90.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+90.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2857
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1034', '2', '90.00', '0', '993', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '90', '1', '2026-10-14','0','0'); -- id=7596
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1033', '50.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=994
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1033';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1033, 0, 0
                    , 430.00, -50, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2858
UPDATE storemovement SET  buyPricesHistoryBookData = "50.00*2026-10-14*430.00," WHERE transferproductid = 994;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1033', '1', '50.00', '1', '994', 'تحويل منتجات من المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=7597
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2067';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1033, 0, 0
                    , 430.00, 50.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2859
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1033', '2', '50.00', '0', '994', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=7598
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1032', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=995
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1032';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1032, 0, 0
                    , 390.00, -30, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 390.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2860
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*390.00," WHERE transferproductid = 995;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1032', '1', '30.00', '1', '995', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=7599
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2066';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1032, 0, 0
                    , 390.00, 30.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2861
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1032', '2', '30.00', '0', '995', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=7600
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1031', '65.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=996
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1031';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1031, 0, 0
                    , 400.00, -65, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-65, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2862
UPDATE storemovement SET  buyPricesHistoryBookData = "65.00*2026-10-14*400.00," WHERE transferproductid = 996;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1031', '1', '65.00', '1', '996', 'تحويل منتجات من المخزن', 'storemovementController.php', '65', '0', '1', '2026-10-14','0','0'); -- id=7601
UPDATE storedetail SET  productquantity = '65', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2065';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1031, 0, 0
                    , 400.00, 65.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+65.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2863
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1031', '2', '65.00', '0', '996', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '65', '1', '2026-10-14','0','0'); -- id=7602
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1030', '19.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=997
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1030';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1030, 0, 0
                    , 370.00, -19, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2864
UPDATE storemovement SET  buyPricesHistoryBookData = "19.00*2026-10-14*370.00," WHERE transferproductid = 997;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1030', '1', '19.00', '1', '997', 'تحويل منتجات من المخزن', 'storemovementController.php', '19', '0', '1', '2026-10-14','0','0'); -- id=7603
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2064';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1030, 0, 0
                    , 370.00, 19.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2865
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1030', '2', '19.00', '0', '997', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2026-10-14','0','0'); -- id=7604
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1029', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=998
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1029';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1029, 0, 0
                    , 380.00, -25, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 380.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2866
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*380.00," WHERE transferproductid = 998;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1029', '1', '25.00', '1', '998', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7605
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2063';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1029, 0, 0
                    , 380.00, 25.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2867
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1029', '2', '25.00', '0', '998', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7606
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1028', '45.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=999
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1028';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1028, 0, 0
                    , 375.00, -45, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 375.00,
                        buyQuantity =buyQuantity+-45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2868
UPDATE storemovement SET  buyPricesHistoryBookData = "45.00*2026-10-14*375.00," WHERE transferproductid = 999;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1028', '1', '45.00', '1', '999', 'تحويل منتجات من المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=7607
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2062';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1028, 0, 0
                    , 375.00, 45.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2869
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1028', '2', '45.00', '0', '999', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=7608
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1027', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1000
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1027';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1027, 0, 0
                    , 430.00, -5, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2870
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*430.00," WHERE transferproductid = 1000;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1027', '1', '5.00', '1', '1000', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7609
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2061';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1027, 0, 0
                    , 430.00, 5.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2871
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1027', '2', '5.00', '0', '1000', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7610
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1026', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1001
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1026';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1026, 0, 0
                    , 355.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 355.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2872
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*355.00," WHERE transferproductid = 1001;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1026', '1', '20.00', '1', '1001', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7611
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2060';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1026, 0, 0
                    , 355.00, 20.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2873
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1026', '2', '20.00', '0', '1001', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7612
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1025', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1002
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1025';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1025, 0, 0
                    , 360.00, -30, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2874
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*360.00," WHERE transferproductid = 1002;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1025', '1', '30.00', '1', '1002', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=7613
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2059';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1025, 0, 0
                    , 360.00, 30.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2875
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1025', '2', '30.00', '0', '1002', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=7614
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1024', '95.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1003
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1024';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1024, 0, 0
                    , 360.00, -95, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-95, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2876
UPDATE storemovement SET  buyPricesHistoryBookData = "95.00*2026-10-14*360.00," WHERE transferproductid = 1003;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1024', '1', '95.00', '1', '1003', 'تحويل منتجات من المخزن', 'storemovementController.php', '95', '0', '1', '2026-10-14','0','0'); -- id=7615
UPDATE storedetail SET  productquantity = '95', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2058';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1024, 0, 0
                    , 360.00, 95.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+95.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2877
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1024', '2', '95.00', '0', '1003', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '95', '1', '2026-10-14','0','0'); -- id=7616
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1023', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1004
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1023';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1023, 0, 0
                    , 430.00, -40, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2878
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*430.00," WHERE transferproductid = 1004;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1023', '1', '40.00', '1', '1004', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=7617
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2057';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1023, 0, 0
                    , 430.00, 40.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2879
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1023', '2', '40.00', '0', '1004', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=7618
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1022', '14.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1005
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1022';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1022, 0, 0
                    , 375.00, -14, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 375.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2880
UPDATE storemovement SET  buyPricesHistoryBookData = "14.00*2026-10-14*375.00," WHERE transferproductid = 1005;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1022', '1', '14.00', '1', '1005', 'تحويل منتجات من المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=7619
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2056';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1022, 0, 0
                    , 375.00, 14.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2881
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1022', '2', '14.00', '0', '1005', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=7620
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1021', '145.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1006
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1021';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1021, 0, 0
                    , 330.00, -145, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-145, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2882
UPDATE storemovement SET  buyPricesHistoryBookData = "145.00*2026-10-14*330.00," WHERE transferproductid = 1006;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1021', '1', '145.00', '1', '1006', 'تحويل منتجات من المخزن', 'storemovementController.php', '145', '0', '1', '2026-10-14','0','0'); -- id=7621
UPDATE storedetail SET  productquantity = '145', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2055';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1021, 0, 0
                    , 330.00, 145.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+145.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2883
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1021', '2', '145.00', '0', '1006', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '145', '1', '2026-10-14','0','0'); -- id=7622
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1020', '54.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1007
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1020';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1020, 0, 0
                    , 330.00, -54, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-54, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2884
UPDATE storemovement SET  buyPricesHistoryBookData = "54.00*2026-10-14*330.00," WHERE transferproductid = 1007;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1020', '1', '54.00', '1', '1007', 'تحويل منتجات من المخزن', 'storemovementController.php', '54', '0', '1', '2026-10-14','0','0'); -- id=7623
UPDATE storedetail SET  productquantity = '54', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2054';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1020, 0, 0
                    , 330.00, 54.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+54.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2885
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1020', '2', '54.00', '0', '1007', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '54', '1', '2026-10-14','0','0'); -- id=7624
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1019', '52.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1008
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1019';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1019, 0, 0
                    , 360.00, -52, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-52, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2886
UPDATE storemovement SET  buyPricesHistoryBookData = "52.00*2026-10-14*360.00," WHERE transferproductid = 1008;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1019', '1', '52.00', '1', '1008', 'تحويل منتجات من المخزن', 'storemovementController.php', '52', '0', '1', '2026-10-14','0','0'); -- id=7625
UPDATE storedetail SET  productquantity = '52', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2053';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1019, 0, 0
                    , 360.00, 52.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+52.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2887
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1019', '2', '52.00', '0', '1008', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '52', '1', '2026-10-14','0','0'); -- id=7626
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1018', '26.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1009
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1018';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1018, 0, 0
                    , 310.00, -26, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2888
UPDATE storemovement SET  buyPricesHistoryBookData = "26.00*2026-10-14*310.00," WHERE transferproductid = 1009;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1018', '1', '26.00', '1', '1009', 'تحويل منتجات من المخزن', 'storemovementController.php', '26', '0', '1', '2026-10-14','0','0'); -- id=7627
UPDATE storedetail SET  productquantity = '26', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2052';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1018, 0, 0
                    , 310.00, 26.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2889
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1018', '2', '26.00', '0', '1009', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2026-10-14','0','0'); -- id=7628
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1017', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1010
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1017';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1017, 0, 0
                    , 375.00, -40, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 375.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2890
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*375.00," WHERE transferproductid = 1010;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1017', '1', '40.00', '1', '1010', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=7629
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2051';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1017, 0, 0
                    , 375.00, 40.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2891
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1017', '2', '40.00', '0', '1010', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=7630
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1016', '72.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1011
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1016';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1016, 0, 0
                    , 490.00, -72, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 490.00,
                        buyQuantity =buyQuantity+-72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2892
UPDATE storemovement SET  buyPricesHistoryBookData = "72.00*2026-10-14*490.00," WHERE transferproductid = 1011;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1016', '1', '72.00', '1', '1011', 'تحويل منتجات من المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=7631
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2050';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1016, 0, 0
                    , 490.00, 72.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2893
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1016', '2', '72.00', '0', '1011', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '72', '1', '2026-10-14','0','0'); -- id=7632
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1015', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1012
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1015';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1015, 0, 0
                    , 400.00, -20, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2894
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*400.00," WHERE transferproductid = 1012;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1015', '1', '20.00', '1', '1012', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7633
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2049';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1015, 0, 0
                    , 400.00, 20.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2895
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1015', '2', '20.00', '0', '1012', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7634
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1014', '42.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1013
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1014';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1014, 0, 0
                    , 450.00, -42, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 450.00,
                        buyQuantity =buyQuantity+-42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2896
UPDATE storemovement SET  buyPricesHistoryBookData = "42.00*2026-10-14*450.00," WHERE transferproductid = 1013;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1014', '1', '42.00', '1', '1013', 'تحويل منتجات من المخزن', 'storemovementController.php', '42', '0', '1', '2026-10-14','0','0'); -- id=7635
UPDATE storedetail SET  productquantity = '42', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2048';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1014, 0, 0
                    , 450.00, 42.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2897
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1014', '2', '42.00', '0', '1013', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '42', '1', '2026-10-14','0','0'); -- id=7636
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1013', '4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1014
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1013';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1013, 0, 0
                    , 380.00, -4, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 380.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2898
UPDATE storemovement SET  buyPricesHistoryBookData = "4.00*2026-10-14*380.00," WHERE transferproductid = 1014;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1013', '1', '4.00', '1', '1014', 'تحويل منتجات من المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=7637
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2047';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1013, 0, 0
                    , 380.00, 4.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2899
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1013', '2', '4.00', '0', '1014', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=7638
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1012', '34.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1015
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1012';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1012, 0, 0
                    , 385.00, -34, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 385.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2900
UPDATE storemovement SET  buyPricesHistoryBookData = "34.00*2026-10-14*385.00," WHERE transferproductid = 1015;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1012', '1', '34.00', '1', '1015', 'تحويل منتجات من المخزن', 'storemovementController.php', '34', '0', '1', '2026-10-14','0','0'); -- id=7639
UPDATE storedetail SET  productquantity = '34', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2046';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1012, 0, 0
                    , 385.00, 34.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2901
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1012', '2', '34.00', '0', '1015', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2026-10-14','0','0'); -- id=7640
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1011', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1016
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1011';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1011, 0, 0
                    , 570.00, -10, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 570.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2902
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*570.00," WHERE transferproductid = 1016;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1011', '1', '10.00', '1', '1016', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7641
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2045';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1011, 0, 0
                    , 570.00, 10.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2903
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1011', '2', '10.00', '0', '1016', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7642
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1010', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1017
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1010';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1017;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1010', '1', '0.00', '1', '1017', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7643
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2044';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1010', '2', '0.00', '0', '1017', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7644
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1009', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1018
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1009';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1009, 0, 0
                    , 415.00, -15, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 415.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2904
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*415.00," WHERE transferproductid = 1018;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1009', '1', '15.00', '1', '1018', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7645
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2043';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1009, 0, 0
                    , 415.00, 15.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2905
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1009', '2', '15.00', '0', '1018', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7646
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1008', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1019
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1008';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1008, 0, 0
                    , 380.00, -25, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 380.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2906
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*380.00," WHERE transferproductid = 1019;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1008', '1', '25.00', '1', '1019', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7647
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2042';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1008, 0, 0
                    , 380.00, 25.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2907
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1008', '2', '25.00', '0', '1019', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7648
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1007', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1020
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1007';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1007, 0, 0
                    , 410.00, -24, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2908
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-14*410.00," WHERE transferproductid = 1020;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1007', '1', '24.00', '1', '1020', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=7649
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2041';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1007, 0, 0
                    , 410.00, 24.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2909
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1007', '2', '24.00', '0', '1020', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=7650
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1006', '19.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1021
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1006';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1006, 0, 0
                    , 490.00, -19, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 490.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2910
UPDATE storemovement SET  buyPricesHistoryBookData = "19.00*2026-10-14*490.00," WHERE transferproductid = 1021;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1006', '1', '19.00', '1', '1021', 'تحويل منتجات من المخزن', 'storemovementController.php', '19', '0', '1', '2026-10-14','0','0'); -- id=7651
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2040';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1006, 0, 0
                    , 490.00, 19.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2911
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1006', '2', '19.00', '0', '1021', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2026-10-14','0','0'); -- id=7652
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1005', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1022
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1005';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1005, 0, 0
                    , 405.00, -6, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 405.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2912
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-14*405.00," WHERE transferproductid = 1022;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1005', '1', '6.00', '1', '1022', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=7653
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2039';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1005, 0, 0
                    , 405.00, 6.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2913
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1005', '2', '6.00', '0', '1022', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=7654
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1004', '21.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1023
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1004';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1004, 0, 0
                    , 390.00, -21, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 390.00,
                        buyQuantity =buyQuantity+-21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2914
UPDATE storemovement SET  buyPricesHistoryBookData = "21.00*2026-10-14*390.00," WHERE transferproductid = 1023;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1004', '1', '21.00', '1', '1023', 'تحويل منتجات من المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=7655
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2038';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1004, 0, 0
                    , 390.00, 21.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2915
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1004', '2', '21.00', '0', '1023', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=7656
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1003', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1024
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1003';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1003, 0, 0
                    , 425.00, -15, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 425.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2916
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*425.00," WHERE transferproductid = 1024;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1003', '1', '15.00', '1', '1024', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7657
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2037';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1003, 0, 0
                    , 425.00, 15.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2917
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1003', '2', '15.00', '0', '1024', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7658
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1002', '50.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1025
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1002';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1002, 0, 0
                    , 395.00, -50, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 395.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2918
UPDATE storemovement SET  buyPricesHistoryBookData = "50.00*2026-10-14*395.00," WHERE transferproductid = 1025;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1002', '1', '50.00', '1', '1025', 'تحويل منتجات من المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=7659
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2036';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1002, 0, 0
                    , 395.00, 50.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2919
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1002', '2', '50.00', '0', '1025', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=7660
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1001', '23.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1026
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1001';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1001, 0, 0
                    , 365.00, -23, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 365.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2920
UPDATE storemovement SET  buyPricesHistoryBookData = "23.00*2026-10-14*365.00," WHERE transferproductid = 1026;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1001', '1', '23.00', '1', '1026', 'تحويل منتجات من المخزن', 'storemovementController.php', '23', '0', '1', '2026-10-14','0','0'); -- id=7661
UPDATE storedetail SET  productquantity = '23', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2035';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1001, 0, 0
                    , 365.00, 23.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2921
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1001', '2', '23.00', '0', '1026', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2026-10-14','0','0'); -- id=7662
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1000', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1027
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1000';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1000, 0, 0
                    , 615.00, -48, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 615.00,
                        buyQuantity =buyQuantity+-48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2922
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-14*615.00," WHERE transferproductid = 1027;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1000', '1', '48.00', '1', '1027', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=7663
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2034';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1000, 0, 0
                    , 615.00, 48.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2923
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1000', '2', '48.00', '0', '1027', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=7664
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '999', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1028
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '999';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 999, 0, 0
                    , 435.00, -25, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 435.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2924
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*435.00," WHERE transferproductid = 1028;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('999', '1', '25.00', '1', '1028', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7665
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2033';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 999, 0, 0
                    , 435.00, 25.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2925
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('999', '2', '25.00', '0', '1028', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7666
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '998', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1029
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '998';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 998, 0, 0
                    , 450.00, -30, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyprice = 450.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2926
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*450.00," WHERE transferproductid = 1029;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('998', '1', '30.00', '1', '1029', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=7667
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2032';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 998, 0, 0
                    , 450.00, 30.00, 0, 0, 1, '2026-10-14 18:00:21')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:21' ; -- id=2927
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('998', '2', '30.00', '0', '1029', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=7668
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '997', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:21','0','','0','','0','0','0','','','','0','0','','0'); -- id=1030
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '997';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 997, 0, 0
                    , 450.00, -20, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 450.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2928
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*450.00," WHERE transferproductid = 1030;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('997', '1', '20.00', '1', '1030', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7669
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2031';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 997, 0, 0
                    , 450.00, 20.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2929
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('997', '2', '20.00', '0', '1030', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7670
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '996', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1031
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '996';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1031;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('996', '1', '0.00', '1', '1031', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7671
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2030';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('996', '2', '0.00', '0', '1031', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7672
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '995', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1032
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '995';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 995, 0, 0
                    , 500.00, -25, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 500.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2930
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*500.00," WHERE transferproductid = 1032;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('995', '1', '25.00', '1', '1032', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7673
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2029';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 995, 0, 0
                    , 500.00, 25.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2931
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('995', '2', '25.00', '0', '1032', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7674
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '994', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1033
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '994';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 994, 0, 0
                    , 465.00, -25, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 465.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2932
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*465.00," WHERE transferproductid = 1033;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('994', '1', '25.00', '1', '1033', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7675
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2028';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 994, 0, 0
                    , 465.00, 25.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2933
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('994', '2', '25.00', '0', '1033', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7676
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '993', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1034
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '993';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 993, 0, 0
                    , 440.00, -25, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 440.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2934
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*440.00," WHERE transferproductid = 1034;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('993', '1', '25.00', '1', '1034', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7677
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2027';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 993, 0, 0
                    , 440.00, 25.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2935
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('993', '2', '25.00', '0', '1034', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7678
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '992', '45.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1035
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '992';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 992, 0, 0
                    , 500.00, -45, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 500.00,
                        buyQuantity =buyQuantity+-45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2936
UPDATE storemovement SET  buyPricesHistoryBookData = "45.00*2026-10-14*500.00," WHERE transferproductid = 1035;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('992', '1', '45.00', '1', '1035', 'تحويل منتجات من المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=7679
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2026';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 992, 0, 0
                    , 500.00, 45.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2937
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('992', '2', '45.00', '0', '1035', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=7680
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '991', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1036
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '991';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 991, 0, 0
                    , 500.00, -20, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 500.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2938
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*500.00," WHERE transferproductid = 1036;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('991', '1', '20.00', '1', '1036', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7681
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2025';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 991, 0, 0
                    , 500.00, 20.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2939
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('991', '2', '20.00', '0', '1036', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7682
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '990', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1037
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '990';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 990, 0, 0
                    , 440.00, -25, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 440.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2940
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*440.00," WHERE transferproductid = 1037;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('990', '1', '25.00', '1', '1037', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7683
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2024';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 990, 0, 0
                    , 440.00, 25.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2941
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('990', '2', '25.00', '0', '1037', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7684
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '989', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1038
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '989';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 989, 0, 0
                    , 490.00, -15, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 490.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2942
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*490.00," WHERE transferproductid = 1038;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('989', '1', '15.00', '1', '1038', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7685
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2023';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 989, 0, 0
                    , 490.00, 15.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2943
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('989', '2', '15.00', '0', '1038', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7686
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '988', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1039
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '988';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 988, 0, 0
                    , 500.00, -20, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 500.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2944
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*500.00," WHERE transferproductid = 1039;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('988', '1', '20.00', '1', '1039', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7687
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2022';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 988, 0, 0
                    , 500.00, 20.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2945
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('988', '2', '20.00', '0', '1039', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7688
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '987', '14.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1040
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '987';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 987, 0, 0
                    , 485.00, -14, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 485.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2946
UPDATE storemovement SET  buyPricesHistoryBookData = "14.00*2026-10-14*485.00," WHERE transferproductid = 1040;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('987', '1', '14.00', '1', '1040', 'تحويل منتجات من المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=7689
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2021';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 987, 0, 0
                    , 485.00, 14.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2947
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('987', '2', '14.00', '0', '1040', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=7690
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '986', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1041
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '986';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 986, 0, 0
                    , 460.00, -25, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 460.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2948
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*460.00," WHERE transferproductid = 1041;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('986', '1', '25.00', '1', '1041', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7691
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2020';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 986, 0, 0
                    , 460.00, 25.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2949
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('986', '2', '25.00', '0', '1041', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7692
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '985', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1042
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '985';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 985, 0, 0
                    , 465.00, -9, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 465.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2950
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-14*465.00," WHERE transferproductid = 1042;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('985', '1', '9.00', '1', '1042', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=7693
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2019';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 985, 0, 0
                    , 465.00, 9.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2951
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('985', '2', '9.00', '0', '1042', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=7694
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '984', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1043
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '984';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 984, 0, 0
                    , 485.00, -40, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 485.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2952
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*485.00," WHERE transferproductid = 1043;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('984', '1', '40.00', '1', '1043', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=7695
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2018';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 984, 0, 0
                    , 485.00, 40.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2953
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('984', '2', '40.00', '0', '1043', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=7696
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '983', '65.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1044
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '983';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 983, 0, 0
                    , 435.00, -65, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 435.00,
                        buyQuantity =buyQuantity+-65, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2954
UPDATE storemovement SET  buyPricesHistoryBookData = "65.00*2026-10-14*435.00," WHERE transferproductid = 1044;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('983', '1', '65.00', '1', '1044', 'تحويل منتجات من المخزن', 'storemovementController.php', '65', '0', '1', '2026-10-14','0','0'); -- id=7697
UPDATE storedetail SET  productquantity = '65', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2017';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 983, 0, 0
                    , 435.00, 65.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+65.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2955
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('983', '2', '65.00', '0', '1044', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '65', '1', '2026-10-14','0','0'); -- id=7698
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '982', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1045
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '982';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 982, 0, 0
                    , 470.00, -20, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 470.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2956
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*470.00," WHERE transferproductid = 1045;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('982', '1', '20.00', '1', '1045', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7699
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2016';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 982, 0, 0
                    , 470.00, 20.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2957
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('982', '2', '20.00', '0', '1045', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7700
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '981', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1046
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '981';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 981, 0, 0
                    , 460.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 460.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2958
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*460.00," WHERE transferproductid = 1046;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('981', '1', '10.00', '1', '1046', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7701
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2015';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 981, 0, 0
                    , 460.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2959
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('981', '2', '10.00', '0', '1046', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7702
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '980', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1047
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '980';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 980, 0, 0
                    , 480.00, -5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 480.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2960
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*480.00," WHERE transferproductid = 1047;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('980', '1', '5.00', '1', '1047', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7703
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2014';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 980, 0, 0
                    , 480.00, 5.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2961
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('980', '2', '5.00', '0', '1047', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7704
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '979', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1048
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '979';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 979, 0, 0
                    , 415.00, -20, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 415.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2962
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*415.00," WHERE transferproductid = 1048;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('979', '1', '20.00', '1', '1048', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7705
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2013';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 979, 0, 0
                    , 415.00, 20.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2963
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('979', '2', '20.00', '0', '1048', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7706
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '978', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1049
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '978';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 978, 0, 0
                    , 360.00, -5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2964
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*360.00," WHERE transferproductid = 1049;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('978', '1', '5.00', '1', '1049', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7707
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2012';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 978, 0, 0
                    , 360.00, 5.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2965
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('978', '2', '5.00', '0', '1049', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7708
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '977', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1050
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '977';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 977, 0, 0
                    , 400.00, -60, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2966
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*400.00," WHERE transferproductid = 1050;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('977', '1', '60.00', '1', '1050', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=7709
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2011';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 977, 0, 0
                    , 400.00, 60.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2967
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('977', '2', '60.00', '0', '1050', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=7710
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '976', '105.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1051
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '976';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 976, 0, 0
                    , 365.00, -105, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 365.00,
                        buyQuantity =buyQuantity+-105, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2968
UPDATE storemovement SET  buyPricesHistoryBookData = "105.00*2026-10-14*365.00," WHERE transferproductid = 1051;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('976', '1', '105.00', '1', '1051', 'تحويل منتجات من المخزن', 'storemovementController.php', '105', '0', '1', '2026-10-14','0','0'); -- id=7711
UPDATE storedetail SET  productquantity = '105', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2010';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 976, 0, 0
                    , 365.00, 105.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+105.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2969
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('976', '2', '105.00', '0', '1051', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '105', '1', '2026-10-14','0','0'); -- id=7712
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '975', '45.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1052
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '975';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 975, 0, 0
                    , 390.00, -45, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 390.00,
                        buyQuantity =buyQuantity+-45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2970
UPDATE storemovement SET  buyPricesHistoryBookData = "45.00*2026-10-14*390.00," WHERE transferproductid = 1052;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('975', '1', '45.00', '1', '1052', 'تحويل منتجات من المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=7713
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2009';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 975, 0, 0
                    , 390.00, 45.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2971
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('975', '2', '45.00', '0', '1052', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=7714
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '974', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1053
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '974';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 974, 0, 0
                    , 530.00, -15, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 530.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2972
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*530.00," WHERE transferproductid = 1053;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('974', '1', '15.00', '1', '1053', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7715
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2008';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 974, 0, 0
                    , 530.00, 15.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2973
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('974', '2', '15.00', '0', '1053', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7716
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '973', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1054
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '973';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 973, 0, 0
                    , 430.00, -40, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2974
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*430.00," WHERE transferproductid = 1054;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('973', '1', '40.00', '1', '1054', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=7717
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2007';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 973, 0, 0
                    , 430.00, 40.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2975
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('973', '2', '40.00', '0', '1054', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=7718
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '972', '55.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1055
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '972';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 972, 0, 0
                    , 450.00, -55, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 450.00,
                        buyQuantity =buyQuantity+-55, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2976
UPDATE storemovement SET  buyPricesHistoryBookData = "55.00*2026-10-14*450.00," WHERE transferproductid = 1055;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('972', '1', '55.00', '1', '1055', 'تحويل منتجات من المخزن', 'storemovementController.php', '55', '0', '1', '2026-10-14','0','0'); -- id=7719
UPDATE storedetail SET  productquantity = '55', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2006';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 972, 0, 0
                    , 450.00, 55.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+55.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2977
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('972', '2', '55.00', '0', '1055', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '55', '1', '2026-10-14','0','0'); -- id=7720
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '971', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1056
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '971';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 971, 0, 0
                    , 360.00, -15, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2978
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*360.00," WHERE transferproductid = 1056;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('971', '1', '15.00', '1', '1056', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7721
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2005';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 971, 0, 0
                    , 360.00, 15.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2979
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('971', '2', '15.00', '0', '1056', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7722
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '970', '13.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1057
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '970';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 970, 0, 0
                    , 305.00, -13, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 305.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2980
UPDATE storemovement SET  buyPricesHistoryBookData = "13.00*2026-10-14*305.00," WHERE transferproductid = 1057;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('970', '1', '13.00', '1', '1057', 'تحويل منتجات من المخزن', 'storemovementController.php', '13', '0', '1', '2026-10-14','0','0'); -- id=7723
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2004';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 970, 0, 0
                    , 305.00, 13.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2981
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('970', '2', '13.00', '0', '1057', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2026-10-14','0','0'); -- id=7724
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '969', '14.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1058
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '969';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 969, 0, 0
                    , 325.00, -14, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 325.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2982
UPDATE storemovement SET  buyPricesHistoryBookData = "14.00*2026-10-14*325.00," WHERE transferproductid = 1058;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('969', '1', '14.00', '1', '1058', 'تحويل منتجات من المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=7725
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2003';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 969, 0, 0
                    , 325.00, 14.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2983
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('969', '2', '14.00', '0', '1058', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=7726
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '968', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1059
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '968';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 968, 0, 0
                    , 340.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2984
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*340.00," WHERE transferproductid = 1059;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('968', '1', '10.00', '1', '1059', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7727
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2002';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 968, 0, 0
                    , 340.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2985
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('968', '2', '10.00', '0', '1059', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7728
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '967', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1060
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '967';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 967, 0, 0
                    , 440.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 440.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2986
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*440.00," WHERE transferproductid = 1060;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('967', '1', '10.00', '1', '1060', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7729
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2001';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 967, 0, 0
                    , 440.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2987
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('967', '2', '10.00', '0', '1060', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7730
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '966', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1061
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '966';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 966, 0, 0
                    , 350.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2988
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*350.00," WHERE transferproductid = 1061;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('966', '1', '10.00', '1', '1061', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7731
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2000';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 966, 0, 0
                    , 350.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2989
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('966', '2', '10.00', '0', '1061', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7732
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '965', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1062
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '965';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 965, 0, 0
                    , 460.00, -60, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 460.00,
                        buyQuantity =buyQuantity+-60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2990
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*460.00," WHERE transferproductid = 1062;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('965', '1', '60.00', '1', '1062', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=7733
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1999';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 965, 0, 0
                    , 460.00, 60.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2991
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('965', '2', '60.00', '0', '1062', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=7734
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '964', '55.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1063
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '964';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 964, 0, 0
                    , 375.00, -55, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 375.00,
                        buyQuantity =buyQuantity+-55, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2992
UPDATE storemovement SET  buyPricesHistoryBookData = "55.00*2026-10-14*375.00," WHERE transferproductid = 1063;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('964', '1', '55.00', '1', '1063', 'تحويل منتجات من المخزن', 'storemovementController.php', '55', '0', '1', '2026-10-14','0','0'); -- id=7735
UPDATE storedetail SET  productquantity = '55', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1998';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 964, 0, 0
                    , 375.00, 55.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+55.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2993
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('964', '2', '55.00', '0', '1063', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '55', '1', '2026-10-14','0','0'); -- id=7736
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '963', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1064
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '963';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 963, 0, 0
                    , 470.00, -40, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 470.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2994
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*470.00," WHERE transferproductid = 1064;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('963', '1', '40.00', '1', '1064', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=7737
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1997';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 963, 0, 0
                    , 470.00, 40.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2995
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('963', '2', '40.00', '0', '1064', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=7738
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '962', '-1.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1065
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '962';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1065;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('962', '1', '-1.00', '1', '1065', 'تحويل منتجات من المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=7739
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1996';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('962', '2', '-1.00', '0', '1065', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=7740
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '961', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1066
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '961';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 961, 0, 0
                    , 375.00, -15, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 375.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2996
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*375.00," WHERE transferproductid = 1066;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('961', '1', '15.00', '1', '1066', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7741
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1995';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 961, 0, 0
                    , 375.00, 15.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2997
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('961', '2', '15.00', '0', '1066', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7742
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '960', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1067
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '960';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1067;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('960', '1', '0.00', '1', '1067', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7743
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1994';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('960', '2', '0.00', '0', '1067', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7744
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '959', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1068
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '959';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1068;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('959', '1', '0.00', '1', '1068', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7745
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1993';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('959', '2', '0.00', '0', '1068', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7746
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '958', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1069
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '958';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 958, 0, 0
                    , 445.00, -5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 445.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2998
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*445.00," WHERE transferproductid = 1069;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('958', '1', '5.00', '1', '1069', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7747
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1992';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 958, 0, 0
                    , 445.00, 5.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=2999
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('958', '2', '5.00', '0', '1069', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7748
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '957', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1070
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '957';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1070;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('957', '1', '0.00', '1', '1070', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7749
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1991';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('957', '2', '0.00', '0', '1070', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7750
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '956', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1071
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '956';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1071;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('956', '1', '0.00', '1', '1071', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7751
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1990';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('956', '2', '0.00', '0', '1071', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7752
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '955', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1072
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '955';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 955, 0, 0
                    , 475.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 475.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3000
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*475.00," WHERE transferproductid = 1072;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('955', '1', '10.00', '1', '1072', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7753
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1989';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 955, 0, 0
                    , 475.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3001
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('955', '2', '10.00', '0', '1072', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7754
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '954', '-1.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1073
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '954';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1073;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('954', '1', '-1.00', '1', '1073', 'تحويل منتجات من المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=7755
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1988';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('954', '2', '-1.00', '0', '1073', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=7756
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '953', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1074
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '953';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1074;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('953', '1', '0.00', '1', '1074', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7757
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1987';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('953', '2', '0.00', '0', '1074', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7758
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '952', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1075
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '952';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 952, 0, 0
                    , 395.00, -30, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 395.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3002
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*395.00," WHERE transferproductid = 1075;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('952', '1', '30.00', '1', '1075', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=7759
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1986';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 952, 0, 0
                    , 395.00, 30.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3003
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('952', '2', '30.00', '0', '1075', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=7760
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '951', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1076
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '951';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 951, 0, 0
                    , 570.00, -20, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 570.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3004
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*570.00," WHERE transferproductid = 1076;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('951', '1', '20.00', '1', '1076', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7761
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1985';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 951, 0, 0
                    , 570.00, 20.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3005
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('951', '2', '20.00', '0', '1076', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7762
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '950', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1077
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '950';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 950, 0, 0
                    , 570.00, -5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 570.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3006
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*570.00," WHERE transferproductid = 1077;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('950', '1', '5.00', '1', '1077', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7763
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1984';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 950, 0, 0
                    , 570.00, 5.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3007
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('950', '2', '5.00', '0', '1077', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7764
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '949', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1078
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '949';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 949, 0, 0
                    , 580.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 580.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3008
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*580.00," WHERE transferproductid = 1078;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('949', '1', '10.00', '1', '1078', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7765
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1983';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 949, 0, 0
                    , 580.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3009
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('949', '2', '10.00', '0', '1078', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7766
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '948', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1079
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '948';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 948, 0, 0
                    , 520.00, -15, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 520.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3010
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*520.00," WHERE transferproductid = 1079;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('948', '1', '15.00', '1', '1079', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7767
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1982';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 948, 0, 0
                    , 520.00, 15.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3011
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('948', '2', '15.00', '0', '1079', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7768
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '947', '19.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1080
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '947';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 947, 0, 0
                    , 550.00, -19, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 550.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3012
UPDATE storemovement SET  buyPricesHistoryBookData = "19.00*2026-10-14*550.00," WHERE transferproductid = 1080;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('947', '1', '19.00', '1', '1080', 'تحويل منتجات من المخزن', 'storemovementController.php', '19', '0', '1', '2026-10-14','0','0'); -- id=7769
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1981';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 947, 0, 0
                    , 550.00, 19.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3013
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('947', '2', '19.00', '0', '1080', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2026-10-14','0','0'); -- id=7770
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '946', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1081
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '946';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1081;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('946', '1', '0.00', '1', '1081', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7771
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1980';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('946', '2', '0.00', '0', '1081', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7772
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '945', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1082
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '945';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 945, 0, 0
                    , 510.00, 5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=24
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 945, 0, 0
                    , 510.00, -5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 510.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3015
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-09-30*510.00,5*2026-10-14*510.00," WHERE transferproductid = 1082;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('945', '1', '10.00', '1', '1082', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7773
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1979';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 945, 0, 0
                    , 510.00, 5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3016
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 945, 0, 0
                    , 510.00, 5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3017
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('945', '2', '10.00', '0', '1082', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7774
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '944', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1083
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '944';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1083;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('944', '1', '0.00', '1', '1083', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7775
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1978';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('944', '2', '0.00', '0', '1083', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7776
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '943', '94.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1084
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '943';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 943, 0, 0
                    , 390.00, -94, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 390.00,
                        buyQuantity =buyQuantity+-94, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3018
UPDATE storemovement SET  buyPricesHistoryBookData = "94.00*2026-10-14*390.00," WHERE transferproductid = 1084;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('943', '1', '94.00', '1', '1084', 'تحويل منتجات من المخزن', 'storemovementController.php', '94', '0', '1', '2026-10-14','0','0'); -- id=7777
UPDATE storedetail SET  productquantity = '94', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1977';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 943, 0, 0
                    , 390.00, 94.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+94.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3019
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('943', '2', '94.00', '0', '1084', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '94', '1', '2026-10-14','0','0'); -- id=7778
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '942', '2.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1085
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '942';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 942, 0, 0
                    , 480.00, -2, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 480.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3020
UPDATE storemovement SET  buyPricesHistoryBookData = "2.00*2026-10-14*480.00," WHERE transferproductid = 1085;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('942', '1', '2.00', '1', '1085', 'تحويل منتجات من المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=7779
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1976';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 942, 0, 0
                    , 480.00, 2.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3021
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('942', '2', '2.00', '0', '1085', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=7780
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '941', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1086
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '941';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 941, 0, 0
                    , 570.00, -15, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 570.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3022
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*570.00," WHERE transferproductid = 1086;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('941', '1', '15.00', '1', '1086', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7781
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1975';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 941, 0, 0
                    , 570.00, 15.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3023
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('941', '2', '15.00', '0', '1086', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7782
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '940', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1087
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '940';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 940, 0, 0
                    , 390.00, -5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 390.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3024
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*390.00," WHERE transferproductid = 1087;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('940', '1', '5.00', '1', '1087', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7783
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1974';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 940, 0, 0
                    , 390.00, 5.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3025
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('940', '2', '5.00', '0', '1087', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7784
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '939', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1088
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '939';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 939, 0, 0
                    , 560.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 560.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3026
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*560.00," WHERE transferproductid = 1088;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('939', '1', '10.00', '1', '1088', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7785
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1973';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 939, 0, 0
                    , 560.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3027
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('939', '2', '10.00', '0', '1088', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7786
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '938', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1089
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '938';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 938, 0, 0
                    , 560.00, -5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 560.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3028
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*560.00," WHERE transferproductid = 1089;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('938', '1', '5.00', '1', '1089', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7787
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1972';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 938, 0, 0
                    , 560.00, 5.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3029
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('938', '2', '5.00', '0', '1089', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7788
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '937', '34.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1090
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '937';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 937, 0, 0
                    , 570.00, -34, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 570.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3030
UPDATE storemovement SET  buyPricesHistoryBookData = "34.00*2026-10-14*570.00," WHERE transferproductid = 1090;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('937', '1', '34.00', '1', '1090', 'تحويل منتجات من المخزن', 'storemovementController.php', '34', '0', '1', '2026-10-14','0','0'); -- id=7789
UPDATE storedetail SET  productquantity = '34', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1971';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 937, 0, 0
                    , 570.00, 34.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3031
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('937', '2', '34.00', '0', '1090', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2026-10-14','0','0'); -- id=7790
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '936', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1091
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '936';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 936, 0, 0
                    , 555.00, -15, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 555.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3032
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*555.00," WHERE transferproductid = 1091;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('936', '1', '15.00', '1', '1091', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7791
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1970';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 936, 0, 0
                    , 555.00, 15.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3033
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('936', '2', '15.00', '0', '1091', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7792
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '935', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1092
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '935';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 935, 0, 0
                    , 480.00, -9, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 480.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3034
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-14*480.00," WHERE transferproductid = 1092;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('935', '1', '9.00', '1', '1092', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=7793
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1969';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 935, 0, 0
                    , 480.00, 9.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3035
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('935', '2', '9.00', '0', '1092', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=7794
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '934', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1093
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '934';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 934, 0, 0
                    , 590.00, -5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 590.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3036
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*590.00," WHERE transferproductid = 1093;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('934', '1', '5.00', '1', '1093', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7795
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1968';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 934, 0, 0
                    , 590.00, 5.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3037
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('934', '2', '5.00', '0', '1093', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7796
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '933', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1094
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '933';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 933, 0, 0
                    , 440.00, -15, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 440.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3038
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*440.00," WHERE transferproductid = 1094;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('933', '1', '15.00', '1', '1094', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7797
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1967';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 933, 0, 0
                    , 440.00, 15.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3039
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('933', '2', '15.00', '0', '1094', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7798
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '932', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1095
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '932';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 932, 0, 0
                    , 580.00, -5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 580.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3040
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*580.00," WHERE transferproductid = 1095;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('932', '1', '5.00', '1', '1095', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7799
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1966';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 932, 0, 0
                    , 580.00, 5.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3041
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('932', '2', '5.00', '0', '1095', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7800
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '931', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1096
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '931';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 931, 0, 0
                    , 570.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 570.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3042
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*570.00," WHERE transferproductid = 1096;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('931', '1', '10.00', '1', '1096', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7801
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1965';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 931, 0, 0
                    , 570.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3043
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('931', '2', '10.00', '0', '1096', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7802
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '930', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1097
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '930';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 930, 0, 0
                    , 530.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 530.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3044
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*530.00," WHERE transferproductid = 1097;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('930', '1', '10.00', '1', '1097', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7803
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1964';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 930, 0, 0
                    , 530.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3045
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('930', '2', '10.00', '0', '1097', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7804
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '929', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1098
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '929';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 929, 0, 0
                    , 560.00, -20, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 560.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3046
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*560.00," WHERE transferproductid = 1098;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('929', '1', '20.00', '1', '1098', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7805
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1963';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 929, 0, 0
                    , 560.00, 20.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3047
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('929', '2', '20.00', '0', '1098', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7806
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '928', '37.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1099
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '928';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 928, 0, 0
                    , 405.00, -37, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 405.00,
                        buyQuantity =buyQuantity+-37, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3048
UPDATE storemovement SET  buyPricesHistoryBookData = "37.00*2026-10-14*405.00," WHERE transferproductid = 1099;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('928', '1', '37.00', '1', '1099', 'تحويل منتجات من المخزن', 'storemovementController.php', '37', '0', '1', '2026-10-14','0','0'); -- id=7807
UPDATE storedetail SET  productquantity = '37', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1962';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 928, 0, 0
                    , 405.00, 37.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3049
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('928', '2', '37.00', '0', '1099', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '37', '1', '2026-10-14','0','0'); -- id=7808
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '927', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1100
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '927';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 927, 0, 0
                    , 480.00, -60, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 480.00,
                        buyQuantity =buyQuantity+-60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3050
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*480.00," WHERE transferproductid = 1100;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('927', '1', '60.00', '1', '1100', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=7809
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1961';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 927, 0, 0
                    , 480.00, 60.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3051
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('927', '2', '60.00', '0', '1100', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=7810
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '926', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1101
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '926';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1101;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('926', '1', '0.00', '1', '1101', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7811
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1960';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('926', '2', '0.00', '0', '1101', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7812
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '925', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1102
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '925';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 925, 0, 0
                    , 580.00, -5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 580.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3052
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*580.00," WHERE transferproductid = 1102;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('925', '1', '5.00', '1', '1102', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7813
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1959';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 925, 0, 0
                    , 580.00, 5.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3053
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('925', '2', '5.00', '0', '1102', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7814
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '924', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1103
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '924';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 924, 0, 0
                    , 580.00, -20, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 580.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3054
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*580.00," WHERE transferproductid = 1103;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('924', '1', '20.00', '1', '1103', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7815
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1958';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 924, 0, 0
                    , 580.00, 20.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3055
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('924', '2', '20.00', '0', '1103', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7816
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '923', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1104
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '923';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 923, 0, 0
                    , 580.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 580.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3056
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*580.00," WHERE transferproductid = 1104;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('923', '1', '10.00', '1', '1104', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7817
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1957';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 923, 0, 0
                    , 580.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3057
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('923', '2', '10.00', '0', '1104', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7818
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '922', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1105
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '922';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 922, 0, 0
                    , 530.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 530.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3058
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*530.00," WHERE transferproductid = 1105;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('922', '1', '10.00', '1', '1105', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7819
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1956';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 922, 0, 0
                    , 530.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3059
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('922', '2', '10.00', '0', '1105', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7820
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '921', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1106
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '921';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 921, 0, 0
                    , 620.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 620.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3060
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*620.00," WHERE transferproductid = 1106;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('921', '1', '10.00', '1', '1106', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7821
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1955';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 921, 0, 0
                    , 620.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3061
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('921', '2', '10.00', '0', '1106', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7822
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '920', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1107
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '920';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1107;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('920', '1', '0.00', '1', '1107', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7823
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1954';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('920', '2', '0.00', '0', '1107', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7824
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '919', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1108
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '919';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 919, 0, 0
                    , 615.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 615.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3062
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*615.00," WHERE transferproductid = 1108;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('919', '1', '10.00', '1', '1108', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7825
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1953';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 919, 0, 0
                    , 615.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3063
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('919', '2', '10.00', '0', '1108', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7826
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '918', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1109
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '918';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 918, 0, 0
                    , 490.00, -40, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 490.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3064
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*490.00," WHERE transferproductid = 1109;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('918', '1', '40.00', '1', '1109', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=7827
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1952';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 918, 0, 0
                    , 490.00, 40.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3065
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('918', '2', '40.00', '0', '1109', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=7828
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '917', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1110
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '917';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 917, 0, 0
                    , 500.00, -20, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 500.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3066
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*500.00," WHERE transferproductid = 1110;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('917', '1', '20.00', '1', '1110', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7829
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1951';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 917, 0, 0
                    , 500.00, 20.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3067
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('917', '2', '20.00', '0', '1110', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7830
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '916', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1111
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '916';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1111;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('916', '1', '0.00', '1', '1111', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7831
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1950';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('916', '2', '0.00', '0', '1111', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7832
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '915', '4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1112
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '915';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 915, 0, 0
                    , 555.00, -4, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 555.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3068
UPDATE storemovement SET  buyPricesHistoryBookData = "4.00*2026-10-14*555.00," WHERE transferproductid = 1112;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('915', '1', '4.00', '1', '1112', 'تحويل منتجات من المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=7833
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1949';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 915, 0, 0
                    , 555.00, 4.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3069
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('915', '2', '4.00', '0', '1112', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=7834
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '914', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1113
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '914';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 914, 0, 0
                    , 720.00, -15, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 720.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3070
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*720.00," WHERE transferproductid = 1113;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('914', '1', '15.00', '1', '1113', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7835
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1948';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 914, 0, 0
                    , 720.00, 15.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3071
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('914', '2', '15.00', '0', '1113', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7836
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '913', '3.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1114
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '913';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 913, 0, 0
                    , 410.00, -3, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3072
UPDATE storemovement SET  buyPricesHistoryBookData = "3.00*2026-10-14*410.00," WHERE transferproductid = 1114;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('913', '1', '3.00', '1', '1114', 'تحويل منتجات من المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=7837
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1947';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 913, 0, 0
                    , 410.00, 3.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3073
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('913', '2', '3.00', '0', '1114', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=7838
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '912', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1115
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '912';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 912, 0, 0
                    , 470.00, -15, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 470.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3074
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*470.00," WHERE transferproductid = 1115;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('912', '1', '15.00', '1', '1115', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7839
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1946';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 912, 0, 0
                    , 470.00, 15.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3075
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('912', '2', '15.00', '0', '1115', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7840
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '911', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1116
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '911';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 911, 0, 0
                    , 655.00, -18, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 655.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3076
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-14*655.00," WHERE transferproductid = 1116;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('911', '1', '18.00', '1', '1116', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=7841
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1945';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 911, 0, 0
                    , 655.00, 18.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3077
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('911', '2', '18.00', '0', '1116', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=7842
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '910', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1117
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '910';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 910, 0, 0
                    , 265.00, -25, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 265.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3078
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*265.00," WHERE transferproductid = 1117;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('910', '1', '25.00', '1', '1117', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7843
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1944';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 910, 0, 0
                    , 265.00, 25.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3079
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('910', '2', '25.00', '0', '1117', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7844
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '909', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1118
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '909';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 909, 0, 0
                    , 335.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 335.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3080
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*335.00," WHERE transferproductid = 1118;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('909', '1', '10.00', '1', '1118', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7845
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1943';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 909, 0, 0
                    , 335.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3081
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('909', '2', '10.00', '0', '1118', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7846
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '908', '11.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1119
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '908';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 908, 0, 0
                    , 245.00, -11, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 245.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3082
UPDATE storemovement SET  buyPricesHistoryBookData = "11.00*2026-10-14*245.00," WHERE transferproductid = 1119;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('908', '1', '11.00', '1', '1119', 'تحويل منتجات من المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=7847
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1942';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 908, 0, 0
                    , 245.00, 11.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3083
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('908', '2', '11.00', '0', '1119', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=7848
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '907', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1120
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '907';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 907, 0, 0
                    , 295.00, -20, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 295.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3084
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*295.00," WHERE transferproductid = 1120;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('907', '1', '20.00', '1', '1120', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=7849
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1941';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 907, 0, 0
                    , 295.00, 20.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3085
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('907', '2', '20.00', '0', '1120', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=7850
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '906', '37.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1121
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '906';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 906, 0, 0
                    , 315.00, -37, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 315.00,
                        buyQuantity =buyQuantity+-37, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3086
UPDATE storemovement SET  buyPricesHistoryBookData = "37.00*2026-10-14*315.00," WHERE transferproductid = 1121;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('906', '1', '37.00', '1', '1121', 'تحويل منتجات من المخزن', 'storemovementController.php', '37', '0', '1', '2026-10-14','0','0'); -- id=7851
UPDATE storedetail SET  productquantity = '37', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1940';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 906, 0, 0
                    , 315.00, 37.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3087
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('906', '2', '37.00', '0', '1121', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '37', '1', '2026-10-14','0','0'); -- id=7852
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '905', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1122
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '905';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 905, 0, 0
                    , 445.00, -5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 445.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3088
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*445.00," WHERE transferproductid = 1122;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('905', '1', '5.00', '1', '1122', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7853
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1939';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 905, 0, 0
                    , 445.00, 5.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3089
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('905', '2', '5.00', '0', '1122', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7854
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '904', '85.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1123
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '904';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 904, 0, 0
                    , 400.00, -85, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-85, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3090
UPDATE storemovement SET  buyPricesHistoryBookData = "85.00*2026-10-14*400.00," WHERE transferproductid = 1123;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('904', '1', '85.00', '1', '1123', 'تحويل منتجات من المخزن', 'storemovementController.php', '85', '0', '1', '2026-10-14','0','0'); -- id=7855
UPDATE storedetail SET  productquantity = '85', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1938';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 904, 0, 0
                    , 400.00, 85.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+85.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3091
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('904', '2', '85.00', '0', '1123', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '85', '1', '2026-10-14','0','0'); -- id=7856
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '903', '50.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1124
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '903';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 903, 0, 0
                    , 390.00, -50, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 390.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3092
UPDATE storemovement SET  buyPricesHistoryBookData = "50.00*2026-10-14*390.00," WHERE transferproductid = 1124;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('903', '1', '50.00', '1', '1124', 'تحويل منتجات من المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=7857
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1937';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 903, 0, 0
                    , 390.00, 50.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3093
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('903', '2', '50.00', '0', '1124', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=7858
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '902', '90.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1125
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '902';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 902, 0, 0
                    , 430.00, -90, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-90, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3094
UPDATE storemovement SET  buyPricesHistoryBookData = "90.00*2026-10-14*430.00," WHERE transferproductid = 1125;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('902', '1', '90.00', '1', '1125', 'تحويل منتجات من المخزن', 'storemovementController.php', '90', '0', '1', '2026-10-14','0','0'); -- id=7859
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1936';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 902, 0, 0
                    , 430.00, 90.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+90.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3095
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('902', '2', '90.00', '0', '1125', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '90', '1', '2026-10-14','0','0'); -- id=7860
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '901', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1126
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '901';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 901, 0, 0
                    , 395.00, -5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 395.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3096
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*395.00," WHERE transferproductid = 1126;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('901', '1', '5.00', '1', '1126', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7861
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1935';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 901, 0, 0
                    , 395.00, 5.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3097
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('901', '2', '5.00', '0', '1126', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7862
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '900', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1127
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '900';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 900, 0, 0
                    , 330.00, -60, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3098
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*330.00," WHERE transferproductid = 1127;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('900', '1', '60.00', '1', '1127', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=7863
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1934';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 900, 0, 0
                    , 330.00, 60.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3099
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('900', '2', '60.00', '0', '1127', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=7864
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '899', '35.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1128
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '899';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 899, 0, 0
                    , 350.00, -35, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 350.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3100
UPDATE storemovement SET  buyPricesHistoryBookData = "35.00*2026-10-14*350.00," WHERE transferproductid = 1128;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('899', '1', '35.00', '1', '1128', 'تحويل منتجات من المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=7865
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1933';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 899, 0, 0
                    , 350.00, 35.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3101
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('899', '2', '35.00', '0', '1128', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=7866
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '898', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1129
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '898';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 898, 0, 0
                    , 380.00, -15, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 380.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3102
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*380.00," WHERE transferproductid = 1129;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('898', '1', '15.00', '1', '1129', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7867
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1932';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 898, 0, 0
                    , 380.00, 15.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3103
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('898', '2', '15.00', '0', '1129', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7868
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '897', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1130
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '897';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 897, 0, 0
                    , 270.00, -30, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3104
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*270.00," WHERE transferproductid = 1130;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('897', '1', '30.00', '1', '1130', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=7869
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1931';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 897, 0, 0
                    , 270.00, 30.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3105
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('897', '2', '30.00', '0', '1130', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=7870
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '896', '13.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1131
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '896';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 896, 0, 0
                    , 270.00, -13, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3106
UPDATE storemovement SET  buyPricesHistoryBookData = "13.00*2026-10-14*270.00," WHERE transferproductid = 1131;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('896', '1', '13.00', '1', '1131', 'تحويل منتجات من المخزن', 'storemovementController.php', '13', '0', '1', '2026-10-14','0','0'); -- id=7871
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1930';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 896, 0, 0
                    , 270.00, 13.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3107
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('896', '2', '13.00', '0', '1131', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2026-10-14','0','0'); -- id=7872
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '895', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1132
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '895';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 895, 0, 0
                    , 270.00, -40, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3108
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*270.00," WHERE transferproductid = 1132;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('895', '1', '40.00', '1', '1132', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=7873
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1929';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 895, 0, 0
                    , 270.00, 40.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3109
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('895', '2', '40.00', '0', '1132', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=7874
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '894', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1133
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '894';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 894, 0, 0
                    , 330.00, -5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3110
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*330.00," WHERE transferproductid = 1133;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('894', '1', '5.00', '1', '1133', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7875
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1928';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 894, 0, 0
                    , 330.00, 5.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3111
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('894', '2', '5.00', '0', '1133', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7876
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '893', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1134
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '893';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1134;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('893', '1', '0.00', '1', '1134', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7877
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1927';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('893', '2', '0.00', '0', '1134', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7878
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '892', '185.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1135
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '892';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 892, 0, 0
                    , 310.00, -185, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-185, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3112
UPDATE storemovement SET  buyPricesHistoryBookData = "185.00*2026-10-14*310.00," WHERE transferproductid = 1135;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('892', '1', '185.00', '1', '1135', 'تحويل منتجات من المخزن', 'storemovementController.php', '185', '0', '1', '2026-10-14','0','0'); -- id=7879
UPDATE storedetail SET  productquantity = '185', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1926';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 892, 0, 0
                    , 310.00, 185.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+185.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3113
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('892', '2', '185.00', '0', '1135', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '185', '1', '2026-10-14','0','0'); -- id=7880
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '891', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1136
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '891';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1136;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('891', '1', '0.00', '1', '1136', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7881
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1925';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('891', '2', '0.00', '0', '1136', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7882
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '890', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1137
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '890';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 890, 0, 0
                    , 340.00, -40, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3114
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*340.00," WHERE transferproductid = 1137;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('890', '1', '40.00', '1', '1137', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=7883
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1924';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 890, 0, 0
                    , 340.00, 40.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3115
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('890', '2', '40.00', '0', '1137', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=7884
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '889', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1138
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '889';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 889, 0, 0
                    , 410.00, -30, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3116
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*410.00," WHERE transferproductid = 1138;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('889', '1', '30.00', '1', '1138', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=7885
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1923';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 889, 0, 0
                    , 410.00, 30.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3117
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('889', '2', '30.00', '0', '1138', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=7886
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '888', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1139
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '888';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 888, 0, 0
                    , 400.00, -60, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3118
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*400.00," WHERE transferproductid = 1139;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('888', '1', '60.00', '1', '1139', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=7887
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1922';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 888, 0, 0
                    , 400.00, 60.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3119
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('888', '2', '60.00', '0', '1139', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=7888
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '887', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1140
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '887';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 887, 0, 0
                    , 365.00, -40, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 365.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3120
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*365.00," WHERE transferproductid = 1140;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('887', '1', '40.00', '1', '1140', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=7889
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1921';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 887, 0, 0
                    , 365.00, 40.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3121
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('887', '2', '40.00', '0', '1140', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=7890
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '886', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1141
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '886';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 886, 0, 0
                    , 360.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3122
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*360.00," WHERE transferproductid = 1141;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('886', '1', '10.00', '1', '1141', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7891
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1920';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 886, 0, 0
                    , 360.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3123
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('886', '2', '10.00', '0', '1141', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7892
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '885', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1142
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '885';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 885, 0, 0
                    , 355.00, -25, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 355.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3124
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*355.00," WHERE transferproductid = 1142;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('885', '1', '25.00', '1', '1142', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7893
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1919';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 885, 0, 0
                    , 355.00, 25.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3125
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('885', '2', '25.00', '0', '1142', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7894
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '884', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1143
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '884';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 884, 0, 0
                    , 340.00, -30, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3126
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*340.00," WHERE transferproductid = 1143;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('884', '1', '30.00', '1', '1143', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=7895
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1918';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 884, 0, 0
                    , 340.00, 30.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3127
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('884', '2', '30.00', '0', '1143', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=7896
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '883', '45.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1144
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '883';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 883, 0, 0
                    , 320.00, -45, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3128
UPDATE storemovement SET  buyPricesHistoryBookData = "45.00*2026-10-14*320.00," WHERE transferproductid = 1144;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('883', '1', '45.00', '1', '1144', 'تحويل منتجات من المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=7897
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1917';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 883, 0, 0
                    , 320.00, 45.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3129
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('883', '2', '45.00', '0', '1144', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=7898
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '882', '96.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1145
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '882';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 882, 0, 0
                    , 320.00, -96, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-96, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3130
UPDATE storemovement SET  buyPricesHistoryBookData = "96.00*2026-10-14*320.00," WHERE transferproductid = 1145;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('882', '1', '96.00', '1', '1145', 'تحويل منتجات من المخزن', 'storemovementController.php', '96', '0', '1', '2026-10-14','0','0'); -- id=7899
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1916';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 882, 0, 0
                    , 320.00, 96.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+96.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3131
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('882', '2', '96.00', '0', '1145', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '96', '1', '2026-10-14','0','0'); -- id=7900
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '881', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1146
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '881';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 881, 0, 0
                    , 340.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3132
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*340.00," WHERE transferproductid = 1146;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('881', '1', '10.00', '1', '1146', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7901
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1915';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 881, 0, 0
                    , 340.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3133
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('881', '2', '10.00', '0', '1146', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7902
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '880', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1147
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '880';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 880, 0, 0
                    , 325.00, -24, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 325.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3134
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-14*325.00," WHERE transferproductid = 1147;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('880', '1', '24.00', '1', '1147', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=7903
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1914';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 880, 0, 0
                    , 325.00, 24.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3135
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('880', '2', '24.00', '0', '1147', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=7904
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '879', '4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1148
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '879';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 879, 0, 0
                    , 345.00, -4, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 345.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3136
UPDATE storemovement SET  buyPricesHistoryBookData = "4.00*2026-10-14*345.00," WHERE transferproductid = 1148;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('879', '1', '4.00', '1', '1148', 'تحويل منتجات من المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=7905
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1913';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 879, 0, 0
                    , 345.00, 4.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3137
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('879', '2', '4.00', '0', '1148', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=7906
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '878', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1149
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '878';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1149;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('878', '1', '0.00', '1', '1149', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7907
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1912';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('878', '2', '0.00', '0', '1149', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=7908
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '877', '72.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1150
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '877';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 877, 0, 0
                    , 320.00, -72, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3138
UPDATE storemovement SET  buyPricesHistoryBookData = "72.00*2026-10-14*320.00," WHERE transferproductid = 1150;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('877', '1', '72.00', '1', '1150', 'تحويل منتجات من المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=7909
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1911';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 877, 0, 0
                    , 320.00, 72.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3139
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('877', '2', '72.00', '0', '1150', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '72', '1', '2026-10-14','0','0'); -- id=7910
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '876', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1151
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '876';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 876, 0, 0
                    , 340.00, -10, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3140
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*340.00," WHERE transferproductid = 1151;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('876', '1', '10.00', '1', '1151', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=7911
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1910';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 876, 0, 0
                    , 340.00, 10.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3141
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('876', '2', '10.00', '0', '1151', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=7912
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '875', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1152
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '875';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 875, 0, 0
                    , 340.00, -15, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3142
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*340.00," WHERE transferproductid = 1152;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('875', '1', '15.00', '1', '1152', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7913
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1909';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 875, 0, 0
                    , 340.00, 15.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3143
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('875', '2', '15.00', '0', '1152', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7914
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '874', '13.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1153
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '874';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 874, 0, 0
                    , 300.00, -13, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-13, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3144
UPDATE storemovement SET  buyPricesHistoryBookData = "13.00*2026-10-14*300.00," WHERE transferproductid = 1153;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('874', '1', '13.00', '1', '1153', 'تحويل منتجات من المخزن', 'storemovementController.php', '13', '0', '1', '2026-10-14','0','0'); -- id=7915
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1908';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 874, 0, 0
                    , 300.00, 13.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3145
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('874', '2', '13.00', '0', '1153', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '13', '1', '2026-10-14','0','0'); -- id=7916
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '873', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1154
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '873';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 873, 0, 0
                    , 340.00, -5, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3146
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*340.00," WHERE transferproductid = 1154;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('873', '1', '5.00', '1', '1154', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=7917
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1907';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 873, 0, 0
                    , 340.00, 5.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3147
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('873', '2', '5.00', '0', '1154', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=7918
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '872', '55.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1155
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '872';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 872, 0, 0
                    , 290.00, -55, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 290.00,
                        buyQuantity =buyQuantity+-55, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3148
UPDATE storemovement SET  buyPricesHistoryBookData = "55.00*2026-10-14*290.00," WHERE transferproductid = 1155;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('872', '1', '55.00', '1', '1155', 'تحويل منتجات من المخزن', 'storemovementController.php', '55', '0', '1', '2026-10-14','0','0'); -- id=7919
UPDATE storedetail SET  productquantity = '55', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1906';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 872, 0, 0
                    , 290.00, 55.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+55.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3149
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('872', '2', '55.00', '0', '1155', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '55', '1', '2026-10-14','0','0'); -- id=7920
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '871', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1156
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '871';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 871, 0, 0
                    , 280.00, -40, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3150
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*280.00," WHERE transferproductid = 1156;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('871', '1', '40.00', '1', '1156', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=7921
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1905';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 871, 0, 0
                    , 280.00, 40.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3151
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('871', '2', '40.00', '0', '1156', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=7922
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '870', '-5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1157
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '870';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1157;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('870', '1', '-5.00', '1', '1157', 'تحويل منتجات من المخزن', 'storemovementController.php', '-5', '0', '1', '2026-10-14','0','0'); -- id=7923
UPDATE storedetail SET  productquantity = '-5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1904';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('870', '2', '-5.00', '0', '1157', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-5', '1', '2026-10-14','0','0'); -- id=7924
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '869', '-1.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1158
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '869';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1158;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('869', '1', '-1.00', '1', '1158', 'تحويل منتجات من المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=7925
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1903';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('869', '2', '-1.00', '0', '1158', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=7926
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '868', '-1.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1159
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '868';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1159;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('868', '1', '-1.00', '1', '1159', 'تحويل منتجات من المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=7927
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1902';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('868', '2', '-1.00', '0', '1159', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=7928
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '867', '174.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1160
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '867';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 867, 0, 0
                    , 250.00, -174, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-174, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3152
UPDATE storemovement SET  buyPricesHistoryBookData = "174.00*2026-10-14*250.00," WHERE transferproductid = 1160;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('867', '1', '174.00', '1', '1160', 'تحويل منتجات من المخزن', 'storemovementController.php', '174', '0', '1', '2026-10-14','0','0'); -- id=7929
UPDATE storedetail SET  productquantity = '174', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1901';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 867, 0, 0
                    , 250.00, 174.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+174.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3153
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('867', '2', '174.00', '0', '1160', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '174', '1', '2026-10-14','0','0'); -- id=7930
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '866', '92.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1161
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '866';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 866, 0, 0
                    , 315.00, -92, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 315.00,
                        buyQuantity =buyQuantity+-92, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3154
UPDATE storemovement SET  buyPricesHistoryBookData = "92.00*2026-10-14*315.00," WHERE transferproductid = 1161;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('866', '1', '92.00', '1', '1161', 'تحويل منتجات من المخزن', 'storemovementController.php', '92', '0', '1', '2026-10-14','0','0'); -- id=7931
UPDATE storedetail SET  productquantity = '92', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1900';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 866, 0, 0
                    , 315.00, 92.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+92.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3155
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('866', '2', '92.00', '0', '1161', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '92', '1', '2026-10-14','0','0'); -- id=7932
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '865', '384.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1162
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '865';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 865, 0, 0
                    , 320.00, -384, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-384, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3156
UPDATE storemovement SET  buyPricesHistoryBookData = "384.00*2026-10-14*320.00," WHERE transferproductid = 1162;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('865', '1', '384.00', '1', '1162', 'تحويل منتجات من المخزن', 'storemovementController.php', '384', '0', '1', '2026-10-14','0','0'); -- id=7933
UPDATE storedetail SET  productquantity = '384', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1899';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 865, 0, 0
                    , 320.00, 384.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+384.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3157
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('865', '2', '384.00', '0', '1162', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '384', '1', '2026-10-14','0','0'); -- id=7934
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '864', '385.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1163
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '864';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 864, 0, 0
                    , 310.00, -385, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-385, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3158
UPDATE storemovement SET  buyPricesHistoryBookData = "385.00*2026-10-14*310.00," WHERE transferproductid = 1163;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('864', '1', '385.00', '1', '1163', 'تحويل منتجات من المخزن', 'storemovementController.php', '385', '0', '1', '2026-10-14','0','0'); -- id=7935
UPDATE storedetail SET  productquantity = '385', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1898';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 864, 0, 0
                    , 310.00, 385.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+385.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3159
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('864', '2', '385.00', '0', '1163', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '385', '1', '2026-10-14','0','0'); -- id=7936
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '863', '433.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1164
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '863';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 863, 0, 0
                    , 300.00, -433, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-433, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3160
UPDATE storemovement SET  buyPricesHistoryBookData = "433.00*2026-10-14*300.00," WHERE transferproductid = 1164;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('863', '1', '433.00', '1', '1164', 'تحويل منتجات من المخزن', 'storemovementController.php', '433', '0', '1', '2026-10-14','0','0'); -- id=7937
UPDATE storedetail SET  productquantity = '433', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1897';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 863, 0, 0
                    , 300.00, 433.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+433.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3161
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('863', '2', '433.00', '0', '1164', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '433', '1', '2026-10-14','0','0'); -- id=7938
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '862', '1630.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1165
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '862';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 862, 0, 0
                    , 280.00, -1630, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-1630, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3162
UPDATE storemovement SET  buyPricesHistoryBookData = "1630.00*2026-10-14*280.00," WHERE transferproductid = 1165;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('862', '1', '1630.00', '1', '1165', 'تحويل منتجات من المخزن', 'storemovementController.php', '1630', '0', '1', '2026-10-14','0','0'); -- id=7939
UPDATE storedetail SET  productquantity = '1630', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1896';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 862, 0, 0
                    , 280.00, 1630.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1630.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3163
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('862', '2', '1630.00', '0', '1165', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1630', '1', '2026-10-14','0','0'); -- id=7940
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '861', '630.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1166
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '861';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 861, 0, 0
                    , 225.00, -630, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 225.00,
                        buyQuantity =buyQuantity+-630, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3164
UPDATE storemovement SET  buyPricesHistoryBookData = "630.00*2026-10-14*225.00," WHERE transferproductid = 1166;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('861', '1', '630.00', '1', '1166', 'تحويل منتجات من المخزن', 'storemovementController.php', '630', '0', '1', '2026-10-14','0','0'); -- id=7941
UPDATE storedetail SET  productquantity = '630', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1895';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 861, 0, 0
                    , 225.00, 630.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+630.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3165
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('861', '2', '630.00', '0', '1166', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '630', '1', '2026-10-14','0','0'); -- id=7942
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '860', '235.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1167
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '860';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 860, 0, 0
                    , 280.00, -235, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-235, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3166
UPDATE storemovement SET  buyPricesHistoryBookData = "235.00*2026-10-14*280.00," WHERE transferproductid = 1167;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('860', '1', '235.00', '1', '1167', 'تحويل منتجات من المخزن', 'storemovementController.php', '235', '0', '1', '2026-10-14','0','0'); -- id=7943
UPDATE storedetail SET  productquantity = '235', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1894';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 860, 0, 0
                    , 280.00, 235.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+235.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3167
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('860', '2', '235.00', '0', '1167', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '235', '1', '2026-10-14','0','0'); -- id=7944
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '859', '643.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1168
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '859';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 859, 0, 0
                    , 225.00, -643, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 225.00,
                        buyQuantity =buyQuantity+-643, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3168
UPDATE storemovement SET  buyPricesHistoryBookData = "643.00*2026-10-14*225.00," WHERE transferproductid = 1168;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('859', '1', '643.00', '1', '1168', 'تحويل منتجات من المخزن', 'storemovementController.php', '643', '0', '1', '2026-10-14','0','0'); -- id=7945
UPDATE storedetail SET  productquantity = '643', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1893';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 859, 0, 0
                    , 225.00, 643.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+643.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3169
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('859', '2', '643.00', '0', '1168', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '643', '1', '2026-10-14','0','0'); -- id=7946
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '858', '115.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:22','0','','0','','0','0','0','','','','0','0','','0'); -- id=1169
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '858';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 858, 0, 0
                    , 225.00, -115, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyprice = 225.00,
                        buyQuantity =buyQuantity+-115, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3170
UPDATE storemovement SET  buyPricesHistoryBookData = "115.00*2026-10-14*225.00," WHERE transferproductid = 1169;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('858', '1', '115.00', '1', '1169', 'تحويل منتجات من المخزن', 'storemovementController.php', '115', '0', '1', '2026-10-14','0','0'); -- id=7947
UPDATE storedetail SET  productquantity = '115', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1892';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 858, 0, 0
                    , 225.00, 115.00, 0, 0, 1, '2026-10-14 18:00:22')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+115.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:22' ; -- id=3171
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('858', '2', '115.00', '0', '1169', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '115', '1', '2026-10-14','0','0'); -- id=7948
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '857', '127.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1170
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '857';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 857, 0, 0
                    , 210.00, -127, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-127, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3172
UPDATE storemovement SET  buyPricesHistoryBookData = "127.00*2026-10-14*210.00," WHERE transferproductid = 1170;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('857', '1', '127.00', '1', '1170', 'تحويل منتجات من المخزن', 'storemovementController.php', '127', '0', '1', '2026-10-14','0','0'); -- id=7949
UPDATE storedetail SET  productquantity = '127', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1891';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 857, 0, 0
                    , 210.00, 127.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+127.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3173
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('857', '2', '127.00', '0', '1170', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '127', '1', '2026-10-14','0','0'); -- id=7950
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '856', '417.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1171
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '856';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 856, 0, 0
                    , 240.00, -417, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-417, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3174
UPDATE storemovement SET  buyPricesHistoryBookData = "417.00*2026-10-14*240.00," WHERE transferproductid = 1171;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('856', '1', '417.00', '1', '1171', 'تحويل منتجات من المخزن', 'storemovementController.php', '417', '0', '1', '2026-10-14','0','0'); -- id=7951
UPDATE storedetail SET  productquantity = '417', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1890';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 856, 0, 0
                    , 240.00, 417.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+417.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3175
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('856', '2', '417.00', '0', '1171', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '417', '1', '2026-10-14','0','0'); -- id=7952
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '855', '1020.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1172
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '855';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 855, 0, 0
                    , 195.00, -1020, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 195.00,
                        buyQuantity =buyQuantity+-1020, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3176
UPDATE storemovement SET  buyPricesHistoryBookData = "1020.00*2026-10-14*195.00," WHERE transferproductid = 1172;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('855', '1', '1020.00', '1', '1172', 'تحويل منتجات من المخزن', 'storemovementController.php', '1020', '0', '1', '2026-10-14','0','0'); -- id=7953
UPDATE storedetail SET  productquantity = '1020', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1889';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 855, 0, 0
                    , 195.00, 1020.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1020.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3177
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('855', '2', '1020.00', '0', '1172', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1020', '1', '2026-10-14','0','0'); -- id=7954
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '854', '240.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1173
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '854';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 854, 0, 0
                    , 235.00, -240, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 235.00,
                        buyQuantity =buyQuantity+-240, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3178
UPDATE storemovement SET  buyPricesHistoryBookData = "240.00*2026-10-14*235.00," WHERE transferproductid = 1173;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('854', '1', '240.00', '1', '1173', 'تحويل منتجات من المخزن', 'storemovementController.php', '240', '0', '1', '2026-10-14','0','0'); -- id=7955
UPDATE storedetail SET  productquantity = '240', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1888';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 854, 0, 0
                    , 235.00, 240.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+240.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3179
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('854', '2', '240.00', '0', '1173', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '240', '1', '2026-10-14','0','0'); -- id=7956
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '853', '1432.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1174
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '853';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 853, 0, 0
                    , 145.00, -1432, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 145.00,
                        buyQuantity =buyQuantity+-1432, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3180
UPDATE storemovement SET  buyPricesHistoryBookData = "1432.00*2026-10-14*145.00," WHERE transferproductid = 1174;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('853', '1', '1432.00', '1', '1174', 'تحويل منتجات من المخزن', 'storemovementController.php', '1432', '0', '1', '2026-10-14','0','0'); -- id=7957
UPDATE storedetail SET  productquantity = '1432', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1887';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 853, 0, 0
                    , 145.00, 1432.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1432.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3181
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('853', '2', '1432.00', '0', '1174', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1432', '1', '2026-10-14','0','0'); -- id=7958
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '852', '1236.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1175
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '852';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 852, 0, 0
                    , 255.00, -1236, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 255.00,
                        buyQuantity =buyQuantity+-1236, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3182
UPDATE storemovement SET  buyPricesHistoryBookData = "1236.00*2026-10-14*255.00," WHERE transferproductid = 1175;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('852', '1', '1236.00', '1', '1175', 'تحويل منتجات من المخزن', 'storemovementController.php', '1236', '0', '1', '2026-10-14','0','0'); -- id=7959
UPDATE storedetail SET  productquantity = '1236', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1886';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 852, 0, 0
                    , 255.00, 1236.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1236.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3183
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('852', '2', '1236.00', '0', '1175', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1236', '1', '2026-10-14','0','0'); -- id=7960
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '851', '95.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1176
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '851';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 851, 0, 0
                    , 405.00, -95, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 405.00,
                        buyQuantity =buyQuantity+-95, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3184
UPDATE storemovement SET  buyPricesHistoryBookData = "95.00*2026-10-14*405.00," WHERE transferproductid = 1176;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('851', '1', '95.00', '1', '1176', 'تحويل منتجات من المخزن', 'storemovementController.php', '95', '0', '1', '2026-10-14','0','0'); -- id=7961
UPDATE storedetail SET  productquantity = '95', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1885';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 851, 0, 0
                    , 405.00, 95.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+95.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3185
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('851', '2', '95.00', '0', '1176', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '95', '1', '2026-10-14','0','0'); -- id=7962
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '850', '125.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1177
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '850';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 850, 0, 0
                    , 390.00, 40, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=491
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 850, 0, 0
                    , 390.00, -85, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 390.00,
                        buyQuantity =buyQuantity+-85, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3187
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-07*390.00,85*2026-10-14*390.00," WHERE transferproductid = 1177;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('850', '1', '125.00', '1', '1177', 'تحويل منتجات من المخزن', 'storemovementController.php', '125', '0', '1', '2026-10-14','0','0'); -- id=7963
UPDATE storedetail SET  productquantity = '125', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1884';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 850, 0, 0
                    , 390.00, 40, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3188
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 850, 0, 0
                    , 390.00, 85, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+85, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3189
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('850', '2', '125.00', '0', '1177', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '125', '1', '2026-10-14','0','0'); -- id=7964
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '849', '105.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1178
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '849';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 849, 0, 0
                    , 430.00, -105, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-105, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3190
UPDATE storemovement SET  buyPricesHistoryBookData = "105.00*2026-10-14*430.00," WHERE transferproductid = 1178;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('849', '1', '105.00', '1', '1178', 'تحويل منتجات من المخزن', 'storemovementController.php', '105', '0', '1', '2026-10-14','0','0'); -- id=7965
UPDATE storedetail SET  productquantity = '105', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1883';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 849, 0, 0
                    , 430.00, 105.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+105.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3191
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('849', '2', '105.00', '0', '1178', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '105', '1', '2026-10-14','0','0'); -- id=7966
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '848', '139.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1179
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '848';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 848, 0, 0
                    , 340.00, -139, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-139, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3192
UPDATE storemovement SET  buyPricesHistoryBookData = "139.00*2026-10-14*340.00," WHERE transferproductid = 1179;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('848', '1', '139.00', '1', '1179', 'تحويل منتجات من المخزن', 'storemovementController.php', '139', '0', '1', '2026-10-14','0','0'); -- id=7967
UPDATE storedetail SET  productquantity = '139', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1882';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 848, 0, 0
                    , 340.00, 139.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+139.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3193
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('848', '2', '139.00', '0', '1179', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '139', '1', '2026-10-14','0','0'); -- id=7968
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '847', '48.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1180
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '847';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 847, 0, 0
                    , 370.00, -48, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 370.00,
                        buyQuantity =buyQuantity+-48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3194
UPDATE storemovement SET  buyPricesHistoryBookData = "48.00*2026-10-14*370.00," WHERE transferproductid = 1180;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('847', '1', '48.00', '1', '1180', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=7969
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1881';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 847, 0, 0
                    , 370.00, 48.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3195
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('847', '2', '48.00', '0', '1180', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=7970
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '846', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1181
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '846';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 846, 0, 0
                    , 510.00, -18, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 510.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3196
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-14*510.00," WHERE transferproductid = 1181;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('846', '1', '18.00', '1', '1181', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=7971
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1880';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 846, 0, 0
                    , 510.00, 18.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3197
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('846', '2', '18.00', '0', '1181', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=7972
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '845', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1182
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '845';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 845, 0, 0
                    , 480.00, -27, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 480.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3198
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-14*480.00," WHERE transferproductid = 1182;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('845', '1', '27.00', '1', '1182', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=7973
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1879';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 845, 0, 0
                    , 480.00, 27.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3199
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('845', '2', '27.00', '0', '1182', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=7974
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '844', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1183
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '844';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 844, 0, 0
                    , 490.00, -18, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 490.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3200
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-14*490.00," WHERE transferproductid = 1183;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('844', '1', '18.00', '1', '1183', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=7975
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1878';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 844, 0, 0
                    , 490.00, 18.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3201
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('844', '2', '18.00', '0', '1183', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=7976
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '843', '95.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1184
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '843';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 843, 0, 0
                    , 255.00, -95, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 255.00,
                        buyQuantity =buyQuantity+-95, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3202
UPDATE storemovement SET  buyPricesHistoryBookData = "95.00*2026-10-14*255.00," WHERE transferproductid = 1184;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('843', '1', '95.00', '1', '1184', 'تحويل منتجات من المخزن', 'storemovementController.php', '95', '0', '1', '2026-10-14','0','0'); -- id=7977
UPDATE storedetail SET  productquantity = '95', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1877';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 843, 0, 0
                    , 255.00, 95.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+95.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3203
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('843', '2', '95.00', '0', '1184', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '95', '1', '2026-10-14','0','0'); -- id=7978
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '842', '99.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1185
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '842';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 842, 0, 0
                    , 400.00, -99, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-99, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3204
UPDATE storemovement SET  buyPricesHistoryBookData = "99.00*2026-10-14*400.00," WHERE transferproductid = 1185;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('842', '1', '99.00', '1', '1185', 'تحويل منتجات من المخزن', 'storemovementController.php', '99', '0', '1', '2026-10-14','0','0'); -- id=7979
UPDATE storedetail SET  productquantity = '99', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1876';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 842, 0, 0
                    , 400.00, 99.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+99.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3205
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('842', '2', '99.00', '0', '1185', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '99', '1', '2026-10-14','0','0'); -- id=7980
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '841', '50.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1186
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '841';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 841, 0, 0
                    , 430.00, -50, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3206
UPDATE storemovement SET  buyPricesHistoryBookData = "50.00*2026-10-14*430.00," WHERE transferproductid = 1186;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('841', '1', '50.00', '1', '1186', 'تحويل منتجات من المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=7981
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1875';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 841, 0, 0
                    , 430.00, 50.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3207
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('841', '2', '50.00', '0', '1186', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=7982
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '840', '35.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1187
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '840';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 840, 0, 0
                    , 375.00, -35, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 375.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3208
UPDATE storemovement SET  buyPricesHistoryBookData = "35.00*2026-10-14*375.00," WHERE transferproductid = 1187;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('840', '1', '35.00', '1', '1187', 'تحويل منتجات من المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=7983
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1874';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 840, 0, 0
                    , 375.00, 35.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3209
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('840', '2', '35.00', '0', '1187', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=7984
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '839', '144.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1188
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '839';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 839, 0, 0
                    , 345.00, -144, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 345.00,
                        buyQuantity =buyQuantity+-144, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3210
UPDATE storemovement SET  buyPricesHistoryBookData = "144.00*2026-10-14*345.00," WHERE transferproductid = 1188;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('839', '1', '144.00', '1', '1188', 'تحويل منتجات من المخزن', 'storemovementController.php', '144', '0', '1', '2026-10-14','0','0'); -- id=7985
UPDATE storedetail SET  productquantity = '144', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1873';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 839, 0, 0
                    , 345.00, 144.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+144.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3211
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('839', '2', '144.00', '0', '1188', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '144', '1', '2026-10-14','0','0'); -- id=7986
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '838', '35.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1189
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '838';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 838, 0, 0
                    , 305.00, -35, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 305.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3212
UPDATE storemovement SET  buyPricesHistoryBookData = "35.00*2026-10-14*305.00," WHERE transferproductid = 1189;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('838', '1', '35.00', '1', '1189', 'تحويل منتجات من المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=7987
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1872';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 838, 0, 0
                    , 305.00, 35.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3213
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('838', '2', '35.00', '0', '1189', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=7988
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '837', '47.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1190
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '837';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 837, 0, 0
                    , 295.00, -47, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 295.00,
                        buyQuantity =buyQuantity+-47, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3214
UPDATE storemovement SET  buyPricesHistoryBookData = "47.00*2026-10-14*295.00," WHERE transferproductid = 1190;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('837', '1', '47.00', '1', '1190', 'تحويل منتجات من المخزن', 'storemovementController.php', '47', '0', '1', '2026-10-14','0','0'); -- id=7989
UPDATE storedetail SET  productquantity = '47', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1871';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 837, 0, 0
                    , 295.00, 47.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+47.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3215
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('837', '2', '47.00', '0', '1190', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '47', '1', '2026-10-14','0','0'); -- id=7990
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '836', '44.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1191
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '836';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 836, 0, 0
                    , 430.00, -44, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3216
UPDATE storemovement SET  buyPricesHistoryBookData = "44.00*2026-10-14*430.00," WHERE transferproductid = 1191;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('836', '1', '44.00', '1', '1191', 'تحويل منتجات من المخزن', 'storemovementController.php', '44', '0', '1', '2026-10-14','0','0'); -- id=7991
UPDATE storedetail SET  productquantity = '44', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1870';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 836, 0, 0
                    , 430.00, 44.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+44.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3217
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('836', '2', '44.00', '0', '1191', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '44', '1', '2026-10-14','0','0'); -- id=7992
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '835', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1192
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '835';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 835, 0, 0
                    , 530.00, -18, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 530.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3218
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-14*530.00," WHERE transferproductid = 1192;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('835', '1', '18.00', '1', '1192', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=7993
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1869';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 835, 0, 0
                    , 530.00, 18.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3219
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('835', '2', '18.00', '0', '1192', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=7994
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '834', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1193
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '834';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 834, 0, 0
                    , 315.00, -15, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 315.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3220
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*315.00," WHERE transferproductid = 1193;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('834', '1', '15.00', '1', '1193', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=7995
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1868';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 834, 0, 0
                    , 315.00, 15.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3221
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('834', '2', '15.00', '0', '1193', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=7996
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '833', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1194
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '833';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 1, 833, 0, 0
                    , 430.00, 21, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=7
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 833, 0, 0
                    , 430.00, -4, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3223
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-09-29*430.00,4*2026-10-14*430.00," WHERE transferproductid = 1194;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('833', '1', '25.00', '1', '1194', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=7997
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1867';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 2, 833, 0, 0
                    , 430.00, 21, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3224
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 833, 0, 0
                    , 430.00, 4, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3225
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('833', '2', '25.00', '0', '1194', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=7998
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '832', '39.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1195
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '832';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 832, 0, 0
                    , 380.00, -39, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 380.00,
                        buyQuantity =buyQuantity+-39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3226
UPDATE storemovement SET  buyPricesHistoryBookData = "39.00*2026-10-14*380.00," WHERE transferproductid = 1195;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('832', '1', '39.00', '1', '1195', 'تحويل منتجات من المخزن', 'storemovementController.php', '39', '0', '1', '2026-10-14','0','0'); -- id=7999
UPDATE storedetail SET  productquantity = '39', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1866';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 832, 0, 0
                    , 380.00, 39.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3227
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('832', '2', '39.00', '0', '1195', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '39', '1', '2026-10-14','0','0'); -- id=8000
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '831', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1196
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '831';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 831, 0, 0
                    , 500.00, -5, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 500.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3228
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*500.00," WHERE transferproductid = 1196;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('831', '1', '5.00', '1', '1196', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8001
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1865';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 831, 0, 0
                    , 500.00, 5.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3229
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('831', '2', '5.00', '0', '1196', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8002
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '830', '11.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1197
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '830';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 830, 0, 0
                    , 400.00, -11, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 400.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3230
UPDATE storemovement SET  buyPricesHistoryBookData = "11.00*2026-10-14*400.00," WHERE transferproductid = 1197;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('830', '1', '11.00', '1', '1197', 'تحويل منتجات من المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=8003
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1864';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 830, 0, 0
                    , 400.00, 11.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3231
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('830', '2', '11.00', '0', '1197', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=8004
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '829', '138.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1198
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '829';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 829, 0, 0
                    , 520.00, -138, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 520.00,
                        buyQuantity =buyQuantity+-138, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3232
UPDATE storemovement SET  buyPricesHistoryBookData = "138.00*2026-10-14*520.00," WHERE transferproductid = 1198;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('829', '1', '138.00', '1', '1198', 'تحويل منتجات من المخزن', 'storemovementController.php', '138', '0', '1', '2026-10-14','0','0'); -- id=8005
UPDATE storedetail SET  productquantity = '138', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1863';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 829, 0, 0
                    , 520.00, 138.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+138.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3233
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('829', '2', '138.00', '0', '1198', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '138', '1', '2026-10-14','0','0'); -- id=8006
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '828', '64.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1199
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '828';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 828, 0, 0
                    , 240.00, -64, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-64, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3234
UPDATE storemovement SET  buyPricesHistoryBookData = "64.00*2026-10-14*240.00," WHERE transferproductid = 1199;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('828', '1', '64.00', '1', '1199', 'تحويل منتجات من المخزن', 'storemovementController.php', '64', '0', '1', '2026-10-14','0','0'); -- id=8007
UPDATE storedetail SET  productquantity = '64', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1862';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 828, 0, 0
                    , 240.00, 64.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+64.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3235
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('828', '2', '64.00', '0', '1199', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '64', '1', '2026-10-14','0','0'); -- id=8008
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '827', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1200
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '827';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 827, 0, 0
                    , 240.00, -5, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3236
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*240.00," WHERE transferproductid = 1200;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('827', '1', '5.00', '1', '1200', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8009
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1861';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 827, 0, 0
                    , 240.00, 5.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3237
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('827', '2', '5.00', '0', '1200', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8010
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '826', '335.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1201
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '826';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 826, 0, 0
                    , 270.00, -335, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-335, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3238
UPDATE storemovement SET  buyPricesHistoryBookData = "335.00*2026-10-14*270.00," WHERE transferproductid = 1201;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('826', '1', '335.00', '1', '1201', 'تحويل منتجات من المخزن', 'storemovementController.php', '335', '0', '1', '2026-10-14','0','0'); -- id=8011
UPDATE storedetail SET  productquantity = '335', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1860';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 826, 0, 0
                    , 270.00, 335.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+335.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3239
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('826', '2', '335.00', '0', '1201', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '335', '1', '2026-10-14','0','0'); -- id=8012
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '825', '41.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1202
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '825';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 825, 0, 0
                    , 360.00, -41, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-41, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3240
UPDATE storemovement SET  buyPricesHistoryBookData = "41.00*2026-10-14*360.00," WHERE transferproductid = 1202;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('825', '1', '41.00', '1', '1202', 'تحويل منتجات من المخزن', 'storemovementController.php', '41', '0', '1', '2026-10-14','0','0'); -- id=8013
UPDATE storedetail SET  productquantity = '41', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1859';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 825, 0, 0
                    , 360.00, 41.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+41.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3241
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('825', '2', '41.00', '0', '1202', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '41', '1', '2026-10-14','0','0'); -- id=8014
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '824', '84.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1203
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '824';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 824, 0, 0
                    , 270.00, -84, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-84, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3242
UPDATE storemovement SET  buyPricesHistoryBookData = "84.00*2026-10-14*270.00," WHERE transferproductid = 1203;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('824', '1', '84.00', '1', '1203', 'تحويل منتجات من المخزن', 'storemovementController.php', '84', '0', '1', '2026-10-14','0','0'); -- id=8015
UPDATE storedetail SET  productquantity = '84', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1858';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 824, 0, 0
                    , 270.00, 84.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+84.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3243
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('824', '2', '84.00', '0', '1203', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '84', '1', '2026-10-14','0','0'); -- id=8016
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '823', '204.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1204
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '823';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 823, 0, 0
                    , 275.00, -204, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 275.00,
                        buyQuantity =buyQuantity+-204, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3244
UPDATE storemovement SET  buyPricesHistoryBookData = "204.00*2026-10-14*275.00," WHERE transferproductid = 1204;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('823', '1', '204.00', '1', '1204', 'تحويل منتجات من المخزن', 'storemovementController.php', '204', '0', '1', '2026-10-14','0','0'); -- id=8017
UPDATE storedetail SET  productquantity = '204', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1857';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 823, 0, 0
                    , 275.00, 204.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+204.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3245
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('823', '2', '204.00', '0', '1204', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '204', '1', '2026-10-14','0','0'); -- id=8018
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '822', '325.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1205
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '822';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 822, 0, 0
                    , 290.00, -325, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 290.00,
                        buyQuantity =buyQuantity+-325, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3246
UPDATE storemovement SET  buyPricesHistoryBookData = "325.00*2026-10-14*290.00," WHERE transferproductid = 1205;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('822', '1', '325.00', '1', '1205', 'تحويل منتجات من المخزن', 'storemovementController.php', '325', '0', '1', '2026-10-14','0','0'); -- id=8019
UPDATE storedetail SET  productquantity = '325', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1856';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 822, 0, 0
                    , 290.00, 325.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+325.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3247
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('822', '2', '325.00', '0', '1205', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '325', '1', '2026-10-14','0','0'); -- id=8020
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '821', '65.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1206
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '821';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 821, 0, 0
                    , 245.00, -65, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 245.00,
                        buyQuantity =buyQuantity+-65, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3248
UPDATE storemovement SET  buyPricesHistoryBookData = "65.00*2026-10-14*245.00," WHERE transferproductid = 1206;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('821', '1', '65.00', '1', '1206', 'تحويل منتجات من المخزن', 'storemovementController.php', '65', '0', '1', '2026-10-14','0','0'); -- id=8021
UPDATE storedetail SET  productquantity = '65', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1855';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 821, 0, 0
                    , 245.00, 65.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+65.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3249
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('821', '2', '65.00', '0', '1206', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '65', '1', '2026-10-14','0','0'); -- id=8022
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '820', '445.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1207
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '820';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 820, 0, 0
                    , 215.00, -445, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 215.00,
                        buyQuantity =buyQuantity+-445, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3250
UPDATE storemovement SET  buyPricesHistoryBookData = "445.00*2026-10-14*215.00," WHERE transferproductid = 1207;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('820', '1', '445.00', '1', '1207', 'تحويل منتجات من المخزن', 'storemovementController.php', '445', '0', '1', '2026-10-14','0','0'); -- id=8023
UPDATE storedetail SET  productquantity = '445', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1854';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 820, 0, 0
                    , 215.00, 445.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+445.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3251
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('820', '2', '445.00', '0', '1207', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '445', '1', '2026-10-14','0','0'); -- id=8024
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '819', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1208
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '819';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 819, 0, 0
                    , 240.00, -40, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3252
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*240.00," WHERE transferproductid = 1208;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('819', '1', '40.00', '1', '1208', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=8025
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1853';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 819, 0, 0
                    , 240.00, 40.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3253
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('819', '2', '40.00', '0', '1208', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=8026
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '818', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1209
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '818';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 818, 0, 0
                    , 240.00, -30, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3254
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*240.00," WHERE transferproductid = 1209;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('818', '1', '30.00', '1', '1209', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8027
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1852';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 818, 0, 0
                    , 240.00, 30.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3255
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('818', '2', '30.00', '0', '1209', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8028
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '817', '194.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1210
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '817';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 817, 0, 0
                    , 270.00, -194, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-194, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3256
UPDATE storemovement SET  buyPricesHistoryBookData = "194.00*2026-10-14*270.00," WHERE transferproductid = 1210;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('817', '1', '194.00', '1', '1210', 'تحويل منتجات من المخزن', 'storemovementController.php', '194', '0', '1', '2026-10-14','0','0'); -- id=8029
UPDATE storedetail SET  productquantity = '194', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1851';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 817, 0, 0
                    , 270.00, 194.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+194.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3257
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('817', '2', '194.00', '0', '1210', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '194', '1', '2026-10-14','0','0'); -- id=8030
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '816', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1211
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '816';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 816, 0, 0
                    , 250.00, -5, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3258
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*250.00," WHERE transferproductid = 1211;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('816', '1', '5.00', '1', '1211', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8031
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1850';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 816, 0, 0
                    , 250.00, 5.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3259
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('816', '2', '5.00', '0', '1211', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8032
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '815', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1212
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '815';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 815, 0, 0
                    , 180.00, -10, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 180.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3260
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*180.00," WHERE transferproductid = 1212;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('815', '1', '10.00', '1', '1212', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8033
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1849';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 815, 0, 0
                    , 180.00, 10.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3261
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('815', '2', '10.00', '0', '1212', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8034
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '814', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1213
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '814';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 814, 0, 0
                    , 345.00, -15, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 345.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3262
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*345.00," WHERE transferproductid = 1213;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('814', '1', '15.00', '1', '1213', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8035
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1848';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 814, 0, 0
                    , 345.00, 15.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3263
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('814', '2', '15.00', '0', '1213', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8036
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '813', '100.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1214
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '813';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 813, 0, 0
                    , 335.00, -100, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 335.00,
                        buyQuantity =buyQuantity+-100, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3264
UPDATE storemovement SET  buyPricesHistoryBookData = "100.00*2026-10-14*335.00," WHERE transferproductid = 1214;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('813', '1', '100.00', '1', '1214', 'تحويل منتجات من المخزن', 'storemovementController.php', '100', '0', '1', '2026-10-14','0','0'); -- id=8037
UPDATE storedetail SET  productquantity = '100', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1847';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 813, 0, 0
                    , 335.00, 100.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+100.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3265
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('813', '2', '100.00', '0', '1214', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '100', '1', '2026-10-14','0','0'); -- id=8038
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '812', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1215
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '812';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 812, 0, 0
                    , 430.00, -25, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3266
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*430.00," WHERE transferproductid = 1215;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('812', '1', '25.00', '1', '1215', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=8039
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1846';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 812, 0, 0
                    , 430.00, 25.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3267
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('812', '2', '25.00', '0', '1215', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=8040
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '811', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1216
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '811';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 811, 0, 0
                    , 430.00, -25, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3268
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*430.00," WHERE transferproductid = 1216;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('811', '1', '25.00', '1', '1216', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=8041
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1845';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 811, 0, 0
                    , 430.00, 25.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3269
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('811', '2', '25.00', '0', '1216', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=8042
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '810', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1217
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '810';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 810, 0, 0
                    , 430.00, -10, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3270
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*430.00," WHERE transferproductid = 1217;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('810', '1', '10.00', '1', '1217', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8043
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1844';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 810, 0, 0
                    , 430.00, 10.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3271
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('810', '2', '10.00', '0', '1217', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8044
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '809', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1218
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '809';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 809, 0, 0
                    , 430.00, -15, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 430.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3272
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*430.00," WHERE transferproductid = 1218;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('809', '1', '15.00', '1', '1218', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8045
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1843';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 809, 0, 0
                    , 430.00, 15.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3273
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('809', '2', '15.00', '0', '1218', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8046
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '808', '95.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1219
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '808';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 808, 0, 0
                    , 380.00, -95, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 380.00,
                        buyQuantity =buyQuantity+-95, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3274
UPDATE storemovement SET  buyPricesHistoryBookData = "95.00*2026-10-14*380.00," WHERE transferproductid = 1219;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('808', '1', '95.00', '1', '1219', 'تحويل منتجات من المخزن', 'storemovementController.php', '95', '0', '1', '2026-10-14','0','0'); -- id=8047
UPDATE storedetail SET  productquantity = '95', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1842';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 808, 0, 0
                    , 380.00, 95.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+95.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3275
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('808', '2', '95.00', '0', '1219', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '95', '1', '2026-10-14','0','0'); -- id=8048
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '807', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1220
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '807';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 807, 0, 0
                    , 330.00, -18, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3276
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-14*330.00," WHERE transferproductid = 1220;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('807', '1', '18.00', '1', '1220', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=8049
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1841';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 807, 0, 0
                    , 330.00, 18.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3277
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('807', '2', '18.00', '0', '1220', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=8050
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '806', '65.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1221
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '806';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 806, 0, 0
                    , 260.00, -65, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 260.00,
                        buyQuantity =buyQuantity+-65, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3278
UPDATE storemovement SET  buyPricesHistoryBookData = "65.00*2026-10-14*260.00," WHERE transferproductid = 1221;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('806', '1', '65.00', '1', '1221', 'تحويل منتجات من المخزن', 'storemovementController.php', '65', '0', '1', '2026-10-14','0','0'); -- id=8051
UPDATE storedetail SET  productquantity = '65', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1840';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 806, 0, 0
                    , 260.00, 65.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+65.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3279
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('806', '2', '65.00', '0', '1221', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '65', '1', '2026-10-14','0','0'); -- id=8052
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '805', '135.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1222
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '805';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 805, 0, 0
                    , 245.00, -135, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 245.00,
                        buyQuantity =buyQuantity+-135, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3280
UPDATE storemovement SET  buyPricesHistoryBookData = "135.00*2026-10-14*245.00," WHERE transferproductid = 1222;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('805', '1', '135.00', '1', '1222', 'تحويل منتجات من المخزن', 'storemovementController.php', '135', '0', '1', '2026-10-14','0','0'); -- id=8053
UPDATE storedetail SET  productquantity = '135', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1839';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 805, 0, 0
                    , 245.00, 135.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+135.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3281
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('805', '2', '135.00', '0', '1222', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '135', '1', '2026-10-14','0','0'); -- id=8054
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '804', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1223
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '804';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 804, 0, 0
                    , 305.00, -5, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 305.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3282
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*305.00," WHERE transferproductid = 1223;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('804', '1', '5.00', '1', '1223', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8055
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1838';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 804, 0, 0
                    , 305.00, 5.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3283
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('804', '2', '5.00', '0', '1223', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8056
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '803', '45.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1224
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '803';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 803, 0, 0
                    , 215.00, -45, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 215.00,
                        buyQuantity =buyQuantity+-45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3284
UPDATE storemovement SET  buyPricesHistoryBookData = "45.00*2026-10-14*215.00," WHERE transferproductid = 1224;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('803', '1', '45.00', '1', '1224', 'تحويل منتجات من المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=8057
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1837';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 803, 0, 0
                    , 215.00, 45.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3285
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('803', '2', '45.00', '0', '1224', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=8058
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '802', '115.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1225
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '802';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 802, 0, 0
                    , 300.00, -115, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-115, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3286
UPDATE storemovement SET  buyPricesHistoryBookData = "115.00*2026-10-14*300.00," WHERE transferproductid = 1225;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('802', '1', '115.00', '1', '1225', 'تحويل منتجات من المخزن', 'storemovementController.php', '115', '0', '1', '2026-10-14','0','0'); -- id=8059
UPDATE storedetail SET  productquantity = '115', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1836';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 802, 0, 0
                    , 300.00, 115.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+115.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3287
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('802', '2', '115.00', '0', '1225', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '115', '1', '2026-10-14','0','0'); -- id=8060
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '801', '55.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1226
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '801';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 801, 0, 0
                    , 290.00, -55, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 290.00,
                        buyQuantity =buyQuantity+-55, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3288
UPDATE storemovement SET  buyPricesHistoryBookData = "55.00*2026-10-14*290.00," WHERE transferproductid = 1226;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('801', '1', '55.00', '1', '1226', 'تحويل منتجات من المخزن', 'storemovementController.php', '55', '0', '1', '2026-10-14','0','0'); -- id=8061
UPDATE storedetail SET  productquantity = '55', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1835';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 801, 0, 0
                    , 290.00, 55.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+55.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3289
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('801', '2', '55.00', '0', '1226', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '55', '1', '2026-10-14','0','0'); -- id=8062
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '800', '75.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1227
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '800';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 800, 0, 0
                    , 280.00, -75, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-75, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3290
UPDATE storemovement SET  buyPricesHistoryBookData = "75.00*2026-10-14*280.00," WHERE transferproductid = 1227;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('800', '1', '75.00', '1', '1227', 'تحويل منتجات من المخزن', 'storemovementController.php', '75', '0', '1', '2026-10-14','0','0'); -- id=8063
UPDATE storedetail SET  productquantity = '75', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1834';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 800, 0, 0
                    , 280.00, 75.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+75.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3291
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('800', '2', '75.00', '0', '1227', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '75', '1', '2026-10-14','0','0'); -- id=8064
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '799', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1228
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '799';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 799, 0, 0
                    , 265.00, -40, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 265.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3292
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*265.00," WHERE transferproductid = 1228;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('799', '1', '40.00', '1', '1228', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=8065
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1833';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 799, 0, 0
                    , 265.00, 40.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3293
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('799', '2', '40.00', '0', '1228', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=8066
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '798', '75.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1229
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '798';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 798, 0, 0
                    , 310.00, -75, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-75, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3294
UPDATE storemovement SET  buyPricesHistoryBookData = "75.00*2026-10-14*310.00," WHERE transferproductid = 1229;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('798', '1', '75.00', '1', '1229', 'تحويل منتجات من المخزن', 'storemovementController.php', '75', '0', '1', '2026-10-14','0','0'); -- id=8067
UPDATE storedetail SET  productquantity = '75', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1832';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 798, 0, 0
                    , 310.00, 75.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+75.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3295
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('798', '2', '75.00', '0', '1229', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '75', '1', '2026-10-14','0','0'); -- id=8068
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '797', '80.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1230
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '797';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 797, 0, 0
                    , 290.00, -80, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 290.00,
                        buyQuantity =buyQuantity+-80, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3296
UPDATE storemovement SET  buyPricesHistoryBookData = "80.00*2026-10-14*290.00," WHERE transferproductid = 1230;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('797', '1', '80.00', '1', '1230', 'تحويل منتجات من المخزن', 'storemovementController.php', '80', '0', '1', '2026-10-14','0','0'); -- id=8069
UPDATE storedetail SET  productquantity = '80', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1831';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 797, 0, 0
                    , 290.00, 80.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+80.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3297
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('797', '2', '80.00', '0', '1230', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '80', '1', '2026-10-14','0','0'); -- id=8070
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '796', '75.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1231
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '796';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 796, 0, 0
                    , 260.00, -75, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 260.00,
                        buyQuantity =buyQuantity+-75, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3298
UPDATE storemovement SET  buyPricesHistoryBookData = "75.00*2026-10-14*260.00," WHERE transferproductid = 1231;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('796', '1', '75.00', '1', '1231', 'تحويل منتجات من المخزن', 'storemovementController.php', '75', '0', '1', '2026-10-14','0','0'); -- id=8071
UPDATE storedetail SET  productquantity = '75', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1830';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 796, 0, 0
                    , 260.00, 75.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+75.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3299
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('796', '2', '75.00', '0', '1231', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '75', '1', '2026-10-14','0','0'); -- id=8072
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '795', '75.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1232
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '795';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 795, 0, 0
                    , 260.00, -75, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 260.00,
                        buyQuantity =buyQuantity+-75, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3300
UPDATE storemovement SET  buyPricesHistoryBookData = "75.00*2026-10-14*260.00," WHERE transferproductid = 1232;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('795', '1', '75.00', '1', '1232', 'تحويل منتجات من المخزن', 'storemovementController.php', '75', '0', '1', '2026-10-14','0','0'); -- id=8073
UPDATE storedetail SET  productquantity = '75', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1829';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 795, 0, 0
                    , 260.00, 75.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+75.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3301
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('795', '2', '75.00', '0', '1232', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '75', '1', '2026-10-14','0','0'); -- id=8074
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '794', '80.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1233
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '794';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 794, 0, 0
                    , 260.00, -80, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 260.00,
                        buyQuantity =buyQuantity+-80, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3302
UPDATE storemovement SET  buyPricesHistoryBookData = "80.00*2026-10-14*260.00," WHERE transferproductid = 1233;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('794', '1', '80.00', '1', '1233', 'تحويل منتجات من المخزن', 'storemovementController.php', '80', '0', '1', '2026-10-14','0','0'); -- id=8075
UPDATE storedetail SET  productquantity = '80', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1828';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 794, 0, 0
                    , 260.00, 80.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+80.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3303
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('794', '2', '80.00', '0', '1233', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '80', '1', '2026-10-14','0','0'); -- id=8076
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '793', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1234
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '793';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 793, 0, 0
                    , 290.00, -60, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 290.00,
                        buyQuantity =buyQuantity+-60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3304
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*290.00," WHERE transferproductid = 1234;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('793', '1', '60.00', '1', '1234', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=8077
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1827';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 793, 0, 0
                    , 290.00, 60.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3305
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('793', '2', '60.00', '0', '1234', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=8078
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '792', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1235
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '792';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 792, 0, 0
                    , 250.00, -30, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 250.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3306
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*250.00," WHERE transferproductid = 1235;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('792', '1', '30.00', '1', '1235', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8079
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1826';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 792, 0, 0
                    , 250.00, 30.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3307
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('792', '2', '30.00', '0', '1235', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8080
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '791', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1236
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '791';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 791, 0, 0
                    , 240.00, -15, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3308
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*240.00," WHERE transferproductid = 1236;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('791', '1', '15.00', '1', '1236', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8081
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1825';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 791, 0, 0
                    , 240.00, 15.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3309
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('791', '2', '15.00', '0', '1236', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8082
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '790', '100.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1237
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '790';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 790, 0, 0
                    , 240.00, -100, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-100, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3310
UPDATE storemovement SET  buyPricesHistoryBookData = "100.00*2026-10-14*240.00," WHERE transferproductid = 1237;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('790', '1', '100.00', '1', '1237', 'تحويل منتجات من المخزن', 'storemovementController.php', '100', '0', '1', '2026-10-14','0','0'); -- id=8083
UPDATE storedetail SET  productquantity = '100', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1824';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 790, 0, 0
                    , 240.00, 100.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+100.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3311
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('790', '2', '100.00', '0', '1237', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '100', '1', '2026-10-14','0','0'); -- id=8084
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '789', '249.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1238
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '789';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 789, 0, 0
                    , 260.00, -249, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 260.00,
                        buyQuantity =buyQuantity+-249, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3312
UPDATE storemovement SET  buyPricesHistoryBookData = "249.00*2026-10-14*260.00," WHERE transferproductid = 1238;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('789', '1', '249.00', '1', '1238', 'تحويل منتجات من المخزن', 'storemovementController.php', '249', '0', '1', '2026-10-14','0','0'); -- id=8085
UPDATE storedetail SET  productquantity = '249', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1823';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 789, 0, 0
                    , 260.00, 249.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+249.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3313
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('789', '2', '249.00', '0', '1238', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '249', '1', '2026-10-14','0','0'); -- id=8086
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '788', '720.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1239
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '788';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 788, 0, 0
                    , 215.00, -720, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 215.00,
                        buyQuantity =buyQuantity+-720, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3314
UPDATE storemovement SET  buyPricesHistoryBookData = "720.00*2026-10-14*215.00," WHERE transferproductid = 1239;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('788', '1', '720.00', '1', '1239', 'تحويل منتجات من المخزن', 'storemovementController.php', '720', '0', '1', '2026-10-14','0','0'); -- id=8087
UPDATE storedetail SET  productquantity = '720', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1822';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 788, 0, 0
                    , 215.00, 720.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+720.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3315
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('788', '2', '720.00', '0', '1239', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '720', '1', '2026-10-14','0','0'); -- id=8088
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '787', '70.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1240
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '787';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 787, 0, 0
                    , 255.00, -70, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 255.00,
                        buyQuantity =buyQuantity+-70, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3316
UPDATE storemovement SET  buyPricesHistoryBookData = "70.00*2026-10-14*255.00," WHERE transferproductid = 1240;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('787', '1', '70.00', '1', '1240', 'تحويل منتجات من المخزن', 'storemovementController.php', '70', '0', '1', '2026-10-14','0','0'); -- id=8089
UPDATE storedetail SET  productquantity = '70', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1821';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 787, 0, 0
                    , 255.00, 70.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+70.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3317
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('787', '2', '70.00', '0', '1240', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '70', '1', '2026-10-14','0','0'); -- id=8090
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '786', '115.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1241
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '786';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 786, 0, 0
                    , 270.00, -115, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-115, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3318
UPDATE storemovement SET  buyPricesHistoryBookData = "115.00*2026-10-14*270.00," WHERE transferproductid = 1241;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('786', '1', '115.00', '1', '1241', 'تحويل منتجات من المخزن', 'storemovementController.php', '115', '0', '1', '2026-10-14','0','0'); -- id=8091
UPDATE storedetail SET  productquantity = '115', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1820';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 786, 0, 0
                    , 270.00, 115.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+115.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3319
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('786', '2', '115.00', '0', '1241', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '115', '1', '2026-10-14','0','0'); -- id=8092
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '785', '50.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1242
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '785';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 785, 0, 0
                    , 360.00, -50, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3320
UPDATE storemovement SET  buyPricesHistoryBookData = "50.00*2026-10-14*360.00," WHERE transferproductid = 1242;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('785', '1', '50.00', '1', '1242', 'تحويل منتجات من المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=8093
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1819';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 785, 0, 0
                    , 360.00, 50.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3321
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('785', '2', '50.00', '0', '1242', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=8094
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '784', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1243
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '784';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 784, 0, 0
                    , 340.00, -15, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3322
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*340.00," WHERE transferproductid = 1243;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('784', '1', '15.00', '1', '1243', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8095
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1818';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 784, 0, 0
                    , 340.00, 15.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3323
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('784', '2', '15.00', '0', '1243', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8096
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '783', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1244
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '783';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 783, 0, 0
                    , 280.00, -15, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 280.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3324
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*280.00," WHERE transferproductid = 1244;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('783', '1', '15.00', '1', '1244', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8097
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1817';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 783, 0, 0
                    , 280.00, 15.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3325
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('783', '2', '15.00', '0', '1244', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8098
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '782', '22.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1245
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '782';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 782, 0, 0
                    , 300.00, -22, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3326
UPDATE storemovement SET  buyPricesHistoryBookData = "22.00*2026-10-14*300.00," WHERE transferproductid = 1245;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('782', '1', '22.00', '1', '1245', 'تحويل منتجات من المخزن', 'storemovementController.php', '22', '0', '1', '2026-10-14','0','0'); -- id=8099
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1816';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 782, 0, 0
                    , 300.00, 22.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3327
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('782', '2', '22.00', '0', '1245', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2026-10-14','0','0'); -- id=8100
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '781', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1246
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '781';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 781, 0, 0
                    , 320.00, -25, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3328
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*320.00," WHERE transferproductid = 1246;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('781', '1', '25.00', '1', '1246', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=8101
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1815';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 781, 0, 0
                    , 320.00, 25.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3329
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('781', '2', '25.00', '0', '1246', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=8102
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '780', '78.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1247
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '780';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 780, 0, 0
                    , 295.00, -78, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 295.00,
                        buyQuantity =buyQuantity+-78, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3330
UPDATE storemovement SET  buyPricesHistoryBookData = "78.00*2026-10-14*295.00," WHERE transferproductid = 1247;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('780', '1', '78.00', '1', '1247', 'تحويل منتجات من المخزن', 'storemovementController.php', '78', '0', '1', '2026-10-14','0','0'); -- id=8103
UPDATE storedetail SET  productquantity = '78', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1814';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 780, 0, 0
                    , 295.00, 78.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+78.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3331
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('780', '2', '78.00', '0', '1247', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '78', '1', '2026-10-14','0','0'); -- id=8104
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '779', '26.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1248
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '779';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 779, 0, 0
                    , 300.00, -26, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-26, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3332
UPDATE storemovement SET  buyPricesHistoryBookData = "26.00*2026-10-14*300.00," WHERE transferproductid = 1248;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('779', '1', '26.00', '1', '1248', 'تحويل منتجات من المخزن', 'storemovementController.php', '26', '0', '1', '2026-10-14','0','0'); -- id=8105
UPDATE storedetail SET  productquantity = '26', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1813';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 779, 0, 0
                    , 300.00, 26.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3333
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('779', '2', '26.00', '0', '1248', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '26', '1', '2026-10-14','0','0'); -- id=8106
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '778', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1249
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '778';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 778, 0, 0
                    , 275.00, -27, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 275.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3334
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-14*275.00," WHERE transferproductid = 1249;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('778', '1', '27.00', '1', '1249', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=8107
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1812';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 778, 0, 0
                    , 275.00, 27.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3335
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('778', '2', '27.00', '0', '1249', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=8108
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '777', '23.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1250
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '777';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 777, 0, 0
                    , 245.00, -23, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 245.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3336
UPDATE storemovement SET  buyPricesHistoryBookData = "23.00*2026-10-14*245.00," WHERE transferproductid = 1250;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('777', '1', '23.00', '1', '1250', 'تحويل منتجات من المخزن', 'storemovementController.php', '23', '0', '1', '2026-10-14','0','0'); -- id=8109
UPDATE storedetail SET  productquantity = '23', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1811';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 777, 0, 0
                    , 245.00, 23.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3337
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('777', '2', '23.00', '0', '1250', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2026-10-14','0','0'); -- id=8110
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '776', '8.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1251
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '776';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 776, 0, 0
                    , 320.00, -8, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 320.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3338
UPDATE storemovement SET  buyPricesHistoryBookData = "8.00*2026-10-14*320.00," WHERE transferproductid = 1251;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('776', '1', '8.00', '1', '1251', 'تحويل منتجات من المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=8111
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1810';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 776, 0, 0
                    , 320.00, 8.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3339
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('776', '2', '8.00', '0', '1251', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=8112
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '775', '8.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1252
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '775';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 775, 0, 0
                    , 295.00, -8, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 295.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3340
UPDATE storemovement SET  buyPricesHistoryBookData = "8.00*2026-10-14*295.00," WHERE transferproductid = 1252;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('775', '1', '8.00', '1', '1252', 'تحويل منتجات من المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=8113
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1809';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 775, 0, 0
                    , 295.00, 8.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3341
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('775', '2', '8.00', '0', '1252', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=8114
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '774', '9.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1253
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '774';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 774, 0, 0
                    , 315.00, -9, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 315.00,
                        buyQuantity =buyQuantity+-9, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3342
UPDATE storemovement SET  buyPricesHistoryBookData = "9.00*2026-10-14*315.00," WHERE transferproductid = 1253;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('774', '1', '9.00', '1', '1253', 'تحويل منتجات من المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=8115
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1808';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 774, 0, 0
                    , 315.00, 9.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3343
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('774', '2', '9.00', '0', '1253', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=8116
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '773', '27.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1254
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '773';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 773, 0, 0
                    , 300.00, -27, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 300.00,
                        buyQuantity =buyQuantity+-27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3344
UPDATE storemovement SET  buyPricesHistoryBookData = "27.00*2026-10-14*300.00," WHERE transferproductid = 1254;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('773', '1', '27.00', '1', '1254', 'تحويل منتجات من المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=8117
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1807';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 773, 0, 0
                    , 300.00, 27.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3345
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('773', '2', '27.00', '0', '1254', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=8118
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '772', '34.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1255
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '772';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 772, 0, 0
                    , 210.00, -34, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 210.00,
                        buyQuantity =buyQuantity+-34, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3346
UPDATE storemovement SET  buyPricesHistoryBookData = "34.00*2026-10-14*210.00," WHERE transferproductid = 1255;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('772', '1', '34.00', '1', '1255', 'تحويل منتجات من المخزن', 'storemovementController.php', '34', '0', '1', '2026-10-14','0','0'); -- id=8119
UPDATE storedetail SET  productquantity = '34', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1806';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 772, 0, 0
                    , 210.00, 34.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3347
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('772', '2', '34.00', '0', '1255', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '34', '1', '2026-10-14','0','0'); -- id=8120
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '771', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1256
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '771';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 771, 0, 0
                    , 345.00, -25, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 345.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3348
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*345.00," WHERE transferproductid = 1256;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('771', '1', '25.00', '1', '1256', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=8121
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1805';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 771, 0, 0
                    , 345.00, 25.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3349
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('771', '2', '25.00', '0', '1256', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=8122
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '770', '319.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1257
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '770';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 770, 0, 0
                    , 435.00, -319, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 435.00,
                        buyQuantity =buyQuantity+-319, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3350
UPDATE storemovement SET  buyPricesHistoryBookData = "319.00*2026-10-14*435.00," WHERE transferproductid = 1257;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('770', '1', '319.00', '1', '1257', 'تحويل منتجات من المخزن', 'storemovementController.php', '319', '0', '1', '2026-10-14','0','0'); -- id=8123
UPDATE storedetail SET  productquantity = '319', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1804';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 770, 0, 0
                    , 435.00, 319.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+319.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3351
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('770', '2', '319.00', '0', '1257', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '319', '1', '2026-10-14','0','0'); -- id=8124
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '769', '-1.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1258
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '769';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1258;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('769', '1', '-1.00', '1', '1258', 'تحويل منتجات من المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=8125
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1803';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('769', '2', '-1.00', '0', '1258', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=8126
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '768', '-1.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1259
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '768';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1259;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('768', '1', '-1.00', '1', '1259', 'تحويل منتجات من المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=8127
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1802';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('768', '2', '-1.00', '0', '1259', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=8128
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '767', '2.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1260
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '767';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 767, 0, 0
                    , 360.00, -2, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-2, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3352
UPDATE storemovement SET  buyPricesHistoryBookData = "2.00*2026-10-14*360.00," WHERE transferproductid = 1260;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('767', '1', '2.00', '1', '1260', 'تحويل منتجات من المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=8129
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1801';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 767, 0, 0
                    , 360.00, 2.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3353
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('767', '2', '2.00', '0', '1260', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=8130
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '766', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1261
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '766';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 766, 0, 0
                    , 410.00, -15, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3354
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*410.00," WHERE transferproductid = 1261;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('766', '1', '15.00', '1', '1261', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8131
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1800';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 766, 0, 0
                    , 410.00, 15.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3355
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('766', '2', '15.00', '0', '1261', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8132
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '765', '-20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1262
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '765';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1262;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('765', '1', '-20.00', '1', '1262', 'تحويل منتجات من المخزن', 'storemovementController.php', '-20', '0', '1', '2026-10-14','0','0'); -- id=8133
UPDATE storedetail SET  productquantity = '-20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1799';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('765', '2', '-20.00', '0', '1262', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '-20', '1', '2026-10-14','0','0'); -- id=8134
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '764', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1263
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '764';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1263;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('764', '1', '0.00', '1', '1263', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8135
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1798';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('764', '2', '0.00', '0', '1263', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8136
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '763', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1264
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '763';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1264;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('763', '1', '0.00', '1', '1264', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8137
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1797';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('763', '2', '0.00', '0', '1264', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8138
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '762', '361.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1265
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '762';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 762, 0, 0
                    , 200.00, -361, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-361, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3356
UPDATE storemovement SET  buyPricesHistoryBookData = "361.00*2026-10-14*200.00," WHERE transferproductid = 1265;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('762', '1', '361.00', '1', '1265', 'تحويل منتجات من المخزن', 'storemovementController.php', '361', '0', '1', '2026-10-14','0','0'); -- id=8139
UPDATE storedetail SET  productquantity = '361', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1796';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 762, 0, 0
                    , 200.00, 361.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+361.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3357
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('762', '2', '361.00', '0', '1265', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '361', '1', '2026-10-14','0','0'); -- id=8140
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '761', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1266
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '761';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 761, 0, 0
                    , 520.00, -10, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 520.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3358
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*520.00," WHERE transferproductid = 1266;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('761', '1', '10.00', '1', '1266', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8141
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1795';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 761, 0, 0
                    , 520.00, 10.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3359
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('761', '2', '10.00', '0', '1266', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8142
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '760', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1267
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '760';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 760, 0, 0
                    , 620.00, -5, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 620.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3360
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*620.00," WHERE transferproductid = 1267;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('760', '1', '5.00', '1', '1267', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8143
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1794';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 760, 0, 0
                    , 620.00, 5.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3361
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('760', '2', '5.00', '0', '1267', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8144
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '759', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1268
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '759';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 759, 0, 0
                    , 580.00, -10, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 580.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3362
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*580.00," WHERE transferproductid = 1268;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('759', '1', '10.00', '1', '1268', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8145
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1793';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 759, 0, 0
                    , 580.00, 10.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3363
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('759', '2', '10.00', '0', '1268', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8146
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '758', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1269
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '758';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 758, 0, 0
                    , 635.00, -10, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 635.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3364
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*635.00," WHERE transferproductid = 1269;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('758', '1', '10.00', '1', '1269', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8147
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1792';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 758, 0, 0
                    , 635.00, 10.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3365
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('758', '2', '10.00', '0', '1269', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8148
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '757', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1270
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '757';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 757, 0, 0
                    , 585.00, -20, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 585.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3366
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*585.00," WHERE transferproductid = 1270;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('757', '1', '20.00', '1', '1270', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8149
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1791';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 757, 0, 0
                    , 585.00, 20.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3367
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('757', '2', '20.00', '0', '1270', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8150
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '756', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1271
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '756';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 756, 0, 0
                    , 575.00, -15, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 575.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3368
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*575.00," WHERE transferproductid = 1271;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('756', '1', '15.00', '1', '1271', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8151
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1790';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 756, 0, 0
                    , 575.00, 15.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3369
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('756', '2', '15.00', '0', '1271', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8152
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '755', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1272
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '755';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 755, 0, 0
                    , 605.00, -5, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 605.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3370
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*605.00," WHERE transferproductid = 1272;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('755', '1', '5.00', '1', '1272', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8153
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1789';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 755, 0, 0
                    , 605.00, 5.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3371
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('755', '2', '5.00', '0', '1272', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8154
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '754', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1273
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '754';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 754, 0, 0
                    , 590.00, -15, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 590.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3372
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*590.00," WHERE transferproductid = 1273;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('754', '1', '15.00', '1', '1273', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8155
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1788';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 754, 0, 0
                    , 590.00, 15.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3373
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('754', '2', '15.00', '0', '1273', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8156
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '753', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1274
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '753';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 753, 0, 0
                    , 625.00, -20, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 625.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3374
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*625.00," WHERE transferproductid = 1274;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('753', '1', '20.00', '1', '1274', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8157
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1787';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 753, 0, 0
                    , 625.00, 20.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3375
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('753', '2', '20.00', '0', '1274', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8158
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '752', '19.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1275
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '752';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 752, 0, 0
                    , 640.00, -19, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 640.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3376
UPDATE storemovement SET  buyPricesHistoryBookData = "19.00*2026-10-14*640.00," WHERE transferproductid = 1275;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('752', '1', '19.00', '1', '1275', 'تحويل منتجات من المخزن', 'storemovementController.php', '19', '0', '1', '2026-10-14','0','0'); -- id=8159
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1786';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 752, 0, 0
                    , 640.00, 19.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3377
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('752', '2', '19.00', '0', '1275', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2026-10-14','0','0'); -- id=8160
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '751', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1276
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '751';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 751, 0, 0
                    , 565.00, -5, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 565.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3378
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*565.00," WHERE transferproductid = 1276;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('751', '1', '5.00', '1', '1276', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8161
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1785';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 751, 0, 0
                    , 565.00, 5.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3379
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('751', '2', '5.00', '0', '1276', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8162
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '750', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1277
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '750';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 750, 0, 0
                    , 575.00, -10, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 575.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3380
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*575.00," WHERE transferproductid = 1277;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('750', '1', '10.00', '1', '1277', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8163
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1784';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 750, 0, 0
                    , 575.00, 10.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3381
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('750', '2', '10.00', '0', '1277', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8164
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '749', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1278
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '749';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 749, 0, 0
                    , 615.00, -15, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 615.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3382
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*615.00," WHERE transferproductid = 1278;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('749', '1', '15.00', '1', '1278', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8165
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1783';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 749, 0, 0
                    , 615.00, 15.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3383
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('749', '2', '15.00', '0', '1278', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8166
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '748', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1279
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '748';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 748, 0, 0
                    , 585.00, -15, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 585.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3384
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*585.00," WHERE transferproductid = 1279;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('748', '1', '15.00', '1', '1279', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8167
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1782';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 748, 0, 0
                    , 585.00, 15.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3385
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('748', '2', '15.00', '0', '1279', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8168
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '747', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1280
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '747';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 747, 0, 0
                    , 535.00, -10, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 535.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3386
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*535.00," WHERE transferproductid = 1280;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('747', '1', '10.00', '1', '1280', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8169
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1781';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 747, 0, 0
                    , 535.00, 10.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3387
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('747', '2', '10.00', '0', '1280', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8170
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '746', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1281
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '746';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 746, 0, 0
                    , 545.00, -5, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 545.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3388
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*545.00," WHERE transferproductid = 1281;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('746', '1', '5.00', '1', '1281', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8171
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1780';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 746, 0, 0
                    , 545.00, 5.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3389
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('746', '2', '5.00', '0', '1281', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8172
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '745', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1282
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '745';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 745, 0, 0
                    , 575.00, -5, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 575.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3390
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*575.00," WHERE transferproductid = 1282;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('745', '1', '5.00', '1', '1282', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8173
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1779';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 745, 0, 0
                    , 575.00, 5.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3391
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('745', '2', '5.00', '0', '1282', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8174
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '744', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1283
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '744';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 744, 0, 0
                    , 535.00, -10, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 535.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3392
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*535.00," WHERE transferproductid = 1283;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('744', '1', '10.00', '1', '1283', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8175
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1778';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 744, 0, 0
                    , 535.00, 10.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3393
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('744', '2', '10.00', '0', '1283', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8176
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '743', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1284
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '743';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 743, 0, 0
                    , 540.00, -5, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 540.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3394
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*540.00," WHERE transferproductid = 1284;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('743', '1', '5.00', '1', '1284', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8177
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1777';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 743, 0, 0
                    , 540.00, 5.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3395
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('743', '2', '5.00', '0', '1284', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8178
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '742', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1285
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '742';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 742, 0, 0
                    , 600.00, -5, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 600.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3396
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*600.00," WHERE transferproductid = 1285;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('742', '1', '5.00', '1', '1285', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8179
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1776';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 742, 0, 0
                    , 600.00, 5.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3397
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('742', '2', '5.00', '0', '1285', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8180
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '741', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1286
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '741';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 741, 0, 0
                    , 575.00, -10, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 575.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3398
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*575.00," WHERE transferproductid = 1286;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('741', '1', '10.00', '1', '1286', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8181
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1775';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 741, 0, 0
                    , 575.00, 10.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3399
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('741', '2', '10.00', '0', '1286', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8182
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '740', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1287
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '740';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 740, 0, 0
                    , 555.00, -40, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 555.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3400
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*555.00," WHERE transferproductid = 1287;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('740', '1', '40.00', '1', '1287', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=8183
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1774';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 740, 0, 0
                    , 555.00, 40.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3401
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('740', '2', '40.00', '0', '1287', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=8184
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '739', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1288
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '739';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 739, 0, 0
                    , 555.00, -15, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 555.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3402
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*555.00," WHERE transferproductid = 1288;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('739', '1', '15.00', '1', '1288', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8185
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1773';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 739, 0, 0
                    , 555.00, 15.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3403
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('739', '2', '15.00', '0', '1288', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8186
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '738', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1289
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '738';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 738, 0, 0
                    , 480.00, -25, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 480.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3404
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*480.00," WHERE transferproductid = 1289;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('738', '1', '25.00', '1', '1289', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=8187
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1772';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 738, 0, 0
                    , 480.00, 25.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3405
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('738', '2', '25.00', '0', '1289', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=8188
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '737', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1290
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '737';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 737, 0, 0
                    , 585.00, -30, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 585.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3406
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*585.00," WHERE transferproductid = 1290;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('737', '1', '30.00', '1', '1290', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8189
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1771';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 737, 0, 0
                    , 585.00, 30.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3407
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('737', '2', '30.00', '0', '1290', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8190
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '736', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1291
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '736';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 736, 0, 0
                    , 570.00, -5, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 570.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3408
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*570.00," WHERE transferproductid = 1291;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('736', '1', '5.00', '1', '1291', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8191
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1770';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 736, 0, 0
                    , 570.00, 5.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3409
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('736', '2', '5.00', '0', '1291', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8192
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '735', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1292
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '735';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 735, 0, 0
                    , 600.00, -20, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 600.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3410
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*600.00," WHERE transferproductid = 1292;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('735', '1', '20.00', '1', '1292', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8193
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1769';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 735, 0, 0
                    , 600.00, 20.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3411
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('735', '2', '20.00', '0', '1292', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8194
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '734', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1293
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '734';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 734, 0, 0
                    , 570.00, -10, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 570.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3412
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*570.00," WHERE transferproductid = 1293;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('734', '1', '10.00', '1', '1293', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8195
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1768';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 734, 0, 0
                    , 570.00, 10.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3413
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('734', '2', '10.00', '0', '1293', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8196
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '733', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1294
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '733';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 733, 0, 0
                    , 570.00, -10, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 570.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3414
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*570.00," WHERE transferproductid = 1294;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('733', '1', '10.00', '1', '1294', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8197
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1767';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 733, 0, 0
                    , 570.00, 10.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3415
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('733', '2', '10.00', '0', '1294', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8198
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '732', '19.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1295
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '732';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 732, 0, 0
                    , 540.00, -19, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 540.00,
                        buyQuantity =buyQuantity+-19, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3416
UPDATE storemovement SET  buyPricesHistoryBookData = "19.00*2026-10-14*540.00," WHERE transferproductid = 1295;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('732', '1', '19.00', '1', '1295', 'تحويل منتجات من المخزن', 'storemovementController.php', '19', '0', '1', '2026-10-14','0','0'); -- id=8199
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1766';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 732, 0, 0
                    , 540.00, 19.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3417
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('732', '2', '19.00', '0', '1295', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '19', '1', '2026-10-14','0','0'); -- id=8200
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '731', '29.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1296
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '731';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 731, 0, 0
                    , 500.00, -29, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 500.00,
                        buyQuantity =buyQuantity+-29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3418
UPDATE storemovement SET  buyPricesHistoryBookData = "29.00*2026-10-14*500.00," WHERE transferproductid = 1296;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('731', '1', '29.00', '1', '1296', 'تحويل منتجات من المخزن', 'storemovementController.php', '29', '0', '1', '2026-10-14','0','0'); -- id=8201
UPDATE storedetail SET  productquantity = '29', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1765';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 731, 0, 0
                    , 500.00, 29.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3419
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('731', '2', '29.00', '0', '1296', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '29', '1', '2026-10-14','0','0'); -- id=8202
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '730', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1297
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '730';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 730, 0, 0
                    , 540.00, -25, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 540.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3420
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*540.00," WHERE transferproductid = 1297;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('730', '1', '25.00', '1', '1297', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=8203
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1764';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 730, 0, 0
                    , 540.00, 25.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3421
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('730', '2', '25.00', '0', '1297', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=8204
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '729', '35.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1298
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '729';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 729, 0, 0
                    , 555.00, -35, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 555.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3422
UPDATE storemovement SET  buyPricesHistoryBookData = "35.00*2026-10-14*555.00," WHERE transferproductid = 1298;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('729', '1', '35.00', '1', '1298', 'تحويل منتجات من المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=8205
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1763';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 729, 0, 0
                    , 555.00, 35.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3423
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('729', '2', '35.00', '0', '1298', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=8206
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '728', '35.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1299
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '728';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 728, 0, 0
                    , 545.00, -35, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 545.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3424
UPDATE storemovement SET  buyPricesHistoryBookData = "35.00*2026-10-14*545.00," WHERE transferproductid = 1299;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('728', '1', '35.00', '1', '1299', 'تحويل منتجات من المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=8207
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1762';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 728, 0, 0
                    , 545.00, 35.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3425
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('728', '2', '35.00', '0', '1299', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=8208
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '727', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1300
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '727';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1300;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('727', '1', '0.00', '1', '1300', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8209
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1761';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('727', '2', '0.00', '0', '1300', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8210
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '726', '29.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1301
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '726';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 726, 0, 0
                    , 565.00, -29, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 565.00,
                        buyQuantity =buyQuantity+-29, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3426
UPDATE storemovement SET  buyPricesHistoryBookData = "29.00*2026-10-14*565.00," WHERE transferproductid = 1301;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('726', '1', '29.00', '1', '1301', 'تحويل منتجات من المخزن', 'storemovementController.php', '29', '0', '1', '2026-10-14','0','0'); -- id=8211
UPDATE storedetail SET  productquantity = '29', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1760';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 726, 0, 0
                    , 565.00, 29.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3427
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('726', '2', '29.00', '0', '1301', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '29', '1', '2026-10-14','0','0'); -- id=8212
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '725', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1302
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '725';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 725, 0, 0
                    , 540.00, -5, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyprice = 540.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3428
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*540.00," WHERE transferproductid = 1302;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('725', '1', '5.00', '1', '1302', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8213
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1759';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 725, 0, 0
                    , 540.00, 5.00, 0, 0, 1, '2026-10-14 18:00:23')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:23' ; -- id=3429
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('725', '2', '5.00', '0', '1302', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8214
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '724', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:23','0','','0','','0','0','0','','','','0','0','','0'); -- id=1303
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '724';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 724, 0, 0
                    , 590.00, -5, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 590.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3430
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*590.00," WHERE transferproductid = 1303;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('724', '1', '5.00', '1', '1303', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8215
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1758';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 724, 0, 0
                    , 590.00, 5.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3431
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('724', '2', '5.00', '0', '1303', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8216
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '723', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1304
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '723';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 723, 0, 0
                    , 590.00, -5, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 590.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3432
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*590.00," WHERE transferproductid = 1304;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('723', '1', '5.00', '1', '1304', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8217
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1757';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 723, 0, 0
                    , 590.00, 5.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3433
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('723', '2', '5.00', '0', '1304', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8218
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '722', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1305
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '722';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 722, 0, 0
                    , 565.00, -15, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 565.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3434
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*565.00," WHERE transferproductid = 1305;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('722', '1', '15.00', '1', '1305', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8219
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1756';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 722, 0, 0
                    , 565.00, 15.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3435
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('722', '2', '15.00', '0', '1305', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8220
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '721', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1306
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '721';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 721, 0, 0
                    , 570.00, -20, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 570.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3436
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*570.00," WHERE transferproductid = 1306;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('721', '1', '20.00', '1', '1306', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8221
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1755';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 721, 0, 0
                    , 570.00, 20.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3437
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('721', '2', '20.00', '0', '1306', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8222
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '720', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1307
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '720';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 720, 0, 0
                    , 580.00, -5, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 580.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3438
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*580.00," WHERE transferproductid = 1307;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('720', '1', '5.00', '1', '1307', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8223
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1754';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 720, 0, 0
                    , 580.00, 5.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3439
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('720', '2', '5.00', '0', '1307', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8224
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '719', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1308
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '719';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 719, 0, 0
                    , 545.00, -25, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 545.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3440
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*545.00," WHERE transferproductid = 1308;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('719', '1', '25.00', '1', '1308', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=8225
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1753';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 719, 0, 0
                    , 545.00, 25.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3441
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('719', '2', '25.00', '0', '1308', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=8226
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '718', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1309
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '718';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 718, 0, 0
                    , 490.00, -5, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 490.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3442
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*490.00," WHERE transferproductid = 1309;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('718', '1', '5.00', '1', '1309', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8227
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1752';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 718, 0, 0
                    , 490.00, 5.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3443
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('718', '2', '5.00', '0', '1309', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8228
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '717', '18.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1310
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '717';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 717, 0, 0
                    , 580.00, -18, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 580.00,
                        buyQuantity =buyQuantity+-18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3444
UPDATE storemovement SET  buyPricesHistoryBookData = "18.00*2026-10-14*580.00," WHERE transferproductid = 1310;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('717', '1', '18.00', '1', '1310', 'تحويل منتجات من المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=8229
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1751';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 717, 0, 0
                    , 580.00, 18.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3445
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('717', '2', '18.00', '0', '1310', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=8230
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '716', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1311
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '716';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 716, 0, 0
                    , 580.00, -12, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 580.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3446
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*580.00," WHERE transferproductid = 1311;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('716', '1', '12.00', '1', '1311', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8231
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1750';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 716, 0, 0
                    , 580.00, 12.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3447
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('716', '2', '12.00', '0', '1311', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8232
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '715', '1.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1312
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '715';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 715, 0, 0
                    , 435.00, -1, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 435.00,
                        buyQuantity =buyQuantity+-1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3448
UPDATE storemovement SET  buyPricesHistoryBookData = "1.00*2026-10-14*435.00," WHERE transferproductid = 1312;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('715', '1', '1.00', '1', '1312', 'تحويل منتجات من المخزن', 'storemovementController.php', '1', '0', '1', '2026-10-14','0','0'); -- id=8233
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1749';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 715, 0, 0
                    , 435.00, 1.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3449
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('715', '2', '1.00', '0', '1312', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '1', '1', '2026-10-14','0','0'); -- id=8234
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '714', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1313
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '714';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 714, 0, 0
                    , 590.00, -10, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 590.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3450
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*590.00," WHERE transferproductid = 1313;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('714', '1', '10.00', '1', '1313', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8235
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1748';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 714, 0, 0
                    , 590.00, 10.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3451
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('714', '2', '10.00', '0', '1313', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8236
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '713', '4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1314
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '713';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 713, 0, 0
                    , 575.00, -4, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 575.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3452
UPDATE storemovement SET  buyPricesHistoryBookData = "4.00*2026-10-14*575.00," WHERE transferproductid = 1314;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('713', '1', '4.00', '1', '1314', 'تحويل منتجات من المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=8237
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1747';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 713, 0, 0
                    , 575.00, 4.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3453
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('713', '2', '4.00', '0', '1314', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=8238
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '712', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1315
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '712';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 712, 0, 0
                    , 550.00, -20, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 550.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3454
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*550.00," WHERE transferproductid = 1315;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('712', '1', '20.00', '1', '1315', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8239
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1746';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 712, 0, 0
                    , 550.00, 20.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3455
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('712', '2', '20.00', '0', '1315', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8240
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '711', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1316
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '711';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 711, 0, 0
                    , 720.00, -25, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 720.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3456
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*720.00," WHERE transferproductid = 1316;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('711', '1', '25.00', '1', '1316', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=8241
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1745';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 711, 0, 0
                    , 720.00, 25.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3457
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('711', '2', '25.00', '0', '1316', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=8242
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '710', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1317
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '710';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 710, 0, 0
                    , 525.00, -30, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 525.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3458
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*525.00," WHERE transferproductid = 1317;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('710', '1', '30.00', '1', '1317', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8243
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1744';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 710, 0, 0
                    , 525.00, 30.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3459
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('710', '2', '30.00', '0', '1317', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8244
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '709', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1318
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '709';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 709, 0, 0
                    , 535.00, -20, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 535.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3460
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*535.00," WHERE transferproductid = 1318;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('709', '1', '20.00', '1', '1318', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8245
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1743';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 709, 0, 0
                    , 535.00, 20.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3461
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('709', '2', '20.00', '0', '1318', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8246
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '708', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1319
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '708';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 708, 0, 0
                    , 550.00, -25, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 550.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3462
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*550.00," WHERE transferproductid = 1319;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('708', '1', '25.00', '1', '1319', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=8247
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1742';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 708, 0, 0
                    , 550.00, 25.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3463
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('708', '2', '25.00', '0', '1319', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=8248
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '707', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1320
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '707';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 707, 0, 0
                    , 550.00, -25, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 550.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3464
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*550.00," WHERE transferproductid = 1320;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('707', '1', '25.00', '1', '1320', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=8249
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1741';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 707, 0, 0
                    , 550.00, 25.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3465
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('707', '2', '25.00', '0', '1320', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=8250
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '706', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1321
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '706';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 706, 0, 0
                    , 425.00, -25, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 425.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3466
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*425.00," WHERE transferproductid = 1321;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('706', '1', '25.00', '1', '1321', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=8251
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1740';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 706, 0, 0
                    , 425.00, 25.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3467
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('706', '2', '25.00', '0', '1321', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=8252
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '705', '8.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1322
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '705';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 705, 0, 0
                    , 600.00, -8, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 600.00,
                        buyQuantity =buyQuantity+-8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3468
UPDATE storemovement SET  buyPricesHistoryBookData = "8.00*2026-10-14*600.00," WHERE transferproductid = 1322;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('705', '1', '8.00', '1', '1322', 'تحويل منتجات من المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=8253
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1739';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 705, 0, 0
                    , 600.00, 8.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3469
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('705', '2', '8.00', '0', '1322', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=8254
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '704', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1323
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '704';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 704, 0, 0
                    , 570.00, -15, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 570.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3470
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*570.00," WHERE transferproductid = 1323;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('704', '1', '15.00', '1', '1323', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8255
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1738';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 704, 0, 0
                    , 570.00, 15.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3471
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('704', '2', '15.00', '0', '1323', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8256
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '703', '50.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1324
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '703';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 703, 0, 0
                    , 625.00, -50, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 625.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3472
UPDATE storemovement SET  buyPricesHistoryBookData = "50.00*2026-10-14*625.00," WHERE transferproductid = 1324;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('703', '1', '50.00', '1', '1324', 'تحويل منتجات من المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=8257
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1737';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 703, 0, 0
                    , 625.00, 50.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3473
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('703', '2', '50.00', '0', '1324', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=8258
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '702', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1325
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '702';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 702, 0, 0
                    , 585.00, -5, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 585.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3474
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*585.00," WHERE transferproductid = 1325;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('702', '1', '5.00', '1', '1325', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8259
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1736';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 702, 0, 0
                    , 585.00, 5.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3475
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('702', '2', '5.00', '0', '1325', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8260
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '701', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1326
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '701';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 701, 0, 0
                    , 570.00, -30, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 570.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3476
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*570.00," WHERE transferproductid = 1326;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('701', '1', '30.00', '1', '1326', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8261
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1735';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 701, 0, 0
                    , 570.00, 30.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3477
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('701', '2', '30.00', '0', '1326', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8262
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '700', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1327
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '700';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 700, 0, 0
                    , 505.00, -10, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 505.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3478
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*505.00," WHERE transferproductid = 1327;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('700', '1', '10.00', '1', '1327', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8263
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1734';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 700, 0, 0
                    , 505.00, 10.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3479
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('700', '2', '10.00', '0', '1327', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8264
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '699', '12.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1328
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '699';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 699, 0, 0
                    , 520.00, -12, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 520.00,
                        buyQuantity =buyQuantity+-12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3480
UPDATE storemovement SET  buyPricesHistoryBookData = "12.00*2026-10-14*520.00," WHERE transferproductid = 1328;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('699', '1', '12.00', '1', '1328', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8265
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1733';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 699, 0, 0
                    , 520.00, 12.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3481
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('699', '2', '12.00', '0', '1328', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8266
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '698', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1329
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '698';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 698, 0, 0
                    , 500.00, -10, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 500.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3482
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*500.00," WHERE transferproductid = 1329;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('698', '1', '10.00', '1', '1329', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8267
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1732';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 698, 0, 0
                    , 500.00, 10.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3483
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('698', '2', '10.00', '0', '1329', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8268
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '697', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1330
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '697';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 697, 0, 0
                    , 460.00, -5, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 460.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3484
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*460.00," WHERE transferproductid = 1330;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('697', '1', '5.00', '1', '1330', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8269
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1731';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 697, 0, 0
                    , 460.00, 5.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3485
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('697', '2', '5.00', '0', '1330', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8270
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '696', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1331
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '696';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 696, 0, 0
                    , 575.00, -10, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 575.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3486
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*575.00," WHERE transferproductid = 1331;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('696', '1', '10.00', '1', '1331', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8271
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1730';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 696, 0, 0
                    , 575.00, 10.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3487
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('696', '2', '10.00', '0', '1331', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8272
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '695', '50.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1332
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '695';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 695, 0, 0
                    , 525.00, -50, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 525.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3488
UPDATE storemovement SET  buyPricesHistoryBookData = "50.00*2026-10-14*525.00," WHERE transferproductid = 1332;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('695', '1', '50.00', '1', '1332', 'تحويل منتجات من المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=8273
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1729';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 695, 0, 0
                    , 525.00, 50.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3489
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('695', '2', '50.00', '0', '1332', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=8274
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '694', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1333
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '694';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 694, 0, 0
                    , 540.00, -10, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 540.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3490
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*540.00," WHERE transferproductid = 1333;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('694', '1', '10.00', '1', '1333', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8275
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1728';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 694, 0, 0
                    , 540.00, 10.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3491
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('694', '2', '10.00', '0', '1333', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8276
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '693', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1334
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '693';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 693, 0, 0
                    , 535.00, -20, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 535.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3492
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*535.00," WHERE transferproductid = 1334;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('693', '1', '20.00', '1', '1334', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8277
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1727';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 693, 0, 0
                    , 535.00, 20.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3493
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('693', '2', '20.00', '0', '1334', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8278
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '692', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1335
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '692';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 692, 0, 0
                    , 570.00, -10, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 570.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3494
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*570.00," WHERE transferproductid = 1335;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('692', '1', '10.00', '1', '1335', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8279
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1726';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 692, 0, 0
                    , 570.00, 10.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3495
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('692', '2', '10.00', '0', '1335', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8280
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '691', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1336
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '691';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 691, 0, 0
                    , 555.00, -15, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 555.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3496
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*555.00," WHERE transferproductid = 1336;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('691', '1', '15.00', '1', '1336', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8281
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1725';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 691, 0, 0
                    , 555.00, 15.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3497
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('691', '2', '15.00', '0', '1336', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8282
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '690', '14.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1337
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '690';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 690, 0, 0
                    , 500.00, -14, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 500.00,
                        buyQuantity =buyQuantity+-14, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3498
UPDATE storemovement SET  buyPricesHistoryBookData = "14.00*2026-10-14*500.00," WHERE transferproductid = 1337;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('690', '1', '14.00', '1', '1337', 'تحويل منتجات من المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=8283
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1724';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 690, 0, 0
                    , 500.00, 14.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3499
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('690', '2', '14.00', '0', '1337', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=8284
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '689', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1338
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '689';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 689, 0, 0
                    , 540.00, -25, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 540.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3500
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*540.00," WHERE transferproductid = 1338;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('689', '1', '25.00', '1', '1338', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=8285
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1723';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 689, 0, 0
                    , 540.00, 25.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3501
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('689', '2', '25.00', '0', '1338', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=8286
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '688', '35.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1339
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '688';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 688, 0, 0
                    , 640.00, -35, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 640.00,
                        buyQuantity =buyQuantity+-35, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3502
UPDATE storemovement SET  buyPricesHistoryBookData = "35.00*2026-10-14*640.00," WHERE transferproductid = 1339;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('688', '1', '35.00', '1', '1339', 'تحويل منتجات من المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=8287
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1722';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 688, 0, 0
                    , 640.00, 35.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3503
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('688', '2', '35.00', '0', '1339', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=8288
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '687', '22.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1340
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '687';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 687, 0, 0
                    , 570.00, -22, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 570.00,
                        buyQuantity =buyQuantity+-22, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3504
UPDATE storemovement SET  buyPricesHistoryBookData = "22.00*2026-10-14*570.00," WHERE transferproductid = 1340;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('687', '1', '22.00', '1', '1340', 'تحويل منتجات من المخزن', 'storemovementController.php', '22', '0', '1', '2026-10-14','0','0'); -- id=8289
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1721';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 687, 0, 0
                    , 570.00, 22.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3505
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('687', '2', '22.00', '0', '1340', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '22', '1', '2026-10-14','0','0'); -- id=8290
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '686', '138.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1341
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '686';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 686, 0, 0
                    , 200.00, -138, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 200.00,
                        buyQuantity =buyQuantity+-138, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3506
UPDATE storemovement SET  buyPricesHistoryBookData = "138.00*2026-10-14*200.00," WHERE transferproductid = 1341;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('686', '1', '138.00', '1', '1341', 'تحويل منتجات من المخزن', 'storemovementController.php', '138', '0', '1', '2026-10-14','0','0'); -- id=8291
UPDATE storedetail SET  productquantity = '138', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1720';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 686, 0, 0
                    , 200.00, 138.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+138.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3507
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('686', '2', '138.00', '0', '1341', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '138', '1', '2026-10-14','0','0'); -- id=8292
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '685', '10.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1342
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '685';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 685, 0, 0
                    , 375.00, -10, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 375.00,
                        buyQuantity =buyQuantity+-10, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3508
UPDATE storemovement SET  buyPricesHistoryBookData = "10.00*2026-10-14*375.00," WHERE transferproductid = 1342;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('685', '1', '10.00', '1', '1342', 'تحويل منتجات من المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8293
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1719';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 685, 0, 0
                    , 375.00, 10.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3509
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('685', '2', '10.00', '0', '1342', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8294
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '684', '49.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1343
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '684';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 684, 0, 0
                    , 330.00, -49, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-49, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3510
UPDATE storemovement SET  buyPricesHistoryBookData = "49.00*2026-10-14*330.00," WHERE transferproductid = 1343;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('684', '1', '49.00', '1', '1343', 'تحويل منتجات من المخزن', 'storemovementController.php', '49', '0', '1', '2026-10-14','0','0'); -- id=8295
UPDATE storedetail SET  productquantity = '49', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1718';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 684, 0, 0
                    , 330.00, 49.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+49.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3511
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('684', '2', '49.00', '0', '1343', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '49', '1', '2026-10-14','0','0'); -- id=8296
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '683', '60.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1344
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '683';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 683, 0, 0
                    , 330.00, -60, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3512
UPDATE storemovement SET  buyPricesHistoryBookData = "60.00*2026-10-14*330.00," WHERE transferproductid = 1344;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('683', '1', '60.00', '1', '1344', 'تحويل منتجات من المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=8297
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1717';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 683, 0, 0
                    , 330.00, 60.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3513
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('683', '2', '60.00', '0', '1344', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=8298
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '682', '50.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1345
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '682';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 682, 0, 0
                    , 425.00, -50, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 425.00,
                        buyQuantity =buyQuantity+-50, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3514
UPDATE storemovement SET  buyPricesHistoryBookData = "50.00*2026-10-14*425.00," WHERE transferproductid = 1345;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('682', '1', '50.00', '1', '1345', 'تحويل منتجات من المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=8299
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1716';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 682, 0, 0
                    , 425.00, 50.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3515
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('682', '2', '50.00', '0', '1345', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=8300
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '681', '61.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1346
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '681';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 681, 0, 0
                    , 425.00, -61, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 425.00,
                        buyQuantity =buyQuantity+-61, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3516
UPDATE storemovement SET  buyPricesHistoryBookData = "61.00*2026-10-14*425.00," WHERE transferproductid = 1346;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('681', '1', '61.00', '1', '1346', 'تحويل منتجات من المخزن', 'storemovementController.php', '61', '0', '1', '2026-10-14','0','0'); -- id=8301
UPDATE storedetail SET  productquantity = '61', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1715';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 681, 0, 0
                    , 425.00, 61.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+61.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3517
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('681', '2', '61.00', '0', '1346', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '61', '1', '2026-10-14','0','0'); -- id=8302
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '680', '49.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1347
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '680';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 680, 0, 0
                    , 410.00, -49, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 410.00,
                        buyQuantity =buyQuantity+-49, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3518
UPDATE storemovement SET  buyPricesHistoryBookData = "49.00*2026-10-14*410.00," WHERE transferproductid = 1347;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('680', '1', '49.00', '1', '1347', 'تحويل منتجات من المخزن', 'storemovementController.php', '49', '0', '1', '2026-10-14','0','0'); -- id=8303
UPDATE storedetail SET  productquantity = '49', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1714';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 680, 0, 0
                    , 410.00, 49.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+49.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3519
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('680', '2', '49.00', '0', '1347', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '49', '1', '2026-10-14','0','0'); -- id=8304
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '679', '76.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1348
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '679';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 679, 0, 0
                    , 375.00, -76, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 375.00,
                        buyQuantity =buyQuantity+-76, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3520
UPDATE storemovement SET  buyPricesHistoryBookData = "76.00*2026-10-14*375.00," WHERE transferproductid = 1348;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('679', '1', '76.00', '1', '1348', 'تحويل منتجات من المخزن', 'storemovementController.php', '76', '0', '1', '2026-10-14','0','0'); -- id=8305
UPDATE storedetail SET  productquantity = '76', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1713';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 679, 0, 0
                    , 375.00, 76.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+76.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3521
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('679', '2', '76.00', '0', '1348', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '76', '1', '2026-10-14','0','0'); -- id=8306
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '678', '88.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1349
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '678';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 678, 0, 0
                    , 360.00, -88, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 360.00,
                        buyQuantity =buyQuantity+-88, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3522
UPDATE storemovement SET  buyPricesHistoryBookData = "88.00*2026-10-14*360.00," WHERE transferproductid = 1349;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('678', '1', '88.00', '1', '1349', 'تحويل منتجات من المخزن', 'storemovementController.php', '88', '0', '1', '2026-10-14','0','0'); -- id=8307
UPDATE storedetail SET  productquantity = '88', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1712';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 678, 0, 0
                    , 360.00, 88.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+88.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3523
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('678', '2', '88.00', '0', '1349', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '88', '1', '2026-10-14','0','0'); -- id=8308
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '677', '43.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1350
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '677';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 677, 0, 0
                    , 330.00, -43, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3524
UPDATE storemovement SET  buyPricesHistoryBookData = "43.00*2026-10-14*330.00," WHERE transferproductid = 1350;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('677', '1', '43.00', '1', '1350', 'تحويل منتجات من المخزن', 'storemovementController.php', '43', '0', '1', '2026-10-14','0','0'); -- id=8309
UPDATE storedetail SET  productquantity = '43', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1711';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 677, 0, 0
                    , 330.00, 43.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+43.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3525
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('677', '2', '43.00', '0', '1350', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '43', '1', '2026-10-14','0','0'); -- id=8310
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '676', '290.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1351
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '676';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 676, 0, 0
                    , 310.00, -290, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-290, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3526
UPDATE storemovement SET  buyPricesHistoryBookData = "290.00*2026-10-14*310.00," WHERE transferproductid = 1351;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('676', '1', '290.00', '1', '1351', 'تحويل منتجات من المخزن', 'storemovementController.php', '290', '0', '1', '2026-10-14','0','0'); -- id=8311
UPDATE storedetail SET  productquantity = '290', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1710';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 676, 0, 0
                    , 310.00, 290.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+290.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3527
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('676', '2', '290.00', '0', '1351', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '290', '1', '2026-10-14','0','0'); -- id=8312
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '675', '108.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1352
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '675';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 675, 0, 0
                    , 425.00, -108, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 425.00,
                        buyQuantity =buyQuantity+-108, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3528
UPDATE storemovement SET  buyPricesHistoryBookData = "108.00*2026-10-14*425.00," WHERE transferproductid = 1352;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('675', '1', '108.00', '1', '1352', 'تحويل منتجات من المخزن', 'storemovementController.php', '108', '0', '1', '2026-10-14','0','0'); -- id=8313
UPDATE storedetail SET  productquantity = '108', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1709';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 675, 0, 0
                    , 425.00, 108.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+108.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3529
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('675', '2', '108.00', '0', '1352', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '108', '1', '2026-10-14','0','0'); -- id=8314
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '674', '90.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1353
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '674';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 674, 0, 0
                    , 425.00, -90, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 425.00,
                        buyQuantity =buyQuantity+-90, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3530
UPDATE storemovement SET  buyPricesHistoryBookData = "90.00*2026-10-14*425.00," WHERE transferproductid = 1353;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('674', '1', '90.00', '1', '1353', 'تحويل منتجات من المخزن', 'storemovementController.php', '90', '0', '1', '2026-10-14','0','0'); -- id=8315
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1708';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 674, 0, 0
                    , 425.00, 90.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+90.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3531
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('674', '2', '90.00', '0', '1353', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '90', '1', '2026-10-14','0','0'); -- id=8316
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '673', '119.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1354
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '673';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 673, 0, 0
                    , 420.00, -119, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 420.00,
                        buyQuantity =buyQuantity+-119, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3532
UPDATE storemovement SET  buyPricesHistoryBookData = "119.00*2026-10-14*420.00," WHERE transferproductid = 1354;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('673', '1', '119.00', '1', '1354', 'تحويل منتجات من المخزن', 'storemovementController.php', '119', '0', '1', '2026-10-14','0','0'); -- id=8317
UPDATE storedetail SET  productquantity = '119', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1707';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 673, 0, 0
                    , 420.00, 119.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+119.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3533
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('673', '2', '119.00', '0', '1354', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '119', '1', '2026-10-14','0','0'); -- id=8318
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '672', '11.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1355
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '672';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 672, 0, 0
                    , 255.00, -11, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 255.00,
                        buyQuantity =buyQuantity+-11, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3534
UPDATE storemovement SET  buyPricesHistoryBookData = "11.00*2026-10-14*255.00," WHERE transferproductid = 1355;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('672', '1', '11.00', '1', '1355', 'تحويل منتجات من المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=8319
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1706';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 672, 0, 0
                    , 255.00, 11.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3535
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('672', '2', '11.00', '0', '1355', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=8320
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '671', '752.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1356
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '671';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 671, 0, 0
                    , 310.00, -752, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-752, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3536
UPDATE storemovement SET  buyPricesHistoryBookData = "752.00*2026-10-14*310.00," WHERE transferproductid = 1356;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('671', '1', '752.00', '1', '1356', 'تحويل منتجات من المخزن', 'storemovementController.php', '752', '0', '1', '2026-10-14','0','0'); -- id=8321
UPDATE storedetail SET  productquantity = '752', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1705';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 671, 0, 0
                    , 310.00, 752.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+752.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3537
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('671', '2', '752.00', '0', '1356', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '752', '1', '2026-10-14','0','0'); -- id=8322
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '670', '54.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1357
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '670';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 670, 0, 0
                    , 325.00, -54, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 325.00,
                        buyQuantity =buyQuantity+-54, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3538
UPDATE storemovement SET  buyPricesHistoryBookData = "54.00*2026-10-14*325.00," WHERE transferproductid = 1357;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('670', '1', '54.00', '1', '1357', 'تحويل منتجات من المخزن', 'storemovementController.php', '54', '0', '1', '2026-10-14','0','0'); -- id=8323
UPDATE storedetail SET  productquantity = '54', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1704';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 670, 0, 0
                    , 325.00, 54.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+54.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3539
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('670', '2', '54.00', '0', '1357', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '54', '1', '2026-10-14','0','0'); -- id=8324
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '669', '103.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1358
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '669';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 669, 0, 0
                    , 310.00, -103, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-103, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3540
UPDATE storemovement SET  buyPricesHistoryBookData = "103.00*2026-10-14*310.00," WHERE transferproductid = 1358;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('669', '1', '103.00', '1', '1358', 'تحويل منتجات من المخزن', 'storemovementController.php', '103', '0', '1', '2026-10-14','0','0'); -- id=8325
UPDATE storedetail SET  productquantity = '103', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1703';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 669, 0, 0
                    , 310.00, 103.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+103.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3541
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('669', '2', '103.00', '0', '1358', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '103', '1', '2026-10-14','0','0'); -- id=8326
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '668', '43.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1359
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '668';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 668, 0, 0
                    , 310.00, -43, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-43, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3542
UPDATE storemovement SET  buyPricesHistoryBookData = "43.00*2026-10-14*310.00," WHERE transferproductid = 1359;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('668', '1', '43.00', '1', '1359', 'تحويل منتجات من المخزن', 'storemovementController.php', '43', '0', '1', '2026-10-14','0','0'); -- id=8327
UPDATE storedetail SET  productquantity = '43', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1702';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 668, 0, 0
                    , 310.00, 43.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+43.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3543
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('668', '2', '43.00', '0', '1359', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '43', '1', '2026-10-14','0','0'); -- id=8328
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '667', '23.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1360
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '667';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 667, 0, 0
                    , 330.00, -23, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 330.00,
                        buyQuantity =buyQuantity+-23, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3544
UPDATE storemovement SET  buyPricesHistoryBookData = "23.00*2026-10-14*330.00," WHERE transferproductid = 1360;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('667', '1', '23.00', '1', '1360', 'تحويل منتجات من المخزن', 'storemovementController.php', '23', '0', '1', '2026-10-14','0','0'); -- id=8329
UPDATE storedetail SET  productquantity = '23', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1701';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 667, 0, 0
                    , 330.00, 23.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3545
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('667', '2', '23.00', '0', '1360', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '23', '1', '2026-10-14','0','0'); -- id=8330
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '666', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1361
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '666';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 666, 0, 0
                    , 310.00, -25, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3546
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*310.00," WHERE transferproductid = 1361;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('666', '1', '25.00', '1', '1361', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=8331
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1700';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 666, 0, 0
                    , 310.00, 25.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3547
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('666', '2', '25.00', '0', '1361', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=8332
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '665', '6.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1362
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '665';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 665, 0, 0
                    , 235.00, -6, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 235.00,
                        buyQuantity =buyQuantity+-6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3548
UPDATE storemovement SET  buyPricesHistoryBookData = "6.00*2026-10-14*235.00," WHERE transferproductid = 1362;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('665', '1', '6.00', '1', '1362', 'تحويل منتجات من المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=8333
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1699';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 665, 0, 0
                    , 235.00, 6.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3549
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('665', '2', '6.00', '0', '1362', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=8334
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '664', '62.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1363
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '664';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 664, 0, 0
                    , 220.00, -62, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 220.00,
                        buyQuantity =buyQuantity+-62, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3550
UPDATE storemovement SET  buyPricesHistoryBookData = "62.00*2026-10-14*220.00," WHERE transferproductid = 1363;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('664', '1', '62.00', '1', '1363', 'تحويل منتجات من المخزن', 'storemovementController.php', '62', '0', '1', '2026-10-14','0','0'); -- id=8335
UPDATE storedetail SET  productquantity = '62', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1698';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 664, 0, 0
                    , 220.00, 62.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+62.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3551
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('664', '2', '62.00', '0', '1363', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '62', '1', '2026-10-14','0','0'); -- id=8336
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '663', '160.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1364
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '663';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 663, 0, 0
                    , 375.00, -160, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 375.00,
                        buyQuantity =buyQuantity+-160, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3552
UPDATE storemovement SET  buyPricesHistoryBookData = "160.00*2026-10-14*375.00," WHERE transferproductid = 1364;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('663', '1', '160.00', '1', '1364', 'تحويل منتجات من المخزن', 'storemovementController.php', '160', '0', '1', '2026-10-14','0','0'); -- id=8337
UPDATE storedetail SET  productquantity = '160', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1697';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 663, 0, 0
                    , 375.00, 160.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+160.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3553
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('663', '2', '160.00', '0', '1364', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '160', '1', '2026-10-14','0','0'); -- id=8338
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '662', '24.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1365
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '662';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 662, 0, 0
                    , 240.00, -24, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 240.00,
                        buyQuantity =buyQuantity+-24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3554
UPDATE storemovement SET  buyPricesHistoryBookData = "24.00*2026-10-14*240.00," WHERE transferproductid = 1365;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('662', '1', '24.00', '1', '1365', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8339
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1696';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 662, 0, 0
                    , 240.00, 24.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3555
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('662', '2', '24.00', '0', '1365', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8340
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '661', '70.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1366
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '661';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 661, 0, 0
                    , 270.00, -70, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-70, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3556
UPDATE storemovement SET  buyPricesHistoryBookData = "70.00*2026-10-14*270.00," WHERE transferproductid = 1366;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('661', '1', '70.00', '1', '1366', 'تحويل منتجات من المخزن', 'storemovementController.php', '70', '0', '1', '2026-10-14','0','0'); -- id=8341
UPDATE storedetail SET  productquantity = '70', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1695';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 661, 0, 0
                    , 270.00, 70.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+70.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3557
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('661', '2', '70.00', '0', '1366', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '70', '1', '2026-10-14','0','0'); -- id=8342
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '660', '20.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1367
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '660';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 660, 0, 0
                    , 530.00, -20, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 530.00,
                        buyQuantity =buyQuantity+-20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3558
UPDATE storemovement SET  buyPricesHistoryBookData = "20.00*2026-10-14*530.00," WHERE transferproductid = 1367;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('660', '1', '20.00', '1', '1367', 'تحويل منتجات من المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8343
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1694';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 660, 0, 0
                    , 530.00, 20.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3559
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('660', '2', '20.00', '0', '1367', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8344
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '659', '25.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1368
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '659';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 659, 0, 0
                    , 580.00, -25, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 580.00,
                        buyQuantity =buyQuantity+-25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3560
UPDATE storemovement SET  buyPricesHistoryBookData = "25.00*2026-10-14*580.00," WHERE transferproductid = 1368;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('659', '1', '25.00', '1', '1368', 'تحويل منتجات من المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=8345
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1693';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 659, 0, 0
                    , 580.00, 25.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3561
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('659', '2', '25.00', '0', '1368', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=8346
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '658', '30.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1369
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '658';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 658, 0, 0
                    , 580.00, -30, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 580.00,
                        buyQuantity =buyQuantity+-30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3562
UPDATE storemovement SET  buyPricesHistoryBookData = "30.00*2026-10-14*580.00," WHERE transferproductid = 1369;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('658', '1', '30.00', '1', '1369', 'تحويل منتجات من المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8347
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1692';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 658, 0, 0
                    , 580.00, 30.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3563
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('658', '2', '30.00', '0', '1369', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8348
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '657', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1370
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '657';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 657, 0, 0
                    , 580.00, -15, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 580.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3564
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*580.00," WHERE transferproductid = 1370;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('657', '1', '15.00', '1', '1370', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8349
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1691';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 657, 0, 0
                    , 580.00, 15.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3565
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('657', '2', '15.00', '0', '1370', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8350
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '656', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1371
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '656';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 656, 0, 0
                    , 550.00, -40, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 550.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3566
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*550.00," WHERE transferproductid = 1371;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('656', '1', '40.00', '1', '1371', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=8351
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1690';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 656, 0, 0
                    , 550.00, 40.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3567
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('656', '2', '40.00', '0', '1371', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=8352
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '655', '40.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1372
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '655';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 655, 0, 0
                    , 580.00, -40, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 580.00,
                        buyQuantity =buyQuantity+-40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3568
UPDATE storemovement SET  buyPricesHistoryBookData = "40.00*2026-10-14*580.00," WHERE transferproductid = 1372;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('655', '1', '40.00', '1', '1372', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=8353
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1689';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 655, 0, 0
                    , 580.00, 40.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3569
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('655', '2', '40.00', '0', '1372', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=8354
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '654', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1373
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '654';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 654, 0, 0
                    , 550.00, -15, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 550.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3570
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*550.00," WHERE transferproductid = 1373;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('654', '1', '15.00', '1', '1373', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8355
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1688';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 654, 0, 0
                    , 550.00, 15.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3571
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('654', '2', '15.00', '0', '1373', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8356
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '653', '16.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1374
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '653';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 653, 0, 0
                    , 480.00, -16, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 480.00,
                        buyQuantity =buyQuantity+-16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3572
UPDATE storemovement SET  buyPricesHistoryBookData = "16.00*2026-10-14*480.00," WHERE transferproductid = 1374;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('653', '1', '16.00', '1', '1374', 'تحويل منتجات من المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=8357
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1687';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 653, 0, 0
                    , 480.00, 16.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3573
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('653', '2', '16.00', '0', '1374', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2026-10-14','0','0'); -- id=8358
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '652', '15.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1375
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '652';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 652, 0, 0
                    , 505.00, -15, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 505.00,
                        buyQuantity =buyQuantity+-15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3574
UPDATE storemovement SET  buyPricesHistoryBookData = "15.00*2026-10-14*505.00," WHERE transferproductid = 1375;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('652', '1', '15.00', '1', '1375', 'تحويل منتجات من المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8359
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1686';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 652, 0, 0
                    , 505.00, 15.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3575
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('652', '2', '15.00', '0', '1375', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8360
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '651', '4.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1376
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '651';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 651, 0, 0
                    , 490.00, -4, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 490.00,
                        buyQuantity =buyQuantity+-4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3576
UPDATE storemovement SET  buyPricesHistoryBookData = "4.00*2026-10-14*490.00," WHERE transferproductid = 1376;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('651', '1', '4.00', '1', '1376', 'تحويل منتجات من المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=8361
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1685';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 651, 0, 0
                    , 490.00, 4.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3577
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('651', '2', '4.00', '0', '1376', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=8362
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '650', '74.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1377
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '650';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 650, 0, 0
                    , 310.00, -74, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-74, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3578
UPDATE storemovement SET  buyPricesHistoryBookData = "74.00*2026-10-14*310.00," WHERE transferproductid = 1377;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('650', '1', '74.00', '1', '1377', 'تحويل منتجات من المخزن', 'storemovementController.php', '74', '0', '1', '2026-10-14','0','0'); -- id=8363
UPDATE storedetail SET  productquantity = '74', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1684';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 650, 0, 0
                    , 310.00, 74.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+74.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3579
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('650', '2', '74.00', '0', '1377', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '74', '1', '2026-10-14','0','0'); -- id=8364
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '649', '44.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1378
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '649';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 649, 0, 0
                    , 290.00, -44, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 290.00,
                        buyQuantity =buyQuantity+-44, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3580
UPDATE storemovement SET  buyPricesHistoryBookData = "44.00*2026-10-14*290.00," WHERE transferproductid = 1378;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('649', '1', '44.00', '1', '1378', 'تحويل منتجات من المخزن', 'storemovementController.php', '44', '0', '1', '2026-10-14','0','0'); -- id=8365
UPDATE storedetail SET  productquantity = '44', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1683';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 649, 0, 0
                    , 290.00, 44.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+44.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3581
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('649', '2', '44.00', '0', '1378', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '44', '1', '2026-10-14','0','0'); -- id=8366
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '648', '49.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1379
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '648';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 648, 0, 0
                    , 340.00, -49, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 340.00,
                        buyQuantity =buyQuantity+-49, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3582
UPDATE storemovement SET  buyPricesHistoryBookData = "49.00*2026-10-14*340.00," WHERE transferproductid = 1379;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('648', '1', '49.00', '1', '1379', 'تحويل منتجات من المخزن', 'storemovementController.php', '49', '0', '1', '2026-10-14','0','0'); -- id=8367
UPDATE storedetail SET  productquantity = '49', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1682';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 648, 0, 0
                    , 340.00, 49.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+49.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3583
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('648', '2', '49.00', '0', '1379', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '49', '1', '2026-10-14','0','0'); -- id=8368
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '647', '69.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1380
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '647';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 647, 0, 0
                    , 310.00, -69, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 310.00,
                        buyQuantity =buyQuantity+-69, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3584
UPDATE storemovement SET  buyPricesHistoryBookData = "69.00*2026-10-14*310.00," WHERE transferproductid = 1380;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('647', '1', '69.00', '1', '1380', 'تحويل منتجات من المخزن', 'storemovementController.php', '69', '0', '1', '2026-10-14','0','0'); -- id=8369
UPDATE storedetail SET  productquantity = '69', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1681';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 647, 0, 0
                    , 310.00, 69.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+69.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3585
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('647', '2', '69.00', '0', '1380', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '69', '1', '2026-10-14','0','0'); -- id=8370
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '646', '5.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1381
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '646';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 646, 0, 0
                    , 270.00, -5, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyprice = 270.00,
                        buyQuantity =buyQuantity+-5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3586
UPDATE storemovement SET  buyPricesHistoryBookData = "5.00*2026-10-14*270.00," WHERE transferproductid = 1381;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('646', '1', '5.00', '1', '1381', 'تحويل منتجات من المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8371
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1680';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 646, 0, 0
                    , 270.00, 5.00, 0, 0, 1, '2026-10-14 18:00:24')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:00:24' ; -- id=3587
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('646', '2', '5.00', '0', '1381', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8372
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions ,operationnum,driverid,drivertimeout,driverdate,delivererid,deliverdate,storetype,priceType,price,sizeid,colorid,expireDate,comment,maincomment,recieveType,recieveUserid,recieveTime,deloperationnum) VALUES ('1', '2', '1', '0.00', '2026-10-14', '1', '0','10','0','0','2026-10-14 18:00:24','0','','0','','0','0','0','','','','0','0','','0'); -- id=1382
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1382;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1', '1', '0.00', '1', '1382', 'تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8373
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('1', '2', '0.00', '1', '2026-10-14'); -- id=3357
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1', '2', '0.00', '0', '1382', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0.00', '1', '2026-10-14','0','0'); -- id=8374
COMMIT;
BEGIN;
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:30:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:00:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 18:00:24', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php?do=sucess'); -- id=9563
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:30:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:00:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 18:00:26', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php?do=show'); -- id=9564
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:30:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:00:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 18:00:29', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9565
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 14:30:29";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 18:00:29', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9566
UPDATE product SET productName = 'بالون فيت قصات ميرور', productDescription = '', productCatId = '78', productBuyPrice = '410.00', productSellAllPrice = '435.00', productSellUnitPrice = '435.00', productSellHalfPrice = '435.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01999',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '410.00',lastbuyprice_withDiscount = '410',meanbuyprice = '410.00',meanbuyprice_withDiscount = '410' , productbuypricereal = '410.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.10' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1999';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1999, 1,'2026-10-14 18:00:31',1)
                ON DUPLICATE KEY UPDATE productid = 1999, edited = 1, sysdate = '2026-10-14 18:00:31', userid = 1; -- id=2951
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:30:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:00:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 18:00:37', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9567
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('يوني شيرت','2026-10-14','','93', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=162
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (162, 1,'2026-10-14 18:00:37',1)
                ON DUPLICATE KEY UPDATE catid = 162, edited = 1, sysdate = '2026-10-14 18:00:37', userid = 1; -- id=174
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '162', '1', '2026-10-14', '1', '0'); -- id=67
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:30:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:00:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 18:00:37', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9568
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:30:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:00:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:00:39', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9569
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:30:48";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:00:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 18:00:48', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php?do=show'); -- id=9570
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:31:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:01:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 18:01:02', '1', 'tempdelete2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php?do=tempdelete2&operationnum=10'); -- id=9571
BEGIN;
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '29';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3017';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1999, 0, 0
                    , 410.00, 60, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1227
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*410.00," WHERE transferproductid = 29;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1999', '2', '60', '1', '29', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=8375
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3016';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1999, 0, 0
                    , 410.00, 60.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1225
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1999', '1', '60', '0', '29', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=8376
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '30';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3018';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1998, 0, 0
                    , 395.00, 60, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1229
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*395.00," WHERE transferproductid = 30;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1998', '2', '60', '1', '30', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=8377
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3015';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1998, 0, 0
                    , 395.00, 60.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1224
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1998', '1', '60', '0', '30', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=8378
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '31';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3019';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1997, 0, 0
                    , 365.00, 60, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1231
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*365.00," WHERE transferproductid = 31;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1997', '2', '60', '1', '31', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=8379
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3014';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1997, 0, 0
                    , 365.00, 60.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1223
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1997', '1', '60', '0', '31', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=8380
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '32';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3020';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1996, 0, 0
                    , 375.00, 60, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1233
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*375.00," WHERE transferproductid = 32;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1996', '2', '60', '1', '32', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=8381
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3013';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1996, 0, 0
                    , 375.00, 60.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1222
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1996', '1', '60', '0', '32', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=8382
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '33';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3021';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1995, 0, 0
                    , 370.00, 52, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-52, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1235
UPDATE storemovement SET  buyPricesHistoryBookData = "52*2026-10-14*370.00," WHERE transferproductid = 33;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1995', '2', '52', '1', '33', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '52', '0', '1', '2026-10-14','0','0'); -- id=8383
UPDATE storedetail SET  productquantity = '52', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3012';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1995, 0, 0
                    , 370.00, 52.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+52.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1221
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1995', '1', '52', '0', '33', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '52', '1', '2026-10-14','0','0'); -- id=8384
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '34';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3022';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1994, 0, 0
                    , 380.00, 52, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-52, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1237
UPDATE storemovement SET  buyPricesHistoryBookData = "52*2026-10-14*380.00," WHERE transferproductid = 34;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1994', '2', '52', '1', '34', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '52', '0', '1', '2026-10-14','0','0'); -- id=8385
UPDATE storedetail SET  productquantity = '52', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3011';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1994, 0, 0
                    , 380.00, 52.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+52.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1220
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1994', '1', '52', '0', '34', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '52', '1', '2026-10-14','0','0'); -- id=8386
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '35';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3023';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1993, 0, 0
                    , 360.00, 52, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-52, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1239
UPDATE storemovement SET  buyPricesHistoryBookData = "52*2026-10-14*360.00," WHERE transferproductid = 35;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1993', '2', '52', '1', '35', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '52', '0', '1', '2026-10-14','0','0'); -- id=8387
UPDATE storedetail SET  productquantity = '52', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3010';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1993, 0, 0
                    , 360.00, 52.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+52.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1219
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1993', '1', '52', '0', '35', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '52', '1', '2026-10-14','0','0'); -- id=8388
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '36';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3024';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1992, 0, 0
                    , 900.00, 60, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1241
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*900.00," WHERE transferproductid = 36;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1992', '2', '60', '1', '36', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=8389
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3009';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1992, 0, 0
                    , 900.00, 60.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1210
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1992', '1', '60', '0', '36', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=8390
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '37';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3025';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1991, 0, 0
                    , 470.00, 30, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1243
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*470.00," WHERE transferproductid = 37;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1991', '2', '30', '1', '37', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8391
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3008';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1991, 0, 0
                    , 470.00, 30.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1218
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1991', '1', '30', '0', '37', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8392
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '38';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3026';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1990, 0, 0
                    , 800.00, 210, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-210, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1245
UPDATE storemovement SET  buyPricesHistoryBookData = "210*2026-10-14*800.00," WHERE transferproductid = 38;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1990', '2', '210', '1', '38', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '210', '0', '1', '2026-10-14','0','0'); -- id=8393
UPDATE storedetail SET  productquantity = '210', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3007';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1990, 0, 0
                    , 800.00, 210.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+210.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1209
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1990', '1', '210', '0', '38', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '210', '1', '2026-10-14','0','0'); -- id=8394
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '39';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3027';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1989, 0, 0
                    , 234.00, 24, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1247
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-14*234.00," WHERE transferproductid = 39;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1989', '2', '24', '1', '39', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8395
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3006';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1989, 0, 0
                    , 234.00, 24.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1198
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1989', '1', '24', '0', '39', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8396
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '40';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3028';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1988, 0, 0
                    , 513.00, 24, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1249
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-14*513.00," WHERE transferproductid = 40;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1988', '2', '24', '1', '40', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8397
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3005';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1988, 0, 0
                    , 513.00, 24.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1197
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1988', '1', '24', '0', '40', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8398
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '41';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3029';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1987, 0, 0
                    , 378.00, 24, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1251
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-14*378.00," WHERE transferproductid = 41;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1987', '2', '24', '1', '41', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8399
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3004';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1987, 0, 0
                    , 378.00, 24.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1196
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1987', '1', '24', '0', '41', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8400
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '42';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3030';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1986, 0, 0
                    , 486.00, 24, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1253
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-14*486.00," WHERE transferproductid = 42;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1986', '2', '24', '1', '42', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8401
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3003';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1986, 0, 0
                    , 486.00, 24.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1195
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1986', '1', '24', '0', '42', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8402
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '43';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3031';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1985, 0, 0
                    , 486.00, 72, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1255
UPDATE storemovement SET  buyPricesHistoryBookData = "72*2026-10-14*486.00," WHERE transferproductid = 43;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1985', '2', '72', '1', '43', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=8403
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3002';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1985, 0, 0
                    , 486.00, 72.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1194
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1985', '1', '72', '0', '43', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '72', '1', '2026-10-14','0','0'); -- id=8404
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '44';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3032';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1984, 0, 0
                    , 450.00, 144, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-144, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1257
UPDATE storemovement SET  buyPricesHistoryBookData = "144*2026-10-14*450.00," WHERE transferproductid = 44;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1984', '2', '144', '1', '44', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '144', '0', '1', '2026-10-14','0','0'); -- id=8405
UPDATE storedetail SET  productquantity = '144', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3001';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1984, 0, 0
                    , 450.00, 144.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+144.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1188
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1984', '1', '144', '0', '44', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '144', '1', '2026-10-14','0','0'); -- id=8406
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '45';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3033';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1983, 0, 0
                    , 423.00, 144, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-144, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1259
UPDATE storemovement SET  buyPricesHistoryBookData = "144*2026-10-14*423.00," WHERE transferproductid = 45;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1983', '2', '144', '1', '45', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '144', '0', '1', '2026-10-14','0','0'); -- id=8407
UPDATE storedetail SET  productquantity = '144', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3000';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1983, 0, 0
                    , 423.00, 144.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+144.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1182
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1983', '1', '144', '0', '45', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '144', '1', '2026-10-14','0','0'); -- id=8408
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '46';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3034';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1982, 0, 0
                    , 570.00, 60, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1261
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*570.00," WHERE transferproductid = 46;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1982', '2', '60', '1', '46', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=8409
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2999';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1982, 0, 0
                    , 570.00, 60.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1180
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1982', '1', '60', '0', '46', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=8410
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '47';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3035';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1981, 0, 0
                    , 480.00, 40, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1263
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*480.00," WHERE transferproductid = 47;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1981', '2', '40', '1', '47', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=8411
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2998';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1981, 0, 0
                    , 480.00, 40.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1179
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1981', '1', '40', '0', '47', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=8412
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '48';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3036';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1980, 0, 0
                    , 530.00, 40, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1265
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*530.00," WHERE transferproductid = 48;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1980', '2', '40', '1', '48', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=8413
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2997';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1980, 0, 0
                    , 530.00, 40.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1178
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1980', '1', '40', '0', '48', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=8414
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '49';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3037';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1979, 0, 0
                    , 580.00, 30, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1267
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*580.00," WHERE transferproductid = 49;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1979', '2', '30', '1', '49', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8415
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2996';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1979, 0, 0
                    , 580.00, 30.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1177
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1979', '1', '30', '0', '49', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8416
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '50';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3038';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1978, 0, 0
                    , 500.00, 40, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1269
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*500.00," WHERE transferproductid = 50;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1978', '2', '40', '1', '50', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=8417
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2995';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1978, 0, 0
                    , 500.00, 40.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1176
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1978', '1', '40', '0', '50', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=8418
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '51';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3039';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1977, 0, 0
                    , 550.00, 40, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1271
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*550.00," WHERE transferproductid = 51;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1977', '2', '40', '1', '51', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=8419
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2994';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1977, 0, 0
                    , 550.00, 40.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1175
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1977', '1', '40', '0', '51', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=8420
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '52';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3040';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1976, 0, 0
                    , 310.00, 138, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-138, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1273
UPDATE storemovement SET  buyPricesHistoryBookData = "138*2026-10-14*310.00," WHERE transferproductid = 52;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1976', '2', '138', '1', '52', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '138', '0', '1', '2026-10-14','0','0'); -- id=8421
UPDATE storedetail SET  productquantity = '138', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2993';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1976, 0, 0
                    , 310.00, 138.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+138.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1170
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1976', '1', '138', '0', '52', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '138', '1', '2026-10-14','0','0'); -- id=8422
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '53';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3041';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1975, 0, 0
                    , 200.00, 35, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1275
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2026-10-14*200.00," WHERE transferproductid = 53;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1975', '2', '35', '1', '53', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=8423
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2992';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1975, 0, 0
                    , 200.00, 35.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1169
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1975', '1', '35', '0', '53', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=8424
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '54';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3042';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1974, 0, 0
                    , 300.00, 45, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-45, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1277
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2026-10-14*300.00," WHERE transferproductid = 54;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1974', '2', '45', '1', '54', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=8425
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2991';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1974, 0, 0
                    , 300.00, 45.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1168
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1974', '1', '45', '0', '54', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=8426
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '55';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3043';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1973, 0, 0
                    , 330.00, 27, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1279
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-14*330.00," WHERE transferproductid = 55;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1973', '2', '27', '1', '55', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=8427
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2990';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1973, 0, 0
                    , 330.00, 27.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1167
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1973', '1', '27', '0', '55', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=8428
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '56';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3044';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1972, 0, 0
                    , 320.00, 84, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-84, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1281
UPDATE storemovement SET  buyPricesHistoryBookData = "84*2026-10-14*320.00," WHERE transferproductid = 56;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1972', '2', '84', '1', '56', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '84', '0', '1', '2026-10-14','0','0'); -- id=8429
UPDATE storedetail SET  productquantity = '84', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2989';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1972, 0, 0
                    , 320.00, 84.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+84.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1166
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1972', '1', '84', '0', '56', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '84', '1', '2026-10-14','0','0'); -- id=8430
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '57';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3045';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1971, 0, 0
                    , 600.00, 10, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1283
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*600.00," WHERE transferproductid = 57;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1971', '2', '10', '1', '57', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8431
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2988';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1971, 0, 0
                    , 600.00, 10.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1163
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1971', '1', '10', '0', '57', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8432
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '58';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3046';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1970, 0, 0
                    , 740.00, 15, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1285
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*740.00," WHERE transferproductid = 58;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1970', '2', '15', '1', '58', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8433
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2987';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1970, 0, 0
                    , 740.00, 15.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1162
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1970', '1', '15', '0', '58', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8434
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '59';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3047';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1969, 0, 0
                    , 530.00, 20, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1287
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*530.00," WHERE transferproductid = 59;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1969', '2', '20', '1', '59', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8435
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2986';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1969, 0, 0
                    , 530.00, 20.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1161
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1969', '1', '20', '0', '59', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8436
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '60';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3048';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1968, 0, 0
                    , 600.00, 15, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1289
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*600.00," WHERE transferproductid = 60;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1968', '2', '15', '1', '60', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8437
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2985';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1968, 0, 0
                    , 600.00, 15.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1160
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1968', '1', '15', '0', '60', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8438
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '61';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3049';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1967, 0, 0
                    , 540.00, 15, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1291
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*540.00," WHERE transferproductid = 61;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1967', '2', '15', '1', '61', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8439
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2984';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1967, 0, 0
                    , 540.00, 15.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1159
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1967', '1', '15', '0', '61', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8440
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '62';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3050';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1966, 0, 0
                    , 580.00, 15, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1293
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*580.00," WHERE transferproductid = 62;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1966', '2', '15', '1', '62', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8441
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2983';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1966, 0, 0
                    , 580.00, 15.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1158
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1966', '1', '15', '0', '62', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8442
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '63';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3051';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1965, 0, 0
                    , 580.00, 20, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1295
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*580.00," WHERE transferproductid = 63;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1965', '2', '20', '1', '63', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8443
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2982';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1965, 0, 0
                    , 580.00, 20.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1157
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1965', '1', '20', '0', '63', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8444
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '64';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3052';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1964, 0, 0
                    , 600.00, 10, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1297
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*600.00," WHERE transferproductid = 64;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1964', '2', '10', '1', '64', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8445
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2981';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1964, 0, 0
                    , 600.00, 10.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1156
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1964', '1', '10', '0', '64', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8446
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '65';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3053';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1963, 0, 0
                    , 700.00, 10, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1299
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*700.00," WHERE transferproductid = 65;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1963', '2', '10', '1', '65', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=8447
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2980';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1963, 0, 0
                    , 700.00, 10.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1155
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1963', '1', '10', '0', '65', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=8448
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '66';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3054';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1962, 0, 0
                    , 650.00, 5, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1301
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*650.00," WHERE transferproductid = 66;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1962', '2', '5', '1', '66', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8449
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2979';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1962, 0, 0
                    , 650.00, 5.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1154
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1962', '1', '5', '0', '66', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8450
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '67';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3055';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1961, 0, 0
                    , 500.00, 30, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1303
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*500.00," WHERE transferproductid = 67;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1961', '2', '30', '1', '67', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8451
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2978';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1961, 0, 0
                    , 500.00, 30.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1153
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1961', '1', '30', '0', '67', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8452
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '68';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3056';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1960, 0, 0
                    , 475.00, 72, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1305
UPDATE storemovement SET  buyPricesHistoryBookData = "72*2026-10-14*475.00," WHERE transferproductid = 68;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1960', '2', '72', '1', '68', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=8453
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2977';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1960, 0, 0
                    , 475.00, 72.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1137
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1960', '1', '72', '0', '68', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '72', '1', '2026-10-14','0','0'); -- id=8454
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '69';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3057';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1959, 0, 0
                    , 490.00, 16, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-16, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1307
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2026-10-14*490.00," WHERE transferproductid = 69;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1959', '2', '16', '1', '69', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=8455
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2976';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1959, 0, 0
                    , 490.00, 16.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1152
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1959', '1', '16', '0', '69', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '16', '1', '2026-10-14','0','0'); -- id=8456
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '70';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3058';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1958, 0, 0
                    , 470.00, 20, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1309
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*470.00," WHERE transferproductid = 70;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1958', '2', '20', '1', '70', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8457
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2975';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1958, 0, 0
                    , 470.00, 20.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1151
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1958', '1', '20', '0', '70', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8458
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '71';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3059';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1957, 0, 0
                    , 630.00, 20, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1311
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*630.00," WHERE transferproductid = 71;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1957', '2', '20', '1', '71', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8459
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2974';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1957, 0, 0
                    , 630.00, 20.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1149
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1957', '1', '20', '0', '71', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8460
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '72';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3060';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1956, 0, 0
                    , 550.00, 48, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1313
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-14*550.00," WHERE transferproductid = 72;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1956', '2', '48', '1', '72', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=8461
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2973';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1956, 0, 0
                    , 550.00, 48.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1147
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1956', '1', '48', '0', '72', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=8462
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '73';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3061';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1955, 0, 0
                    , 650.00, 20, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1315
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*650.00," WHERE transferproductid = 73;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1955', '2', '20', '1', '73', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8463
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2972';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1955, 0, 0
                    , 650.00, 20.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1146
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1955', '1', '20', '0', '73', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8464
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '74';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3062';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1954, 0, 0
                    , 620.00, 56, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-56, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1317
UPDATE storemovement SET  buyPricesHistoryBookData = "56*2026-10-14*620.00," WHERE transferproductid = 74;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1954', '2', '56', '1', '74', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '56', '0', '1', '2026-10-14','0','0'); -- id=8465
UPDATE storedetail SET  productquantity = '56', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2971';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1954, 0, 0
                    , 620.00, 56.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+56.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1143
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1954', '1', '56', '0', '74', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '56', '1', '2026-10-14','0','0'); -- id=8466
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '75';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3063';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1953, 0, 0
                    , 520.00, 52, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-52, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1319
UPDATE storemovement SET  buyPricesHistoryBookData = "52*2026-10-14*520.00," WHERE transferproductid = 75;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1953', '2', '52', '1', '75', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '52', '0', '1', '2026-10-14','0','0'); -- id=8467
UPDATE storedetail SET  productquantity = '52', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2970';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1953, 0, 0
                    , 520.00, 52.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+52.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1142
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1953', '1', '52', '0', '75', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '52', '1', '2026-10-14','0','0'); -- id=8468
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '76';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3064';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1952, 0, 0
                    , 570.00, 20, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1321
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*570.00," WHERE transferproductid = 76;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1952', '2', '20', '1', '76', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8469
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2969';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1952, 0, 0
                    , 570.00, 20.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1141
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1952', '1', '20', '0', '76', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8470
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '77';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3065';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1951, 0, 0
                    , 450.00, 20, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1323
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*450.00," WHERE transferproductid = 77;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1951', '2', '20', '1', '77', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8471
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2968';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1951, 0, 0
                    , 450.00, 20.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1140
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1951', '1', '20', '0', '77', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8472
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '78';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3066';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1950, 0, 0
                    , 500.00, 24, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1325
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-14*500.00," WHERE transferproductid = 78;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1950', '2', '24', '1', '78', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8473
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2967';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1950, 0, 0
                    , 500.00, 24.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1139
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1950', '1', '24', '0', '78', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8474
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '79';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3067';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1949, 0, 0
                    , 480.00, 12, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1327
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*480.00," WHERE transferproductid = 79;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1949', '2', '12', '1', '79', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8475
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2966';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1949, 0, 0
                    , 480.00, 12.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1138
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1949', '1', '12', '0', '79', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8476
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '80';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3068';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1948, 0, 0
                    , 500.00, 192, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-192, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1329
UPDATE storemovement SET  buyPricesHistoryBookData = "192*2026-10-14*500.00," WHERE transferproductid = 80;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1948', '2', '192', '1', '80', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '192', '0', '1', '2026-10-14','0','0'); -- id=8477
UPDATE storedetail SET  productquantity = '192', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2965';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1948, 0, 0
                    , 500.00, 192.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+192.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1136
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1948', '1', '192', '0', '80', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '192', '1', '2026-10-14','0','0'); -- id=8478
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '81';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3069';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1947, 0, 0
                    , 540.00, 40, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1331
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*540.00," WHERE transferproductid = 81;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1947', '2', '40', '1', '81', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=8479
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2964';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1947, 0, 0
                    , 540.00, 40.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1135
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1947', '1', '40', '0', '81', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=8480
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '82';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3070';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1946, 0, 0
                    , 460.00, 240, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-240, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1333
UPDATE storemovement SET  buyPricesHistoryBookData = "240*2026-10-14*460.00," WHERE transferproductid = 82;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1946', '2', '240', '1', '82', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '240', '0', '1', '2026-10-14','0','0'); -- id=8481
UPDATE storedetail SET  productquantity = '240', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2963';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1946, 0, 0
                    , 460.00, 240.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+240.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1134
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1946', '1', '240', '0', '82', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '240', '1', '2026-10-14','0','0'); -- id=8482
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '83';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3071';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1945, 0, 0
                    , 782.00, 16, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-16, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1335
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2026-10-14*782.00," WHERE transferproductid = 83;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1945', '2', '16', '1', '83', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=8483
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2962';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1945, 0, 0
                    , 782.00, 16.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1133
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1945', '1', '16', '0', '83', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '16', '1', '2026-10-14','0','0'); -- id=8484
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '84';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3072';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1944, 0, 0
                    , 782.00, 20, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1337
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*782.00," WHERE transferproductid = 84;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1944', '2', '20', '1', '84', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8485
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2961';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1944, 0, 0
                    , 782.00, 20.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1132
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1944', '1', '20', '0', '84', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8486
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '85';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3073';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1943, 0, 0
                    , 782.00, 20, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1339
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*782.00," WHERE transferproductid = 85;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1943', '2', '20', '1', '85', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8487
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2960';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1943, 0, 0
                    , 782.00, 20.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1131
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1943', '1', '20', '0', '85', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8488
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '86';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3074';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1942, 0, 0
                    , 782.00, 16, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-16, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1341
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2026-10-14*782.00," WHERE transferproductid = 86;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1942', '2', '16', '1', '86', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=8489
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2959';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1942, 0, 0
                    , 782.00, 16.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1130
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1942', '1', '16', '0', '86', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '16', '1', '2026-10-14','0','0'); -- id=8490
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '87';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3075';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1941, 0, 0
                    , 782.00, 20, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1343
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*782.00," WHERE transferproductid = 87;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1941', '2', '20', '1', '87', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8491
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2958';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1941, 0, 0
                    , 782.00, 20.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1129
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1941', '1', '20', '0', '87', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8492
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '88';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3076';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1940, 0, 0
                    , 782.00, 24, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1345
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-14*782.00," WHERE transferproductid = 88;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1940', '2', '24', '1', '88', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8493
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2957';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1940, 0, 0
                    , 782.00, 24.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1128
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1940', '1', '24', '0', '88', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8494
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '89';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3077';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1939, 0, 0
                    , 532.00, 20, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1347
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*532.00," WHERE transferproductid = 89;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1939', '2', '20', '1', '89', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8495
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2956';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1939, 0, 0
                    , 532.00, 20.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1127
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1939', '1', '20', '0', '89', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8496
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '90';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3078';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1938, 0, 0
                    , 697.00, 30, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1349
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*697.00," WHERE transferproductid = 90;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1938', '2', '30', '1', '90', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8497
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2955';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1938, 0, 0
                    , 697.00, 30.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1126
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1938', '1', '30', '0', '90', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8498
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '91';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3079';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1937, 0, 0
                    , 652.00, 5, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1351
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*652.00," WHERE transferproductid = 91;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1937', '2', '5', '1', '91', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8499
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2954';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1937, 0, 0
                    , 652.00, 5.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1125
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1937', '1', '5', '0', '91', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8500
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '92';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3080';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1936, 0, 0
                    , 617.00, 20, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1353
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*617.00," WHERE transferproductid = 92;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1936', '2', '20', '1', '92', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8501
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2953';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1936, 0, 0
                    , 617.00, 20.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1124
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1936', '1', '20', '0', '92', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8502
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '93';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3081';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1935, 0, 0
                    , 522.00, 20, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1355
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*522.00," WHERE transferproductid = 93;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1935', '2', '20', '1', '93', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8503
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2952';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1935, 0, 0
                    , 522.00, 20.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1123
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1935', '1', '20', '0', '93', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8504
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '94';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3082';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1934, 0, 0
                    , 592.00, 30, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1357
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*592.00," WHERE transferproductid = 94;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1934', '2', '30', '1', '94', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8505
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2951';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1934, 0, 0
                    , 592.00, 30.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1122
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1934', '1', '30', '0', '94', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8506
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '95';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3083';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1933, 0, 0
                    , 400.00, 72, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1359
UPDATE storemovement SET  buyPricesHistoryBookData = "72*2026-10-14*400.00," WHERE transferproductid = 95;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1933', '2', '72', '1', '95', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=8507
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2950';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1933, 0, 0
                    , 400.00, 72.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1120
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1933', '1', '72', '0', '95', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '72', '1', '2026-10-14','0','0'); -- id=8508
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '96';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3084';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1932, 0, 0
                    , 310.00, 174, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-174, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1361
UPDATE storemovement SET  buyPricesHistoryBookData = "174*2026-10-14*310.00," WHERE transferproductid = 96;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1932', '2', '174', '1', '96', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '174', '0', '1', '2026-10-14','0','0'); -- id=8509
UPDATE storedetail SET  productquantity = '174', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2949';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1932, 0, 0
                    , 310.00, 174.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+174.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1119
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1932', '1', '174', '0', '96', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '174', '1', '2026-10-14','0','0'); -- id=8510
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '97';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3085';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1931, 0, 0
                    , 350.00, 54, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-54, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1363
UPDATE storemovement SET  buyPricesHistoryBookData = "54*2026-10-14*350.00," WHERE transferproductid = 97;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1931', '2', '54', '1', '97', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '54', '0', '1', '2026-10-14','0','0'); -- id=8511
UPDATE storedetail SET  productquantity = '54', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2948';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1931, 0, 0
                    , 350.00, 54.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+54.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1118
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1931', '1', '54', '0', '97', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '54', '1', '2026-10-14','0','0'); -- id=8512
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '98';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3086';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1930, 0, 0
                    , 395.00, 24, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1365
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-14*395.00," WHERE transferproductid = 98;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1930', '2', '24', '1', '98', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8513
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2947';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1930, 0, 0
                    , 395.00, 24.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1117
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1930', '1', '24', '0', '98', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8514
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '99';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3087';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1929, 0, 0
                    , 425.00, 24, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1367
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-14*425.00," WHERE transferproductid = 99;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1929', '2', '24', '1', '99', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8515
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2946';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1929, 0, 0
                    , 425.00, 24.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1116
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1929', '1', '24', '0', '99', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8516
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '100';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3088';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1928, 0, 0
                    , 850.00, 12, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1369
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*850.00," WHERE transferproductid = 100;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1928', '2', '12', '1', '100', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8517
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2945';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1928, 0, 0
                    , 850.00, 12.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1115
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1928', '1', '12', '0', '100', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8518
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '101';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3089';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1927, 0, 0
                    , 220.00, 612, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-612, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1371
UPDATE storemovement SET  buyPricesHistoryBookData = "612*2026-10-14*220.00," WHERE transferproductid = 101;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1927', '2', '612', '1', '101', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '612', '0', '1', '2026-10-14','0','0'); -- id=8519
UPDATE storedetail SET  productquantity = '612', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2944';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1927, 0, 0
                    , 220.00, 612.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+612.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1370
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1927', '1', '612', '0', '101', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '612', '1', '2026-10-14','0','0'); -- id=8520
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '102';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3090';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1926, 0, 0
                    , 395.00, 308, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-308, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1373
UPDATE storemovement SET  buyPricesHistoryBookData = "308*2026-10-14*395.00," WHERE transferproductid = 102;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1926', '2', '308', '1', '102', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '308', '0', '1', '2026-10-14','0','0'); -- id=8521
UPDATE storedetail SET  productquantity = '308', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2943';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1926, 0, 0
                    , 395.00, 308.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+308.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1114
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1926', '1', '308', '0', '102', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '308', '1', '2026-10-14','0','0'); -- id=8522
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '103';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3091';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1925, 0, 0
                    , 495.00, 40, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1375
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-09*495.00," WHERE transferproductid = 103;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1925', '2', '40', '1', '103', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=8523
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2942';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1925, 0, 0
                    , 495.00, 40.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1113
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1925', '1', '40', '0', '103', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=8524
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '104';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3092';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1924, 0, 0
                    , 275.00, 180, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-180, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1377
UPDATE storemovement SET  buyPricesHistoryBookData = "180*2026-10-13*275.00," WHERE transferproductid = 104;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1924', '2', '180', '1', '104', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '180', '0', '1', '2026-10-14','0','0'); -- id=8525
UPDATE storedetail SET  productquantity = '180', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2941';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1924, 0, 0
                    , 275.00, 180.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+180.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1085
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1924', '1', '180', '0', '104', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '180', '1', '2026-10-14','0','0'); -- id=8526
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '105';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3093';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1923, 0, 0
                    , 230.00, 180, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-180, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1379
UPDATE storemovement SET  buyPricesHistoryBookData = "180*2026-10-13*230.00," WHERE transferproductid = 105;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1923', '2', '180', '1', '105', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '180', '0', '1', '2026-10-14','0','0'); -- id=8527
UPDATE storedetail SET  productquantity = '180', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2940';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1923, 0, 0
                    , 230.00, 180.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+180.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1084
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1923', '1', '180', '0', '105', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '180', '1', '2026-10-14','0','0'); -- id=8528
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '106';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3094';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1922, 0, 0
                    , 325.00, 27, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1381
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-13*325.00," WHERE transferproductid = 106;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1922', '2', '27', '1', '106', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=8529
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2939';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1922, 0, 0
                    , 325.00, 27.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1083
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1922', '1', '27', '0', '106', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=8530
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '107';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3095';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1921, 0, 0
                    , 460.00, 27, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1383
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-14*460.00," WHERE transferproductid = 107;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '2', '27', '1', '107', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=8531
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2938';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1921, 0, 0
                    , 460.00, 27.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1121
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '27', '0', '107', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=8532
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '108';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3096';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1920, 0, 0
                    , 370.00, 327, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-327, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1385
UPDATE storemovement SET  buyPricesHistoryBookData = "327*2026-10-13*370.00," WHERE transferproductid = 108;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1920', '2', '327', '1', '108', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '327', '0', '1', '2026-10-14','0','0'); -- id=8533
UPDATE storedetail SET  productquantity = '327', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2937';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1920, 0, 0
                    , 370.00, 327.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+327.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1081
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1920', '1', '327', '0', '108', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '327', '1', '2026-10-14','0','0'); -- id=8534
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '109';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3097';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1919, 0, 0
                    , 425.00, 252, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-252, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1387
UPDATE storemovement SET  buyPricesHistoryBookData = "252*2026-10-13*425.00," WHERE transferproductid = 109;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '2', '252', '1', '109', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '252', '0', '1', '2026-10-14','0','0'); -- id=8535
UPDATE storedetail SET  productquantity = '252', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2936';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1919, 0, 0
                    , 425.00, 252.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+252.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1080
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '1', '252', '0', '109', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '252', '1', '2026-10-14','0','0'); -- id=8536
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '110';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3098';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1918, 0, 0
                    , 300.00, 30, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1389
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-13*300.00," WHERE transferproductid = 110;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1918', '2', '30', '1', '110', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8537
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2935';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1918, 0, 0
                    , 300.00, 30.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1079
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1918', '1', '30', '0', '110', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8538
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '111';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3099';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1917, 0, 0
                    , 500.00, 30, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1391
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-13*500.00," WHERE transferproductid = 111;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1917', '2', '30', '1', '111', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8539
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2934';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1917, 0, 0
                    , 500.00, 30.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1078
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1917', '1', '30', '0', '111', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8540
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '112';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3100';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1916, 0, 0
                    , 500.00, 30, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1393
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-13*500.00," WHERE transferproductid = 112;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1916', '2', '30', '1', '112', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8541
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2933';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1916, 0, 0
                    , 500.00, 30.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1077
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1916', '1', '30', '0', '112', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8542
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '113';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3101';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1915, 0, 0
                    , 700.00, 30, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1395
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-13*700.00," WHERE transferproductid = 113;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1915', '2', '30', '1', '113', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8543
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2932';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1915, 0, 0
                    , 700.00, 30.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1076
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1915', '1', '30', '0', '113', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8544
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '114';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3102';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1914, 0, 0
                    , 450.00, 48, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1397
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-13*450.00," WHERE transferproductid = 114;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1914', '2', '48', '1', '114', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=8545
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2931';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1914, 0, 0
                    , 450.00, 48.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1065
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1914', '1', '48', '0', '114', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=8546
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '115';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3103';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1913, 0, 0
                    , 580.00, 42, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-42, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1399
UPDATE storemovement SET  buyPricesHistoryBookData = "42*2026-10-13*580.00," WHERE transferproductid = 115;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1913', '2', '42', '1', '115', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '42', '0', '1', '2026-10-14','0','0'); -- id=8547
UPDATE storedetail SET  productquantity = '42', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2930';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1913, 0, 0
                    , 580.00, 42.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1064
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1913', '1', '42', '0', '115', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '42', '1', '2026-10-14','0','0'); -- id=8548
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '116';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3104';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1912, 0, 0
                    , 540.00, 48, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1401
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-13*540.00," WHERE transferproductid = 116;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1912', '2', '48', '1', '116', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=8549
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2929';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1912, 0, 0
                    , 540.00, 48.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1063
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1912', '1', '48', '0', '116', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=8550
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '117';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3105';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1911, 0, 0
                    , 525.00, 30, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1403
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-13*525.00," WHERE transferproductid = 117;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1911', '2', '30', '1', '117', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8551
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2928';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1911, 0, 0
                    , 525.00, 30.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1062
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1911', '1', '30', '0', '117', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8552
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '118';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3106';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 118;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1910', '2', '0', '1', '118', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8553
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2927';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1910', '1', '0', '0', '118', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8554
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '119';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3107';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 119;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1909', '2', '0', '1', '119', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8555
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2926';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1909', '1', '0', '0', '119', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8556
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '120';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3108';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 120;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1908', '2', '0', '1', '120', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8557
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2925';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1908', '1', '0', '0', '120', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8558
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '121';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3109';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 121;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1907', '2', '0', '1', '121', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8559
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2924';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1907', '1', '0', '0', '121', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8560
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '122';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3110';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1906, 0, 0
                    , 250.00, 452, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-452, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1405
UPDATE storemovement SET  buyPricesHistoryBookData = "452*2026-10-13*250.00," WHERE transferproductid = 122;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1906', '2', '452', '1', '122', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '452', '0', '1', '2026-10-14','0','0'); -- id=8561
UPDATE storedetail SET  productquantity = '452', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2923';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1906, 0, 0
                    , 250.00, 452.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+452.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1000
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1906', '1', '452', '0', '122', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '452', '1', '2026-10-14','0','0'); -- id=8562
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '123';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3111';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1905, 0, 0
                    , 441.60, 30, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1407
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-13*441.60," WHERE transferproductid = 123;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1905', '2', '30', '1', '123', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8563
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2922';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1905, 0, 0
                    , 441.60, 30.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=999
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1905', '1', '30', '0', '123', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8564
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '124';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3112';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1904, 0, 0
                    , 322.00, 12, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1409
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-13*322.00," WHERE transferproductid = 124;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1904', '2', '12', '1', '124', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8565
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2921';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1904, 0, 0
                    , 322.00, 12.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=998
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1904', '1', '12', '0', '124', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8566
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '125';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3113';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1903, 0, 0
                    , 423.20, 18, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1411
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-13*423.20," WHERE transferproductid = 125;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1903', '2', '18', '1', '125', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=8567
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2920';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1903, 0, 0
                    , 423.20, 18.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=997
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1903', '1', '18', '0', '125', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=8568
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '126';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3114';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1902, 0, 0
                    , 414.00, 18, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1413
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-13*414.00," WHERE transferproductid = 126;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1902', '2', '18', '1', '126', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=8569
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2919';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1902, 0, 0
                    , 414.00, 18.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=996
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1902', '1', '18', '0', '126', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=8570
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '127';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3115';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1901, 0, 0
                    , 414.00, 21, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1415
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-13*414.00," WHERE transferproductid = 127;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1901', '2', '21', '1', '127', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=8571
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2918';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1901, 0, 0
                    , 414.00, 21.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=995
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1901', '1', '21', '0', '127', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=8572
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '128';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3116';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1900, 0, 0
                    , 368.00, 3, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1417
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-13*368.00," WHERE transferproductid = 128;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1900', '2', '3', '1', '128', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=8573
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2917';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1900, 0, 0
                    , 368.00, 3.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=994
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1900', '1', '3', '0', '128', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=8574
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '129';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3117';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1899, 0, 0
                    , 414.00, 27, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1419
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-13*414.00," WHERE transferproductid = 129;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1899', '2', '27', '1', '129', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=8575
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2916';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1899, 0, 0
                    , 414.00, 27.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=993
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1899', '1', '27', '0', '129', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=8576
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '130';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3118';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1898, 0, 0
                    , 441.60, 12, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1421
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-13*441.60," WHERE transferproductid = 130;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1898', '2', '12', '1', '130', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8577
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2915';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1898, 0, 0
                    , 441.60, 12.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=992
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1898', '1', '12', '0', '130', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8578
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '131';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3119';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1897, 0, 0
                    , 312.80, 72, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1423
UPDATE storemovement SET  buyPricesHistoryBookData = "72*2026-10-13*312.80," WHERE transferproductid = 131;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1897', '2', '72', '1', '131', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=8579
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2914';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1897, 0, 0
                    , 312.80, 72.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=991
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1897', '1', '72', '0', '131', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '72', '1', '2026-10-14','0','0'); -- id=8580
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '132';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3120';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1896, 0, 0
                    , 285.20, 63, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-63, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1425
UPDATE storemovement SET  buyPricesHistoryBookData = "63*2026-10-13*285.20," WHERE transferproductid = 132;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1896', '2', '63', '1', '132', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '63', '0', '1', '2026-10-14','0','0'); -- id=8581
UPDATE storedetail SET  productquantity = '63', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2913';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1896, 0, 0
                    , 285.20, 63.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+63.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=990
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1896', '1', '63', '0', '132', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '63', '1', '2026-10-14','0','0'); -- id=8582
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '133';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3121';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 2, 1895, 0, 0
                    , 358.80, 81, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-81, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1427
UPDATE storemovement SET  buyPricesHistoryBookData = "81*2026-10-13*358.80," WHERE transferproductid = 133;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1895', '2', '81', '1', '133', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '81', '0', '1', '2026-10-14','0','0'); -- id=8583
UPDATE storedetail SET  productquantity = '81', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2912';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-13', 1, 1895, 0, 0
                    , 358.80, 81.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+81.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=989
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1895', '1', '81', '0', '133', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '81', '1', '2026-10-14','0','0'); -- id=8584
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '134';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3122';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1894, 0, 0
                    , 630.00, 32, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1429
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-12*630.00," WHERE transferproductid = 134;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1894', '2', '32', '1', '134', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=8585
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2911';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1894, 0, 0
                    , 630.00, 32.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=988
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1894', '1', '32', '0', '134', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=8586
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '135';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3123';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1893, 0, 0
                    , 620.00, 24, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1431
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*620.00," WHERE transferproductid = 135;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1893', '2', '24', '1', '135', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8587
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2910';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1893, 0, 0
                    , 620.00, 24.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=987
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1893', '1', '24', '0', '135', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8588
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '136';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3124';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1892, 0, 0
                    , 1100.00, 24, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1433
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*1100.00," WHERE transferproductid = 136;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1892', '2', '24', '1', '136', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8589
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2909';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1892, 0, 0
                    , 1100.00, 24.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=986
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1892', '1', '24', '0', '136', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8590
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '137';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3125';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1891, 0, 0
                    , 364.00, 297, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-297, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1435
UPDATE storemovement SET  buyPricesHistoryBookData = "297*2026-10-12*364.00," WHERE transferproductid = 137;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1891', '2', '297', '1', '137', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '297', '0', '1', '2026-10-14','0','0'); -- id=8591
UPDATE storedetail SET  productquantity = '297', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2908';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1891, 0, 0
                    , 364.00, 297.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+297.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=985
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1891', '1', '297', '0', '137', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '297', '1', '2026-10-14','0','0'); -- id=8592
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '138';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3126';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1890, 0, 0
                    , 314.00, 420, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-420, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1437
UPDATE storemovement SET  buyPricesHistoryBookData = "420*2026-10-12*314.00," WHERE transferproductid = 138;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1890', '2', '420', '1', '138', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '420', '0', '1', '2026-10-14','0','0'); -- id=8593
UPDATE storedetail SET  productquantity = '420', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2907';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1890, 0, 0
                    , 314.00, 420.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+420.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=984
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1890', '1', '420', '0', '138', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '420', '1', '2026-10-14','0','0'); -- id=8594
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '139';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3127';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1889, 0, 0
                    , 319.00, 312, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-312, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1439
UPDATE storemovement SET  buyPricesHistoryBookData = "312*2026-10-12*319.00," WHERE transferproductid = 139;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1889', '2', '312', '1', '139', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '312', '0', '1', '2026-10-14','0','0'); -- id=8595
UPDATE storedetail SET  productquantity = '312', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2906';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1889, 0, 0
                    , 319.00, 312.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+312.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=983
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1889', '1', '312', '0', '139', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '312', '1', '2026-10-14','0','0'); -- id=8596
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '140';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3128';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1888, 0, 0
                    , 269.00, 411, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-411, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1441
UPDATE storemovement SET  buyPricesHistoryBookData = "411*2026-10-12*269.00," WHERE transferproductid = 140;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1888', '2', '411', '1', '140', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '411', '0', '1', '2026-10-14','0','0'); -- id=8597
UPDATE storedetail SET  productquantity = '411', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2905';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1888, 0, 0
                    , 269.00, 411.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+411.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=982
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1888', '1', '411', '0', '140', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '411', '1', '2026-10-14','0','0'); -- id=8598
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '141';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3129';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1887, 0, 0
                    , 379.00, 351, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-351, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1443
UPDATE storemovement SET  buyPricesHistoryBookData = "351*2026-10-12*379.00," WHERE transferproductid = 141;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1887', '2', '351', '1', '141', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '351', '0', '1', '2026-10-14','0','0'); -- id=8599
UPDATE storedetail SET  productquantity = '351', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2904';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1887, 0, 0
                    , 379.00, 351.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+351.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=981
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1887', '1', '351', '0', '141', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '351', '1', '2026-10-14','0','0'); -- id=8600
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '142';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3130';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1886, 0, 0
                    , 289.00, 65, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-65, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1445
UPDATE storemovement SET  buyPricesHistoryBookData = "65*2026-10-12*289.00," WHERE transferproductid = 142;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1886', '2', '65', '1', '142', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '65', '0', '1', '2026-10-14','0','0'); -- id=8601
UPDATE storedetail SET  productquantity = '65', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2903';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1886, 0, 0
                    , 289.00, 65.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+65.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=980
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1886', '1', '65', '0', '142', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '65', '1', '2026-10-14','0','0'); -- id=8602
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '143';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3131';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1885, 0, 0
                    , 359.00, 22, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-22, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1447
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2026-10-12*359.00," WHERE transferproductid = 143;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1885', '2', '22', '1', '143', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '22', '0', '1', '2026-10-14','0','0'); -- id=8603
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2902';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1885, 0, 0
                    , 359.00, 22.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=979
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1885', '1', '22', '0', '143', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '22', '1', '2026-10-14','0','0'); -- id=8604
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '144';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3132';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1884, 0, 0
                    , 429.00, 283, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-283, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1449
UPDATE storemovement SET  buyPricesHistoryBookData = "283*2026-10-12*429.00," WHERE transferproductid = 144;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1884', '2', '283', '1', '144', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '283', '0', '1', '2026-10-14','0','0'); -- id=8605
UPDATE storedetail SET  productquantity = '283', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2901';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1884, 0, 0
                    , 429.00, 283.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+283.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=978
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1884', '1', '283', '0', '144', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '283', '1', '2026-10-14','0','0'); -- id=8606
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '145';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3133';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1883, 0, 0
                    , 364.00, 162, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-162, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1451
UPDATE storemovement SET  buyPricesHistoryBookData = "162*2026-10-12*364.00," WHERE transferproductid = 145;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1883', '2', '162', '1', '145', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '162', '0', '1', '2026-10-14','0','0'); -- id=8607
UPDATE storedetail SET  productquantity = '162', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2900';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1883, 0, 0
                    , 364.00, 162.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+162.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=977
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1883', '1', '162', '0', '145', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '162', '1', '2026-10-14','0','0'); -- id=8608
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '146';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3134';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1882, 0, 0
                    , 333.00, 33, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1453
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2026-10-12*333.00," WHERE transferproductid = 146;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1882', '2', '33', '1', '146', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=8609
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2899';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1882, 0, 0
                    , 333.00, 33.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=960
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1882', '1', '33', '0', '146', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=8610
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '147';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3135';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1881, 0, 0
                    , 328.50, 54, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-54, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1455
UPDATE storemovement SET  buyPricesHistoryBookData = "54*2026-10-12*328.50," WHERE transferproductid = 147;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1881', '2', '54', '1', '147', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '54', '0', '1', '2026-10-14','0','0'); -- id=8611
UPDATE storedetail SET  productquantity = '54', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2898';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1881, 0, 0
                    , 328.50, 54.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+54.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=959
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1881', '1', '54', '0', '147', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '54', '1', '2026-10-14','0','0'); -- id=8612
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '148';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3136';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1880, 0, 0
                    , 360.00, 51, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-51, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1457
UPDATE storemovement SET  buyPricesHistoryBookData = "51*2026-10-12*360.00," WHERE transferproductid = 148;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1880', '2', '51', '1', '148', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '51', '0', '1', '2026-10-14','0','0'); -- id=8613
UPDATE storedetail SET  productquantity = '51', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2897';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1880, 0, 0
                    , 360.00, 51.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+51.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=958
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1880', '1', '51', '0', '148', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '51', '1', '2026-10-14','0','0'); -- id=8614
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '149';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3137';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1879, 0, 0
                    , 351.00, 32, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1459
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-12*351.00," WHERE transferproductid = 149;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1879', '2', '32', '1', '149', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=8615
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2896';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1879, 0, 0
                    , 351.00, 32.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=957
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1879', '1', '32', '0', '149', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=8616
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '150';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3138';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1878, 0, 0
                    , 333.00, 51, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-51, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=1461
UPDATE storemovement SET  buyPricesHistoryBookData = "51*2026-10-12*333.00," WHERE transferproductid = 150;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1878', '2', '51', '1', '150', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '51', '0', '1', '2026-10-14','0','0'); -- id=8617
UPDATE storedetail SET  productquantity = '51', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2895';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1878, 0, 0
                    , 333.00, 51.00, 0, 0, 1, '2026-10-14 18:01:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+51.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:02' ; -- id=956
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1878', '1', '51', '0', '150', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '51', '1', '2026-10-14','0','0'); -- id=8618
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '151';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3139';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1877, 0, 0
                    , 324.00, 60, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1463
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-12*324.00," WHERE transferproductid = 151;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1877', '2', '60', '1', '151', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=8619
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2894';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1877, 0, 0
                    , 324.00, 60.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=955
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1877', '1', '60', '0', '151', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=8620
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '152';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3140';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1876, 0, 0
                    , 552.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1465
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*552.00," WHERE transferproductid = 152;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1876', '2', '24', '1', '152', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8621
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2893';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1876, 0, 0
                    , 552.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=946
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1876', '1', '24', '0', '152', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8622
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '153';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3141';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1875, 0, 0
                    , 542.80, 28, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1467
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-12*542.80," WHERE transferproductid = 153;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1875', '2', '28', '1', '153', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=8623
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2892';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1875, 0, 0
                    , 542.80, 28.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=945
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1875', '1', '28', '0', '153', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=8624
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '154';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3142';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1874, 0, 0
                    , 478.40, 12, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1469
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-12*478.40," WHERE transferproductid = 154;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1874', '2', '12', '1', '154', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8625
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2891';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1874, 0, 0
                    , 478.40, 12.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=944
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1874', '1', '12', '0', '154', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8626
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '155';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3143';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1873, 0, 0
                    , 432.40, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1471
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*432.40," WHERE transferproductid = 155;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1873', '2', '24', '1', '155', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8627
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2890';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1873, 0, 0
                    , 432.40, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=943
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1873', '1', '24', '0', '155', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8628
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '156';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3144';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1872, 0, 0
                    , 450.80, 21, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1473
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-12*450.80," WHERE transferproductid = 156;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1872', '2', '21', '1', '156', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=8629
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2889';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1872, 0, 0
                    , 450.80, 21.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=942
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1872', '1', '21', '0', '156', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=8630
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '157';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3145';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1871, 0, 0
                    , 441.60, 28, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1475
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-12*441.60," WHERE transferproductid = 157;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1871', '2', '28', '1', '157', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=8631
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2888';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1871, 0, 0
                    , 441.60, 28.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=941
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1871', '1', '28', '0', '157', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=8632
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '158';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3146';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1870, 0, 0
                    , 460.00, 8, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1477
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2026-10-12*460.00," WHERE transferproductid = 158;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1870', '2', '8', '1', '158', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=8633
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2887';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1870, 0, 0
                    , 460.00, 8.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=940
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1870', '1', '8', '0', '158', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=8634
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '159';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3147';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1869, 0, 0
                    , 340.40, 56, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-56, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1479
UPDATE storemovement SET  buyPricesHistoryBookData = "56*2026-10-12*340.40," WHERE transferproductid = 159;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1869', '2', '56', '1', '159', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '56', '0', '1', '2026-10-14','0','0'); -- id=8635
UPDATE storedetail SET  productquantity = '56', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2886';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1869, 0, 0
                    , 340.40, 56.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+56.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=939
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1869', '1', '56', '0', '159', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '56', '1', '2026-10-14','0','0'); -- id=8636
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '160';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3148';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1868, 0, 0
                    , 763.60, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1481
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*763.60," WHERE transferproductid = 160;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1868', '2', '24', '1', '160', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8637
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2885';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1868, 0, 0
                    , 763.60, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=938
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1868', '1', '24', '0', '160', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8638
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '161';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3149';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1867, 0, 0
                    , 524.40, 32, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1483
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-12*524.40," WHERE transferproductid = 161;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1867', '2', '32', '1', '161', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=8639
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2884';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1867, 0, 0
                    , 524.40, 32.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=937
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1867', '1', '32', '0', '161', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=8640
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '162';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3150';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1866, 0, 0
                    , 358.80, 18, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1485
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-12*358.80," WHERE transferproductid = 162;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1866', '2', '18', '1', '162', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=8641
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2883';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1866, 0, 0
                    , 358.80, 18.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=936
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1866', '1', '18', '0', '162', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=8642
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '163';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3151';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 163;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1865', '2', '0', '1', '163', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8643
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2882';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1865', '1', '0', '0', '163', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8644
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '164';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3152';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1864, 0, 0
                    , 450.80, 28, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1487
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-12*450.80," WHERE transferproductid = 164;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1864', '2', '28', '1', '164', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=8645
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2881';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1864, 0, 0
                    , 450.80, 28.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=935
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1864', '1', '28', '0', '164', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=8646
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '165';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3153';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1863, 0, 0
                    , 404.80, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1489
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*404.80," WHERE transferproductid = 165;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1863', '2', '24', '1', '165', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8647
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2880';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1863, 0, 0
                    , 404.80, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=934
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1863', '1', '24', '0', '165', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8648
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '166';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3154';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1862, 0, 0
                    , 580.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1491
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*580.00," WHERE transferproductid = 166;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1862', '2', '24', '1', '166', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8649
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2879';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1862, 0, 0
                    , 580.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=951
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1862', '1', '24', '0', '166', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8650
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '167';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3155';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1861, 0, 0
                    , 600.00, 45, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-45, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1493
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2026-10-12*600.00," WHERE transferproductid = 167;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1861', '2', '45', '1', '167', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=8651
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2878';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1861, 0, 0
                    , 600.00, 45.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=950
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1861', '1', '45', '0', '167', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=8652
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '168';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3156';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1860, 0, 0
                    , 435.00, 19, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-19, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1495
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2026-10-12*435.00," WHERE transferproductid = 168;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1860', '2', '19', '1', '168', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '19', '0', '1', '2026-10-14','0','0'); -- id=8653
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2877';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1860, 0, 0
                    , 435.00, 19.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=933
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1860', '1', '19', '0', '168', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '19', '1', '2026-10-14','0','0'); -- id=8654
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '169';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3157';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1859, 0, 0
                    , 435.00, 9, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1497
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-12*435.00," WHERE transferproductid = 169;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1859', '2', '9', '1', '169', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=8655
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2876';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1859, 0, 0
                    , 435.00, 9.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=932
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1859', '1', '9', '0', '169', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=8656
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '170';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3158';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 170;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1858', '2', '0', '1', '170', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8657
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2875';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1858', '1', '0', '0', '170', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8658
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '171';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3159';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1857, 0, 0
                    , 415.00, 6, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1499
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-12*415.00," WHERE transferproductid = 171;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1857', '2', '6', '1', '171', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=8659
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2874';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1857, 0, 0
                    , 415.00, 6.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=930
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1857', '1', '6', '0', '171', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=8660
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '172';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3160';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1856, 0, 0
                    , 367.35, 144, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-144, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1501
UPDATE storemovement SET  buyPricesHistoryBookData = "144*2026-10-12*367.35," WHERE transferproductid = 172;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1856', '2', '144', '1', '172', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '144', '0', '1', '2026-10-14','0','0'); -- id=8661
UPDATE storedetail SET  productquantity = '144', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2873';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1856, 0, 0
                    , 367.35, 144.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+144.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=903
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1856', '1', '144', '0', '172', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '144', '1', '2026-10-14','0','0'); -- id=8662
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '173';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3161';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1855, 0, 0
                    , 372.00, 219, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-219, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1503
UPDATE storemovement SET  buyPricesHistoryBookData = "219*2026-10-12*372.00," WHERE transferproductid = 173;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1855', '2', '219', '1', '173', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '219', '0', '1', '2026-10-14','0','0'); -- id=8663
UPDATE storedetail SET  productquantity = '219', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2872';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1855, 0, 0
                    , 372.00, 219.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+219.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=902
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1855', '1', '219', '0', '173', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '219', '1', '2026-10-14','0','0'); -- id=8664
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '174';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3162';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1854, 0, 0
                    , 780.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1505
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*780.00," WHERE transferproductid = 174;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1854', '2', '24', '1', '174', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8665
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2871';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1854, 0, 0
                    , 780.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=901
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1854', '1', '24', '0', '174', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8666
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '175';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3163';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1853, 0, 0
                    , 730.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1507
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*730.00," WHERE transferproductid = 175;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1853', '2', '24', '1', '175', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8667
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2870';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1853, 0, 0
                    , 730.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=900
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1853', '1', '24', '0', '175', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8668
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '176';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3164';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1852, 0, 0
                    , 750.00, 8, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1509
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2026-10-12*750.00," WHERE transferproductid = 176;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1852', '2', '8', '1', '176', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=8669
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2869';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1852, 0, 0
                    , 750.00, 8.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=899
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1852', '1', '8', '0', '176', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=8670
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '177';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3165';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1851, 0, 0
                    , 740.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1511
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*740.00," WHERE transferproductid = 177;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1851', '2', '24', '1', '177', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8671
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2868';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1851, 0, 0
                    , 740.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=898
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1851', '1', '24', '0', '177', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8672
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '178';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3166';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1850, 0, 0
                    , 740.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1513
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*740.00," WHERE transferproductid = 178;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1850', '2', '24', '1', '178', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8673
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2867';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1850, 0, 0
                    , 740.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=897
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1850', '1', '24', '0', '178', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8674
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '179';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3167';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1849, 0, 0
                    , 650.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1515
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*650.00," WHERE transferproductid = 179;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1849', '2', '24', '1', '179', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8675
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2866';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1849, 0, 0
                    , 650.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=896
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1849', '1', '24', '0', '179', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8676
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '180';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3168';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1848, 0, 0
                    , 750.00, 28, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1517
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-12*750.00," WHERE transferproductid = 180;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1848', '2', '28', '1', '180', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=8677
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2865';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1848, 0, 0
                    , 750.00, 28.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=895
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1848', '1', '28', '0', '180', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=8678
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '181';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3169';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1847, 0, 0
                    , 750.00, 20, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1519
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-12*750.00," WHERE transferproductid = 181;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1847', '2', '20', '1', '181', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8679
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2864';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1847, 0, 0
                    , 750.00, 20.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=894
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1847', '1', '20', '0', '181', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8680
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '182';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3170';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1846, 0, 0
                    , 600.00, 28, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1521
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-12*600.00," WHERE transferproductid = 182;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1846', '2', '28', '1', '182', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=8681
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2863';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1846, 0, 0
                    , 600.00, 28.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=893
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1846', '1', '28', '0', '182', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=8682
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '183';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3171';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1845, 0, 0
                    , 740.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1523
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*740.00," WHERE transferproductid = 183;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1845', '2', '24', '1', '183', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8683
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2862';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1845, 0, 0
                    , 740.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=892
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1845', '1', '24', '0', '183', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8684
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '184';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3172';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1844, 0, 0
                    , 770.00, 20, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1525
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-12*770.00," WHERE transferproductid = 184;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1844', '2', '20', '1', '184', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8685
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2861';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1844, 0, 0
                    , 770.00, 20.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=891
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1844', '1', '20', '0', '184', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8686
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '185';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3173';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1843, 0, 0
                    , 740.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1527
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*740.00," WHERE transferproductid = 185;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1843', '2', '24', '1', '185', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8687
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2860';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1843, 0, 0
                    , 740.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=890
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1843', '1', '24', '0', '185', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8688
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '186';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3174';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1842, 0, 0
                    , 740.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1529
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*740.00," WHERE transferproductid = 186;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1842', '2', '24', '1', '186', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8689
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2859';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1842, 0, 0
                    , 740.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=889
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1842', '1', '24', '0', '186', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8690
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '187';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3175';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1841, 0, 0
                    , 235.00, 84, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-84, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1531
UPDATE storemovement SET  buyPricesHistoryBookData = "84*2026-10-12*235.00," WHERE transferproductid = 187;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1841', '2', '84', '1', '187', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '84', '0', '1', '2026-10-14','0','0'); -- id=8691
UPDATE storedetail SET  productquantity = '84', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2856';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1841, 0, 0
                    , 235.00, 84.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+84.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=866
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1841', '1', '84', '0', '187', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '84', '1', '2026-10-14','0','0'); -- id=8692
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '188';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3176';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1840, 0, 0
                    , 297.00, 138, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-138, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1533
UPDATE storemovement SET  buyPricesHistoryBookData = "138*2026-10-12*297.00," WHERE transferproductid = 188;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1840', '2', '138', '1', '188', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '138', '0', '1', '2026-10-14','0','0'); -- id=8693
UPDATE storedetail SET  productquantity = '138', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2855';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1840, 0, 0
                    , 297.00, 138.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+138.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=865
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1840', '1', '138', '0', '188', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '138', '1', '2026-10-14','0','0'); -- id=8694
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '189';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3177';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1839, 0, 0
                    , 405.00, 72, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1535
UPDATE storemovement SET  buyPricesHistoryBookData = "72*2026-10-12*405.00," WHERE transferproductid = 189;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1839', '2', '72', '1', '189', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=8695
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2854';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1839, 0, 0
                    , 405.00, 72.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=864
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1839', '1', '72', '0', '189', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '72', '1', '2026-10-14','0','0'); -- id=8696
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '190';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3178';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1838, 0, 0
                    , 404.80, 21, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1537
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-12*404.80," WHERE transferproductid = 190;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1838', '2', '21', '1', '190', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=8697
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2853';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1838, 0, 0
                    , 404.80, 21.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=863
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1838', '1', '21', '0', '190', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=8698
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '191';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3179';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1837, 0, 0
                    , 437.00, 21, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1539
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-12*437.00," WHERE transferproductid = 191;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1837', '2', '21', '1', '191', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=8699
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2852';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1837, 0, 0
                    , 437.00, 21.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=862
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1837', '1', '21', '0', '191', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=8700
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '192';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3180';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1836, 0, 0
                    , 515.20, 21, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1541
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-12*515.20," WHERE transferproductid = 192;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1836', '2', '21', '1', '192', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=8701
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2851';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1836, 0, 0
                    , 515.20, 21.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=861
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1836', '1', '21', '0', '192', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=8702
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '193';
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2858';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 193;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1835', '2', '0', '1', '193', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '24', '1', '2026-10-14','0','0'); -- id=8703
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2850';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1835', '1', '0', '0', '193', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8704
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '194';
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2857';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 194;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1834', '2', '0', '1', '194', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '24', '1', '2026-10-14','0','0'); -- id=8705
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2849';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1834', '1', '0', '0', '194', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8706
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '195';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3181';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1833, 0, 0
                    , 333.00, 18, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1543
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-12*333.00," WHERE transferproductid = 195;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1833', '2', '18', '1', '195', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=8707
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2848';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1833, 0, 0
                    , 333.00, 18.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=858
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1833', '1', '18', '0', '195', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=8708
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '196';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3182';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1832, 0, 0
                    , 324.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1545
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*324.00," WHERE transferproductid = 196;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1832', '2', '24', '1', '196', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8709
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2847';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1832, 0, 0
                    , 324.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=857
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1832', '1', '24', '0', '196', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8710
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '197';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3183';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1831, 0, 0
                    , 315.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1547
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*315.00," WHERE transferproductid = 197;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1831', '2', '24', '1', '197', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8711
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2846';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1831, 0, 0
                    , 315.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=856
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1831', '1', '24', '0', '197', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8712
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '198';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3184';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1830, 0, 0
                    , 315.00, 15, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1549
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-12*315.00," WHERE transferproductid = 198;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1830', '2', '15', '1', '198', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8713
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2845';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1830, 0, 0
                    , 315.00, 15.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=855
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1830', '1', '15', '0', '198', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8714
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '199';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3185';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1829, 0, 0
                    , 315.00, 30, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1551
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-12*315.00," WHERE transferproductid = 199;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1829', '2', '30', '1', '199', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8715
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2844';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1829, 0, 0
                    , 315.00, 30.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=854
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1829', '1', '30', '0', '199', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8716
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '200';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3186';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1828, 0, 0
                    , 324.00, 33, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1553
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2026-10-12*324.00," WHERE transferproductid = 200;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1828', '2', '33', '1', '200', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=8717
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2843';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1828, 0, 0
                    , 324.00, 33.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=853
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1828', '1', '33', '0', '200', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=8718
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '201';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3187';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-10', 2, 1827, 0, 0
                    , 322.00, 55, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-55, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1555
UPDATE storemovement SET  buyPricesHistoryBookData = "55*2026-10-10*322.00," WHERE transferproductid = 201;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1827', '2', '55', '1', '201', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '55', '0', '1', '2026-10-14','0','0'); -- id=8719
UPDATE storedetail SET  productquantity = '55', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2841';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-10', 1, 1827, 0, 0
                    , 322.00, 55.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+55.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=829
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1827', '1', '55', '0', '201', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '55', '1', '2026-10-14','0','0'); -- id=8720
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '202';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3188';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-10', 2, 1826, 0, 0
                    , 345.00, 56, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-56, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1557
UPDATE storemovement SET  buyPricesHistoryBookData = "56*2026-10-10*345.00," WHERE transferproductid = 202;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1826', '2', '56', '1', '202', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '56', '0', '1', '2026-10-14','0','0'); -- id=8721
UPDATE storedetail SET  productquantity = '56', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2840';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-10', 1, 1826, 0, 0
                    , 345.00, 56.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+56.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=828
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1826', '1', '56', '0', '202', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '56', '1', '2026-10-14','0','0'); -- id=8722
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '203';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3189';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1825, 0, 0
                    , 459.00, 12, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1559
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-09*459.00," WHERE transferproductid = 203;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1825', '2', '12', '1', '203', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8723
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2839';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1825, 0, 0
                    , 459.00, 12.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=827
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1825', '1', '12', '0', '203', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8724
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '204';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3190';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 204;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1824', '2', '0', '1', '204', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8725
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2838';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1824', '1', '0', '0', '204', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8726
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '205';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3191';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1823, 0, 0
                    , 585.00, 12, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1561
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-09*585.00," WHERE transferproductid = 205;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1823', '2', '12', '1', '205', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8727
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2837';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1823, 0, 0
                    , 585.00, 12.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=825
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1823', '1', '12', '0', '205', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8728
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '206';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3192';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1822, 0, 0
                    , 495.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1563
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*495.00," WHERE transferproductid = 206;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1822', '2', '24', '1', '206', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8729
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2836';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1822, 0, 0
                    , 495.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=824
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1822', '1', '24', '0', '206', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8730
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '207';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3193';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1821, 0, 0
                    , 459.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1565
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*459.00," WHERE transferproductid = 207;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1821', '2', '24', '1', '207', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8731
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2835';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1821, 0, 0
                    , 459.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=823
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1821', '1', '24', '0', '207', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8732
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '208';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3194';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1820, 0, 0
                    , 477.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1567
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*477.00," WHERE transferproductid = 208;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1820', '2', '24', '1', '208', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8733
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2834';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1820, 0, 0
                    , 477.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=822
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1820', '1', '24', '0', '208', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8734
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '209';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3195';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1819, 0, 0
                    , 585.00, 12, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1569
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-09*585.00," WHERE transferproductid = 209;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1819', '2', '12', '1', '209', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8735
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2833';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1819, 0, 0
                    , 585.00, 12.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=821
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1819', '1', '12', '0', '209', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8736
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '210';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3196';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1818, 0, 0
                    , 585.00, 12, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1571
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-09*585.00," WHERE transferproductid = 210;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1818', '2', '12', '1', '210', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8737
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2832';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1818, 0, 0
                    , 585.00, 12.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=820
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1818', '1', '12', '0', '210', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8738
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '211';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3197';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1817, 0, 0
                    , 468.00, 12, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1573
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-09*468.00," WHERE transferproductid = 211;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1817', '2', '12', '1', '211', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8739
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2831';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1817, 0, 0
                    , 468.00, 12.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=819
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1817', '1', '12', '0', '211', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8740
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '212';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3198';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1816, 0, 0
                    , 459.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1575
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*459.00," WHERE transferproductid = 212;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1816', '2', '24', '1', '212', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8741
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2830';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1816, 0, 0
                    , 459.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=818
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1816', '1', '24', '0', '212', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8742
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '213';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3199';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1815, 0, 0
                    , 405.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1577
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*405.00," WHERE transferproductid = 213;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1815', '2', '24', '1', '213', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8743
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2829';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1815, 0, 0
                    , 405.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=817
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1815', '1', '24', '0', '213', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8744
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '214';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3200';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1814, 0, 0
                    , 459.00, 12, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1579
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-09*459.00," WHERE transferproductid = 214;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1814', '2', '12', '1', '214', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8745
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2828';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1814, 0, 0
                    , 459.00, 12.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=816
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1814', '1', '12', '0', '214', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8746
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '215';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3201';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1813, 0, 0
                    , 459.00, 12, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1581
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-09*459.00," WHERE transferproductid = 215;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1813', '2', '12', '1', '215', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8747
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2827';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1813, 0, 0
                    , 459.00, 12.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=815
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1813', '1', '12', '0', '215', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8748
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '216';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3202';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1812, 0, 0
                    , 522.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1583
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*522.00," WHERE transferproductid = 216;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1812', '2', '24', '1', '216', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8749
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2826';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1812, 0, 0
                    , 522.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=814
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1812', '1', '24', '0', '216', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8750
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '217';
UPDATE storedetail SET  productquantity = '1269', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2842';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 217;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1811', '2', '0', '1', '217', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '1269', '1269', '1', '2026-10-14','0','0'); -- id=8751
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2825';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1811', '1', '0', '0', '217', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8752
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '218';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3203';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1810, 0, 0
                    , 432.00, 36, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1585
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-09*432.00," WHERE transferproductid = 218;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1810', '2', '36', '1', '218', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=8753
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2824';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1810, 0, 0
                    , 432.00, 36.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=793
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1810', '1', '36', '0', '218', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=8754
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '219';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3204';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1809, 0, 0
                    , 315.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1587
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*315.00," WHERE transferproductid = 219;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1809', '2', '24', '1', '219', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8755
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2823';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1809, 0, 0
                    , 315.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=792
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1809', '1', '24', '0', '219', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8756
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '220';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3205';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1808, 0, 0
                    , 423.00, 15, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1589
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-09*423.00," WHERE transferproductid = 220;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1808', '2', '15', '1', '220', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8757
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2822';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1808, 0, 0
                    , 423.00, 15.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=791
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1808', '1', '15', '0', '220', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8758
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '221';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3206';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1807, 0, 0
                    , 405.00, 15, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1591
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-09*405.00," WHERE transferproductid = 221;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1807', '2', '15', '1', '221', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8759
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2821';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1807, 0, 0
                    , 405.00, 15.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=790
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1807', '1', '15', '0', '221', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8760
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '222';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3207';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1806, 0, 0
                    , 297.00, 39, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-39, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1593
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2026-10-09*297.00," WHERE transferproductid = 222;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1806', '2', '39', '1', '222', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '39', '0', '1', '2026-10-14','0','0'); -- id=8761
UPDATE storedetail SET  productquantity = '39', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2820';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1806, 0, 0
                    , 297.00, 39.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=789
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1806', '1', '39', '0', '222', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '39', '1', '2026-10-14','0','0'); -- id=8762
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '223';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3208';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1805, 0, 0
                    , 441.00, 18, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1595
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-09*441.00," WHERE transferproductid = 223;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1805', '2', '18', '1', '223', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=8763
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2819';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1805, 0, 0
                    , 441.00, 18.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=788
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1805', '1', '18', '0', '223', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=8764
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '224';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3209';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1804, 0, 0
                    , 279.00, 28, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1597
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-09*279.00," WHERE transferproductid = 224;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1804', '2', '28', '1', '224', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=8765
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2818';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1804, 0, 0
                    , 279.00, 28.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=782
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1804', '1', '28', '0', '224', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=8766
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '225';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3210';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1803, 0, 0
                    , 279.00, 32, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1599
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-09*279.00," WHERE transferproductid = 225;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1803', '2', '32', '1', '225', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=8767
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2817';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1803, 0, 0
                    , 279.00, 32.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=787
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1803', '1', '32', '0', '225', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=8768
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '226';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3211';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1802, 0, 0
                    , 324.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1601
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*324.00," WHERE transferproductid = 226;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1802', '2', '24', '1', '226', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8769
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2816';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1802, 0, 0
                    , 324.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=786
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1802', '1', '24', '0', '226', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8770
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '227';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3212';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1801, 0, 0
                    , 270.00, 40, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1603
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-09*270.00," WHERE transferproductid = 227;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1801', '2', '40', '1', '227', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=8771
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2815';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1801, 0, 0
                    , 270.00, 40.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=785
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1801', '1', '40', '0', '227', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=8772
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '228';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3213';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1800, 0, 0
                    , 288.00, 40, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1605
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-09*288.00," WHERE transferproductid = 228;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1800', '2', '40', '1', '228', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=8773
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2814';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1800, 0, 0
                    , 288.00, 40.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=784
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1800', '1', '40', '0', '228', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=8774
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '229';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3214';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1799, 0, 0
                    , 234.00, 40, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1607
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-09*234.00," WHERE transferproductid = 229;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1799', '2', '40', '1', '229', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=8775
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2813';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1799, 0, 0
                    , 234.00, 40.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=783
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1799', '1', '40', '0', '229', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=8776
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '230';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = null;
INSERT INTO onlinetempstoredetail (storeid, productid, sizeid, colorid, quantity, edited, sysdate, userid)
                VALUES (, , 0, 0, -0,1,'2026-10-14 18:01:03',1)
                ON DUPLICATE KEY UPDATE quantity = quantity+-0, edited = 1, sysdate = '2026-10-14 18:01:03', userid = 1;UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '231';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3216';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1797, 0, 0
                    , 279.00, 28, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1609
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-09*279.00," WHERE transferproductid = 231;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1797', '2', '28', '1', '231', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=8777
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2811';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1797, 0, 0
                    , 279.00, 28.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=781
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1797', '1', '28', '0', '231', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=8778
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '232';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3217';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 232;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1796', '2', '0', '1', '232', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8779
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2809';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1796', '1', '0', '0', '232', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8780
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '233';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3218';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1795, 0, 0
                    , 423.20, 6, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1611
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-09*423.20," WHERE transferproductid = 233;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1795', '2', '6', '1', '233', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=8781
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2808';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1795, 0, 0
                    , 423.20, 6.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=777
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1795', '1', '6', '0', '233', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=8782
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '234';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3219';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1794, 0, 0
                    , 404.80, 3, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1613
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-09*404.80," WHERE transferproductid = 234;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1794', '2', '3', '1', '234', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=8783
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2807';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1794, 0, 0
                    , 404.80, 3.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=776
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1794', '1', '3', '0', '234', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=8784
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '235';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3220';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 235;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1793', '2', '0', '1', '235', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8785
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2806';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1793', '1', '0', '0', '235', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8786
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '236';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3221';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1792, 0, 0
                    , 470.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1615
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*470.00," WHERE transferproductid = 236;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1792', '2', '24', '1', '236', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8787
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2805';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1792, 0, 0
                    , 470.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=766
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1792', '1', '24', '0', '236', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8788
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '237';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3222';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1791, 0, 0
                    , 430.00, 21, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1617
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-09*430.00," WHERE transferproductid = 237;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1791', '2', '21', '1', '237', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=8789
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2804';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1791, 0, 0
                    , 430.00, 21.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=765
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1791', '1', '21', '0', '237', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=8790
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '238';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3223';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1790, 0, 0
                    , 430.00, 9, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1619
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-09*430.00," WHERE transferproductid = 238;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1790', '2', '9', '1', '238', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=8791
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2803';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1790, 0, 0
                    , 430.00, 9.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=764
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1790', '1', '9', '0', '238', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=8792
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '239';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3224';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1789, 0, 0
                    , 445.00, 30, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1621
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-09*445.00," WHERE transferproductid = 239;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1789', '2', '30', '1', '239', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8793
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2802';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1789, 0, 0
                    , 445.00, 30.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=763
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1789', '1', '30', '0', '239', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8794
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '240';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3225';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1788, 0, 0
                    , 345.00, 27, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1623
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-09*345.00," WHERE transferproductid = 240;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1788', '2', '27', '1', '240', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=8795
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2801';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1788, 0, 0
                    , 345.00, 27.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=762
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1788', '1', '27', '0', '240', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=8796
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '241';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3226';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1787, 0, 0
                    , 410.00, 9, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1625
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-09*410.00," WHERE transferproductid = 241;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1787', '2', '9', '1', '241', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=8797
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2800';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1787, 0, 0
                    , 410.00, 9.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=761
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1787', '1', '9', '0', '241', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=8798
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '242';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3227';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1786, 0, 0
                    , 440.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1627
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*440.00," WHERE transferproductid = 242;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1786', '2', '24', '1', '242', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8799
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2799';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1786, 0, 0
                    , 440.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=760
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1786', '1', '24', '0', '242', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8800
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '243';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3228';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1785, 0, 0
                    , 400.00, 6, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1629
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-09*400.00," WHERE transferproductid = 243;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1785', '2', '6', '1', '243', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=8801
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2798';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1785, 0, 0
                    , 400.00, 6.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=759
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1785', '1', '6', '0', '243', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=8802
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '244';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3229';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1784, 0, 0
                    , 350.00, 27, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1631
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-09*350.00," WHERE transferproductid = 244;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1784', '2', '27', '1', '244', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=8803
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2797';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1784, 0, 0
                    , 350.00, 27.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=758
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1784', '1', '27', '0', '244', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=8804
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '245';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3230';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1783, 0, 0
                    , 350.00, 30, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1633
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-09*350.00," WHERE transferproductid = 245;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1783', '2', '30', '1', '245', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8805
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2796';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1783, 0, 0
                    , 350.00, 30.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=757
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1783', '1', '30', '0', '245', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8806
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '246';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3231';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1782, 0, 0
                    , 390.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1635
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*390.00," WHERE transferproductid = 246;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1782', '2', '24', '1', '246', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8807
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2795';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1782, 0, 0
                    , 390.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=756
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1782', '1', '24', '0', '246', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8808
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '247';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3232';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1781, 0, 0
                    , 378.00, 96, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-96, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1637
UPDATE storemovement SET  buyPricesHistoryBookData = "96*2026-10-09*378.00," WHERE transferproductid = 247;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1781', '2', '96', '1', '247', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '96', '0', '1', '2026-10-14','0','0'); -- id=8809
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2794';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1781, 0, 0
                    , 378.00, 96.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+96.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=739
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1781', '1', '96', '0', '247', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '96', '1', '2026-10-14','0','0'); -- id=8810
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '248';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3233';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 248;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1780', '2', '0', '1', '248', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8811
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2793';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1780', '1', '0', '0', '248', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8812
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '249';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2810';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 249;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1779', '2', '0', '1', '249', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8813
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2792';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1779', '1', '0', '0', '249', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8814
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '250';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3234';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1778, 0, 0
                    , 450.00, 48, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1639
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-09*450.00," WHERE transferproductid = 250;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1778', '2', '48', '1', '250', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=8815
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2791';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1778, 0, 0
                    , 450.00, 48.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=736
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1778', '1', '48', '0', '250', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=8816
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '251';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3235';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1777, 0, 0
                    , 324.00, 100, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-100, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1641
UPDATE storemovement SET  buyPricesHistoryBookData = "100*2026-10-09*324.00," WHERE transferproductid = 251;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1777', '2', '100', '1', '251', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '100', '0', '1', '2026-10-14','0','0'); -- id=8817
UPDATE storedetail SET  productquantity = '100', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2790';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1777, 0, 0
                    , 324.00, 100.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+100.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=735
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1777', '1', '100', '0', '251', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '100', '1', '2026-10-14','0','0'); -- id=8818
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '252';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3236';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1776, 0, 0
                    , 405.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1643
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*405.00," WHERE transferproductid = 252;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1776', '2', '24', '1', '252', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8819
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2789';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1776, 0, 0
                    , 405.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=734
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1776', '1', '24', '0', '252', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8820
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '253';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3237';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1775, 0, 0
                    , 450.00, 124, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-124, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1645
UPDATE storemovement SET  buyPricesHistoryBookData = "124*2026-10-09*450.00," WHERE transferproductid = 253;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1775', '2', '124', '1', '253', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '124', '0', '1', '2026-10-14','0','0'); -- id=8821
UPDATE storedetail SET  productquantity = '124', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2788';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1775, 0, 0
                    , 450.00, 124.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+124.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=733
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1775', '1', '124', '0', '253', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '124', '1', '2026-10-14','0','0'); -- id=8822
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '254';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3238';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1774, 0, 0
                    , 378.00, 108, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-108, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1647
UPDATE storemovement SET  buyPricesHistoryBookData = "108*2026-10-09*378.00," WHERE transferproductid = 254;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1774', '2', '108', '1', '254', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '108', '0', '1', '2026-10-14','0','0'); -- id=8823
UPDATE storedetail SET  productquantity = '108', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2787';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1774, 0, 0
                    , 378.00, 108.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+108.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=732
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1774', '1', '108', '0', '254', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '108', '1', '2026-10-14','0','0'); -- id=8824
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '255';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3239';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1773, 0, 0
                    , 890.00, 32, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1649
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-08*890.00," WHERE transferproductid = 255;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1773', '2', '32', '1', '255', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=8825
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2786';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1773, 0, 0
                    , 890.00, 32.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=687
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1773', '1', '32', '0', '255', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=8826
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '256';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3240';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1772, 0, 0
                    , 940.00, 48, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1651
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-08*940.00," WHERE transferproductid = 256;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1772', '2', '48', '1', '256', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=8827
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2785';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1772, 0, 0
                    , 940.00, 48.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=686
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1772', '1', '48', '0', '256', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=8828
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '257';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3241';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1771, 0, 0
                    , 920.00, 48, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1653
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-08*920.00," WHERE transferproductid = 257;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1771', '2', '48', '1', '257', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=8829
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2784';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1771, 0, 0
                    , 920.00, 48.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=685
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1771', '1', '48', '0', '257', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=8830
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '258';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3242';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1770, 0, 0
                    , 490.00, 36, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1655
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-08*490.00," WHERE transferproductid = 258;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1770', '2', '36', '1', '258', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=8831
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2783';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1770, 0, 0
                    , 490.00, 36.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=684
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1770', '1', '36', '0', '258', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=8832
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '259';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3243';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1769, 0, 0
                    , 980.00, 8, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1657
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2026-10-08*980.00," WHERE transferproductid = 259;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1769', '2', '8', '1', '259', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=8833
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2782';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1769, 0, 0
                    , 980.00, 8.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=683
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1769', '1', '8', '0', '259', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=8834
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '260';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3244';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1768, 0, 0
                    , 500.00, 28, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1659
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-08*500.00," WHERE transferproductid = 260;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1768', '2', '28', '1', '260', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=8835
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2781';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1768, 0, 0
                    , 500.00, 28.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=682
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1768', '1', '28', '0', '260', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=8836
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '261';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3245';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1767, 0, 0
                    , 525.00, 32, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1661
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-08*525.00," WHERE transferproductid = 261;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1767', '2', '32', '1', '261', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=8837
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2780';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1767, 0, 0
                    , 525.00, 32.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=681
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1767', '1', '32', '0', '261', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=8838
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '262';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3246';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1766, 0, 0
                    , 620.00, 28, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1663
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-08*620.00," WHERE transferproductid = 262;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1766', '2', '28', '1', '262', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=8839
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2779';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1766, 0, 0
                    , 620.00, 28.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=680
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1766', '1', '28', '0', '262', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=8840
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '263';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3247';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1765, 0, 0
                    , 920.00, 16, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-16, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1665
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2026-10-08*920.00," WHERE transferproductid = 263;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1765', '2', '16', '1', '263', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=8841
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2778';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1765, 0, 0
                    , 920.00, 16.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=679
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1765', '1', '16', '0', '263', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '16', '1', '2026-10-14','0','0'); -- id=8842
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '264';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3248';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1764, 0, 0
                    , 550.00, 36, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1667
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-08*550.00," WHERE transferproductid = 264;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1764', '2', '36', '1', '264', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=8843
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2777';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1764, 0, 0
                    , 550.00, 36.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=678
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1764', '1', '36', '0', '264', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=8844
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '265';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3249';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1763, 0, 0
                    , 520.00, 32, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1669
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-08*520.00," WHERE transferproductid = 265;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1763', '2', '32', '1', '265', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=8845
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2776';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1763, 0, 0
                    , 520.00, 32.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=677
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1763', '1', '32', '0', '265', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=8846
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '266';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3250';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1762, 0, 0
                    , 590.00, 32, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1671
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-08*590.00," WHERE transferproductid = 266;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1762', '2', '32', '1', '266', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=8847
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2775';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1762, 0, 0
                    , 590.00, 32.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=676
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1762', '1', '32', '0', '266', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=8848
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '267';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3251';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1761, 0, 0
                    , 470.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1673
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*470.00," WHERE transferproductid = 267;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1761', '2', '24', '1', '267', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8849
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2774';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1761, 0, 0
                    , 470.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=675
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1761', '1', '24', '0', '267', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8850
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '268';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3252';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1760, 0, 0
                    , 460.00, 32, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1675
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-08*460.00," WHERE transferproductid = 268;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1760', '2', '32', '1', '268', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=8851
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2773';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1760, 0, 0
                    , 460.00, 32.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=674
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1760', '1', '32', '0', '268', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=8852
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '269';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3253';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 269;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1759', '2', '0', '1', '269', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8853
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2772';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1759', '1', '0', '0', '269', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8854
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '270';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3254';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1758, 0, 0
                    , 470.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1677
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*470.00," WHERE transferproductid = 270;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1758', '2', '24', '1', '270', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8855
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2771';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1758, 0, 0
                    , 470.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=672
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1758', '1', '24', '0', '270', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8856
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '271';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3255';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1757, 0, 0
                    , 450.00, 20, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1679
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-08*450.00," WHERE transferproductid = 271;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1757', '2', '20', '1', '271', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8857
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2770';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1757, 0, 0
                    , 450.00, 20.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=671
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1757', '1', '20', '0', '271', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8858
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '272';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3256';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1756, 0, 0
                    , 490.00, 5, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1681
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-08*490.00," WHERE transferproductid = 272;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1756', '2', '5', '1', '272', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=8859
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2769';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1756, 0, 0
                    , 490.00, 5.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=670
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1756', '1', '5', '0', '272', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=8860
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '273';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3257';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1755, 0, 0
                    , 470.00, 20, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1683
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-08*470.00," WHERE transferproductid = 273;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1755', '2', '20', '1', '273', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8861
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2768';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1755, 0, 0
                    , 470.00, 20.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=669
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1755', '1', '20', '0', '273', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8862
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '274';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3258';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1754, 0, 0
                    , 450.00, 20, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1685
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-08*450.00," WHERE transferproductid = 274;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1754', '2', '20', '1', '274', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8863
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2767';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1754, 0, 0
                    , 450.00, 20.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=668
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1754', '1', '20', '0', '274', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8864
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '275';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3259';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1753, 0, 0
                    , 430.00, 20, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1687
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-08*430.00," WHERE transferproductid = 275;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1753', '2', '20', '1', '275', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8865
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2766';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1753, 0, 0
                    , 430.00, 20.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=667
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1753', '1', '20', '0', '275', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8866
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '276';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3260';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1752, 0, 0
                    , 430.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1689
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*430.00," WHERE transferproductid = 276;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1752', '2', '24', '1', '276', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8867
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2765';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1752, 0, 0
                    , 430.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=666
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1752', '1', '24', '0', '276', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8868
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '277';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3261';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1751, 0, 0
                    , 450.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1691
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*450.00," WHERE transferproductid = 277;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1751', '2', '24', '1', '277', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8869
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2764';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1751, 0, 0
                    , 450.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=665
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1751', '1', '24', '0', '277', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8870
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '278';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3262';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 278;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1750', '2', '0', '1', '278', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8871
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2763';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1750', '1', '0', '0', '278', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8872
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '279';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3263';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1749, 0, 0
                    , 380.00, 27, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1693
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-08*380.00," WHERE transferproductid = 279;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1749', '2', '27', '1', '279', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=8873
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2762';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1749, 0, 0
                    , 380.00, 27.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=663
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1749', '1', '27', '0', '279', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=8874
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '280';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3264';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1748, 0, 0
                    , 280.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1695
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*280.00," WHERE transferproductid = 280;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1748', '2', '24', '1', '280', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8875
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2761';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1748, 0, 0
                    , 280.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=662
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1748', '1', '24', '0', '280', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8876
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '281';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3265';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1747, 0, 0
                    , 470.00, 28, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1697
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-08*470.00," WHERE transferproductid = 281;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1747', '2', '28', '1', '281', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=8877
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2760';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1747, 0, 0
                    , 470.00, 28.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=661
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1747', '1', '28', '0', '281', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=8878
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '282';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3266';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1746, 0, 0
                    , 450.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1699
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*450.00," WHERE transferproductid = 282;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1746', '2', '24', '1', '282', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8879
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2759';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1746, 0, 0
                    , 450.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=660
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1746', '1', '24', '0', '282', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8880
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '283';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3267';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1745, 0, 0
                    , 470.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1701
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*470.00," WHERE transferproductid = 283;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1745', '2', '24', '1', '283', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8881
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2758';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1745, 0, 0
                    , 470.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=659
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1745', '1', '24', '0', '283', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8882
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '284';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3268';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1744, 0, 0
                    , 280.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1703
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*280.00," WHERE transferproductid = 284;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1744', '2', '24', '1', '284', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8883
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2757';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1744, 0, 0
                    , 280.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=658
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1744', '1', '24', '0', '284', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8884
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '285';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3269';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1743, 0, 0
                    , 300.00, 32, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1705
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-08*300.00," WHERE transferproductid = 285;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1743', '2', '32', '1', '285', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=8885
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2756';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1743, 0, 0
                    , 300.00, 32.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=656
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1743', '1', '32', '0', '285', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=8886
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '286';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3270';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1742, 0, 0
                    , 490.00, 28, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1707
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-08*490.00," WHERE transferproductid = 286;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1742', '2', '28', '1', '286', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=8887
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2755';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1742, 0, 0
                    , 490.00, 28.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=655
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1742', '1', '28', '0', '286', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=8888
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '287';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3271';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1741, 0, 0
                    , 450.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1709
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*450.00," WHERE transferproductid = 287;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1741', '2', '24', '1', '287', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8889
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2754';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1741, 0, 0
                    , 450.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=654
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1741', '1', '24', '0', '287', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8890
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '288';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3272';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1740, 0, 0
                    , 700.00, 48, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1711
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-08*700.00," WHERE transferproductid = 288;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1740', '2', '48', '1', '288', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=8891
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2753';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1740, 0, 0
                    , 700.00, 48.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=653
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1740', '1', '48', '0', '288', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=8892
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '289';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3273';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1739, 0, 0
                    , 650.00, 76, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-76, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1713
UPDATE storemovement SET  buyPricesHistoryBookData = "76*2026-10-08*650.00," WHERE transferproductid = 289;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1739', '2', '76', '1', '289', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '76', '0', '1', '2026-10-14','0','0'); -- id=8893
UPDATE storedetail SET  productquantity = '76', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2752';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1739, 0, 0
                    , 650.00, 76.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+76.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=652
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1739', '1', '76', '0', '289', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '76', '1', '2026-10-14','0','0'); -- id=8894
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '290';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3274';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1738, 0, 0
                    , 750.00, 20, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1715
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-08*750.00," WHERE transferproductid = 290;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1738', '2', '20', '1', '290', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=8895
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2751';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1738, 0, 0
                    , 750.00, 20.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=651
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1738', '1', '20', '0', '290', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=8896
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '291';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3275';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1737, 0, 0
                    , 800.00, 36, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1717
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-08*800.00," WHERE transferproductid = 291;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1737', '2', '36', '1', '291', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=8897
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2750';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1737, 0, 0
                    , 800.00, 36.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=650
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1737', '1', '36', '0', '291', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=8898
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '292';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3276';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1736, 0, 0
                    , 700.00, 32, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1719
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-08*700.00," WHERE transferproductid = 292;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1736', '2', '32', '1', '292', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=8899
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2749';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1736, 0, 0
                    , 700.00, 32.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=649
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1736', '1', '32', '0', '292', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=8900
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '293';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3277';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1735, 0, 0
                    , 900.00, 12, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1721
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-08*900.00," WHERE transferproductid = 293;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1735', '2', '12', '1', '293', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8901
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2748';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1735, 0, 0
                    , 900.00, 12.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=648
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1735', '1', '12', '0', '293', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8902
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '294';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3278';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1734, 0, 0
                    , 750.00, 64, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-64, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1723
UPDATE storemovement SET  buyPricesHistoryBookData = "64*2026-10-08*750.00," WHERE transferproductid = 294;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1734', '2', '64', '1', '294', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '64', '0', '1', '2026-10-14','0','0'); -- id=8903
UPDATE storedetail SET  productquantity = '64', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2747';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1734, 0, 0
                    , 750.00, 64.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+64.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=647
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1734', '1', '64', '0', '294', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '64', '1', '2026-10-14','0','0'); -- id=8904
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '295';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3279';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1733, 0, 0
                    , 331.20, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1725
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*331.20," WHERE transferproductid = 295;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1733', '2', '24', '1', '295', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8905
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2746';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1733, 0, 0
                    , 331.20, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=646
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1733', '1', '24', '0', '295', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8906
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '296';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3280';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1732, 0, 0
                    , 358.80, 27, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1727
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-08*358.80," WHERE transferproductid = 296;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1732', '2', '27', '1', '296', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=8907
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2745';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1732, 0, 0
                    , 358.80, 27.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=645
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1732', '1', '27', '0', '296', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=8908
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '297';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3281';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1731, 0, 0
                    , 395.60, 21, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1729
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-08*395.60," WHERE transferproductid = 297;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1731', '2', '21', '1', '297', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=8909
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2744';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1731, 0, 0
                    , 395.60, 21.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=644
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1731', '1', '21', '0', '297', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=8910
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '298';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3282';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1730, 0, 0
                    , 496.80, 15, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1731
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-08*496.80," WHERE transferproductid = 298;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1730', '2', '15', '1', '298', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8911
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2743';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1730, 0, 0
                    , 496.80, 15.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=643
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1730', '1', '15', '0', '298', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8912
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '299';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3283';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1729, 0, 0
                    , 432.40, 30, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1733
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-08*432.40," WHERE transferproductid = 299;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1729', '2', '30', '1', '299', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8913
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2742';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1729, 0, 0
                    , 432.40, 30.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=628
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1729', '1', '30', '0', '299', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8914
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '300';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3284';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1728, 0, 0
                    , 414.00, 30, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1735
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-08*414.00," WHERE transferproductid = 300;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1728', '2', '30', '1', '300', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8915
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2741';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1728, 0, 0
                    , 414.00, 30.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=627
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1728', '1', '30', '0', '300', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8916
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '301';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3285';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1727, 0, 0
                    , 441.60, 21, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1737
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-08*441.60," WHERE transferproductid = 301;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1727', '2', '21', '1', '301', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=8917
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2740';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1727, 0, 0
                    , 441.60, 21.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=626
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1727', '1', '21', '0', '301', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=8918
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '302';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3286';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1726, 0, 0
                    , 427.80, 21, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1739
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-08*427.80," WHERE transferproductid = 302;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1726', '2', '21', '1', '302', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=8919
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2739';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1726, 0, 0
                    , 427.80, 21.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=625
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1726', '1', '21', '0', '302', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=8920
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '303';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3287';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1725, 0, 0
                    , 345.00, 15, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1741
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-08*345.00," WHERE transferproductid = 303;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1725', '2', '15', '1', '303', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8921
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2738';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1725, 0, 0
                    , 345.00, 15.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=624
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1725', '1', '15', '0', '303', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8922
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '304';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3288';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1724, 0, 0
                    , 349.60, 18, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1743
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-08*349.60," WHERE transferproductid = 304;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1724', '2', '18', '1', '304', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=8923
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2737';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1724, 0, 0
                    , 349.60, 18.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=623
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1724', '1', '18', '0', '304', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=8924
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '305';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3289';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1723, 0, 0
                    , 340.40, 18, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1745
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-08*340.40," WHERE transferproductid = 305;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1723', '2', '18', '1', '305', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=8925
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2736';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1723, 0, 0
                    , 340.40, 18.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=622
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1723', '1', '18', '0', '305', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=8926
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '306';
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2735';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 306;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1722', '2', '0', '1', '306', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '30', '1', '2026-10-14','0','0'); -- id=8927
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2734';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1722', '1', '0', '0', '306', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8928
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '307';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3290';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1721, 0, 0
                    , 324.00, 189, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-189, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1747
UPDATE storemovement SET  buyPricesHistoryBookData = "189*2026-10-08*324.00," WHERE transferproductid = 307;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1721', '2', '189', '1', '307', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '189', '0', '1', '2026-10-14','0','0'); -- id=8929
UPDATE storedetail SET  productquantity = '189', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2733';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1721, 0, 0
                    , 324.00, 189.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+189.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=584
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1721', '1', '189', '0', '307', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '189', '1', '2026-10-14','0','0'); -- id=8930
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '308';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3291';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1720, 0, 0
                    , 480.00, 21, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1749
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-08*480.00," WHERE transferproductid = 308;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1720', '2', '21', '1', '308', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=8931
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2732';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1720, 0, 0
                    , 480.00, 21.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=583
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1720', '1', '21', '0', '308', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=8932
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '309';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3292';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1719, 0, 0
                    , 500.00, 60, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1751
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-08*500.00," WHERE transferproductid = 309;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1719', '2', '60', '1', '309', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=8933
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2731';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1719, 0, 0
                    , 500.00, 60.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=582
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1719', '1', '60', '0', '309', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=8934
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '310';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3293';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1718, 0, 0
                    , 510.00, 60, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1753
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-08*510.00," WHERE transferproductid = 310;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1718', '2', '60', '1', '310', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=8935
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2730';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1718, 0, 0
                    , 510.00, 60.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=581
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1718', '1', '60', '0', '310', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=8936
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '311';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3294';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1717, 0, 0
                    , 520.00, 107, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-107, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1755
UPDATE storemovement SET  buyPricesHistoryBookData = "107*2026-10-08*520.00," WHERE transferproductid = 311;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1717', '2', '107', '1', '311', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '107', '0', '1', '2026-10-14','0','0'); -- id=8937
UPDATE storedetail SET  productquantity = '107', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2729';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1717, 0, 0
                    , 520.00, 107.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+107.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=580
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1717', '1', '107', '0', '311', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '107', '1', '2026-10-14','0','0'); -- id=8938
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '312';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3295';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1716, 0, 0
                    , 600.00, 36, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1757
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-08*600.00," WHERE transferproductid = 312;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1716', '2', '36', '1', '312', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=8939
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2728';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1716, 0, 0
                    , 600.00, 36.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=579
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1716', '1', '36', '0', '312', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=8940
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '313';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3296';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1715, 0, 0
                    , 437.00, 27, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1759
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-08*437.00," WHERE transferproductid = 313;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1715', '2', '27', '1', '313', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=8941
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2727';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1715, 0, 0
                    , 437.00, 27.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=578
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1715', '1', '27', '0', '313', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=8942
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '314';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3297';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1714, 0, 0
                    , 524.40, 30, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1761
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-08*524.40," WHERE transferproductid = 314;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1714', '2', '30', '1', '314', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8943
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2726';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1714, 0, 0
                    , 524.40, 30.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=577
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1714', '1', '30', '0', '314', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8944
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '315';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3298';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1713, 0, 0
                    , 395.60, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1763
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*395.60," WHERE transferproductid = 315;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1713', '2', '24', '1', '315', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8945
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2725';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1713, 0, 0
                    , 395.60, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=576
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1713', '1', '24', '0', '315', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8946
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '316';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3299';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1712, 0, 0
                    , 427.80, 18, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1765
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-08*427.80," WHERE transferproductid = 316;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1712', '2', '18', '1', '316', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=8947
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2724';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1712, 0, 0
                    , 427.80, 18.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=575
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1712', '1', '18', '0', '316', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=8948
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '317';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3300';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1711, 0, 0
                    , 487.60, 27, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1767
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-08*487.60," WHERE transferproductid = 317;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1711', '2', '27', '1', '317', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=8949
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2723';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1711, 0, 0
                    , 487.60, 27.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=574
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1711', '1', '27', '0', '317', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=8950
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '318';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3301';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1710, 0, 0
                    , 358.80, 12, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1769
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-08*358.80," WHERE transferproductid = 318;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1710', '2', '12', '1', '318', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8951
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2722';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1710, 0, 0
                    , 358.80, 12.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=573
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1710', '1', '12', '0', '318', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8952
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '319';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3302';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1709, 0, 0
                    , 322.00, 15, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1771
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-08*322.00," WHERE transferproductid = 319;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1709', '2', '15', '1', '319', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8953
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2721';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1709, 0, 0
                    , 322.00, 15.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=572
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1709', '1', '15', '0', '319', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8954
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '320';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3303';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1708, 0, 0
                    , 432.40, 15, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1773
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-08*432.40," WHERE transferproductid = 320;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1708', '2', '15', '1', '320', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8955
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2720';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1708, 0, 0
                    , 432.40, 15.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=571
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1708', '1', '15', '0', '320', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8956
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '321';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3304';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1707, 0, 0
                    , 368.00, 21, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1775
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-08*368.00," WHERE transferproductid = 321;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1707', '2', '21', '1', '321', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=8957
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2719';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1707, 0, 0
                    , 368.00, 21.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=570
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1707', '1', '21', '0', '321', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=8958
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '322';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3305';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1706, 0, 0
                    , 358.80, 33, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1777
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2026-10-08*358.80," WHERE transferproductid = 322;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1706', '2', '33', '1', '322', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=8959
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2718';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1706, 0, 0
                    , 358.80, 33.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=569
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1706', '1', '33', '0', '322', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=8960
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '323';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3306';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1705, 0, 0
                    , 427.80, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1779
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*427.80," WHERE transferproductid = 323;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1705', '2', '24', '1', '323', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8961
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2717';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1705, 0, 0
                    , 427.80, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=568
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1705', '1', '24', '0', '323', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8962
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '324';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3307';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1704, 0, 0
                    , 469.20, 21, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1781
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-08*469.20," WHERE transferproductid = 324;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1704', '2', '21', '1', '324', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=8963
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2716';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1704, 0, 0
                    , 469.20, 21.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=567
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1704', '1', '21', '0', '324', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=8964
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '325';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3308';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1703, 0, 0
                    , 524.40, 12, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1783
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-08*524.40," WHERE transferproductid = 325;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1703', '2', '12', '1', '325', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8965
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2715';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1703, 0, 0
                    , 524.40, 12.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=566
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1703', '1', '12', '0', '325', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8966
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '326';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3309';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1702, 0, 0
                    , 441.60, 30, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1785
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-08*441.60," WHERE transferproductid = 326;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1702', '2', '30', '1', '326', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8967
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2714';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1702, 0, 0
                    , 441.60, 30.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=565
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1702', '1', '30', '0', '326', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8968
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '327';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3310';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1701, 0, 0
                    , 423.20, 18, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1787
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-08*423.20," WHERE transferproductid = 327;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1701', '2', '18', '1', '327', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=8969
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2713';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1701, 0, 0
                    , 423.20, 18.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=564
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1701', '1', '18', '0', '327', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=8970
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '328';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3311';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1700, 0, 0
                    , 519.80, 21, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1789
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-08*519.80," WHERE transferproductid = 328;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1700', '2', '21', '1', '328', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=8971
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2712';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1700, 0, 0
                    , 519.80, 21.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=563
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1700', '1', '21', '0', '328', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=8972
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '329';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3312';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1699, 0, 0
                    , 437.00, 30, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1791
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-08*437.00," WHERE transferproductid = 329;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1699', '2', '30', '1', '329', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=8973
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2711';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1699, 0, 0
                    , 437.00, 30.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=562
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1699', '1', '30', '0', '329', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=8974
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '330';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3313';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1698, 0, 0
                    , 800.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1793
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*800.00," WHERE transferproductid = 330;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1698', '2', '24', '1', '330', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8975
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2710';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1698, 0, 0
                    , 800.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=561
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1698', '1', '24', '0', '330', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8976
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '331';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = null;
INSERT INTO onlinetempstoredetail (storeid, productid, sizeid, colorid, quantity, edited, sysdate, userid)
                VALUES (, , 0, 0, -0,1,'2026-10-14 18:01:03',1)
                ON DUPLICATE KEY UPDATE quantity = quantity+-0, edited = 1, sysdate = '2026-10-14 18:01:03', userid = 1;UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '332';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3315';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1696, 0, 0
                    , 405.00, 93, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-93, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1795
UPDATE storemovement SET  buyPricesHistoryBookData = "93*2026-10-08*405.00," WHERE transferproductid = 332;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1696', '2', '93', '1', '332', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '93', '0', '1', '2026-10-14','0','0'); -- id=8977
UPDATE storedetail SET  productquantity = '93', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2708';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1696, 0, 0
                    , 405.00, 93.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+93.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=560
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1696', '1', '93', '0', '332', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '93', '1', '2026-10-14','0','0'); -- id=8978
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '333';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3316';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1695, 0, 0
                    , 386.40, 93, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-93, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1797
UPDATE storemovement SET  buyPricesHistoryBookData = "93*2026-10-08*386.40," WHERE transferproductid = 333;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1695', '2', '93', '1', '333', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '93', '0', '1', '2026-10-14','0','0'); -- id=8979
UPDATE storedetail SET  productquantity = '93', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2707';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1695, 0, 0
                    , 386.40, 93.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+93.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=559
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1695', '1', '93', '0', '333', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '93', '1', '2026-10-14','0','0'); -- id=8980
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '334';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3317';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1694, 0, 0
                    , 322.00, 12, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1799
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-08*322.00," WHERE transferproductid = 334;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1694', '2', '12', '1', '334', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=8981
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2706';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1694, 0, 0
                    , 322.00, 12.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=558
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1694', '1', '12', '0', '334', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=8982
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '335';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3318';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1693, 0, 0
                    , 423.20, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1801
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*423.20," WHERE transferproductid = 335;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1693', '2', '24', '1', '335', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8983
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2705';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1693, 0, 0
                    , 423.20, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=557
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1693', '1', '24', '0', '335', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8984
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '336';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3319';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1692, 0, 0
                    , 404.80, 3, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1803
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-08*404.80," WHERE transferproductid = 336;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1692', '2', '3', '1', '336', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=8985
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2704';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1692, 0, 0
                    , 404.80, 3.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=556
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1692', '1', '3', '0', '336', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=8986
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '337';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3320';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 337;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1691', '2', '0', '1', '337', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8987
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2703';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1691', '1', '0', '0', '337', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=8988
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '338';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3321';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1690, 0, 0
                    , 450.80, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1805
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*450.80," WHERE transferproductid = 338;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1690', '2', '24', '1', '338', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=8989
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2702';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1690, 0, 0
                    , 450.80, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=554
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1690', '1', '24', '0', '338', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=8990
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '339';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3322';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1689, 0, 0
                    , 441.60, 15, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1807
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-08*441.60," WHERE transferproductid = 339;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1689', '2', '15', '1', '339', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=8991
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2701';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1689, 0, 0
                    , 441.60, 15.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=553
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1689', '1', '15', '0', '339', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=8992
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '340';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3323';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1688, 0, 0
                    , 423.20, 9, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1809
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-08*423.20," WHERE transferproductid = 340;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1688', '2', '9', '1', '340', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=8993
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2700';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1688, 0, 0
                    , 423.20, 9.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=552
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1688', '1', '9', '0', '340', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=8994
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '341';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3324';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1687, 0, 0
                    , 377.20, 42, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-42, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1811
UPDATE storemovement SET  buyPricesHistoryBookData = "42*2026-10-08*377.20," WHERE transferproductid = 341;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1687', '2', '42', '1', '341', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '42', '0', '1', '2026-10-14','0','0'); -- id=8995
UPDATE storedetail SET  productquantity = '42', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2699';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1687, 0, 0
                    , 377.20, 42.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=551
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1687', '1', '42', '0', '341', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '42', '1', '2026-10-14','0','0'); -- id=8996
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '342';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3325';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1686, 0, 0
                    , 235.00, 80, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-80, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1813
UPDATE storemovement SET  buyPricesHistoryBookData = "80*2026-10-08*235.00," WHERE transferproductid = 342;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1686', '2', '80', '1', '342', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '80', '0', '1', '2026-10-14','0','0'); -- id=8997
UPDATE storedetail SET  productquantity = '80', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2698';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1686, 0, 0
                    , 235.00, 80.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+80.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=550
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1686', '1', '80', '0', '342', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '80', '1', '2026-10-14','0','0'); -- id=8998
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '343';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3326';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1685, 0, 0
                    , 225.00, 48, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1815
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-08*225.00," WHERE transferproductid = 343;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1685', '2', '48', '1', '343', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=8999
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2697';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1685, 0, 0
                    , 225.00, 48.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=549
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1685', '1', '48', '0', '343', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=9000
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '344';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3327';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 344;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1684', '2', '0', '1', '344', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9001
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2696';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1684', '1', '0', '0', '344', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9002
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '345';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3328';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 345;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1683', '2', '0', '1', '345', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9003
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2695';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1683', '1', '0', '0', '345', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9004
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '346';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3329';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1682, 0, 0
                    , 505.00, 60, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1817
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-08*505.00," WHERE transferproductid = 346;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1682', '2', '60', '1', '346', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=9005
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2694';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1682, 0, 0
                    , 505.00, 60.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=509
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1682', '1', '60', '0', '346', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=9006
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '347';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3330';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1681, 0, 0
                    , 420.00, 60, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1819
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-08*420.00," WHERE transferproductid = 347;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1681', '2', '60', '1', '347', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=9007
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2693';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1681, 0, 0
                    , 420.00, 60.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=508
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1681', '1', '60', '0', '347', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=9008
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '348';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3331';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1680, 0, 0
                    , 430.00, 72, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1821
UPDATE storemovement SET  buyPricesHistoryBookData = "72*2026-10-08*430.00," WHERE transferproductid = 348;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1680', '2', '72', '1', '348', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=9009
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2692';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1680, 0, 0
                    , 430.00, 72.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=507
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1680', '1', '72', '0', '348', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '72', '1', '2026-10-14','0','0'); -- id=9010
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '349';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3332';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1679, 0, 0
                    , 450.00, 30, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1823
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-08*450.00," WHERE transferproductid = 349;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1679', '2', '30', '1', '349', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9011
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2691';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1679, 0, 0
                    , 450.00, 30.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=506
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1679', '1', '30', '0', '349', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9012
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '350';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3333';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1678, 0, 0
                    , 386.40, 30, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1825
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-08*386.40," WHERE transferproductid = 350;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1678', '2', '30', '1', '350', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9013
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2690';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1678, 0, 0
                    , 386.40, 30.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=527
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1678', '1', '30', '0', '350', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9014
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '351';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3334';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1677, 0, 0
                    , 478.40, 27, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1827
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-08*478.40," WHERE transferproductid = 351;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1677', '2', '27', '1', '351', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=9015
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2689';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1677, 0, 0
                    , 478.40, 27.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=526
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1677', '1', '27', '0', '351', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=9016
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '352';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3335';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1676, 0, 0
                    , 492.20, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1829
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*492.20," WHERE transferproductid = 352;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1676', '2', '24', '1', '352', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9017
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2688';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1676, 0, 0
                    , 492.20, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=525
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1676', '1', '24', '0', '352', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9018
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '353';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3336';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1675, 0, 0
                    , 478.40, 30, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1831
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-08*478.40," WHERE transferproductid = 353;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1675', '2', '30', '1', '353', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9019
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2687';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1675, 0, 0
                    , 478.40, 30.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=524
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1675', '1', '30', '0', '353', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9020
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '354';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3337';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1674, 0, 0
                    , 450.80, 30, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1833
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-08*450.80," WHERE transferproductid = 354;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1674', '2', '30', '1', '354', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9021
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2686';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1674, 0, 0
                    , 450.80, 30.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=523
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1674', '1', '30', '0', '354', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9022
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '355';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3338';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1673, 0, 0
                    , 460.00, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1835
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*460.00," WHERE transferproductid = 355;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1673', '2', '24', '1', '355', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9023
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2685';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1673, 0, 0
                    , 460.00, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=522
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1673', '1', '24', '0', '355', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9024
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '356';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3339';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1672, 0, 0
                    , 478.40, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1837
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*478.40," WHERE transferproductid = 356;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1672', '2', '24', '1', '356', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9025
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2684';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1672, 0, 0
                    , 478.40, 24.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=521
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1672', '1', '24', '0', '356', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9026
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '357';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3340';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1671, 0, 0
                    , 542.80, 21, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1839
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-08*542.80," WHERE transferproductid = 357;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1671', '2', '21', '1', '357', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=9027
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2683';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1671, 0, 0
                    , 542.80, 21.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=520
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1671', '1', '21', '0', '357', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=9028
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '358';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3341';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1670, 0, 0
                    , 496.80, 3, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1841
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-08*496.80," WHERE transferproductid = 358;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1670', '2', '3', '1', '358', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=9029
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2682';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1670, 0, 0
                    , 496.80, 3.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=519
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1670', '1', '3', '0', '358', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=9030
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '359';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3342';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1669, 0, 0
                    , 510.60, 30, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1843
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-08*510.60," WHERE transferproductid = 359;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1669', '2', '30', '1', '359', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9031
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2681';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1669, 0, 0
                    , 510.60, 30.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=518
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1669', '1', '30', '0', '359', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9032
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '360';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3343';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1668, 0, 0
                    , 432.40, 30, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1845
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-08*432.40," WHERE transferproductid = 360;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1668', '2', '30', '1', '360', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9033
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2680';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1668, 0, 0
                    , 432.40, 30.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=517
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1668', '1', '30', '0', '360', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9034
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '361';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3344';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 361;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1667', '2', '0', '1', '361', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9035
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2679';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1667', '1', '0', '0', '361', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9036
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '362';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3345';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1666, 0, 0
                    , 515.20, 3, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1847
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-08*515.20," WHERE transferproductid = 362;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1666', '2', '3', '1', '362', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=9037
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2678';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1666, 0, 0
                    , 515.20, 3.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=515
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1666', '1', '3', '0', '362', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=9038
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '363';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3346';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1665, 0, 0
                    , 441.60, 15, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1849
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-08*441.60," WHERE transferproductid = 363;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1665', '2', '15', '1', '363', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=9039
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2677';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1665, 0, 0
                    , 441.60, 15.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=514
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1665', '1', '15', '0', '363', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=9040
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '364';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3347';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1664, 0, 0
                    , 533.60, 9, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1851
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-08*533.60," WHERE transferproductid = 364;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1664', '2', '9', '1', '364', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=9041
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2676';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1664, 0, 0
                    , 533.60, 9.00, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=513
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1664', '1', '9', '0', '364', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=9042
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '365';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3348';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1663, 0, 0
                    , 404.80, 24, 0, 0, 1, '2026-10-14 18:01:03')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:03' ; -- id=1853
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*404.80," WHERE transferproductid = 365;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1663', '2', '24', '1', '365', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9043
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2675';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1663, 0, 0
                    , 404.80, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=512
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1663', '1', '24', '0', '365', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9044
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '366';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3349';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1662, 0, 0
                    , 460.00, 27, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1855
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-08*460.00," WHERE transferproductid = 366;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1662', '2', '27', '1', '366', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=9045
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2674';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1662, 0, 0
                    , 460.00, 27.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=511
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1662', '1', '27', '0', '366', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=9046
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '367';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3350';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1661, 0, 0
                    , 515.20, 15, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1857
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-08*515.20," WHERE transferproductid = 367;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1661', '2', '15', '1', '367', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=9047
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2673';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1661, 0, 0
                    , 515.20, 15.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=510
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1661', '1', '15', '0', '367', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=9048
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '368';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3351';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1660, 0, 0
                    , 316.20, 129, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-129, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1859
UPDATE storemovement SET  buyPricesHistoryBookData = "129*2026-10-08*316.20," WHERE transferproductid = 368;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1660', '2', '129', '1', '368', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '129', '0', '1', '2026-10-14','0','0'); -- id=9049
UPDATE storedetail SET  productquantity = '129', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2672';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1660, 0, 0
                    , 316.20, 129.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+129.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=502
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1660', '1', '129', '0', '368', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '129', '1', '2026-10-14','0','0'); -- id=9050
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '369';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3352';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1659, 0, 0
                    , 362.70, 165, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-165, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1861
UPDATE storemovement SET  buyPricesHistoryBookData = "165*2026-10-08*362.70," WHERE transferproductid = 369;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1659', '2', '165', '1', '369', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '165', '0', '1', '2026-10-14','0','0'); -- id=9051
UPDATE storedetail SET  productquantity = '165', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2671';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1659, 0, 0
                    , 362.70, 165.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+165.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=505
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1659', '1', '165', '0', '369', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '165', '1', '2026-10-14','0','0'); -- id=9052
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '370';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3353';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1658, 0, 0
                    , 320.85, 105, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-105, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1863
UPDATE storemovement SET  buyPricesHistoryBookData = "105*2026-10-08*320.85," WHERE transferproductid = 370;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1658', '2', '105', '1', '370', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '105', '0', '1', '2026-10-14','0','0'); -- id=9053
UPDATE storedetail SET  productquantity = '105', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2670';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1658, 0, 0
                    , 320.85, 105.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+105.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=504
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1658', '1', '105', '0', '370', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '105', '1', '2026-10-14','0','0'); -- id=9054
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '371';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3354';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1657, 0, 0
                    , 334.80, 108, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-108, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1865
UPDATE storemovement SET  buyPricesHistoryBookData = "108*2026-10-08*334.80," WHERE transferproductid = 371;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1657', '2', '108', '1', '371', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '108', '0', '1', '2026-10-14','0','0'); -- id=9055
UPDATE storedetail SET  productquantity = '108', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2669';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1657, 0, 0
                    , 334.80, 108.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+108.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=503
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1657', '1', '108', '0', '371', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '108', '1', '2026-10-14','0','0'); -- id=9056
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '372';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3355';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1656, 0, 0
                    , 344.10, 57, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-57, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1867
UPDATE storemovement SET  buyPricesHistoryBookData = "57*2026-10-08*344.10," WHERE transferproductid = 372;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1656', '2', '57', '1', '372', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '57', '0', '1', '2026-10-14','0','0'); -- id=9057
UPDATE storedetail SET  productquantity = '57', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2668';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1656, 0, 0
                    , 344.10, 57.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+57.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=501
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1656', '1', '57', '0', '372', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '57', '1', '2026-10-14','0','0'); -- id=9058
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '373';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3356';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1655, 0, 0
                    , 288.30, 174, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-174, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1869
UPDATE storemovement SET  buyPricesHistoryBookData = "174*2026-10-08*288.30," WHERE transferproductid = 373;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1655', '2', '174', '1', '373', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '174', '0', '1', '2026-10-14','0','0'); -- id=9059
UPDATE storedetail SET  productquantity = '174', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2667';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1655, 0, 0
                    , 288.30, 174.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+174.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=500
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1655', '1', '174', '0', '373', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '174', '1', '2026-10-14','0','0'); -- id=9060
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '374';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2666';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1654, 0, 0
                    , 432.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1871
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*432.00," WHERE transferproductid = 374;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1654', '2', '24', '1', '374', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9061
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1679';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1654, 0, 0
                    , 432.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=775
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1654', '1', '24', '0', '374', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9062
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '375';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2665';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1653, 0, 0
                    , 315.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1873
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*315.00," WHERE transferproductid = 375;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1653', '2', '24', '1', '375', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9063
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1678';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1653, 0, 0
                    , 315.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=774
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1653', '1', '24', '0', '375', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9064
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '376';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2664';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1652, 0, 0
                    , 315.00, 9, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1875
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-09*315.00," WHERE transferproductid = 376;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1652', '2', '9', '1', '376', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=9065
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1677';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1652, 0, 0
                    , 315.00, 9.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=773
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1652', '1', '9', '0', '376', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=9066
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '377';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2663';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1651, 0, 0
                    , 369.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1877
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*369.00," WHERE transferproductid = 377;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1651', '2', '24', '1', '377', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9067
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1676';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1651, 0, 0
                    , 369.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=772
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1651', '1', '24', '0', '377', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9068
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '378';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2662';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1650, 0, 0
                    , 360.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1879
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*360.00," WHERE transferproductid = 378;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1650', '2', '24', '1', '378', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9069
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1675';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1650, 0, 0
                    , 360.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=771
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1650', '1', '24', '0', '378', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9070
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '379';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2661';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1649, 0, 0
                    , 432.00, 12, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1881
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-09*432.00," WHERE transferproductid = 379;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1649', '2', '12', '1', '379', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9071
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1674';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1649, 0, 0
                    , 432.00, 12.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=770
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1649', '1', '12', '0', '379', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9072
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '380';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2660';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1648, 0, 0
                    , 432.00, 12, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1883
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-09*432.00," WHERE transferproductid = 380;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1648', '2', '12', '1', '380', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9073
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1673';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1648, 0, 0
                    , 432.00, 12.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=769
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1648', '1', '12', '0', '380', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9074
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '381';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2659';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 2, 1647, 0, 0
                    , 432.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1885
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-09*432.00," WHERE transferproductid = 381;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1647', '2', '24', '1', '381', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9075
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1672';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-09', 1, 1647, 0, 0
                    , 432.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=768
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1647', '1', '24', '0', '381', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9076
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '382';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2658';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1646, 0, 0
                    , 450.00, 9, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1887
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-08*450.00," WHERE transferproductid = 382;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1646', '2', '9', '1', '382', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=9077
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1671';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1646, 0, 0
                    , 450.00, 9.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=548
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1646', '1', '9', '0', '382', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=9078
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '383';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2657';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1645, 0, 0
                    , 450.00, 9, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1889
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-08*450.00," WHERE transferproductid = 383;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1645', '2', '9', '1', '383', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=9079
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1670';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1645, 0, 0
                    , 450.00, 9.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=547
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1645', '1', '9', '0', '383', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=9080
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '384';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2656';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1644, 0, 0
                    , 414.00, 6, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1891
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-08*414.00," WHERE transferproductid = 384;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1644', '2', '6', '1', '384', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=9081
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1669';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1644, 0, 0
                    , 414.00, 6.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=546
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1644', '1', '6', '0', '384', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=9082
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '385';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2655';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1643, 0, 0
                    , 423.00, 9, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1893
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-08*423.00," WHERE transferproductid = 385;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1643', '2', '9', '1', '385', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=9083
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1668';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1643, 0, 0
                    , 423.00, 9.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=545
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1643', '1', '9', '0', '385', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=9084
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '386';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2654';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1642, 0, 0
                    , 432.00, 6, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1895
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-08*432.00," WHERE transferproductid = 386;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1642', '2', '6', '1', '386', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=9085
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1667';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1642, 0, 0
                    , 432.00, 6.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=544
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1642', '1', '6', '0', '386', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=9086
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '387';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2653';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1641, 0, 0
                    , 441.00, 6, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1897
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-08*441.00," WHERE transferproductid = 387;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1641', '2', '6', '1', '387', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=9087
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1666';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1641, 0, 0
                    , 441.00, 6.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=543
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1641', '1', '6', '0', '387', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=9088
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '388';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2652';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 388;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1640', '2', '0', '1', '388', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9089
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1665';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1640', '1', '0', '0', '388', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9090
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '389';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2651';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1639, 0, 0
                    , 315.00, 9, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1899
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-08*315.00," WHERE transferproductid = 389;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1639', '2', '9', '1', '389', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=9091
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1664';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1639, 0, 0
                    , 315.00, 9.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=541
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1639', '1', '9', '0', '389', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=9092
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '390';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2650';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1638, 0, 0
                    , 297.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1901
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*297.00," WHERE transferproductid = 390;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1638', '2', '24', '1', '390', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9093
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1663';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1638, 0, 0
                    , 297.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=540
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1638', '1', '24', '0', '390', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9094
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '391';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2649';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 391;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1637', '2', '0', '1', '391', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9095
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1662';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1637', '1', '0', '0', '391', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9096
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '392';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2648';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1636, 0, 0
                    , 386.40, 21, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1903
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-08*386.40," WHERE transferproductid = 392;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1636', '2', '21', '1', '392', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=9097
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1661';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1636, 0, 0
                    , 386.40, 21.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=538
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1636', '1', '21', '0', '392', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=9098
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '393';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2647';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1635, 0, 0
                    , 303.60, 21, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1905
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-08*303.60," WHERE transferproductid = 393;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1635', '2', '21', '1', '393', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=9099
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1660';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1635, 0, 0
                    , 303.60, 21.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=537
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1635', '1', '21', '0', '393', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=9100
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '394';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2646';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1634, 0, 0
                    , 386.40, 30, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1907
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-08*386.40," WHERE transferproductid = 394;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1634', '2', '30', '1', '394', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9101
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1659';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1634, 0, 0
                    , 386.40, 30.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=536
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1634', '1', '30', '0', '394', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9102
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '395';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2645';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1633, 0, 0
                    , 386.40, 9, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1909
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-08*386.40," WHERE transferproductid = 395;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1633', '2', '9', '1', '395', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=9103
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1658';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1633, 0, 0
                    , 386.40, 9.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=535
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1633', '1', '9', '0', '395', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=9104
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '396';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2644';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1632, 0, 0
                    , 303.60, 27, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1911
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-08*303.60," WHERE transferproductid = 396;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1632', '2', '27', '1', '396', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=9105
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1657';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1632, 0, 0
                    , 303.60, 27.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=534
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1632', '1', '27', '0', '396', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=9106
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '397';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2643';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1631, 0, 0
                    , 303.60, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1913
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*303.60," WHERE transferproductid = 397;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1631', '2', '24', '1', '397', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9107
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1656';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1631, 0, 0
                    , 303.60, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=533
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1631', '1', '24', '0', '397', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9108
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '398';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2642';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1630, 0, 0
                    , 414.00, 21, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1915
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-08*414.00," WHERE transferproductid = 398;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1630', '2', '21', '1', '398', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=9109
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1655';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1630, 0, 0
                    , 414.00, 21.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=532
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1630', '1', '21', '0', '398', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=9110
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '399';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2641';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1629, 0, 0
                    , 414.00, 21, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1917
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-08*414.00," WHERE transferproductid = 399;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1629', '2', '21', '1', '399', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=9111
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1654';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1629, 0, 0
                    , 414.00, 21.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=531
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1629', '1', '21', '0', '399', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=9112
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '400';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2640';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1628, 0, 0
                    , 496.80, 18, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1919
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-08*496.80," WHERE transferproductid = 400;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1628', '2', '18', '1', '400', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=9113
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1653';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1628, 0, 0
                    , 496.80, 18.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=530
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1628', '1', '18', '0', '400', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=9114
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '401';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2639';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1627, 0, 0
                    , 432.40, 15, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1921
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-08*432.40," WHERE transferproductid = 401;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1627', '2', '15', '1', '401', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=9115
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1652';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1627, 0, 0
                    , 432.40, 15.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=529
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1627', '1', '15', '0', '401', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=9116
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '402';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2638';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1626, 0, 0
                    , 496.80, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1923
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-08*496.80," WHERE transferproductid = 402;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1626', '2', '24', '1', '402', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9117
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1651';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1626, 0, 0
                    , 496.80, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=528
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1626', '1', '24', '0', '402', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9118
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '403';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2637';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1625, 0, 0
                    , 330.00, 174, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-174, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1925
UPDATE storemovement SET  buyPricesHistoryBookData = "174*2026-10-07*330.00," WHERE transferproductid = 403;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1625', '2', '174', '1', '403', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '174', '0', '1', '2026-10-14','0','0'); -- id=9119
UPDATE storedetail SET  productquantity = '174', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1650';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1625, 0, 0
                    , 330.00, 174.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+174.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=468
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1625', '1', '174', '0', '403', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '174', '1', '2026-10-14','0','0'); -- id=9120
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '404';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2636';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1624, 0, 0
                    , 330.00, 48, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1927
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-07*330.00," WHERE transferproductid = 404;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1624', '2', '48', '1', '404', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=9121
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1649';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1624, 0, 0
                    , 330.00, 48.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=467
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1624', '1', '48', '0', '404', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=9122
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '405';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2635';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1623, 0, 0
                    , 320.00, 96, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-96, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1929
UPDATE storemovement SET  buyPricesHistoryBookData = "96*2026-10-07*320.00," WHERE transferproductid = 405;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1623', '2', '96', '1', '405', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '96', '0', '1', '2026-10-14','0','0'); -- id=9123
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1648';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1623, 0, 0
                    , 320.00, 96.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+96.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=466
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1623', '1', '96', '0', '405', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '96', '1', '2026-10-14','0','0'); -- id=9124
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '406';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2634';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1622, 0, 0
                    , 320.00, 96, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-96, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1931
UPDATE storemovement SET  buyPricesHistoryBookData = "96*2026-10-07*320.00," WHERE transferproductid = 406;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1622', '2', '96', '1', '406', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '96', '0', '1', '2026-10-14','0','0'); -- id=9125
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1647';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1622, 0, 0
                    , 320.00, 96.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+96.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=465
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1622', '1', '96', '0', '406', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '96', '1', '2026-10-14','0','0'); -- id=9126
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '407';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2633';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1621, 0, 0
                    , 315.00, 96, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-96, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1933
UPDATE storemovement SET  buyPricesHistoryBookData = "96*2026-10-07*315.00," WHERE transferproductid = 407;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1621', '2', '96', '1', '407', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '96', '0', '1', '2026-10-14','0','0'); -- id=9127
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1646';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1621, 0, 0
                    , 315.00, 96.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+96.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=464
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1621', '1', '96', '0', '407', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '96', '1', '2026-10-14','0','0'); -- id=9128
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '408';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2632';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1620, 0, 0
                    , 275.00, 192, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-192, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1935
UPDATE storemovement SET  buyPricesHistoryBookData = "192*2026-10-07*275.00," WHERE transferproductid = 408;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1620', '2', '192', '1', '408', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '192', '0', '1', '2026-10-14','0','0'); -- id=9129
UPDATE storedetail SET  productquantity = '192', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1645';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1620, 0, 0
                    , 275.00, 192.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+192.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=463
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1620', '1', '192', '0', '408', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '192', '1', '2026-10-14','0','0'); -- id=9130
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '409';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2631';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1619, 0, 0
                    , 253.00, 28, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1937
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-07*253.00," WHERE transferproductid = 409;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1619', '2', '28', '1', '409', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=9131
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1644';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1619, 0, 0
                    , 253.00, 28.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=462
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1619', '1', '28', '0', '409', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=9132
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '410';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2630';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1618, 0, 0
                    , 294.40, 36, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1939
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-07*294.40," WHERE transferproductid = 410;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1618', '2', '36', '1', '410', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9133
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1643';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1618, 0, 0
                    , 294.40, 36.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=461
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1618', '1', '36', '0', '410', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9134
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '411';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2629';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1617, 0, 0
                    , 276.00, 224, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-224, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1941
UPDATE storemovement SET  buyPricesHistoryBookData = "224*2026-10-07*276.00," WHERE transferproductid = 411;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1617', '2', '224', '1', '411', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '224', '0', '1', '2026-10-14','0','0'); -- id=9135
UPDATE storedetail SET  productquantity = '224', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1642';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1617, 0, 0
                    , 276.00, 224.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+224.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=460
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1617', '1', '224', '0', '411', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '224', '1', '2026-10-14','0','0'); -- id=9136
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '412';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2628';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1616, 0, 0
                    , 285.20, 64, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-64, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1943
UPDATE storemovement SET  buyPricesHistoryBookData = "64*2026-10-07*285.20," WHERE transferproductid = 412;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1616', '2', '64', '1', '412', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '64', '0', '1', '2026-10-14','0','0'); -- id=9137
UPDATE storedetail SET  productquantity = '64', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1641';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1616, 0, 0
                    , 285.20, 64.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+64.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=459
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1616', '1', '64', '0', '412', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '64', '1', '2026-10-14','0','0'); -- id=9138
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '413';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2627';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1615, 0, 0
                    , 266.80, 104, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-104, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1945
UPDATE storemovement SET  buyPricesHistoryBookData = "104*2026-10-07*266.80," WHERE transferproductid = 413;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1615', '2', '104', '1', '413', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '104', '0', '1', '2026-10-14','0','0'); -- id=9139
UPDATE storedetail SET  productquantity = '104', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1640';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1615, 0, 0
                    , 266.80, 104.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+104.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=458
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1615', '1', '104', '0', '413', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '104', '1', '2026-10-14','0','0'); -- id=9140
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '414';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2626';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1614, 0, 0
                    , 322.00, 76, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-76, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1947
UPDATE storemovement SET  buyPricesHistoryBookData = "76*2026-10-07*322.00," WHERE transferproductid = 414;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1614', '2', '76', '1', '414', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '76', '0', '1', '2026-10-14','0','0'); -- id=9141
UPDATE storedetail SET  productquantity = '76', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1639';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1614, 0, 0
                    , 322.00, 76.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+76.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=457
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1614', '1', '76', '0', '414', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '76', '1', '2026-10-14','0','0'); -- id=9142
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '415';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2625';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1613, 0, 0
                    , 303.60, 128, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-128, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1949
UPDATE storemovement SET  buyPricesHistoryBookData = "128*2026-10-07*303.60," WHERE transferproductid = 415;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1613', '2', '128', '1', '415', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '128', '0', '1', '2026-10-14','0','0'); -- id=9143
UPDATE storedetail SET  productquantity = '128', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1638';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1613, 0, 0
                    , 303.60, 128.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+128.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=456
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1613', '1', '128', '0', '415', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '128', '1', '2026-10-14','0','0'); -- id=9144
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '416';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2624';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1612, 0, 0
                    , 303.60, 140, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-140, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1951
UPDATE storemovement SET  buyPricesHistoryBookData = "140*2026-10-07*303.60," WHERE transferproductid = 416;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1612', '2', '140', '1', '416', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '140', '0', '1', '2026-10-14','0','0'); -- id=9145
UPDATE storedetail SET  productquantity = '140', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1637';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1612, 0, 0
                    , 303.60, 140.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+140.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=455
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1612', '1', '140', '0', '416', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '140', '1', '2026-10-14','0','0'); -- id=9146
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '417';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2623';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 417;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1611', '2', '-6', '1', '417', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-6', '0', '1', '2026-10-14','0','0'); -- id=9147
UPDATE storedetail SET  productquantity = '-6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1636';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1611', '1', '-6', '0', '417', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-6', '1', '2026-10-14','0','0'); -- id=9148
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '418';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2622';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 418;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1610', '2', '-20', '1', '418', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-20', '0', '1', '2026-10-14','0','0'); -- id=9149
UPDATE storedetail SET  productquantity = '-20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1635';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1610', '1', '-20', '0', '418', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-20', '1', '2026-10-14','0','0'); -- id=9150
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '419';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2621';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 419;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1609', '2', '-15', '1', '419', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-15', '0', '1', '2026-10-14','0','0'); -- id=9151
UPDATE storedetail SET  productquantity = '-15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1634';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1609', '1', '-15', '0', '419', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-15', '1', '2026-10-14','0','0'); -- id=9152
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '420';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2620';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 420;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1608', '2', '-30', '1', '420', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-30', '0', '1', '2026-10-14','0','0'); -- id=9153
UPDATE storedetail SET  productquantity = '-30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1633';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1608', '1', '-30', '0', '420', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-30', '1', '2026-10-14','0','0'); -- id=9154
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '421';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2619';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 421;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1607', '2', '-25', '1', '421', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-25', '0', '1', '2026-10-14','0','0'); -- id=9155
UPDATE storedetail SET  productquantity = '-25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1632';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1607', '1', '-25', '0', '421', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-25', '1', '2026-10-14','0','0'); -- id=9156
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '422';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2618';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 422;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1606', '2', '-9', '1', '422', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-9', '0', '1', '2026-10-14','0','0'); -- id=9157
UPDATE storedetail SET  productquantity = '-9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1631';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1606', '1', '-9', '0', '422', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-9', '1', '2026-10-14','0','0'); -- id=9158
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '423';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2617';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 423;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1605', '2', '-40', '1', '423', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-40', '0', '1', '2026-10-14','0','0'); -- id=9159
UPDATE storedetail SET  productquantity = '-40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1630';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1605', '1', '-40', '0', '423', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-40', '1', '2026-10-14','0','0'); -- id=9160
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '424';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2616';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 424;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1604', '2', '-15', '1', '424', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-15', '0', '1', '2026-10-14','0','0'); -- id=9161
UPDATE storedetail SET  productquantity = '-15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1629';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1604', '1', '-15', '0', '424', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-15', '1', '2026-10-14','0','0'); -- id=9162
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '425';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2615';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 425;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1603', '2', '-4', '1', '425', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-4', '0', '1', '2026-10-14','0','0'); -- id=9163
UPDATE storedetail SET  productquantity = '-4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1628';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1603', '1', '-4', '0', '425', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-4', '1', '2026-10-14','0','0'); -- id=9164
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '426';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2614';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 426;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1602', '2', '-3', '1', '426', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-3', '0', '1', '2026-10-14','0','0'); -- id=9165
UPDATE storedetail SET  productquantity = '-3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1627';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1602', '1', '-3', '0', '426', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-3', '1', '2026-10-14','0','0'); -- id=9166
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '427';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2613';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 427;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1601', '2', '-8', '1', '427', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-8', '0', '1', '2026-10-14','0','0'); -- id=9167
UPDATE storedetail SET  productquantity = '-8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1626';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1601', '1', '-8', '0', '427', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-8', '1', '2026-10-14','0','0'); -- id=9168
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '428';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2612';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 428;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1600', '2', '-10', '1', '428', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-10', '0', '1', '2026-10-14','0','0'); -- id=9169
UPDATE storedetail SET  productquantity = '-10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1625';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1600', '1', '-10', '0', '428', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-10', '1', '2026-10-14','0','0'); -- id=9170
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '429';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2611';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 429;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1599', '2', '-15', '1', '429', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-15', '0', '1', '2026-10-14','0','0'); -- id=9171
UPDATE storedetail SET  productquantity = '-15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1624';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1599', '1', '-15', '0', '429', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-15', '1', '2026-10-14','0','0'); -- id=9172
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '430';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2610';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1598, 0, 0
                    , 700.00, 556, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-556, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1953
UPDATE storemovement SET  buyPricesHistoryBookData = "556*2026-10-07*700.00," WHERE transferproductid = 430;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1598', '2', '556', '1', '430', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '556', '0', '1', '2026-10-14','0','0'); -- id=9173
UPDATE storedetail SET  productquantity = '556', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1623';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1598, 0, 0
                    , 700.00, 556.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+556.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=454
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1598', '1', '556', '0', '430', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '556', '1', '2026-10-14','0','0'); -- id=9174
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '431';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2609';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1597, 0, 0
                    , 420.00, 28, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1955
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-07*420.00," WHERE transferproductid = 431;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1597', '2', '28', '1', '431', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=9175
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1622';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1597, 0, 0
                    , 420.00, 28.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=449
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1597', '1', '28', '0', '431', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=9176
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '432';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2608';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1596, 0, 0
                    , 588.80, 20, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1957
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-07*588.80," WHERE transferproductid = 432;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1596', '2', '20', '1', '432', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=9177
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1621';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1596, 0, 0
                    , 588.80, 20.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=448
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1596', '1', '20', '0', '432', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=9178
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '433';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2607';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1595, 0, 0
                    , 496.80, 28, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1959
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-07*496.80," WHERE transferproductid = 433;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1595', '2', '28', '1', '433', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=9179
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1620';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1595, 0, 0
                    , 496.80, 28.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=447
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1595', '1', '28', '0', '433', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=9180
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '434';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2606';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1594, 0, 0
                    , 363.40, 36, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1961
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-07*363.40," WHERE transferproductid = 434;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1594', '2', '36', '1', '434', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9181
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1619';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1594, 0, 0
                    , 363.40, 36.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=446
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1594', '1', '36', '0', '434', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9182
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '435';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2605';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1593, 0, 0
                    , 368.00, 36, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1963
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-07*368.00," WHERE transferproductid = 435;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1593', '2', '36', '1', '435', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9183
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1618';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1593, 0, 0
                    , 368.00, 36.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=445
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1593', '1', '36', '0', '435', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9184
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '436';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2604';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1592, 0, 0
                    , 533.60, 36, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1965
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-07*533.60," WHERE transferproductid = 436;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1592', '2', '36', '1', '436', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9185
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1617';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1592, 0, 0
                    , 533.60, 36.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=444
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1592', '1', '36', '0', '436', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9186
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '437';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2603';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1591, 0, 0
                    , 368.00, 32, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1967
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-07*368.00," WHERE transferproductid = 437;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1591', '2', '32', '1', '437', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=9187
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1616';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1591, 0, 0
                    , 368.00, 32.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=443
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1591', '1', '32', '0', '437', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=9188
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '438';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2602';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1590, 0, 0
                    , 377.20, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1969
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-07*377.20," WHERE transferproductid = 438;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1590', '2', '24', '1', '438', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9189
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1615';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1590, 0, 0
                    , 377.20, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=442
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1590', '1', '24', '0', '438', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9190
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '439';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2601';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1589, 0, 0
                    , 533.60, 36, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1971
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-07*533.60," WHERE transferproductid = 439;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1589', '2', '36', '1', '439', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9191
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1614';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1589, 0, 0
                    , 533.60, 36.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=441
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1589', '1', '36', '0', '439', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9192
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '440';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2600';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1588, 0, 0
                    , 325.50, 18, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1973
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-07*325.50," WHERE transferproductid = 440;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1588', '2', '18', '1', '440', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=9193
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1613';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1588, 0, 0
                    , 325.50, 18.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=429
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1588', '1', '18', '0', '440', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=9194
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '441';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2599';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 441;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1587', '2', '0', '1', '441', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9195
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1612';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1587', '1', '0', '0', '441', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9196
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '442';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2598';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1586, 0, 0
                    , 302.25, 33, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1975
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2026-10-07*302.25," WHERE transferproductid = 442;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1586', '2', '33', '1', '442', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=9197
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1611';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1586, 0, 0
                    , 302.25, 33.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=427
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1586', '1', '33', '0', '442', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=9198
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '443';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2597';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 443;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1585', '2', '0', '1', '443', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9199
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1610';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1585', '1', '0', '0', '443', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9200
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '444';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2596';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 444;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '2', '0', '1', '444', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9201
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1609';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1584', '1', '0', '0', '444', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9202
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '445';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2595';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 445;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1583', '2', '0', '1', '445', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9203
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1608';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1583', '1', '0', '0', '445', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9204
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '446';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2594';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1582, 0, 0
                    , 369.00, 9, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1977
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-07*369.00," WHERE transferproductid = 446;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1582', '2', '9', '1', '446', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=9205
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1607';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1582, 0, 0
                    , 369.00, 9.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=403
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1582', '1', '9', '0', '446', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=9206
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '447';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2593';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1581, 0, 0
                    , 585.00, 20, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1979
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-07*585.00," WHERE transferproductid = 447;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1581', '2', '20', '1', '447', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=9207
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1606';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1581, 0, 0
                    , 585.00, 20.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=402
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1581', '1', '20', '0', '447', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=9208
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '448';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2592';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1580, 0, 0
                    , 477.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1981
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-07*477.00," WHERE transferproductid = 448;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1580', '2', '24', '1', '448', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9209
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1605';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1580, 0, 0
                    , 477.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=401
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1580', '1', '24', '0', '448', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9210
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '449';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2591';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1579, 0, 0
                    , 423.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1983
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-07*423.00," WHERE transferproductid = 449;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1579', '2', '24', '1', '449', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9211
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1604';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1579, 0, 0
                    , 423.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=399
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1579', '1', '24', '0', '449', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9212
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '450';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2590';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1578, 0, 0
                    , 360.00, 39, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-39, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1985
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2026-10-07*360.00," WHERE transferproductid = 450;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1578', '2', '39', '1', '450', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '39', '0', '1', '2026-10-14','0','0'); -- id=9213
UPDATE storedetail SET  productquantity = '39', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1603';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1578, 0, 0
                    , 360.00, 39.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=398
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1578', '1', '39', '0', '450', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '39', '1', '2026-10-14','0','0'); -- id=9214
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '451';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2589';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1577, 0, 0
                    , 468.00, 21, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1987
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-07*468.00," WHERE transferproductid = 451;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1577', '2', '21', '1', '451', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=9215
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1602';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1577, 0, 0
                    , 468.00, 21.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=396
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1577', '1', '21', '0', '451', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=9216
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '452';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2588';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1576, 0, 0
                    , 450.00, 42, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-42, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1989
UPDATE storemovement SET  buyPricesHistoryBookData = "42*2026-10-07*450.00," WHERE transferproductid = 452;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '2', '42', '1', '452', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '42', '0', '1', '2026-10-14','0','0'); -- id=9217
UPDATE storedetail SET  productquantity = '42', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1601';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1576, 0, 0
                    , 450.00, 42.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=395
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1576', '1', '42', '0', '452', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '42', '1', '2026-10-14','0','0'); -- id=9218
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '453';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2587';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1575, 0, 0
                    , 472.50, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1991
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-07*472.50," WHERE transferproductid = 453;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '2', '24', '1', '453', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9219
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1600';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1575, 0, 0
                    , 472.50, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=394
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1575', '1', '24', '0', '453', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9220
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '454';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2586';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1574, 0, 0
                    , 297.00, 21, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1993
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-07*297.00," WHERE transferproductid = 454;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1574', '2', '21', '1', '454', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=9221
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1599';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1574, 0, 0
                    , 297.00, 21.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=393
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1574', '1', '21', '0', '454', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=9222
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '455';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2585';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1573, 0, 0
                    , 342.00, 30, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1995
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-07*342.00," WHERE transferproductid = 455;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1573', '2', '30', '1', '455', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9223
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1598';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1573, 0, 0
                    , 342.00, 30.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=392
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1573', '1', '30', '0', '455', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9224
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '456';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2584';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1572, 0, 0
                    , 490.00, 19, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-19, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1997
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2026-10-07*490.00," WHERE transferproductid = 456;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1572', '2', '19', '1', '456', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '19', '0', '1', '2026-10-14','0','0'); -- id=9225
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1597';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1572, 0, 0
                    , 490.00, 19.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=391
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1572', '1', '19', '0', '456', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '19', '1', '2026-10-14','0','0'); -- id=9226
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '457';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2583';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1571, 0, 0
                    , 480.00, 20, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1999
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-07*480.00," WHERE transferproductid = 457;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1571', '2', '20', '1', '457', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=9227
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1596';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1571, 0, 0
                    , 480.00, 20.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=390
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1571', '1', '20', '0', '457', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=9228
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '458';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2582';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1570, 0, 0
                    , 430.00, 30, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2001
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-07*430.00," WHERE transferproductid = 458;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1570', '2', '30', '1', '458', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9229
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1595';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1570, 0, 0
                    , 430.00, 30.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=389
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1570', '1', '30', '0', '458', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9230
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '459';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2581';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1569, 0, 0
                    , 465.00, 30, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2003
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-07*465.00," WHERE transferproductid = 459;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1569', '2', '30', '1', '459', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9231
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1594';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1569, 0, 0
                    , 465.00, 30.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=388
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1569', '1', '30', '0', '459', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9232
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '460';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2580';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1568, 0, 0
                    , 500.00, 36, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2005
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-07*500.00," WHERE transferproductid = 460;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1568', '2', '36', '1', '460', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9233
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1593';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1568, 0, 0
                    , 500.00, 36.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=386
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1568', '1', '36', '0', '460', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9234
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '461';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2579';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1567, 0, 0
                    , 540.00, 5, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2007
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-07*540.00," WHERE transferproductid = 461;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1567', '2', '5', '1', '461', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=9235
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1592';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1567, 0, 0
                    , 540.00, 5.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=385
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1567', '1', '5', '0', '461', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=9236
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '462';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2578';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1566, 0, 0
                    , 600.00, 5, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2009
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-07*600.00," WHERE transferproductid = 462;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1566', '2', '5', '1', '462', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=9237
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1591';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1566, 0, 0
                    , 600.00, 5.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=384
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1566', '1', '5', '0', '462', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=9238
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '463';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2577';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1565, 0, 0
                    , 580.00, 2, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-2, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2011
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2026-10-07*580.00," WHERE transferproductid = 463;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1565', '2', '2', '1', '463', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=9239
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1590';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1565, 0, 0
                    , 580.00, 2.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=383
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1565', '1', '2', '0', '463', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=9240
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '464';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2576';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 464;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1564', '2', '0', '1', '464', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9241
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1589';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1564', '1', '0', '0', '464', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9242
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '465';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2575';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1563, 0, 0
                    , 650.00, 15, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2014
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1563, 0, 0
                    , 650.00, 20, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2015
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-07*650.00,20*2026-10-14*650.00," WHERE transferproductid = 465;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1563', '2', '35', '1', '465', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=9243
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1588';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1563, 0, 0
                    , 650.00, 15, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=381
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1563, 0, 0
                    , 650.00, 20, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=1165
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1563', '1', '35', '0', '465', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=9244
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '466';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2574';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1562, 0, 0
                    , 680.00, 5, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2017
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-07*680.00," WHERE transferproductid = 466;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1562', '2', '5', '1', '466', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=9245
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1587';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1562, 0, 0
                    , 680.00, 5.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=380
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1562', '1', '5', '0', '466', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=9246
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '467';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2573';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 467;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1561', '2', '0', '1', '467', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9247
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1586';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1561', '1', '0', '0', '467', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9248
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '468';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2572';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 468;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1560', '2', '0', '1', '468', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9249
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1585';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1560', '1', '0', '0', '468', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9250
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '469';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2571';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1559, 0, 0
                    , 577.00, 15, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2019
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-07*577.00," WHERE transferproductid = 469;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1559', '2', '15', '1', '469', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=9251
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1584';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1559, 0, 0
                    , 577.00, 15.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=377
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1559', '1', '15', '0', '469', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=9252
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '470';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2570';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1558, 0, 0
                    , 657.00, 15, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2022
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1558, 0, 0
                    , 657.00, 1, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-1, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2023
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-07*657.00,1*2026-10-14*657.00," WHERE transferproductid = 470;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1558', '2', '16', '1', '470', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=9253
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1583';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1558, 0, 0
                    , 657.00, 15, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=376
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1558, 0, 0
                    , 657.00, 1, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2021
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1558', '1', '16', '0', '470', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '16', '1', '2026-10-14','0','0'); -- id=9254
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '471';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2569';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1557, 0, 0
                    , 617.00, 10, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2025
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-07*617.00," WHERE transferproductid = 471;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1557', '2', '10', '1', '471', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=9255
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1582';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1557, 0, 0
                    , 617.00, 10.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=375
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1557', '1', '10', '0', '471', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=9256
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '472';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2568';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1556, 0, 0
                    , 637.00, 25, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2027
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-07*637.00," WHERE transferproductid = 472;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1556', '2', '25', '1', '472', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=9257
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1581';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1556, 0, 0
                    , 637.00, 25.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=374
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1556', '1', '25', '0', '472', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=9258
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '473';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2567';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1555, 0, 0
                    , 457.00, 15, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2029
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-07*457.00," WHERE transferproductid = 473;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1555', '2', '15', '1', '473', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=9259
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1580';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1555, 0, 0
                    , 457.00, 15.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=373
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1555', '1', '15', '0', '473', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=9260
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '474';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2566';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1554, 0, 0
                    , 532.00, 15, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2031
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-07*532.00," WHERE transferproductid = 474;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1554', '2', '15', '1', '474', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=9261
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1579';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1554, 0, 0
                    , 532.00, 15.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=372
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1554', '1', '15', '0', '474', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=9262
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '475';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2565';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1553, 0, 0
                    , 572.00, 20, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2033
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-07*572.00," WHERE transferproductid = 475;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1553', '2', '20', '1', '475', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=9263
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1578';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1553, 0, 0
                    , 572.00, 20.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=371
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1553', '1', '20', '0', '475', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=9264
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '476';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2564';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 476;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1552', '2', '0', '1', '476', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9265
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1577';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1552', '1', '0', '0', '476', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9266
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '477';
UPDATE storedetail SET  productquantity = '396', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2563';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 477;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1551', '2', '0', '1', '477', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '396', '396', '1', '2026-10-14','0','0'); -- id=9267
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1576';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1551', '1', '0', '0', '477', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9268
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '478';
UPDATE storedetail SET  productquantity = '123', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2562';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 478;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1550', '2', '0', '1', '478', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '123', '123', '1', '2026-10-14','0','0'); -- id=9269
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1575';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1550', '1', '0', '0', '478', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9270
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '479';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2561';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1549, 0, 0
                    , 485.00, 25, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2035
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-07*485.00," WHERE transferproductid = 479;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1549', '2', '25', '1', '479', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=9271
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1574';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1549, 0, 0
                    , 485.00, 25.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=358
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1549', '1', '25', '0', '479', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=9272
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '480';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2560';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1548, 0, 0
                    , 517.50, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2037
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-06*517.50," WHERE transferproductid = 480;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1548', '2', '24', '1', '480', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9273
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1573';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1548, 0, 0
                    , 517.50, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=326
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1548', '1', '24', '0', '480', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9274
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '481';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2559';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1547, 0, 0
                    , 513.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2039
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-06*513.00," WHERE transferproductid = 481;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1547', '2', '24', '1', '481', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9275
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1572';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1547, 0, 0
                    , 513.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=325
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1547', '1', '24', '0', '481', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9276
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '482';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2558';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1546, 0, 0
                    , 522.00, 25, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2041
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-06*522.00," WHERE transferproductid = 482;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1546', '2', '25', '1', '482', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=9277
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1571';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1546, 0, 0
                    , 522.00, 25.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=324
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1546', '1', '25', '0', '482', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=9278
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '483';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2557';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1545, 0, 0
                    , 517.50, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2043
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-06*517.50," WHERE transferproductid = 483;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1545', '2', '24', '1', '483', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9279
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1570';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1545, 0, 0
                    , 517.50, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=323
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1545', '1', '24', '0', '483', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9280
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '484';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2556';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1544, 0, 0
                    , 495.00, 39, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-39, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2045
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2026-10-06*495.00," WHERE transferproductid = 484;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1544', '2', '39', '1', '484', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '39', '0', '1', '2026-10-14','0','0'); -- id=9281
UPDATE storedetail SET  productquantity = '39', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1569';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1544, 0, 0
                    , 495.00, 39.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=322
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1544', '1', '39', '0', '484', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '39', '1', '2026-10-14','0','0'); -- id=9282
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '485';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2555';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1543, 0, 0
                    , 481.50, 21, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2047
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-06*481.50," WHERE transferproductid = 485;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1543', '2', '21', '1', '485', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=9283
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1568';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1543, 0, 0
                    , 481.50, 21.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=321
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1543', '1', '21', '0', '485', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=9284
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '486';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2554';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1542, 0, 0
                    , 517.50, 25, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2049
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-06*517.50," WHERE transferproductid = 486;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1542', '2', '25', '1', '486', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=9285
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1567';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1542, 0, 0
                    , 517.50, 25.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=320
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1542', '1', '25', '0', '486', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=9286
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '487';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2553';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1541, 0, 0
                    , 441.00, 12, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2051
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-06*441.00," WHERE transferproductid = 487;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1541', '2', '12', '1', '487', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9287
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1566';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1541, 0, 0
                    , 441.00, 12.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=319
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1541', '1', '12', '0', '487', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9288
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '488';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2552';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1540, 0, 0
                    , 495.00, 10, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2053
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-06*495.00," WHERE transferproductid = 488;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1540', '2', '10', '1', '488', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=9289
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1565';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1540, 0, 0
                    , 495.00, 10.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=318
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1540', '1', '10', '0', '488', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=9290
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '489';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2551';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1539, 0, 0
                    , 477.00, 16, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-16, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2055
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2026-10-06*477.00," WHERE transferproductid = 489;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1539', '2', '16', '1', '489', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=9291
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1564';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1539, 0, 0
                    , 477.00, 16.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=317
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1539', '1', '16', '0', '489', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '16', '1', '2026-10-14','0','0'); -- id=9292
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '490';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2550';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1538, 0, 0
                    , 445.50, 36, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2057
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-06*445.50," WHERE transferproductid = 490;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1538', '2', '36', '1', '490', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9293
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1563';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1538, 0, 0
                    , 445.50, 36.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=316
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1538', '1', '36', '0', '490', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9294
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '491';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2549';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1537, 0, 0
                    , 445.50, 30, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2059
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-06*445.50," WHERE transferproductid = 491;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1537', '2', '30', '1', '491', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9295
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1562';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1537, 0, 0
                    , 445.50, 30.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=315
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1537', '1', '30', '0', '491', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9296
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '492';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2548';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1536, 0, 0
                    , 373.50, 36, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2061
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-06*373.50," WHERE transferproductid = 492;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1536', '2', '36', '1', '492', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9297
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1561';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1536, 0, 0
                    , 373.50, 36.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=314
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1536', '1', '36', '0', '492', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9298
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '493';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2547';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1535, 0, 0
                    , 373.50, 30, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2063
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-06*373.50," WHERE transferproductid = 493;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1535', '2', '30', '1', '493', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9299
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1560';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1535, 0, 0
                    , 373.50, 30.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=313
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1535', '1', '30', '0', '493', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9300
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '494';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2546';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1534, 0, 0
                    , 324.00, 37, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-37, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2065
UPDATE storemovement SET  buyPricesHistoryBookData = "37*2026-10-06*324.00," WHERE transferproductid = 494;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1534', '2', '37', '1', '494', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '37', '0', '1', '2026-10-14','0','0'); -- id=9301
UPDATE storedetail SET  productquantity = '37', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1559';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1534, 0, 0
                    , 324.00, 37.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=312
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1534', '1', '37', '0', '494', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '37', '1', '2026-10-14','0','0'); -- id=9302
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '495';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2545';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1533, 0, 0
                    , 373.50, 40, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2067
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-06*373.50," WHERE transferproductid = 495;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1533', '2', '40', '1', '495', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=9303
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1558';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1533, 0, 0
                    , 373.50, 40.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=311
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1533', '1', '40', '0', '495', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=9304
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '496';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2544';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1532, 0, 0
                    , 427.50, 5, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2069
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-06*427.50," WHERE transferproductid = 496;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1532', '2', '5', '1', '496', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=9305
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1557';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1532, 0, 0
                    , 427.50, 5.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=310
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1532', '1', '5', '0', '496', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=9306
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '497';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2543';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1531, 0, 0
                    , 409.50, 37, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-37, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2071
UPDATE storemovement SET  buyPricesHistoryBookData = "37*2026-10-06*409.50," WHERE transferproductid = 497;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1531', '2', '37', '1', '497', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '37', '0', '1', '2026-10-14','0','0'); -- id=9307
UPDATE storedetail SET  productquantity = '37', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1556';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1531, 0, 0
                    , 409.50, 37.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=309
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1531', '1', '37', '0', '497', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '37', '1', '2026-10-14','0','0'); -- id=9308
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '498';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2542';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1530, 0, 0
                    , 400.50, 28, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2073
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-06*400.50," WHERE transferproductid = 498;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1530', '2', '28', '1', '498', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=9309
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1555';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1530, 0, 0
                    , 400.50, 28.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=308
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1530', '1', '28', '0', '498', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=9310
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '499';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2541';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1529, 0, 0
                    , 405.00, 30, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2075
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-06*405.00," WHERE transferproductid = 499;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1529', '2', '30', '1', '499', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9311
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1554';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1529, 0, 0
                    , 405.00, 30.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=307
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1529', '1', '30', '0', '499', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9312
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '500';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2540';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1528, 0, 0
                    , 409.50, 38, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-38, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2077
UPDATE storemovement SET  buyPricesHistoryBookData = "38*2026-10-06*409.50," WHERE transferproductid = 500;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1528', '2', '38', '1', '500', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '38', '0', '1', '2026-10-14','0','0'); -- id=9313
UPDATE storedetail SET  productquantity = '38', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1553';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1528, 0, 0
                    , 409.50, 38.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+38.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=306
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1528', '1', '38', '0', '500', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '38', '1', '2026-10-14','0','0'); -- id=9314
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '501';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2539';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1527, 0, 0
                    , 445.50, 36, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2079
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-06*445.50," WHERE transferproductid = 501;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1527', '2', '36', '1', '501', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9315
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1552';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1527, 0, 0
                    , 445.50, 36.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=305
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1527', '1', '36', '0', '501', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9316
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '502';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2538';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1526, 0, 0
                    , 346.50, 30, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2081
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-06*346.50," WHERE transferproductid = 502;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1526', '2', '30', '1', '502', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9317
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1551';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1526, 0, 0
                    , 346.50, 30.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=304
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1526', '1', '30', '0', '502', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9318
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '503';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2537';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1525, 0, 0
                    , 405.00, 22, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-22, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2083
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2026-10-06*405.00," WHERE transferproductid = 503;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1525', '2', '22', '1', '503', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '22', '0', '1', '2026-10-14','0','0'); -- id=9319
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1550';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1525, 0, 0
                    , 405.00, 22.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=303
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1525', '1', '22', '0', '503', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '22', '1', '2026-10-14','0','0'); -- id=9320
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '504';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2536';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1524, 0, 0
                    , 418.50, 1, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-1, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2085
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2026-10-06*418.50," WHERE transferproductid = 504;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1524', '2', '1', '1', '504', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '1', '0', '1', '2026-10-14','0','0'); -- id=9321
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1549';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1524, 0, 0
                    , 418.50, 1.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=302
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1524', '1', '1', '0', '504', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '1', '1', '2026-10-14','0','0'); -- id=9322
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '505';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2535';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1523, 0, 0
                    , 360.00, 34, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-34, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2087
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2026-10-06*360.00," WHERE transferproductid = 505;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1523', '2', '34', '1', '505', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '34', '0', '1', '2026-10-14','0','0'); -- id=9323
UPDATE storedetail SET  productquantity = '34', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1548';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1523, 0, 0
                    , 360.00, 34.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=301
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1523', '1', '34', '0', '505', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '34', '1', '2026-10-14','0','0'); -- id=9324
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '506';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2534';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1522, 0, 0
                    , 427.50, 30, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2089
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-06*427.50," WHERE transferproductid = 506;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1522', '2', '30', '1', '506', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9325
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1547';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1522, 0, 0
                    , 427.50, 30.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=300
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1522', '1', '30', '0', '506', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9326
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '507';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2533';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1521, 0, 0
                    , 378.00, 33, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2091
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2026-10-06*378.00," WHERE transferproductid = 507;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1521', '2', '33', '1', '507', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=9327
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1546';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1521, 0, 0
                    , 378.00, 33.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=299
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1521', '1', '33', '0', '507', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=9328
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '508';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2532';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1520, 0, 0
                    , 427.50, 37, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-37, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2093
UPDATE storemovement SET  buyPricesHistoryBookData = "37*2026-10-06*427.50," WHERE transferproductid = 508;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1520', '2', '37', '1', '508', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '37', '0', '1', '2026-10-14','0','0'); -- id=9329
UPDATE storedetail SET  productquantity = '37', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1545';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1520, 0, 0
                    , 427.50, 37.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=298
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1520', '1', '37', '0', '508', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '37', '1', '2026-10-14','0','0'); -- id=9330
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '509';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2531';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1519, 0, 0
                    , 333.00, 9, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2095
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-06*333.00," WHERE transferproductid = 509;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1519', '2', '9', '1', '509', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=9331
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1544';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1519, 0, 0
                    , 333.00, 9.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=297
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1519', '1', '9', '0', '509', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=9332
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '510';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2530';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1518, 0, 0
                    , 495.00, 30, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2097
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-06*495.00," WHERE transferproductid = 510;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1518', '2', '30', '1', '510', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9333
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1543';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1518, 0, 0
                    , 495.00, 30.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=296
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1518', '1', '30', '0', '510', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9334
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '511';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2529';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1517, 0, 0
                    , 380.00, 50, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-50, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2099
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2026-10-06*380.00," WHERE transferproductid = 511;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1517', '2', '50', '1', '511', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=9335
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1542';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1517, 0, 0
                    , 380.00, 50.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=295
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1517', '1', '50', '0', '511', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=9336
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '512';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2528';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1516, 0, 0
                    , 450.00, 32, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2101
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-06*450.00," WHERE transferproductid = 512;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1516', '2', '32', '1', '512', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=9337
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1541';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1516, 0, 0
                    , 450.00, 32.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=294
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1516', '1', '32', '0', '512', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=9338
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '513';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2527';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1515, 0, 0
                    , 450.00, 32, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2103
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-06*450.00," WHERE transferproductid = 513;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1515', '2', '32', '1', '513', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=9339
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1540';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1515, 0, 0
                    , 450.00, 32.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=293
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1515', '1', '32', '0', '513', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=9340
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '514';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2526';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1514, 0, 0
                    , 690.00, 18, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2105
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-06*690.00," WHERE transferproductid = 514;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1514', '2', '18', '1', '514', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=9341
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1539';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1514, 0, 0
                    , 690.00, 18.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=292
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1514', '1', '18', '0', '514', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=9342
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '515';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2525';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1513, 0, 0
                    , 630.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2107
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-06*630.00," WHERE transferproductid = 515;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1513', '2', '24', '1', '515', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9343
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1538';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1513, 0, 0
                    , 630.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=291
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1513', '1', '24', '0', '515', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9344
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '516';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2524';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1512, 0, 0
                    , 640.00, 27, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2109
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-06*640.00," WHERE transferproductid = 516;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1512', '2', '27', '1', '516', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=9345
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1537';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1512, 0, 0
                    , 640.00, 27.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=290
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1512', '1', '27', '0', '516', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=9346
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '517';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2523';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1511, 0, 0
                    , 670.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2111
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-06*670.00," WHERE transferproductid = 517;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1511', '2', '24', '1', '517', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9347
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1536';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1511, 0, 0
                    , 670.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=289
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1511', '1', '24', '0', '517', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9348
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '518';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2522';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1510, 0, 0
                    , 720.00, 12, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2113
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-06*720.00," WHERE transferproductid = 518;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1510', '2', '12', '1', '518', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9349
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1535';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1510, 0, 0
                    , 720.00, 12.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=288
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1510', '1', '12', '0', '518', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9350
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '519';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2521';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1509, 0, 0
                    , 720.00, 12, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2115
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-06*720.00," WHERE transferproductid = 519;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1509', '2', '12', '1', '519', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9351
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1534';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1509, 0, 0
                    , 720.00, 12.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=287
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1509', '1', '12', '0', '519', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9352
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '520';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2520';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1508, 0, 0
                    , 600.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2117
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-07*600.00," WHERE transferproductid = 520;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1508', '2', '24', '1', '520', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9353
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1533';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1508, 0, 0
                    , 600.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=343
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1508', '1', '24', '0', '520', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9354
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '521';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2519';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 521;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1507', '2', '0', '1', '521', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9355
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1532';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1507', '1', '0', '0', '521', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9356
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '522';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2518';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1506, 0, 0
                    , 480.00, 27, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2119
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-07*480.00," WHERE transferproductid = 522;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1506', '2', '27', '1', '522', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=9357
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1531';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1506, 0, 0
                    , 480.00, 27.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=352
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1506', '1', '27', '0', '522', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=9358
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '523';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2517';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 523;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1505', '2', '0', '1', '523', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9359
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1530';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1505', '1', '0', '0', '523', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9360
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '524';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2516';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1504, 0, 0
                    , 580.00, 2, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-2, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2121
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2026-10-07*580.00," WHERE transferproductid = 524;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1504', '2', '2', '1', '524', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=9361
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1529';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1504, 0, 0
                    , 580.00, 2.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=349
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1504', '1', '2', '0', '524', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=9362
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '525';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2515';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1503, 0, 0
                    , 580.00, 30, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2123
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-07*580.00," WHERE transferproductid = 525;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1503', '2', '30', '1', '525', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9363
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1528';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1503, 0, 0
                    , 580.00, 30.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=348
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1503', '1', '30', '0', '525', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9364
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '526';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2514';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 526;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1502', '2', '0', '1', '526', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9365
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1527';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1502', '1', '0', '0', '526', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9366
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '527';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2513';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1501, 0, 0
                    , 650.00, 22, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-22, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2125
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2026-10-07*650.00," WHERE transferproductid = 527;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1501', '2', '22', '1', '527', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '22', '0', '1', '2026-10-14','0','0'); -- id=9367
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1526';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1501, 0, 0
                    , 650.00, 22.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=346
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1501', '1', '22', '0', '527', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '22', '1', '2026-10-14','0','0'); -- id=9368
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '528';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2512';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1500, 0, 0
                    , 675.00, 12, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2127
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-07*675.00," WHERE transferproductid = 528;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1500', '2', '12', '1', '528', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9369
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1525';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1500, 0, 0
                    , 675.00, 12.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=345
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1500', '1', '12', '0', '528', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9370
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '529';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2511';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1499, 0, 0
                    , 675.00, 21, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2129
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-07*675.00," WHERE transferproductid = 529;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1499', '2', '21', '1', '529', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=9371
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1524';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1499, 0, 0
                    , 675.00, 21.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=344
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1499', '1', '21', '0', '529', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=9372
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '530';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2510';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1498, 0, 0
                    , 480.00, 12, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2131
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-07*480.00," WHERE transferproductid = 530;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1498', '2', '12', '1', '530', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9373
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1523';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1498, 0, 0
                    , 480.00, 12.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=342
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1498', '1', '12', '0', '530', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9374
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '531';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2509';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1497, 0, 0
                    , 430.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2133
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*430.00," WHERE transferproductid = 531;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1497', '2', '24', '1', '531', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9375
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1522';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1497, 0, 0
                    , 430.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=949
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1497', '1', '24', '0', '531', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9376
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '532';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2508';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 532;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1496', '2', '0', '1', '532', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9377
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1521';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1496', '1', '0', '0', '532', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9378
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '533';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2507';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 533;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1495', '2', '0', '1', '533', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9379
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1520';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1495', '1', '0', '0', '533', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9380
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '534';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2506';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 534;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1494', '2', '0', '1', '534', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9381
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1519';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1494', '1', '0', '0', '534', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9382
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '535';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2505';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1493, 0, 0
                    , 600.00, 3, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2135
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-07*600.00," WHERE transferproductid = 535;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1493', '2', '3', '1', '535', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=9383
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1518';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1493, 0, 0
                    , 600.00, 3.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=338
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1493', '1', '3', '0', '535', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=9384
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '536';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2504';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 536;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1492', '2', '0', '1', '536', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9385
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1517';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1492', '1', '0', '0', '536', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9386
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '537';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2503';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1491, 0, 0
                    , 675.00, 39, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-39, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2137
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2026-10-12*675.00," WHERE transferproductid = 537;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1491', '2', '39', '1', '537', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '39', '0', '1', '2026-10-14','0','0'); -- id=9387
UPDATE storedetail SET  productquantity = '39', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1516';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1491, 0, 0
                    , 675.00, 39.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=948
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1491', '1', '39', '0', '537', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '39', '1', '2026-10-14','0','0'); -- id=9388
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '538';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2502';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1490, 0, 0
                    , 600.00, 32, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2139
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-06*600.00," WHERE transferproductid = 538;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1490', '2', '32', '1', '538', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=9389
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1515';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1490, 0, 0
                    , 600.00, 32.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=253
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1490', '1', '32', '0', '538', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=9390
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '539';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2501';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1489, 0, 0
                    , 550.00, 8, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2141
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2026-10-06*550.00," WHERE transferproductid = 539;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1489', '2', '8', '1', '539', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=9391
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1514';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1489, 0, 0
                    , 550.00, 8.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=252
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1489', '1', '8', '0', '539', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=9392
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '540';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2500';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1488, 0, 0
                    , 550.00, 8, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2143
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2026-10-06*550.00," WHERE transferproductid = 540;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1488', '2', '8', '1', '540', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=9393
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1513';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1488, 0, 0
                    , 550.00, 8.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=251
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1488', '1', '8', '0', '540', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=9394
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '541';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2499';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1487, 0, 0
                    , 480.00, 8, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2145
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2026-10-06*480.00," WHERE transferproductid = 541;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1487', '2', '8', '1', '541', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=9395
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1512';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1487, 0, 0
                    , 480.00, 8.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=250
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1487', '1', '8', '0', '541', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=9396
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '542';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2498';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1486, 0, 0
                    , 500.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2147
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-06*500.00," WHERE transferproductid = 542;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1486', '2', '24', '1', '542', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9397
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1511';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1486, 0, 0
                    , 500.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=249
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1486', '1', '24', '0', '542', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9398
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '543';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2497';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1485, 0, 0
                    , 570.00, 8, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2149
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2026-10-06*570.00," WHERE transferproductid = 543;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1485', '2', '8', '1', '543', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=9399
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1510';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1485, 0, 0
                    , 570.00, 8.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=248
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1485', '1', '8', '0', '543', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=9400
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '544';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2496';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1484, 0, 0
                    , 550.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2151
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-06*550.00," WHERE transferproductid = 544;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1484', '2', '24', '1', '544', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9401
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1509';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1484, 0, 0
                    , 550.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=247
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1484', '1', '24', '0', '544', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9402
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '545';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2495';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 545;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1483', '2', '0', '1', '545', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9403
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1508';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1483', '1', '0', '0', '545', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9404
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '546';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2494';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1482, 0, 0
                    , 600.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2153
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-06*600.00," WHERE transferproductid = 546;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1482', '2', '24', '1', '546', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9405
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1507';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1482, 0, 0
                    , 600.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=244
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1482', '1', '24', '0', '546', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9406
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '547';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2493';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1481, 0, 0
                    , 580.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2155
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-06*580.00," WHERE transferproductid = 547;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1481', '2', '24', '1', '547', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9407
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1506';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1481, 0, 0
                    , 580.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=243
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1481', '1', '24', '0', '547', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9408
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '548';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2492';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1480, 0, 0
                    , 620.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2157
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-06*620.00," WHERE transferproductid = 548;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1480', '2', '24', '1', '548', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9409
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1505';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1480, 0, 0
                    , 620.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=242
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1480', '1', '24', '0', '548', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9410
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '549';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2491';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1479, 0, 0
                    , 500.00, 24, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2159
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-06*500.00," WHERE transferproductid = 549;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1479', '2', '24', '1', '549', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9411
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1504';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1479, 0, 0
                    , 500.00, 24.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=245
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1479', '1', '24', '0', '549', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9412
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '550';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2490';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1478, 0, 0
                    , 450.00, 48, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2161
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-06*450.00," WHERE transferproductid = 550;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1478', '2', '48', '1', '550', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=9413
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1503';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1478, 0, 0
                    , 450.00, 48.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=240
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1478', '1', '48', '0', '550', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=9414
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '551';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2489';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1477, 0, 0
                    , 500.00, 20, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2163
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-06*500.00," WHERE transferproductid = 551;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1477', '2', '20', '1', '551', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=9415
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1502';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1477, 0, 0
                    , 500.00, 20.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=239
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1477', '1', '20', '0', '551', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=9416
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '552';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2488';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1476, 0, 0
                    , 1000.00, 16, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-16, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2165
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2026-10-06*1000.00," WHERE transferproductid = 552;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1476', '2', '16', '1', '552', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=9417
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1501';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1476, 0, 0
                    , 1000.00, 16.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=238
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1476', '1', '16', '0', '552', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '16', '1', '2026-10-14','0','0'); -- id=9418
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '553';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2487';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1475, 0, 0
                    , 1200.00, 40, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2167
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-06*1200.00," WHERE transferproductid = 553;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1475', '2', '40', '1', '553', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=9419
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1500';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1475, 0, 0
                    , 1200.00, 40.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=236
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1475', '1', '40', '0', '553', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=9420
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '554';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2486';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1474, 0, 0
                    , 387.00, 36, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2169
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-06*387.00," WHERE transferproductid = 554;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1474', '2', '36', '1', '554', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9421
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1499';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1474, 0, 0
                    , 387.00, 36.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=286
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1474', '1', '36', '0', '554', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9422
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '555';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2485';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1473, 0, 0
                    , 396.00, 36, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2171
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-06*396.00," WHERE transferproductid = 555;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1473', '2', '36', '1', '555', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9423
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1498';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1473, 0, 0
                    , 396.00, 36.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=285
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1473', '1', '36', '0', '555', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9424
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '556';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2484';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1472, 0, 0
                    , 288.00, 60, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2174
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1472, 0, 0
                    , 320.00, 3, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2175
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-06*288.00,3*2026-10-14*320.00," WHERE transferproductid = 556;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1472', '2', '63', '1', '556', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '63', '0', '1', '2026-10-14','0','0'); -- id=9425
UPDATE storedetail SET  productquantity = '63', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1497';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1472, 0, 0
                    , 288.00, 60, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=282
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1472, 0, 0
                    , 320.00, 3, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2173
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1472', '1', '63', '0', '556', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '63', '1', '2026-10-14','0','0'); -- id=9426
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '557';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2483';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1471, 0, 0
                    , 414.00, 36, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2177
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-06*414.00," WHERE transferproductid = 557;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1471', '2', '36', '1', '557', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9427
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1496';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1471, 0, 0
                    , 414.00, 36.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=279
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1471', '1', '36', '0', '557', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9428
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '558';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2482';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1470, 0, 0
                    , 351.00, 36, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2179
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-06*351.00," WHERE transferproductid = 558;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1470', '2', '36', '1', '558', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9429
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1495';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1470, 0, 0
                    , 351.00, 36.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=278
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1470', '1', '36', '0', '558', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9430
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '559';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2481';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1469, 0, 0
                    , 378.00, 99, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-99, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2181
UPDATE storemovement SET  buyPricesHistoryBookData = "99*2026-10-06*378.00," WHERE transferproductid = 559;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1469', '2', '99', '1', '559', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '99', '0', '1', '2026-10-14','0','0'); -- id=9431
UPDATE storedetail SET  productquantity = '99', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1494';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1469, 0, 0
                    , 378.00, 99.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+99.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=275
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1469', '1', '99', '0', '559', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '99', '1', '2026-10-14','0','0'); -- id=9432
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '560';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2480';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1468, 0, 0
                    , 342.00, 90, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-90, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2183
UPDATE storemovement SET  buyPricesHistoryBookData = "90*2026-10-06*342.00," WHERE transferproductid = 560;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1468', '2', '90', '1', '560', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '90', '0', '1', '2026-10-14','0','0'); -- id=9433
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1493';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1468, 0, 0
                    , 342.00, 90.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+90.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=274
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1468', '1', '90', '0', '560', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '90', '1', '2026-10-14','0','0'); -- id=9434
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '561';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2479';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1467, 0, 0
                    , 276.00, 500, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-500, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2185
UPDATE storemovement SET  buyPricesHistoryBookData = "500*2026-10-08*276.00," WHERE transferproductid = 561;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1467', '2', '500', '1', '561', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '500', '0', '1', '2026-10-14','0','0'); -- id=9435
UPDATE storedetail SET  productquantity = '500', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1492';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1467, 0, 0
                    , 276.00, 500.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+500.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=688
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1467', '1', '500', '0', '561', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '500', '1', '2026-10-14','0','0'); -- id=9436
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '562';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2478';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1466, 0, 0
                    , 300.00, 392, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-392, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2187
UPDATE storemovement SET  buyPricesHistoryBookData = "392*2026-10-07*300.00," WHERE transferproductid = 562;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1466', '2', '392', '1', '562', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '392', '0', '1', '2026-10-14','0','0'); -- id=9437
UPDATE storedetail SET  productquantity = '392', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1491';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1466, 0, 0
                    , 300.00, 392.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+392.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=354
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1466', '1', '392', '0', '562', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '392', '1', '2026-10-14','0','0'); -- id=9438
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '563';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2477';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1465, 0, 0
                    , 480.00, 30, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2189
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-07*480.00," WHERE transferproductid = 563;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1465', '2', '30', '1', '563', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9439
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1490';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1465, 0, 0
                    , 480.00, 30.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=335
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1465', '1', '30', '0', '563', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9440
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '564';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2476';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1464, 0, 0
                    , 580.00, 36, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2191
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-07*580.00," WHERE transferproductid = 564;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1464', '2', '36', '1', '564', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9441
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1489';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1464, 0, 0
                    , 580.00, 36.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=334
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1464', '1', '36', '0', '564', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9442
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '565';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2475';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1463, 0, 0
                    , 450.00, 25, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2193
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-07*450.00," WHERE transferproductid = 565;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1463', '2', '25', '1', '565', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=9443
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1488';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1463, 0, 0
                    , 450.00, 25.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=333
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1463', '1', '25', '0', '565', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=9444
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '566';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2474';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1462, 0, 0
                    , 410.00, 135, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-135, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2196
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1462, 0, 0
                    , 410.00, 72, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2197
UPDATE storemovement SET  buyPricesHistoryBookData = "135*2026-10-07*410.00,72*2026-10-12*410.00," WHERE transferproductid = 566;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1462', '2', '207', '1', '566', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '207', '0', '1', '2026-10-14','0','0'); -- id=9445
UPDATE storedetail SET  productquantity = '207', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1487';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1462, 0, 0
                    , 410.00, 135, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+135, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=332
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1462, 0, 0
                    , 410.00, 72, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=954
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1462', '1', '207', '0', '566', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '207', '1', '2026-10-14','0','0'); -- id=9446
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '567';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2473';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1461, 0, 0
                    , 530.00, 36, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2199
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-07*530.00," WHERE transferproductid = 567;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1461', '2', '36', '1', '567', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9447
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1486';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1461, 0, 0
                    , 530.00, 36.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=331
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1461', '1', '36', '0', '567', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9448
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '568';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2472';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1460, 0, 0
                    , 360.00, 18, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2201
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-07*360.00," WHERE transferproductid = 568;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1460', '2', '18', '1', '568', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=9449
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1485';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1460, 0, 0
                    , 360.00, 18.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=330
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1460', '1', '18', '0', '568', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=9450
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '569';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2471';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1459, 0, 0
                    , 310.00, 7, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-7, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2204
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1459, 0, 0
                    , 310.00, 72, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2205
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2026-10-07*310.00,72*2026-10-12*310.00," WHERE transferproductid = 569;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1459', '2', '79', '1', '569', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '79', '0', '1', '2026-10-14','0','0'); -- id=9451
UPDATE storedetail SET  productquantity = '79', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1484';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1459, 0, 0
                    , 310.00, 7, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=329
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1459, 0, 0
                    , 310.00, 72, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=952
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1459', '1', '79', '0', '569', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '79', '1', '2026-10-14','0','0'); -- id=9452
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '570';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2470';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1458, 0, 0
                    , 300.00, 18, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2208
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1458, 0, 0
                    , 300.00, 72, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2209
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-07*300.00,72*2026-10-12*300.00," WHERE transferproductid = 570;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1458', '2', '90', '1', '570', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '90', '0', '1', '2026-10-14','0','0'); -- id=9453
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1483';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1458, 0, 0
                    , 300.00, 18, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=328
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1458, 0, 0
                    , 300.00, 72, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=953
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1458', '1', '90', '0', '570', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '90', '1', '2026-10-14','0','0'); -- id=9454
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '571';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2469';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 1457, 0, 0
                    , 430.00, 6, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2211
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-07*430.00," WHERE transferproductid = 571;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1457', '2', '6', '1', '571', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=9455
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1482';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 1457, 0, 0
                    , 430.00, 6.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=327
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1457', '1', '6', '0', '571', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=9456
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '572';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2468';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1456, 0, 0
                    , 320.00, 75, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-75, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2214
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1456, 0, 0
                    , 320.00, 6, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2215
UPDATE storemovement SET  buyPricesHistoryBookData = "75*2026-10-06*320.00,6*2026-10-14*320.00," WHERE transferproductid = 572;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1456', '2', '81', '1', '572', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '81', '0', '1', '2026-10-14','0','0'); -- id=9457
UPDATE storedetail SET  productquantity = '81', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1481';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1456, 0, 0
                    , 320.00, 75, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+75, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=235
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1456, 0, 0
                    , 320.00, 6, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2213
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1456', '1', '81', '0', '572', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '81', '1', '2026-10-14','0','0'); -- id=9458
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '573';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2467';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 573;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1455', '2', '0', '1', '573', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9459
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1480';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1455', '1', '0', '0', '573', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9460
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '574';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2466';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1454, 0, 0
                    , 500.00, 171, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-171, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2217
UPDATE storemovement SET  buyPricesHistoryBookData = "171*2026-10-05*500.00," WHERE transferproductid = 574;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1454', '2', '171', '1', '574', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '171', '0', '1', '2026-10-14','0','0'); -- id=9461
UPDATE storedetail SET  productquantity = '171', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1479';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1454, 0, 0
                    , 500.00, 171.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+171.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=231
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1454', '1', '171', '0', '574', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '171', '1', '2026-10-14','0','0'); -- id=9462
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '575';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2465';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1453, 0, 0
                    , 800.00, 150, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-150, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2219
UPDATE storemovement SET  buyPricesHistoryBookData = "150*2026-10-05*800.00," WHERE transferproductid = 575;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1453', '2', '150', '1', '575', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '150', '0', '1', '2026-10-14','0','0'); -- id=9463
UPDATE storedetail SET  productquantity = '150', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1478';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1453, 0, 0
                    , 800.00, 150.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+150.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=228
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1453', '1', '150', '0', '575', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '150', '1', '2026-10-14','0','0'); -- id=9464
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '576';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2464';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1452, 0, 0
                    , 216.00, 15, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2221
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-05*216.00," WHERE transferproductid = 576;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1452', '2', '15', '1', '576', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=9465
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1469';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1452, 0, 0
                    , 216.00, 15.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=201
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1452', '1', '15', '0', '576', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=9466
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '577';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2463';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1451, 0, 0
                    , 207.00, 18, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2223
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-05*207.00," WHERE transferproductid = 577;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1451', '2', '18', '1', '577', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=9467
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1468';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1451, 0, 0
                    , 207.00, 18.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=200
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1451', '1', '18', '0', '577', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=9468
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '578';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2462';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1450, 0, 0
                    , 180.00, 9, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2225
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-05*180.00," WHERE transferproductid = 578;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1450', '2', '9', '1', '578', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=9469
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1467';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1450, 0, 0
                    , 180.00, 9.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=199
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1450', '1', '9', '0', '578', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=9470
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '579';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2461';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1449, 0, 0
                    , 166.50, 76, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-76, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2227
UPDATE storemovement SET  buyPricesHistoryBookData = "76*2026-10-05*166.50," WHERE transferproductid = 579;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1449', '2', '76', '1', '579', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '76', '0', '1', '2026-10-14','0','0'); -- id=9471
UPDATE storedetail SET  productquantity = '76', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1466';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1449, 0, 0
                    , 166.50, 76.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+76.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=198
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1449', '1', '76', '0', '579', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '76', '1', '2026-10-14','0','0'); -- id=9472
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '580';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2460';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1448, 0, 0
                    , 144.00, 12, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=2229
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-05*144.00," WHERE transferproductid = 580;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1448', '2', '12', '1', '580', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9473
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1465';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1448, 0, 0
                    , 144.00, 12.00, 0, 0, 1, '2026-10-14 18:01:04')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:04' ; -- id=197
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1448', '1', '12', '0', '580', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9474
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '581';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2459';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 581;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1447', '2', '0', '1', '581', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9475
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1460';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1447', '1', '0', '0', '581', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9476
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '582';
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1477';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 582;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1446', '2', '0', '1', '582', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '14', '14', '1', '2026-10-14','0','0'); -- id=9477
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1459';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1446', '1', '0', '0', '582', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9478
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '583';
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1476';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 583;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1445', '2', '0', '1', '583', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '8', '8', '1', '2026-10-14','0','0'); -- id=9479
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1458';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1445', '1', '0', '0', '583', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9480
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '584';
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1475';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 584;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1444', '2', '0', '1', '584', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '4', '1', '2026-10-14','0','0'); -- id=9481
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1457';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1444', '1', '0', '0', '584', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9482
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '585';
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1474';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 585;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1443', '2', '0', '1', '585', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '15', '1', '2026-10-14','0','0'); -- id=9483
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1456';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1443', '1', '0', '0', '585', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9484
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '586';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1473';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 586;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1442', '2', '0', '1', '586', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9485
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1455';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1442', '1', '0', '0', '586', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9486
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '587';
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1472';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 587;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1441', '2', '0', '1', '587', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '16', '16', '1', '2026-10-14','0','0'); -- id=9487
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1454';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1441', '1', '0', '0', '587', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9488
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '588';
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1471';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 588;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1440', '2', '0', '1', '588', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '32', '1', '2026-10-14','0','0'); -- id=9489
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1453';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1440', '1', '0', '0', '588', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9490
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '589';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1470';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 589;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1439', '2', '0', '1', '589', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9491
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1452';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1439', '1', '0', '0', '589', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9492
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '590';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2458';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1438, 0, 0
                    , 390.00, 21, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2231
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-05*390.00," WHERE transferproductid = 590;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1438', '2', '21', '1', '590', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=9493
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1451';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1438, 0, 0
                    , 390.00, 21.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=219
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1438', '1', '21', '0', '590', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=9494
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '591';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2457';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1437, 0, 0
                    , 290.00, 9, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2233
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-05*290.00," WHERE transferproductid = 591;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1437', '2', '9', '1', '591', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=9495
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1450';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1437, 0, 0
                    , 290.00, 9.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=218
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1437', '1', '9', '0', '591', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=9496
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '592';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2456';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 592;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1436', '2', '0', '1', '592', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9497
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1449';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1436', '1', '0', '0', '592', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9498
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '593';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2455';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1435, 0, 0
                    , 410.00, 9, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2235
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-05*410.00," WHERE transferproductid = 593;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1435', '2', '9', '1', '593', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=9499
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1448';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1435, 0, 0
                    , 410.00, 9.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=216
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1435', '1', '9', '0', '593', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=9500
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '594';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2454';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1434, 0, 0
                    , 310.00, 27, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2237
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-05*310.00," WHERE transferproductid = 594;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1434', '2', '27', '1', '594', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=9501
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1447';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1434, 0, 0
                    , 310.00, 27.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=215
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1434', '1', '27', '0', '594', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=9502
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '595';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2453';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1433, 0, 0
                    , 350.00, 12, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2239
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-05*350.00," WHERE transferproductid = 595;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1433', '2', '12', '1', '595', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9503
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1446';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1433, 0, 0
                    , 350.00, 12.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=214
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1433', '1', '12', '0', '595', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9504
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '596';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2452';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1432, 0, 0
                    , 485.00, 9, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2241
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-05*485.00," WHERE transferproductid = 596;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1432', '2', '9', '1', '596', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=9505
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1445';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1432, 0, 0
                    , 485.00, 9.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=213
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1432', '1', '9', '0', '596', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=9506
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '597';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2451';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1431, 0, 0
                    , 510.00, 5, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2243
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-05*510.00," WHERE transferproductid = 597;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1431', '2', '5', '1', '597', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=9507
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1444';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1431, 0, 0
                    , 510.00, 5.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=212
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1431', '1', '5', '0', '597', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=9508
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '598';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2450';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1430, 0, 0
                    , 420.00, 21, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2245
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-05*420.00," WHERE transferproductid = 598;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1430', '2', '21', '1', '598', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=9509
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1443';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1430, 0, 0
                    , 420.00, 21.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=211
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1430', '1', '21', '0', '598', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=9510
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '599';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2449';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1429, 0, 0
                    , 345.00, 12, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2247
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-05*345.00," WHERE transferproductid = 599;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1429', '2', '12', '1', '599', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9511
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1442';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1429, 0, 0
                    , 345.00, 12.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=210
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1429', '1', '12', '0', '599', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9512
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '600';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2448';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1428, 0, 0
                    , 400.00, 6, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2249
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-05*400.00," WHERE transferproductid = 600;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1428', '2', '6', '1', '600', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=9513
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1441';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1428, 0, 0
                    , 400.00, 6.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=209
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1428', '1', '6', '0', '600', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=9514
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '601';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2447';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 601;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1427', '2', '0', '1', '601', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9515
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1440';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1427', '1', '0', '0', '601', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9516
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '602';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2446';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1426, 0, 0
                    , 560.00, 6, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2251
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-05*560.00," WHERE transferproductid = 602;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1426', '2', '6', '1', '602', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=9517
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1439';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1426, 0, 0
                    , 560.00, 6.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=207
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1426', '1', '6', '0', '602', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=9518
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '603';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2445';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1425, 0, 0
                    , 265.00, 6, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2253
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-05*265.00," WHERE transferproductid = 603;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1425', '2', '6', '1', '603', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=9519
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1438';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1425, 0, 0
                    , 265.00, 6.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=206
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1425', '1', '6', '0', '603', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=9520
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '604';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2444';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1424, 0, 0
                    , 460.00, 15, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2255
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-05*460.00," WHERE transferproductid = 604;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1424', '2', '15', '1', '604', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=9521
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1437';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1424, 0, 0
                    , 460.00, 15.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=205
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1424', '1', '15', '0', '604', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=9522
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '605';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2443';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 605;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1423', '2', '0', '1', '605', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9523
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1436';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1423', '1', '0', '0', '605', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9524
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '606';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2442';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1422, 0, 0
                    , 260.00, 90, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-90, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2257
UPDATE storemovement SET  buyPricesHistoryBookData = "90*2026-10-05*260.00," WHERE transferproductid = 606;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1422', '2', '90', '1', '606', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '90', '0', '1', '2026-10-14','0','0'); -- id=9525
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1435';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1422, 0, 0
                    , 260.00, 90.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+90.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=203
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1422', '1', '90', '0', '606', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '90', '1', '2026-10-14','0','0'); -- id=9526
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '607';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2441';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 2, 1421, 0, 0
                    , 300.00, 70, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-70, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2259
UPDATE storemovement SET  buyPricesHistoryBookData = "70*2026-10-05*300.00," WHERE transferproductid = 607;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1421', '2', '70', '1', '607', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '70', '0', '1', '2026-10-14','0','0'); -- id=9527
UPDATE storedetail SET  productquantity = '70', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1434';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-05', 1, 1421, 0, 0
                    , 300.00, 70.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+70.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=202
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1421', '1', '70', '0', '607', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '70', '1', '2026-10-14','0','0'); -- id=9528
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '608';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2440';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1420, 0, 0
                    , 495.00, 36, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2261
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-03*495.00," WHERE transferproductid = 608;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1420', '2', '36', '1', '608', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9529
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1433';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1420, 0, 0
                    , 495.00, 36.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=188
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1420', '1', '36', '0', '608', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9530
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '609';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2439';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1419, 0, 0
                    , 495.00, 21, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2263
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-03*495.00," WHERE transferproductid = 609;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1419', '2', '21', '1', '609', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=9531
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1432';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1419, 0, 0
                    , 495.00, 21.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=187
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1419', '1', '21', '0', '609', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=9532
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '610';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2438';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1418, 0, 0
                    , 558.00, 27, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2265
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-03*558.00," WHERE transferproductid = 610;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1418', '2', '27', '1', '610', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=9533
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1431';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1418, 0, 0
                    , 558.00, 27.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=186
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1418', '1', '27', '0', '610', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=9534
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '611';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2437';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1417, 0, 0
                    , 495.00, 32, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2267
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-03*495.00," WHERE transferproductid = 611;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1417', '2', '32', '1', '611', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=9535
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1430';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1417, 0, 0
                    , 495.00, 32.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=185
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1417', '1', '32', '0', '611', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=9536
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '612';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2436';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1416, 0, 0
                    , 720.00, 36, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2269
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-03*720.00," WHERE transferproductid = 612;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1416', '2', '36', '1', '612', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9537
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1429';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1416, 0, 0
                    , 720.00, 36.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=184
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1416', '1', '36', '0', '612', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9538
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '613';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2435';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1415, 0, 0
                    , 720.00, 36, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2271
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-03*720.00," WHERE transferproductid = 613;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1415', '2', '36', '1', '613', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9539
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1428';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1415, 0, 0
                    , 720.00, 36.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=183
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1415', '1', '36', '0', '613', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9540
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '614';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2434';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1414, 0, 0
                    , 720.00, 30, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2273
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-03*720.00," WHERE transferproductid = 614;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1414', '2', '30', '1', '614', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9541
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1427';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1414, 0, 0
                    , 720.00, 30.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=182
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1414', '1', '30', '0', '614', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9542
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '615';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2433';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1413, 0, 0
                    , 720.00, 27, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2275
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-03*720.00," WHERE transferproductid = 615;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1413', '2', '27', '1', '615', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=9543
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1426';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1413, 0, 0
                    , 720.00, 27.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=181
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1413', '1', '27', '0', '615', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=9544
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '616';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2432';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1412, 0, 0
                    , 720.00, 27, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2277
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-03*720.00," WHERE transferproductid = 616;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1412', '2', '27', '1', '616', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=9545
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1425';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1412, 0, 0
                    , 720.00, 27.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=180
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1412', '1', '27', '0', '616', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=9546
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '617';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2431';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1411, 0, 0
                    , 720.00, 36, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2279
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-03*720.00," WHERE transferproductid = 617;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1411', '2', '36', '1', '617', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9547
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1424';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1411, 0, 0
                    , 720.00, 36.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=179
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1411', '1', '36', '0', '617', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9548
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '618';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2430';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1410, 0, 0
                    , 720.00, 33, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2281
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2026-10-03*720.00," WHERE transferproductid = 618;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1410', '2', '33', '1', '618', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=9549
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1423';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1410, 0, 0
                    , 720.00, 33.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=178
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1410', '1', '33', '0', '618', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=9550
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '619';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2429';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1409, 0, 0
                    , 379.99, 68, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-68, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2283
UPDATE storemovement SET  buyPricesHistoryBookData = "68*2026-10-03*379.99," WHERE transferproductid = 619;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1409', '2', '68', '1', '619', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '68', '0', '1', '2026-10-14','0','0'); -- id=9551
UPDATE storedetail SET  productquantity = '68', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1422';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1409, 0, 0
                    , 379.99, 68.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+68.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=159
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1409', '1', '68', '0', '619', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '68', '1', '2026-10-14','0','0'); -- id=9552
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '620';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2428';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1408, 0, 0
                    , 499.99, 116, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-116, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2285
UPDATE storemovement SET  buyPricesHistoryBookData = "116*2026-10-03*499.99," WHERE transferproductid = 620;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1408', '2', '116', '1', '620', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '116', '0', '1', '2026-10-14','0','0'); -- id=9553
UPDATE storedetail SET  productquantity = '116', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1421';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1408, 0, 0
                    , 499.99, 116.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+116.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=158
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1408', '1', '116', '0', '620', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '116', '1', '2026-10-14','0','0'); -- id=9554
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '621';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2427';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1407, 0, 0
                    , 374.99, 92, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-92, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2287
UPDATE storemovement SET  buyPricesHistoryBookData = "92*2026-10-03*374.99," WHERE transferproductid = 621;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1407', '2', '92', '1', '621', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '92', '0', '1', '2026-10-14','0','0'); -- id=9555
UPDATE storedetail SET  productquantity = '92', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1420';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1407, 0, 0
                    , 374.99, 92.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+92.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=157
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1407', '1', '92', '0', '621', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '92', '1', '2026-10-14','0','0'); -- id=9556
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '622';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2426';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1406, 0, 0
                    , 364.99, 92, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-92, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2289
UPDATE storemovement SET  buyPricesHistoryBookData = "92*2026-10-03*364.99," WHERE transferproductid = 622;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1406', '2', '92', '1', '622', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '92', '0', '1', '2026-10-14','0','0'); -- id=9557
UPDATE storedetail SET  productquantity = '92', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1419';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1406, 0, 0
                    , 364.99, 92.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+92.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=156
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1406', '1', '92', '0', '622', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '92', '1', '2026-10-14','0','0'); -- id=9558
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '623';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2425';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1405, 0, 0
                    , 339.99, 220, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-220, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2291
UPDATE storemovement SET  buyPricesHistoryBookData = "220*2026-10-03*339.99," WHERE transferproductid = 623;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1405', '2', '220', '1', '623', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '220', '0', '1', '2026-10-14','0','0'); -- id=9559
UPDATE storedetail SET  productquantity = '220', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1418';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1405, 0, 0
                    , 339.99, 220.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+220.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=155
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1405', '1', '220', '0', '623', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '220', '1', '2026-10-14','0','0'); -- id=9560
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '624';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2424';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 2, 1404, 0, 0
                    , 419.99, 505, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-505, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2293
UPDATE storemovement SET  buyPricesHistoryBookData = "505*2026-10-03*419.99," WHERE transferproductid = 624;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1404', '2', '505', '1', '624', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '505', '0', '1', '2026-10-14','0','0'); -- id=9561
UPDATE storedetail SET  productquantity = '505', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1417';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-03', 1, 1404, 0, 0
                    , 419.99, 505.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+505.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=154
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1404', '1', '505', '0', '624', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '505', '1', '2026-10-14','0','0'); -- id=9562
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '625';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2423';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1403, 0, 0
                    , 205.00, 26, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-26, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2295
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2026-10-14*205.00," WHERE transferproductid = 625;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1403', '2', '26', '1', '625', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '26', '0', '1', '2026-10-14','0','0'); -- id=9563
UPDATE storedetail SET  productquantity = '26', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1403';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1403, 0, 0
                    , 205.00, 26.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2294
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1403', '1', '26', '0', '625', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '26', '1', '2026-10-14','0','0'); -- id=9564
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '626';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2422';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1402, 0, 0
                    , 295.00, 24, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2297
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-14*295.00," WHERE transferproductid = 626;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1402', '2', '24', '1', '626', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9565
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1402';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1402, 0, 0
                    , 295.00, 24.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2296
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1402', '1', '24', '0', '626', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9566
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '627';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2421';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 627;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1401', '2', '0', '1', '627', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9567
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1401';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1401', '1', '0', '0', '627', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9568
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '628';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2420';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1400, 0, 0
                    , 305.00, 20, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2299
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*305.00," WHERE transferproductid = 628;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1400', '2', '20', '1', '628', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=9569
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1400';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1400, 0, 0
                    , 305.00, 20.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2298
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1400', '1', '20', '0', '628', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=9570
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '629';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2419';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1399, 0, 0
                    , 345.00, 14, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-14, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2301
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2026-10-14*345.00," WHERE transferproductid = 629;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1399', '2', '14', '1', '629', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=9571
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1399';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1399, 0, 0
                    , 345.00, 14.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2300
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1399', '1', '14', '0', '629', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=9572
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '630';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2418';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1398, 0, 0
                    , 315.00, 12, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2303
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*315.00," WHERE transferproductid = 630;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1398', '2', '12', '1', '630', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9573
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1398';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1398, 0, 0
                    , 315.00, 12.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2302
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1398', '1', '12', '0', '630', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9574
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '631';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2417';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1397, 0, 0
                    , 360.00, 8, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2305
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2026-10-14*360.00," WHERE transferproductid = 631;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1397', '2', '8', '1', '631', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=9575
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1397';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1397, 0, 0
                    , 360.00, 8.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2304
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1397', '1', '8', '0', '631', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=9576
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '632';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2416';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1396, 0, 0
                    , 350.00, 15, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2307
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*350.00," WHERE transferproductid = 632;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1396', '2', '15', '1', '632', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=9577
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1396';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1396, 0, 0
                    , 350.00, 15.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2306
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1396', '1', '15', '0', '632', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=9578
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '633';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2415';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1395, 0, 0
                    , 345.00, 112, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-112, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2309
UPDATE storemovement SET  buyPricesHistoryBookData = "112*2026-10-14*345.00," WHERE transferproductid = 633;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1395', '2', '112', '1', '633', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '112', '0', '1', '2026-10-14','0','0'); -- id=9579
UPDATE storedetail SET  productquantity = '112', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1395';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1395, 0, 0
                    , 345.00, 112.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+112.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2308
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1395', '1', '112', '0', '633', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '112', '1', '2026-10-14','0','0'); -- id=9580
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '634';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2414';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1394, 0, 0
                    , 335.00, 66, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-66, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2311
UPDATE storemovement SET  buyPricesHistoryBookData = "66*2026-10-14*335.00," WHERE transferproductid = 634;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1394', '2', '66', '1', '634', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '66', '0', '1', '2026-10-14','0','0'); -- id=9581
UPDATE storedetail SET  productquantity = '66', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1394';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1394, 0, 0
                    , 335.00, 66.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+66.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2310
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1394', '1', '66', '0', '634', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '66', '1', '2026-10-14','0','0'); -- id=9582
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '635';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2413';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1393, 0, 0
                    , 200.00, 183, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-183, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2313
UPDATE storemovement SET  buyPricesHistoryBookData = "183*2026-10-14*200.00," WHERE transferproductid = 635;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1393', '2', '183', '1', '635', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '183', '0', '1', '2026-10-14','0','0'); -- id=9583
UPDATE storedetail SET  productquantity = '183', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1393';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1393, 0, 0
                    , 200.00, 183.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+183.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2312
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1393', '1', '183', '0', '635', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '183', '1', '2026-10-14','0','0'); -- id=9584
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '636';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2412';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1392, 0, 0
                    , 360.00, 24, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2315
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-01*360.00," WHERE transferproductid = 636;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1392', '2', '24', '1', '636', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9585
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1392';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1392, 0, 0
                    , 360.00, 24.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=84
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1392', '1', '24', '0', '636', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9586
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '637';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2411';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1391, 0, 0
                    , 468.00, 42, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-42, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2317
UPDATE storemovement SET  buyPricesHistoryBookData = "42*2026-10-01*468.00," WHERE transferproductid = 637;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1391', '2', '42', '1', '637', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '42', '0', '1', '2026-10-14','0','0'); -- id=9587
UPDATE storedetail SET  productquantity = '42', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1391';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1391, 0, 0
                    , 468.00, 42.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=83
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1391', '1', '42', '0', '637', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '42', '1', '2026-10-14','0','0'); -- id=9588
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '638';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2410';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1390, 0, 0
                    , 378.00, 48, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2319
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-01*378.00," WHERE transferproductid = 638;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1390', '2', '48', '1', '638', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=9589
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1390';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1390, 0, 0
                    , 378.00, 48.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=82
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1390', '1', '48', '0', '638', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=9590
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '639';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2409';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1389, 0, 0
                    , 324.00, 42, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-42, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2321
UPDATE storemovement SET  buyPricesHistoryBookData = "42*2026-10-01*324.00," WHERE transferproductid = 639;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1389', '2', '42', '1', '639', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '42', '0', '1', '2026-10-14','0','0'); -- id=9591
UPDATE storedetail SET  productquantity = '42', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1389';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1389, 0, 0
                    , 324.00, 42.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=81
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1389', '1', '42', '0', '639', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '42', '1', '2026-10-14','0','0'); -- id=9592
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '640';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2408';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1388, 0, 0
                    , 288.00, 24, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2323
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-01*288.00," WHERE transferproductid = 640;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1388', '2', '24', '1', '640', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9593
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1388';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1388, 0, 0
                    , 288.00, 24.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=80
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1388', '1', '24', '0', '640', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9594
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '641';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2407';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 641;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1387', '2', '0', '1', '641', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9595
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1387';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1387', '1', '0', '0', '641', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9596
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '642';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2406';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1386, 0, 0
                    , 351.00, 162, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-162, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2325
UPDATE storemovement SET  buyPricesHistoryBookData = "162*2026-10-01*351.00," WHERE transferproductid = 642;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1386', '2', '162', '1', '642', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '162', '0', '1', '2026-10-14','0','0'); -- id=9597
UPDATE storedetail SET  productquantity = '162', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1386';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1386, 0, 0
                    , 351.00, 162.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+162.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=77
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1386', '1', '162', '0', '642', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '162', '1', '2026-10-14','0','0'); -- id=9598
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '643';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2405';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1385, 0, 0
                    , 405.00, 180, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-180, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2327
UPDATE storemovement SET  buyPricesHistoryBookData = "180*2026-10-01*405.00," WHERE transferproductid = 643;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1385', '2', '180', '1', '643', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '180', '0', '1', '2026-10-14','0','0'); -- id=9599
UPDATE storedetail SET  productquantity = '180', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1385';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1385, 0, 0
                    , 405.00, 180.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+180.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=78
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1385', '1', '180', '0', '643', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '180', '1', '2026-10-14','0','0'); -- id=9600
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '644';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2404';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1384, 0, 0
                    , 441.00, 252, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-252, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2329
UPDATE storemovement SET  buyPricesHistoryBookData = "252*2026-10-01*441.00," WHERE transferproductid = 644;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1384', '2', '252', '1', '644', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '252', '0', '1', '2026-10-14','0','0'); -- id=9601
UPDATE storedetail SET  productquantity = '252', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1384';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1384, 0, 0
                    , 441.00, 252.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+252.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=76
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1384', '1', '252', '0', '644', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '252', '1', '2026-10-14','0','0'); -- id=9602
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '645';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2403';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1383, 0, 0
                    , 300.00, 339, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-339, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2332
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1383, 0, 0
                    , 300.00, 12, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2333
UPDATE storemovement SET  buyPricesHistoryBookData = "339*2026-10-01*300.00,12*2026-10-14*300.00," WHERE transferproductid = 645;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1383', '2', '351', '1', '645', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '351', '0', '1', '2026-10-14','0','0'); -- id=9603
UPDATE storedetail SET  productquantity = '351', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1383';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1383, 0, 0
                    , 300.00, 339, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+339, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=75
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1383, 0, 0
                    , 300.00, 12, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2331
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1383', '1', '351', '0', '645', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '351', '1', '2026-10-14','0','0'); -- id=9604
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '646';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2402';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 646;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1382', '2', '0', '1', '646', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9605
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1382';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1382', '1', '0', '0', '646', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9606
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '647';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2401';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1381, 0, 0
                    , 260.00, 234, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-234, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2335
UPDATE storemovement SET  buyPricesHistoryBookData = "234*2026-10-01*260.00," WHERE transferproductid = 647;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1381', '2', '234', '1', '647', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '234', '0', '1', '2026-10-14','0','0'); -- id=9607
UPDATE storedetail SET  productquantity = '234', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1381';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1381, 0, 0
                    , 260.00, 234.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+234.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=73
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1381', '1', '234', '0', '647', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '234', '1', '2026-10-14','0','0'); -- id=9608
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '648';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2400';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1380, 0, 0
                    , 350.00, 501, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-501, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2337
UPDATE storemovement SET  buyPricesHistoryBookData = "501*2026-10-01*350.00," WHERE transferproductid = 648;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1380', '2', '501', '1', '648', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '501', '0', '1', '2026-10-14','0','0'); -- id=9609
UPDATE storedetail SET  productquantity = '501', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1380';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1380, 0, 0
                    , 350.00, 501.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+501.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=72
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1380', '1', '501', '0', '648', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '501', '1', '2026-10-14','0','0'); -- id=9610
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '649';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2399';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1379, 0, 0
                    , 270.00, 441, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-441, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2339
UPDATE storemovement SET  buyPricesHistoryBookData = "441*2026-10-01*270.00," WHERE transferproductid = 649;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1379', '2', '441', '1', '649', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '441', '0', '1', '2026-10-14','0','0'); -- id=9611
UPDATE storedetail SET  productquantity = '441', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1379';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1379, 0, 0
                    , 270.00, 441.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+441.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=71
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1379', '1', '441', '0', '649', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '441', '1', '2026-10-14','0','0'); -- id=9612
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '650';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2398';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1378, 0, 0
                    , 320.00, 537, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-537, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2342
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1378, 0, 0
                    , 320.00, 6, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2343
UPDATE storemovement SET  buyPricesHistoryBookData = "537*2026-10-01*320.00,6*2026-10-14*320.00," WHERE transferproductid = 650;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1378', '2', '543', '1', '650', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '543', '0', '1', '2026-10-14','0','0'); -- id=9613
UPDATE storedetail SET  productquantity = '543', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1378';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1378, 0, 0
                    , 320.00, 537, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+537, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=70
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1378, 0, 0
                    , 320.00, 6, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2341
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1378', '1', '543', '0', '650', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '543', '1', '2026-10-14','0','0'); -- id=9614
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '651';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2397';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 651;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1377', '2', '0', '1', '651', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9615
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1377';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1377', '1', '0', '0', '651', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9616
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '652';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2396';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1375, 0, 0
                    , 240.00, 112, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-112, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2345
UPDATE storemovement SET  buyPricesHistoryBookData = "112*2026-10-01*240.00," WHERE transferproductid = 652;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1375', '2', '112', '1', '652', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '112', '0', '1', '2026-10-14','0','0'); -- id=9617
UPDATE storedetail SET  productquantity = '112', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1375';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1375, 0, 0
                    , 240.00, 112.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+112.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=60
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1375', '1', '112', '0', '652', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '112', '1', '2026-10-14','0','0'); -- id=9618
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '653';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2395';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1374, 0, 0
                    , 390.00, 57, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-57, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2347
UPDATE storemovement SET  buyPricesHistoryBookData = "57*2026-10-01*390.00," WHERE transferproductid = 653;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1374', '2', '57', '1', '653', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '57', '0', '1', '2026-10-14','0','0'); -- id=9619
UPDATE storedetail SET  productquantity = '57', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1374';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1374, 0, 0
                    , 390.00, 57.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+57.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=59
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1374', '1', '57', '0', '653', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '57', '1', '2026-10-14','0','0'); -- id=9620
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '654';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2394';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1373, 0, 0
                    , 410.00, 60, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2349
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-01*410.00," WHERE transferproductid = 654;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1373', '2', '60', '1', '654', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=9621
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1373';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1373, 0, 0
                    , 410.00, 60.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=58
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1373', '1', '60', '0', '654', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=9622
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '655';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2393';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1372, 0, 0
                    , 420.00, 36, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2351
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-01*420.00," WHERE transferproductid = 655;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1372', '2', '36', '1', '655', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9623
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1372';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1372, 0, 0
                    , 420.00, 36.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=57
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1372', '1', '36', '0', '655', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9624
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '656';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2392';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1371, 0, 0
                    , 420.00, 57, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-57, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2353
UPDATE storemovement SET  buyPricesHistoryBookData = "57*2026-10-01*420.00," WHERE transferproductid = 656;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1371', '2', '57', '1', '656', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '57', '0', '1', '2026-10-14','0','0'); -- id=9625
UPDATE storedetail SET  productquantity = '57', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1371';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1371, 0, 0
                    , 420.00, 57.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+57.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=56
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1371', '1', '57', '0', '656', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '57', '1', '2026-10-14','0','0'); -- id=9626
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '657';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2391';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1370, 0, 0
                    , 440.00, 57, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-57, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2355
UPDATE storemovement SET  buyPricesHistoryBookData = "57*2026-10-01*440.00," WHERE transferproductid = 657;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1370', '2', '57', '1', '657', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '57', '0', '1', '2026-10-14','0','0'); -- id=9627
UPDATE storedetail SET  productquantity = '57', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1370';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1370, 0, 0
                    , 440.00, 57.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+57.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=55
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1370', '1', '57', '0', '657', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '57', '1', '2026-10-14','0','0'); -- id=9628
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '658';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2390';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1369, 0, 0
                    , 430.00, 72, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2357
UPDATE storemovement SET  buyPricesHistoryBookData = "72*2026-10-01*430.00," WHERE transferproductid = 658;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1369', '2', '72', '1', '658', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=9629
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1369';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1369, 0, 0
                    , 430.00, 72.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=54
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1369', '1', '72', '0', '658', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '72', '1', '2026-10-14','0','0'); -- id=9630
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '659';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2389';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1368, 0, 0
                    , 270.00, 104, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-104, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2359
UPDATE storemovement SET  buyPricesHistoryBookData = "104*2026-10-01*270.00," WHERE transferproductid = 659;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1368', '2', '104', '1', '659', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '104', '0', '1', '2026-10-14','0','0'); -- id=9631
UPDATE storedetail SET  productquantity = '104', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1368';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1368, 0, 0
                    , 270.00, 104.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+104.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=53
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1368', '1', '104', '0', '659', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '104', '1', '2026-10-14','0','0'); -- id=9632
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '660';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2388';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1367, 0, 0
                    , 520.00, 62, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-62, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2361
UPDATE storemovement SET  buyPricesHistoryBookData = "62*2026-10-01*520.00," WHERE transferproductid = 660;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1367', '2', '62', '1', '660', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '62', '0', '1', '2026-10-14','0','0'); -- id=9633
UPDATE storedetail SET  productquantity = '62', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1367';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1367, 0, 0
                    , 520.00, 62.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+62.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=65
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1367', '1', '62', '0', '660', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '62', '1', '2026-10-14','0','0'); -- id=9634
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '661';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2387';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1366, 0, 0
                    , 450.00, 60, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2363
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-01*450.00," WHERE transferproductid = 661;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1366', '2', '60', '1', '661', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=9635
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1366';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1366, 0, 0
                    , 450.00, 60.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=64
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1366', '1', '60', '0', '661', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=9636
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '662';
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1412';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 662;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1365', '2', '0', '1', '662', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '28', '1', '2026-10-14','0','0'); -- id=9637
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1365';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1365', '1', '0', '0', '662', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9638
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '663';
UPDATE storedetail SET  productquantity = '76', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1411';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 663;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1364', '2', '0', '1', '663', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '76', '76', '1', '2026-10-14','0','0'); -- id=9639
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1364';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1364', '1', '0', '0', '663', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9640
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '664';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1410';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 664;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1363', '2', '0', '1', '664', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9641
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1363';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1363', '1', '0', '0', '664', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9642
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '665';
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1409';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 665;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1362', '2', '0', '1', '665', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '12', '1', '2026-10-14','0','0'); -- id=9643
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1362';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1362', '1', '0', '0', '665', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9644
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '666';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1408';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 666;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1361', '2', '0', '1', '666', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9645
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1361';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1361', '1', '0', '0', '666', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9646
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '667';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2386';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 667;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1360', '2', '0', '1', '667', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9647
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1360';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1360', '1', '0', '0', '667', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9648
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '668';
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1416';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 668;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1359', '2', '0', '1', '668', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '10', '1', '2026-10-14','0','0'); -- id=9649
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1359';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1359', '1', '0', '0', '668', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9650
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '669';
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1415';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 669;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1358', '2', '0', '1', '669', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '16', '16', '1', '2026-10-14','0','0'); -- id=9651
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1358';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1358', '1', '0', '0', '669', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9652
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '670';
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1414';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 670;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1357', '2', '0', '1', '670', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '10', '1', '2026-10-14','0','0'); -- id=9653
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1357';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1357', '1', '0', '0', '670', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9654
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '671';
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1413';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 671;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1356', '2', '0', '1', '671', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '25', '1', '2026-10-14','0','0'); -- id=9655
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1356';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1356', '1', '0', '0', '671', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9656
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '672';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2385';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 672;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1355', '2', '0', '1', '672', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9657
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1355';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1355', '1', '0', '0', '672', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9658
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '673';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2384';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1354, 0, 0
                    , 530.00, 35, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2365
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2026-10-01*530.00," WHERE transferproductid = 673;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1354', '2', '35', '1', '673', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=9659
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1354';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1354, 0, 0
                    , 530.00, 35.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=69
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1354', '1', '35', '0', '673', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=9660
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '674';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2383';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1353, 0, 0
                    , 600.00, 15, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2367
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-09-30*600.00," WHERE transferproductid = 674;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1353', '2', '15', '1', '674', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=9661
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1353';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1353, 0, 0
                    , 600.00, 15.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=45
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1353', '1', '15', '0', '674', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=9662
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '675';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2382';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1352, 0, 0
                    , 615.00, 12, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2369
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*615.00," WHERE transferproductid = 675;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1352', '2', '12', '1', '675', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9663
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1352';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1352, 0, 0
                    , 615.00, 12.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2368
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1352', '1', '12', '0', '675', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9664
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '676';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2381';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1351, 0, 0
                    , 440.00, 35, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2371
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2026-09-30*440.00," WHERE transferproductid = 676;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1351', '2', '35', '1', '676', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=9665
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1351';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1351, 0, 0
                    , 440.00, 35.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=43
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1351', '1', '35', '0', '676', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=9666
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '677';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2380';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1350, 0, 0
                    , 555.00, 35, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2373
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2026-09-30*555.00," WHERE transferproductid = 677;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1350', '2', '35', '1', '677', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=9667
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1350';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1350, 0, 0
                    , 555.00, 35.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=42
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1350', '1', '35', '0', '677', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=9668
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '678';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2379';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1349, 0, 0
                    , 440.00, 35, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2375
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2026-09-30*440.00," WHERE transferproductid = 678;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1349', '2', '35', '1', '678', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=9669
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1349';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1349, 0, 0
                    , 440.00, 35.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=41
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1349', '1', '35', '0', '678', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=9670
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '679';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2378';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1348, 0, 0
                    , 440.00, 40, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2377
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-09-30*440.00," WHERE transferproductid = 679;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1348', '2', '40', '1', '679', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=9671
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1348';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1348, 0, 0
                    , 440.00, 40.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=40
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1348', '1', '40', '0', '679', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=9672
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '680';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2377';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1347, 0, 0
                    , 475.00, 30, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2379
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-09-30*475.00," WHERE transferproductid = 680;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1347', '2', '30', '1', '680', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9673
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1347';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1347, 0, 0
                    , 475.00, 30.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=39
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1347', '1', '30', '0', '680', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9674
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '681';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2376';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1346, 0, 0
                    , 535.00, 12, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2381
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-09-30*535.00," WHERE transferproductid = 681;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1346', '2', '12', '1', '681', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9675
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1346';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1346, 0, 0
                    , 535.00, 12.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=38
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1346', '1', '12', '0', '681', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9676
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '682';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2375';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1345, 0, 0
                    , 570.00, 18, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2383
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-14*570.00," WHERE transferproductid = 682;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1345', '2', '18', '1', '682', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=9677
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1345';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1345, 0, 0
                    , 570.00, 18.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2382
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1345', '1', '18', '0', '682', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=9678
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '683';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2374';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1344, 0, 0
                    , 485.00, 25, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2385
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-09-30*485.00," WHERE transferproductid = 683;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1344', '2', '25', '1', '683', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=9679
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1344';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1344, 0, 0
                    , 485.00, 25.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=36
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1344', '1', '25', '0', '683', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=9680
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '684';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2373';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1343, 0, 0
                    , 670.00, 10, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2387
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-09-30*670.00," WHERE transferproductid = 684;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1343', '2', '10', '1', '684', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=9681
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1343';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1343, 0, 0
                    , 670.00, 10.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=23
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1343', '1', '10', '0', '684', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=9682
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '685';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2372';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 685;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1342', '2', '0', '1', '685', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9683
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1342';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1342', '1', '0', '0', '685', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9684
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '686';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2371';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 686;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1341', '2', '0', '1', '686', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9685
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1341';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1341', '1', '0', '0', '686', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9686
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '687';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2370';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 687;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1340', '2', '0', '1', '687', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9687
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1340';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1340', '1', '0', '0', '687', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9688
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '688';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2369';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1339, 0, 0
                    , 430.00, 15, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2389
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*430.00," WHERE transferproductid = 688;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1339', '2', '15', '1', '688', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=9689
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1339';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1339, 0, 0
                    , 430.00, 15.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=1164
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1339', '1', '15', '0', '688', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=9690
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '689';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2368';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1338, 0, 0
                    , 700.00, 5, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2391
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-09-30*700.00," WHERE transferproductid = 689;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1338', '2', '5', '1', '689', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=9691
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1338';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1338, 0, 0
                    , 700.00, 5.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=18
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1338', '1', '5', '0', '689', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=9692
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '690';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2367';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1337, 0, 0
                    , 646.16, 20, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2393
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-09-30*646.16," WHERE transferproductid = 690;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1337', '2', '20', '1', '690', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=9693
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1337';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1337, 0, 0
                    , 646.16, 20.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=31
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1337', '1', '20', '0', '690', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=9694
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '691';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2366';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1336, 0, 0
                    , 537.64, 15, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2395
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-09-30*537.64," WHERE transferproductid = 691;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1336', '2', '15', '1', '691', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=9695
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1336';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1336, 0, 0
                    , 537.64, 15.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=30
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1336', '1', '15', '0', '691', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=9696
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '692';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2365';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1335, 0, 0
                    , 621.50, 15, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2397
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-09-30*621.50," WHERE transferproductid = 692;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1335', '2', '15', '1', '692', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=9697
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1335';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1335, 0, 0
                    , 621.50, 15.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=29
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1335', '1', '15', '0', '692', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=9698
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '693';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2364';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 693;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1334', '2', '0', '1', '693', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9699
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1334';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1334', '1', '0', '0', '693', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9700
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '694';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2363';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1333, 0, 0
                    , 503.12, 10, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2399
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-09-30*503.12," WHERE transferproductid = 694;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1333', '2', '10', '1', '694', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=9701
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1333';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1333, 0, 0
                    , 503.12, 10.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=27
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1333', '1', '10', '0', '694', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=9702
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '695';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2362';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1332, 0, 0
                    , 641.23, 5, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2401
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-09-30*641.23," WHERE transferproductid = 695;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1332', '2', '5', '1', '695', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=9703
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1332';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1332, 0, 0
                    , 641.23, 5.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=26
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1332', '1', '5', '0', '695', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=9704
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '696';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2361';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1331, 0, 0
                    , 591.90, 10, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2403
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-09-30*591.90," WHERE transferproductid = 696;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1331', '2', '10', '1', '696', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=9705
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1331';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1331, 0, 0
                    , 591.90, 10.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=25
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1331', '1', '10', '0', '696', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=9706
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '697';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2360';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1330, 0, 0
                    , 580.00, 45, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-45, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2405
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2026-09-30*580.00," WHERE transferproductid = 697;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1330', '2', '45', '1', '697', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=9707
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1330';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1330, 0, 0
                    , 580.00, 45.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=35
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1330', '1', '45', '0', '697', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=9708
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '698';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2359';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1329, 0, 0
                    , 570.00, 30, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2407
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-09-30*570.00," WHERE transferproductid = 698;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1329', '2', '30', '1', '698', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9709
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1329';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1329, 0, 0
                    , 570.00, 30.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=34
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1329', '1', '30', '0', '698', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9710
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '699';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2358';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1328, 0, 0
                    , 550.00, 20, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2409
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-09-30*550.00," WHERE transferproductid = 699;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1328', '2', '20', '1', '699', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=9711
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1328';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1328, 0, 0
                    , 550.00, 20.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=33
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1328', '1', '20', '0', '699', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=9712
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '700';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2357';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 1327, 0, 0
                    , 460.00, 25, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2411
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-09-30*460.00," WHERE transferproductid = 700;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1327', '2', '25', '1', '700', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=9713
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1327';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 1327, 0, 0
                    , 460.00, 25.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=32
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1327', '1', '25', '0', '700', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=9714
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '701';
UPDATE storedetail SET  productquantity = '140', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1407';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 701;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1326', '2', '0', '1', '701', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '140', '140', '1', '2026-10-14','0','0'); -- id=9715
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1326';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1326', '1', '0', '0', '701', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9716
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '702';
UPDATE storedetail SET  productquantity = '215', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1406';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 702;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1325', '2', '0', '1', '702', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '215', '215', '1', '2026-10-14','0','0'); -- id=9717
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1325';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1325', '1', '0', '0', '702', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9718
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '703';
UPDATE storedetail SET  productquantity = '1425', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1405';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 703;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1324', '2', '0', '1', '703', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '1425', '1425', '1', '2026-10-14','0','0'); -- id=9719
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1324';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1324', '1', '0', '0', '703', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9720
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '704';
UPDATE storedetail SET  productquantity = '-6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1404';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 704;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1323', '2', '0', '1', '704', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-6', '-6', '1', '2026-10-14','0','0'); -- id=9721
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1323';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1323', '1', '0', '0', '704', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9722
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '705';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2356';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 2, 1322, 0, 0
                    , 360.00, 15, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2413
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-09-29*360.00," WHERE transferproductid = 705;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1322', '2', '15', '1', '705', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=9723
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1322';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 1, 1322, 0, 0
                    , 360.00, 15.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=6
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1322', '1', '15', '0', '705', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=9724
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '706';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2355';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 706;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1321', '2', '0', '1', '706', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9725
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1321';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1321', '1', '0', '0', '706', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9726
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '707';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2354';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 2, 1320, 0, 0
                    , 400.00, 60, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2415
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-09-29*400.00," WHERE transferproductid = 707;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1320', '2', '60', '1', '707', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=9727
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1320';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 1, 1320, 0, 0
                    , 400.00, 60.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=4
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1320', '1', '60', '0', '707', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=9728
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '708';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2353';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 2, 1319, 0, 0
                    , 420.00, 60, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2417
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-09-29*420.00," WHERE transferproductid = 708;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1319', '2', '60', '1', '708', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=9729
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1319';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 1, 1319, 0, 0
                    , 420.00, 60.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=3
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1319', '1', '60', '0', '708', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=9730
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '709';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2352';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 709;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1318', '2', '-70', '1', '709', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-70', '0', '1', '2026-10-14','0','0'); -- id=9731
UPDATE storedetail SET  productquantity = '-70', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1318';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1318', '1', '-70', '0', '709', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-70', '1', '2026-10-14','0','0'); -- id=9732
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '710';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2351';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1317, 0, 0
                    , 220.00, 95, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-95, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2419
UPDATE storemovement SET  buyPricesHistoryBookData = "95*2026-10-14*220.00," WHERE transferproductid = 710;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1317', '2', '95', '1', '710', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '95', '0', '1', '2026-10-14','0','0'); -- id=9733
UPDATE storedetail SET  productquantity = '95', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1317';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1317, 0, 0
                    , 220.00, 95.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+95.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2418
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1317', '1', '95', '0', '710', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '95', '1', '2026-10-14','0','0'); -- id=9734
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '711';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2350';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1316, 0, 0
                    , 390.00, 45, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-45, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2421
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2026-10-14*390.00," WHERE transferproductid = 711;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1316', '2', '45', '1', '711', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=9735
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1316';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1316, 0, 0
                    , 390.00, 45.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2420
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1316', '1', '45', '0', '711', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=9736
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '712';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2349';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1315, 0, 0
                    , 200.00, 33, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2423
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2026-10-14*200.00," WHERE transferproductid = 712;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1315', '2', '33', '1', '712', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=9737
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1315';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1315, 0, 0
                    , 200.00, 33.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2422
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1315', '1', '33', '0', '712', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=9738
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '713';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2348';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1314, 0, 0
                    , 220.00, 15, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2425
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*220.00," WHERE transferproductid = 713;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1314', '2', '15', '1', '713', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=9739
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1314';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1314, 0, 0
                    , 220.00, 15.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2424
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1314', '1', '15', '0', '713', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=9740
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '714';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2347';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1313, 0, 0
                    , 215.00, 34, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-34, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2427
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2026-10-14*215.00," WHERE transferproductid = 714;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1313', '2', '34', '1', '714', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '34', '0', '1', '2026-10-14','0','0'); -- id=9741
UPDATE storedetail SET  productquantity = '34', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1313';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1313, 0, 0
                    , 215.00, 34.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2426
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1313', '1', '34', '0', '714', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '34', '1', '2026-10-14','0','0'); -- id=9742
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '715';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2346';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1312, 0, 0
                    , 340.00, 5, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2429
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*340.00," WHERE transferproductid = 715;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1312', '2', '5', '1', '715', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=9743
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1312';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1312, 0, 0
                    , 340.00, 5.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2428
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1312', '1', '5', '0', '715', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=9744
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '716';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2345';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1311, 0, 0
                    , 275.00, 44, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-44, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2431
UPDATE storemovement SET  buyPricesHistoryBookData = "44*2026-10-14*275.00," WHERE transferproductid = 716;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1311', '2', '44', '1', '716', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '44', '0', '1', '2026-10-14','0','0'); -- id=9745
UPDATE storedetail SET  productquantity = '44', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1311';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1311, 0, 0
                    , 275.00, 44.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+44.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2430
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1311', '1', '44', '0', '716', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '44', '1', '2026-10-14','0','0'); -- id=9746
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '717';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2344';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1310, 0, 0
                    , 345.00, 5, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2433
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*345.00," WHERE transferproductid = 717;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1310', '2', '5', '1', '717', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=9747
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1310';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1310, 0, 0
                    , 345.00, 5.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2432
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1310', '1', '5', '0', '717', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=9748
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '718';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2343';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1309, 0, 0
                    , 195.00, 12, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2435
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*195.00," WHERE transferproductid = 718;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1309', '2', '12', '1', '718', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9749
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1309';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1309, 0, 0
                    , 195.00, 12.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2434
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1309', '1', '12', '0', '718', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9750
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '719';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2342';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1308, 0, 0
                    , 210.00, 13, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-13, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2437
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2026-10-14*210.00," WHERE transferproductid = 719;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1308', '2', '13', '1', '719', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '13', '0', '1', '2026-10-14','0','0'); -- id=9751
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1308';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1308, 0, 0
                    , 210.00, 13.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2436
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1308', '1', '13', '0', '719', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '13', '1', '2026-10-14','0','0'); -- id=9752
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '720';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2341';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1307, 0, 0
                    , 270.00, 12, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2439
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*270.00," WHERE transferproductid = 720;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1307', '2', '12', '1', '720', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9753
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1307';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1307, 0, 0
                    , 270.00, 12.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2438
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1307', '1', '12', '0', '720', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9754
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '721';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2340';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1306, 0, 0
                    , 330.00, 7, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-7, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2441
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2026-10-14*330.00," WHERE transferproductid = 721;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1306', '2', '7', '1', '721', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '7', '0', '1', '2026-10-14','0','0'); -- id=9755
UPDATE storedetail SET  productquantity = '7', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1306';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1306, 0, 0
                    , 330.00, 7.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2440
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1306', '1', '7', '0', '721', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '7', '1', '2026-10-14','0','0'); -- id=9756
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '722';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2339';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1305, 0, 0
                    , 400.00, 9, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2443
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-14*400.00," WHERE transferproductid = 722;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1305', '2', '9', '1', '722', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=9757
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1305';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1305, 0, 0
                    , 400.00, 9.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2442
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1305', '1', '9', '0', '722', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=9758
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '723';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2338';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1304, 0, 0
                    , 355.00, 4, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2445
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2026-10-14*355.00," WHERE transferproductid = 723;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1304', '2', '4', '1', '723', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=9759
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1304';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1304, 0, 0
                    , 355.00, 4.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2444
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1304', '1', '4', '0', '723', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=9760
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '724';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2337';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1303, 0, 0
                    , 240.00, 5, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2447
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*240.00," WHERE transferproductid = 724;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1303', '2', '5', '1', '724', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=9761
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1303';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1303, 0, 0
                    , 240.00, 5.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2446
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1303', '1', '5', '0', '724', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=9762
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '725';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2336';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1302, 0, 0
                    , 430.00, 10, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2449
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*430.00," WHERE transferproductid = 725;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1302', '2', '10', '1', '725', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=9763
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1302';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1302, 0, 0
                    , 430.00, 10.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2448
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1302', '1', '10', '0', '725', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=9764
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '726';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2335';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1301, 0, 0
                    , 215.00, 10, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2451
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*215.00," WHERE transferproductid = 726;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1301', '2', '10', '1', '726', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=9765
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1301';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1301, 0, 0
                    , 215.00, 10.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2450
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1301', '1', '10', '0', '726', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=9766
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '727';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2334';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1300, 0, 0
                    , 215.00, 14, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-14, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2453
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2026-10-14*215.00," WHERE transferproductid = 727;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1300', '2', '14', '1', '727', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=9767
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1300';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1300, 0, 0
                    , 215.00, 14.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2452
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1300', '1', '14', '0', '727', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=9768
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '728';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2333';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1299, 0, 0
                    , 210.00, 74, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-74, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2455
UPDATE storemovement SET  buyPricesHistoryBookData = "74*2026-10-14*210.00," WHERE transferproductid = 728;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1299', '2', '74', '1', '728', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '74', '0', '1', '2026-10-14','0','0'); -- id=9769
UPDATE storedetail SET  productquantity = '74', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1299';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1299, 0, 0
                    , 210.00, 74.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+74.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2454
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1299', '1', '74', '0', '728', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '74', '1', '2026-10-14','0','0'); -- id=9770
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '729';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2332';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1298, 0, 0
                    , 275.00, 20, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2457
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*275.00," WHERE transferproductid = 729;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1298', '2', '20', '1', '729', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=9771
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1298';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1298, 0, 0
                    , 275.00, 20.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2456
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1298', '1', '20', '0', '729', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=9772
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '730';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2331';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1297, 0, 0
                    , 230.00, 69, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-69, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2459
UPDATE storemovement SET  buyPricesHistoryBookData = "69*2026-10-14*230.00," WHERE transferproductid = 730;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1297', '2', '69', '1', '730', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '69', '0', '1', '2026-10-14','0','0'); -- id=9773
UPDATE storedetail SET  productquantity = '69', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1297';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1297, 0, 0
                    , 230.00, 69.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+69.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2458
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1297', '1', '69', '0', '730', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '69', '1', '2026-10-14','0','0'); -- id=9774
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '731';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2330';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1296, 0, 0
                    , 200.00, 28, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2461
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-14*200.00," WHERE transferproductid = 731;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1296', '2', '28', '1', '731', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=9775
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1296';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1296, 0, 0
                    , 200.00, 28.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2460
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1296', '1', '28', '0', '731', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=9776
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '732';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2329';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1295, 0, 0
                    , 225.00, 73, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-73, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2463
UPDATE storemovement SET  buyPricesHistoryBookData = "73*2026-10-14*225.00," WHERE transferproductid = 732;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1295', '2', '73', '1', '732', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '73', '0', '1', '2026-10-14','0','0'); -- id=9777
UPDATE storedetail SET  productquantity = '73', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1295';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1295, 0, 0
                    , 225.00, 73.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+73.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2462
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1295', '1', '73', '0', '732', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '73', '1', '2026-10-14','0','0'); -- id=9778
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '733';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2328';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1294, 0, 0
                    , 195.00, 6, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2465
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-14*195.00," WHERE transferproductid = 733;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1294', '2', '6', '1', '733', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=9779
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1294';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1294, 0, 0
                    , 195.00, 6.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2464
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1294', '1', '6', '0', '733', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=9780
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '734';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2327';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1293, 0, 0
                    , 215.00, 11, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-11, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2467
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2026-10-14*215.00," WHERE transferproductid = 734;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1293', '2', '11', '1', '734', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=9781
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1293';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1293, 0, 0
                    , 215.00, 11.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2466
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1293', '1', '11', '0', '734', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=9782
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '735';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2326';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1292, 0, 0
                    , 215.00, 163, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-163, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2469
UPDATE storemovement SET  buyPricesHistoryBookData = "163*2026-10-14*215.00," WHERE transferproductid = 735;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1292', '2', '163', '1', '735', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '163', '0', '1', '2026-10-14','0','0'); -- id=9783
UPDATE storedetail SET  productquantity = '163', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1292';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1292, 0, 0
                    , 215.00, 163.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+163.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2468
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1292', '1', '163', '0', '735', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '163', '1', '2026-10-14','0','0'); -- id=9784
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '736';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2325';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1291, 0, 0
                    , 270.00, 6, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2471
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-14*270.00," WHERE transferproductid = 736;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1291', '2', '6', '1', '736', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=9785
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1291';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1291, 0, 0
                    , 270.00, 6.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2470
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1291', '1', '6', '0', '736', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=9786
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '737';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2324';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1290, 0, 0
                    , 270.00, 20, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2473
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*270.00," WHERE transferproductid = 737;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1290', '2', '20', '1', '737', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=9787
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1290';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1290, 0, 0
                    , 270.00, 20.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2472
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1290', '1', '20', '0', '737', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=9788
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '738';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2323';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1289, 0, 0
                    , 280.00, 6, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2475
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-14*280.00," WHERE transferproductid = 738;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1289', '2', '6', '1', '738', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=9789
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1289';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1289, 0, 0
                    , 280.00, 6.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2474
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1289', '1', '6', '0', '738', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=9790
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '739';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2322';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1288, 0, 0
                    , 280.00, 5, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2477
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*280.00," WHERE transferproductid = 739;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1288', '2', '5', '1', '739', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=9791
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1288';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1288, 0, 0
                    , 280.00, 5.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2476
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1288', '1', '5', '0', '739', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=9792
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '740';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2321';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1287, 0, 0
                    , 440.00, 6, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2479
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-14*440.00," WHERE transferproductid = 740;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1287', '2', '6', '1', '740', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=9793
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1287';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1287, 0, 0
                    , 440.00, 6.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2478
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1287', '1', '6', '0', '740', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=9794
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '741';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2320';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1286, 0, 0
                    , 430.00, 3, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2481
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-14*430.00," WHERE transferproductid = 741;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1286', '2', '3', '1', '741', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=9795
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1286';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1286, 0, 0
                    , 430.00, 3.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2480
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1286', '1', '3', '0', '741', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=9796
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '742';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2319';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 742;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1285', '2', '0', '1', '742', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9797
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1285';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1285', '1', '0', '0', '742', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9798
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '743';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2318';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1284, 0, 0
                    , 410.00, 4, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2483
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2026-10-14*410.00," WHERE transferproductid = 743;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1284', '2', '4', '1', '743', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=9799
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1284';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1284, 0, 0
                    , 410.00, 4.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2482
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1284', '1', '4', '0', '743', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=9800
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '744';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2317';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1283, 0, 0
                    , 390.00, 1, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-1, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2485
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2026-10-14*390.00," WHERE transferproductid = 744;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1283', '2', '1', '1', '744', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '1', '0', '1', '2026-10-14','0','0'); -- id=9801
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1283';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1283, 0, 0
                    , 390.00, 1.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2484
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1283', '1', '1', '0', '744', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '1', '1', '2026-10-14','0','0'); -- id=9802
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '745';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2316';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1282, 0, 0
                    , 195.00, 27, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2487
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-14*195.00," WHERE transferproductid = 745;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1282', '2', '27', '1', '745', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=9803
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1282';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1282, 0, 0
                    , 195.00, 27.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2486
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1282', '1', '27', '0', '745', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=9804
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '746';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2315';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 746;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1281', '2', '0', '1', '746', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9805
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1281';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1281', '1', '0', '0', '746', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9806
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '747';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2314';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 747;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1280', '2', '0', '1', '747', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9807
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1280';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1280', '1', '0', '0', '747', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9808
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '748';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2313';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 748;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1279', '2', '0', '1', '748', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9809
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1279';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1279', '1', '0', '0', '748', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9810
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '749';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2312';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 749;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1278', '2', '0', '1', '749', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9811
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1278';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1278', '1', '0', '0', '749', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9812
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '750';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2311';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 750;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1277', '2', '0', '1', '750', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9813
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1277';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1277', '1', '0', '0', '750', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9814
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '751';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2310';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 751;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1276', '2', '0', '1', '751', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9815
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1276';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1276', '1', '0', '0', '751', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9816
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '752';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2309';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1275, 0, 0
                    , 260.00, 20, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2489
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*260.00," WHERE transferproductid = 752;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1275', '2', '20', '1', '752', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=9817
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1275';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1275, 0, 0
                    , 260.00, 20.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2488
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1275', '1', '20', '0', '752', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=9818
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '753';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2308';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1274, 0, 0
                    , 435.00, 97, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-97, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2491
UPDATE storemovement SET  buyPricesHistoryBookData = "97*2026-10-14*435.00," WHERE transferproductid = 753;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1274', '2', '97', '1', '753', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '97', '0', '1', '2026-10-14','0','0'); -- id=9819
UPDATE storedetail SET  productquantity = '97', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1274';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1274, 0, 0
                    , 435.00, 97.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+97.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2490
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1274', '1', '97', '0', '753', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '97', '1', '2026-10-14','0','0'); -- id=9820
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '754';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2307';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1273, 0, 0
                    , 400.00, 47, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-47, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2493
UPDATE storemovement SET  buyPricesHistoryBookData = "47*2026-10-14*400.00," WHERE transferproductid = 754;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1273', '2', '47', '1', '754', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '47', '0', '1', '2026-10-14','0','0'); -- id=9821
UPDATE storedetail SET  productquantity = '47', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1273';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1273, 0, 0
                    , 400.00, 47.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+47.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2492
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1273', '1', '47', '0', '754', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '47', '1', '2026-10-14','0','0'); -- id=9822
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '755';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2306';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1272, 0, 0
                    , 120.00, 85, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-85, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2495
UPDATE storemovement SET  buyPricesHistoryBookData = "85*2026-10-14*120.00," WHERE transferproductid = 755;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1272', '2', '85', '1', '755', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '85', '0', '1', '2026-10-14','0','0'); -- id=9823
UPDATE storedetail SET  productquantity = '85', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1272';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1272, 0, 0
                    , 120.00, 85.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+85.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2494
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1272', '1', '85', '0', '755', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '85', '1', '2026-10-14','0','0'); -- id=9824
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '756';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2305';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1271, 0, 0
                    , 260.00, 6, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2497
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-14*260.00," WHERE transferproductid = 756;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1271', '2', '6', '1', '756', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=9825
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1271';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1271, 0, 0
                    , 260.00, 6.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2496
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1271', '1', '6', '0', '756', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=9826
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '757';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2304';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1270, 0, 0
                    , 260.00, 7, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-7, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2499
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2026-10-14*260.00," WHERE transferproductid = 757;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1270', '2', '7', '1', '757', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '7', '0', '1', '2026-10-14','0','0'); -- id=9827
UPDATE storedetail SET  productquantity = '7', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1270';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1270, 0, 0
                    , 260.00, 7.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2498
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1270', '1', '7', '0', '757', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '7', '1', '2026-10-14','0','0'); -- id=9828
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '758';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2303';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1269, 0, 0
                    , 250.00, 11, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-11, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2501
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2026-10-14*250.00," WHERE transferproductid = 758;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1269', '2', '11', '1', '758', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=9829
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1269';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1269, 0, 0
                    , 250.00, 11.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2500
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1269', '1', '11', '0', '758', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=9830
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '759';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2302';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 759;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1268', '2', '0', '1', '759', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9831
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1268';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1268', '1', '0', '0', '759', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9832
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '760';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2301';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1267, 0, 0
                    , 250.00, 11, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-11, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2503
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2026-10-14*250.00," WHERE transferproductid = 760;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1267', '2', '11', '1', '760', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=9833
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1267';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1267, 0, 0
                    , 250.00, 11.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2502
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1267', '1', '11', '0', '760', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=9834
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '761';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2300';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1266, 0, 0
                    , 235.00, 29, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-29, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2505
UPDATE storemovement SET  buyPricesHistoryBookData = "29*2026-10-14*235.00," WHERE transferproductid = 761;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1266', '2', '29', '1', '761', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '29', '0', '1', '2026-10-14','0','0'); -- id=9835
UPDATE storedetail SET  productquantity = '29', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1266';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1266, 0, 0
                    , 235.00, 29.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2504
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1266', '1', '29', '0', '761', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '29', '1', '2026-10-14','0','0'); -- id=9836
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '762';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2299';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1265, 0, 0
                    , 250.00, 3, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2507
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-14*250.00," WHERE transferproductid = 762;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1265', '2', '3', '1', '762', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=9837
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1265';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1265, 0, 0
                    , 250.00, 3.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2506
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1265', '1', '3', '0', '762', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=9838
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '763';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2298';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1264, 0, 0
                    , 235.00, 3, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2509
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-14*235.00," WHERE transferproductid = 763;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1264', '2', '3', '1', '763', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=9839
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1264';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1264, 0, 0
                    , 235.00, 3.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2508
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1264', '1', '3', '0', '763', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=9840
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '764';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2297';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1263, 0, 0
                    , 250.00, 12, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2511
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*250.00," WHERE transferproductid = 764;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1263', '2', '12', '1', '764', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9841
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1263';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1263, 0, 0
                    , 250.00, 12.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2510
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1263', '1', '12', '0', '764', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9842
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '765';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2296';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1262, 0, 0
                    , 215.00, 3, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2513
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-14*215.00," WHERE transferproductid = 765;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1262', '2', '3', '1', '765', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=9843
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1262';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1262, 0, 0
                    , 215.00, 3.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2512
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1262', '1', '3', '0', '765', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=9844
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '766';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2295';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1261, 0, 0
                    , 240.00, 10, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2515
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*240.00," WHERE transferproductid = 766;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1261', '2', '10', '1', '766', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=9845
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1261';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1261, 0, 0
                    , 240.00, 10.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2514
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1261', '1', '10', '0', '766', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=9846
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '767';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2294';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1260, 0, 0
                    , 370.00, 556, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-556, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2517
UPDATE storemovement SET  buyPricesHistoryBookData = "556*2026-10-14*370.00," WHERE transferproductid = 767;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1260', '2', '556', '1', '767', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '556', '0', '1', '2026-10-14','0','0'); -- id=9847
UPDATE storedetail SET  productquantity = '556', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1260';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1260, 0, 0
                    , 370.00, 556.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+556.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2516
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1260', '1', '556', '0', '767', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '556', '1', '2026-10-14','0','0'); -- id=9848
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '768';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2293';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1259, 0, 0
                    , 370.00, 1, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-1, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2519
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2026-10-14*370.00," WHERE transferproductid = 768;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1259', '2', '1', '1', '768', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '1', '0', '1', '2026-10-14','0','0'); -- id=9849
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1259';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1259, 0, 0
                    , 370.00, 1.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2518
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1259', '1', '1', '0', '768', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '1', '1', '2026-10-14','0','0'); -- id=9850
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '769';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2292';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1258, 0, 0
                    , 370.00, 4, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2521
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2026-10-14*370.00," WHERE transferproductid = 769;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1258', '2', '4', '1', '769', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=9851
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1258';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1258, 0, 0
                    , 370.00, 4.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2520
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1258', '1', '4', '0', '769', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=9852
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '770';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2291';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 770;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1257', '2', '-3', '1', '770', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-3', '0', '1', '2026-10-14','0','0'); -- id=9853
UPDATE storedetail SET  productquantity = '-3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1257';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1257', '1', '-3', '0', '770', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-3', '1', '2026-10-14','0','0'); -- id=9854
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '771';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2290';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1256, 0, 0
                    , 210.00, 2, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-2, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2523
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2026-10-14*210.00," WHERE transferproductid = 771;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1256', '2', '2', '1', '771', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=9855
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1256';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1256, 0, 0
                    , 210.00, 2.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2522
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1256', '1', '2', '0', '771', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=9856
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '772';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2289';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1255, 0, 0
                    , 250.00, 12, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2525
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*250.00," WHERE transferproductid = 772;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1255', '2', '12', '1', '772', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9857
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1255';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1255, 0, 0
                    , 250.00, 12.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2524
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1255', '1', '12', '0', '772', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9858
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '773';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2288';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1254, 0, 0
                    , 235.00, 12, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2527
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*235.00," WHERE transferproductid = 773;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1254', '2', '12', '1', '773', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9859
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1254';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1254, 0, 0
                    , 235.00, 12.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2526
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1254', '1', '12', '0', '773', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9860
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '774';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2287';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1253, 0, 0
                    , 370.00, 20, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2529
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*370.00," WHERE transferproductid = 774;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1253', '2', '20', '1', '774', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=9861
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1253';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1253, 0, 0
                    , 370.00, 20.00, 0, 0, 1, '2026-10-14 18:01:05')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:05' ; -- id=2528
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1253', '1', '20', '0', '774', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=9862
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '775';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2286';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1252, 0, 0
                    , 360.00, 11, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-11, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2531
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2026-10-14*360.00," WHERE transferproductid = 775;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1252', '2', '11', '1', '775', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=9863
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1252';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1252, 0, 0
                    , 360.00, 11.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2530
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1252', '1', '11', '0', '775', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=9864
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '776';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2285';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1251, 0, 0
                    , 270.00, 24, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2533
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-14*270.00," WHERE transferproductid = 776;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1251', '2', '24', '1', '776', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9865
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1251';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1251, 0, 0
                    , 270.00, 24.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2532
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1251', '1', '24', '0', '776', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9866
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '777';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2284';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 777;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1250', '2', '0', '1', '777', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9867
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1250';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1250', '1', '0', '0', '777', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9868
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '778';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2283';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1249, 0, 0
                    , 315.00, 51, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-51, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2535
UPDATE storemovement SET  buyPricesHistoryBookData = "51*2026-10-14*315.00," WHERE transferproductid = 778;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1249', '2', '51', '1', '778', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '51', '0', '1', '2026-10-14','0','0'); -- id=9869
UPDATE storedetail SET  productquantity = '51', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1249';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1249, 0, 0
                    , 315.00, 51.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+51.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2534
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1249', '1', '51', '0', '778', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '51', '1', '2026-10-14','0','0'); -- id=9870
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '779';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2282';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 779;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1248', '2', '0', '1', '779', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9871
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1248';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1248', '1', '0', '0', '779', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9872
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '780';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2281';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 780;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1247', '2', '0', '1', '780', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9873
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1247';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1247', '1', '0', '0', '780', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9874
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '781';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2280';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 781;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1246', '2', '0', '1', '781', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9875
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1246';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1246', '1', '0', '0', '781', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9876
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '782';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2279';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 782;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1245', '2', '0', '1', '782', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9877
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1245';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1245', '1', '0', '0', '782', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9878
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '783';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2278';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1244, 0, 0
                    , 365.00, 50, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-50, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2537
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2026-10-14*365.00," WHERE transferproductid = 783;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1244', '2', '50', '1', '783', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=9879
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1244';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1244, 0, 0
                    , 365.00, 50.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2536
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1244', '1', '50', '0', '783', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=9880
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '784';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2277';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 784;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1243', '2', '0', '1', '784', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9881
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1243';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1243', '1', '0', '0', '784', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9882
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '785';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2276';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1242, 0, 0
                    , 160.00, 3, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2539
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-14*160.00," WHERE transferproductid = 785;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1242', '2', '3', '1', '785', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=9883
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1242';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1242, 0, 0
                    , 160.00, 3.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2538
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1242', '1', '3', '0', '785', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=9884
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '786';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2275';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1241, 0, 0
                    , 250.00, 24, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2541
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-14*250.00," WHERE transferproductid = 786;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1241', '2', '24', '1', '786', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=9885
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1241';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1241, 0, 0
                    , 250.00, 24.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2540
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1241', '1', '24', '0', '786', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=9886
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '787';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2274';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1240, 0, 0
                    , 225.00, 48, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2543
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-14*225.00," WHERE transferproductid = 787;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1240', '2', '48', '1', '787', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=9887
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1240';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1240, 0, 0
                    , 225.00, 48.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2542
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1240', '1', '48', '0', '787', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=9888
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '788';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2273';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1239, 0, 0
                    , 430.00, 130, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-130, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2545
UPDATE storemovement SET  buyPricesHistoryBookData = "130*2026-10-14*430.00," WHERE transferproductid = 788;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1239', '2', '130', '1', '788', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '130', '0', '1', '2026-10-14','0','0'); -- id=9889
UPDATE storedetail SET  productquantity = '130', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1239';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1239, 0, 0
                    , 430.00, 130.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+130.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2544
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1239', '1', '130', '0', '788', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '130', '1', '2026-10-14','0','0'); -- id=9890
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '789';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2272';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 789;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1238', '2', '0', '1', '789', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9891
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1238';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1238', '1', '0', '0', '789', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9892
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '790';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2271';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1237, 0, 0
                    , 270.00, 8, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2547
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2026-10-14*270.00," WHERE transferproductid = 790;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1237', '2', '8', '1', '790', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=9893
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1237';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1237, 0, 0
                    , 270.00, 8.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2546
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1237', '1', '8', '0', '790', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=9894
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '791';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2270';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1236, 0, 0
                    , 245.00, 4, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2549
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2026-10-14*245.00," WHERE transferproductid = 791;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1236', '2', '4', '1', '791', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=9895
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1236';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1236, 0, 0
                    , 245.00, 4.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2548
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1236', '1', '4', '0', '791', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=9896
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '792';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2269';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1235, 0, 0
                    , 200.00, 3, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2551
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-14*200.00," WHERE transferproductid = 792;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1235', '2', '3', '1', '792', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=9897
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1235';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1235, 0, 0
                    , 200.00, 3.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2550
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1235', '1', '3', '0', '792', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=9898
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '793';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2268';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1234, 0, 0
                    , 250.00, 4, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2553
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2026-10-14*250.00," WHERE transferproductid = 793;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1234', '2', '4', '1', '793', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=9899
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1234';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1234, 0, 0
                    , 250.00, 4.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2552
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1234', '1', '4', '0', '793', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=9900
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '794';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2267';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1233, 0, 0
                    , 230.00, 27, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2555
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-14*230.00," WHERE transferproductid = 794;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1233', '2', '27', '1', '794', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=9901
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1233';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1233, 0, 0
                    , 230.00, 27.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2554
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1233', '1', '27', '0', '794', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=9902
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '795';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2266';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1232, 0, 0
                    , 125.00, 26, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-26, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2557
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2026-10-14*125.00," WHERE transferproductid = 795;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1232', '2', '26', '1', '795', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '26', '0', '1', '2026-10-14','0','0'); -- id=9903
UPDATE storedetail SET  productquantity = '26', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1232';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1232, 0, 0
                    , 125.00, 26.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2556
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1232', '1', '26', '0', '795', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '26', '1', '2026-10-14','0','0'); -- id=9904
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '796';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2265';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1231, 0, 0
                    , 330.00, 63, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-63, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2559
UPDATE storemovement SET  buyPricesHistoryBookData = "63*2026-10-14*330.00," WHERE transferproductid = 796;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1231', '2', '63', '1', '796', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '63', '0', '1', '2026-10-14','0','0'); -- id=9905
UPDATE storedetail SET  productquantity = '63', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1231';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1231, 0, 0
                    , 330.00, 63.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+63.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2558
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1231', '1', '63', '0', '796', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '63', '1', '2026-10-14','0','0'); -- id=9906
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '797';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2264';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1230, 0, 0
                    , 315.00, 12, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2561
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*315.00," WHERE transferproductid = 797;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1230', '2', '12', '1', '797', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=9907
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1230';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1230, 0, 0
                    , 315.00, 12.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2560
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1230', '1', '12', '0', '797', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=9908
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '798';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2263';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1229, 0, 0
                    , 280.00, 27, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2563
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-14*280.00," WHERE transferproductid = 798;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1229', '2', '27', '1', '798', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=9909
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1229';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1229, 0, 0
                    , 280.00, 27.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2562
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1229', '1', '27', '0', '798', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=9910
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '799';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2262';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 799;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1228', '2', '0', '1', '799', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9911
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1228';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1228', '1', '0', '0', '799', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9912
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '800';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2261';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 800;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1227', '2', '0', '1', '800', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9913
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1227';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1227', '1', '0', '0', '800', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9914
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '801';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2260';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 801;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1226', '2', '0', '1', '801', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9915
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1226';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1226', '1', '0', '0', '801', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9916
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '802';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2259';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 802;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1225', '2', '0', '1', '802', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9917
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1225';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1225', '1', '0', '0', '802', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9918
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '803';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2258';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 803;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1224', '2', '0', '1', '803', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9919
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1224';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1224', '1', '0', '0', '803', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9920
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '804';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2257';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 804;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1223', '2', '0', '1', '804', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9921
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1223';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1223', '1', '0', '0', '804', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9922
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '805';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2256';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 805;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1222', '2', '0', '1', '805', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9923
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1222';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1222', '1', '0', '0', '805', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9924
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '806';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2255';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 806;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1221', '2', '0', '1', '806', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9925
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1221';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1221', '1', '0', '0', '806', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9926
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '807';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2254';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 807;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1220', '2', '0', '1', '807', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9927
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1220';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1220', '1', '0', '0', '807', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9928
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '808';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2253';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 808;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1219', '2', '0', '1', '808', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9929
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1219';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1219', '1', '0', '0', '808', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9930
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '809';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2252';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1218, 0, 0
                    , 325.00, 48, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2565
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-14*325.00," WHERE transferproductid = 809;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1218', '2', '48', '1', '809', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=9931
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1218';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1218, 0, 0
                    , 325.00, 48.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2564
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1218', '1', '48', '0', '809', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=9932
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '810';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2251';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1217, 0, 0
                    , 355.00, 20, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2567
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*355.00," WHERE transferproductid = 810;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1217', '2', '20', '1', '810', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=9933
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1217';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1217, 0, 0
                    , 355.00, 20.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2566
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1217', '1', '20', '0', '810', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=9934
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '811';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2250';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1216, 0, 0
                    , 395.00, 4, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2569
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2026-10-14*395.00," WHERE transferproductid = 811;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1216', '2', '4', '1', '811', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=9935
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1216';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1216, 0, 0
                    , 395.00, 4.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2568
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1216', '1', '4', '0', '811', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=9936
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '812';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2249';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1215, 0, 0
                    , 370.00, 18, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2571
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-14*370.00," WHERE transferproductid = 812;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1215', '2', '18', '1', '812', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=9937
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1215';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1215, 0, 0
                    , 370.00, 18.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2570
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1215', '1', '18', '0', '812', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=9938
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '813';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2248';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1214, 0, 0
                    , 390.00, 48, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2573
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-14*390.00," WHERE transferproductid = 813;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1214', '2', '48', '1', '813', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=9939
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1214';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1214, 0, 0
                    , 390.00, 48.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2572
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1214', '1', '48', '0', '813', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=9940
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '814';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2247';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1213, 0, 0
                    , 340.00, 16, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-16, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2575
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2026-10-14*340.00," WHERE transferproductid = 814;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1213', '2', '16', '1', '814', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=9941
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1213';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1213, 0, 0
                    , 340.00, 16.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2574
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1213', '1', '16', '0', '814', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '16', '1', '2026-10-14','0','0'); -- id=9942
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '815';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2246';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1212, 0, 0
                    , 330.00, 48, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2577
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-14*330.00," WHERE transferproductid = 815;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1212', '2', '48', '1', '815', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=9943
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1212';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1212, 0, 0
                    , 330.00, 48.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2576
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1212', '1', '48', '0', '815', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=9944
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '816';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2245';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1211, 0, 0
                    , 350.00, 105, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-105, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2579
UPDATE storemovement SET  buyPricesHistoryBookData = "105*2026-10-14*350.00," WHERE transferproductid = 816;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1211', '2', '105', '1', '816', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '105', '0', '1', '2026-10-14','0','0'); -- id=9945
UPDATE storedetail SET  productquantity = '105', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1211';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1211, 0, 0
                    , 350.00, 105.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+105.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2578
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1211', '1', '105', '0', '816', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '105', '1', '2026-10-14','0','0'); -- id=9946
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '817';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2244';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1210, 0, 0
                    , 125.00, 48, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2581
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-14*125.00," WHERE transferproductid = 817;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1210', '2', '48', '1', '817', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=9947
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1210';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1210, 0, 0
                    , 125.00, 48.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2580
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1210', '1', '48', '0', '817', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=9948
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '818';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2243';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1209, 0, 0
                    , 155.00, 230, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-230, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2583
UPDATE storemovement SET  buyPricesHistoryBookData = "230*2026-10-14*155.00," WHERE transferproductid = 818;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1209', '2', '230', '1', '818', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '230', '0', '1', '2026-10-14','0','0'); -- id=9949
UPDATE storedetail SET  productquantity = '230', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1209';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1209, 0, 0
                    , 155.00, 230.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+230.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2582
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1209', '1', '230', '0', '818', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '230', '1', '2026-10-14','0','0'); -- id=9950
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '819';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2242';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1208, 0, 0
                    , 155.00, 273, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-273, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2585
UPDATE storemovement SET  buyPricesHistoryBookData = "273*2026-10-14*155.00," WHERE transferproductid = 819;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1208', '2', '273', '1', '819', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '273', '0', '1', '2026-10-14','0','0'); -- id=9951
UPDATE storedetail SET  productquantity = '273', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1208';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1208, 0, 0
                    , 155.00, 273.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+273.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2584
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1208', '1', '273', '0', '819', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '273', '1', '2026-10-14','0','0'); -- id=9952
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '820';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2241';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1207, 0, 0
                    , 330.00, 51, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-51, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2587
UPDATE storemovement SET  buyPricesHistoryBookData = "51*2026-10-14*330.00," WHERE transferproductid = 820;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1207', '2', '51', '1', '820', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '51', '0', '1', '2026-10-14','0','0'); -- id=9953
UPDATE storedetail SET  productquantity = '51', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1207';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1207, 0, 0
                    , 330.00, 51.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+51.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2586
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1207', '1', '51', '0', '820', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '51', '1', '2026-10-14','0','0'); -- id=9954
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '821';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2240';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1206, 0, 0
                    , 320.00, 30, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2589
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*320.00," WHERE transferproductid = 821;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1206', '2', '30', '1', '821', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=9955
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1206';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1206, 0, 0
                    , 320.00, 30.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2588
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1206', '1', '30', '0', '821', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=9956
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '822';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2239';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1205, 0, 0
                    , 290.00, 6, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2591
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-14*290.00," WHERE transferproductid = 822;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1205', '2', '6', '1', '822', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=9957
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1205';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1205, 0, 0
                    , 290.00, 6.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2590
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1205', '1', '6', '0', '822', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=9958
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '823';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2238';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1204, 0, 0
                    , 320.00, 1, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-1, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2593
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2026-10-14*320.00," WHERE transferproductid = 823;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1204', '2', '1', '1', '823', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '1', '0', '1', '2026-10-14','0','0'); -- id=9959
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1204';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1204, 0, 0
                    , 320.00, 1.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2592
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1204', '1', '1', '0', '823', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '1', '1', '2026-10-14','0','0'); -- id=9960
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '824';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2237';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 824;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1203', '2', '0', '1', '824', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9961
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1203';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1203', '1', '0', '0', '824', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=9962
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '825';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2236';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1202, 0, 0
                    , 150.00, 105, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-105, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2595
UPDATE storemovement SET  buyPricesHistoryBookData = "105*2026-10-14*150.00," WHERE transferproductid = 825;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1202', '2', '105', '1', '825', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '105', '0', '1', '2026-10-14','0','0'); -- id=9963
UPDATE storedetail SET  productquantity = '105', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1202';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1202, 0, 0
                    , 150.00, 105.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+105.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2594
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1202', '1', '105', '0', '825', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '105', '1', '2026-10-14','0','0'); -- id=9964
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '826';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2235';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1201, 0, 0
                    , 250.00, 50, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-50, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2597
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2026-10-14*250.00," WHERE transferproductid = 826;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1201', '2', '50', '1', '826', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=9965
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1201';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1201, 0, 0
                    , 250.00, 50.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2596
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1201', '1', '50', '0', '826', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=9966
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '827';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2234';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1200, 0, 0
                    , 250.00, 36, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2599
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-14*250.00," WHERE transferproductid = 827;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1200', '2', '36', '1', '827', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=9967
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1200';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1200, 0, 0
                    , 250.00, 36.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2598
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1200', '1', '36', '0', '827', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=9968
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '828';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2233';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1199, 0, 0
                    , 230.00, 45, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-45, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2601
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2026-10-14*230.00," WHERE transferproductid = 828;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1199', '2', '45', '1', '828', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=9969
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1199';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1199, 0, 0
                    , 230.00, 45.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2600
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1199', '1', '45', '0', '828', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=9970
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '829';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2232';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1198, 0, 0
                    , 250.00, 1, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-1, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2603
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2026-10-14*250.00," WHERE transferproductid = 829;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1198', '2', '1', '1', '829', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '1', '0', '1', '2026-10-14','0','0'); -- id=9971
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1198';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1198, 0, 0
                    , 250.00, 1.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2602
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1198', '1', '1', '0', '829', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '1', '1', '2026-10-14','0','0'); -- id=9972
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '830';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2231';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1197, 0, 0
                    , 260.00, 33, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2605
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2026-10-14*260.00," WHERE transferproductid = 830;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1197', '2', '33', '1', '830', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=9973
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1197';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1197, 0, 0
                    , 260.00, 33.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2604
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1197', '1', '33', '0', '830', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=9974
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '831';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2230';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1196, 0, 0
                    , 310.00, 175, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-175, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2607
UPDATE storemovement SET  buyPricesHistoryBookData = "175*2026-10-14*310.00," WHERE transferproductid = 831;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1196', '2', '175', '1', '831', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '175', '0', '1', '2026-10-14','0','0'); -- id=9975
UPDATE storedetail SET  productquantity = '175', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1196';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1196, 0, 0
                    , 310.00, 175.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+175.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2606
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1196', '1', '175', '0', '831', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '175', '1', '2026-10-14','0','0'); -- id=9976
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '832';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2229';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1195, 0, 0
                    , 165.00, 33, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2609
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2026-10-14*165.00," WHERE transferproductid = 832;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1195', '2', '33', '1', '832', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=9977
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1195';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1195, 0, 0
                    , 165.00, 33.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2608
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1195', '1', '33', '0', '832', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=9978
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '833';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2228';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1194, 0, 0
                    , 250.00, 71, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-71, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2611
UPDATE storemovement SET  buyPricesHistoryBookData = "71*2026-10-14*250.00," WHERE transferproductid = 833;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1194', '2', '71', '1', '833', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '71', '0', '1', '2026-10-14','0','0'); -- id=9979
UPDATE storedetail SET  productquantity = '71', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1194';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1194, 0, 0
                    , 250.00, 71.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+71.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2610
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1194', '1', '71', '0', '833', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '71', '1', '2026-10-14','0','0'); -- id=9980
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '834';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2227';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1193, 0, 0
                    , 280.00, 57, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-57, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2613
UPDATE storemovement SET  buyPricesHistoryBookData = "57*2026-10-14*280.00," WHERE transferproductid = 834;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1193', '2', '57', '1', '834', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '57', '0', '1', '2026-10-14','0','0'); -- id=9981
UPDATE storedetail SET  productquantity = '57', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1193';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1193, 0, 0
                    , 280.00, 57.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+57.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2612
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1193', '1', '57', '0', '834', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '57', '1', '2026-10-14','0','0'); -- id=9982
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '835';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2226';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:31:06";
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1192, 0, 0
                    , 175.00, 54, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-54, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2615
UPDATE storemovement SET  buyPricesHistoryBookData = "54*2026-10-14*175.00," WHERE transferproductid = 835;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1192', '2', '54', '1', '835', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '54', '0', '1', '2026-10-14','0','0'); -- id=9983
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:01:06", deviceType = "DESKTOP" WHERE userid = 1;
UPDATE storedetail SET  productquantity = '54', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1192';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1192, 0, 0
                    , 175.00, 54.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+54.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2614
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1192', '1', '54', '0', '835', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '54', '1', '2026-10-14','0','0'); -- id=9984
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '836';
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:01:06', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add');UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2225';
 -- id=9572
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1191, 0, 0
                    , 145.00, 45, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-45, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2617
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2026-10-14*145.00," WHERE transferproductid = 836;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1191', '2', '45', '1', '836', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=9985
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1191';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1191, 0, 0
                    , 145.00, 45.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2616
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1191', '1', '45', '0', '836', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=9986
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '837';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2224';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1190, 0, 0
                    , 135.00, 3, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2619
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-14*135.00," WHERE transferproductid = 837;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1190', '2', '3', '1', '837', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=9987
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1190';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1190, 0, 0
                    , 135.00, 3.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2618
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1190', '1', '3', '0', '837', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=9988
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '838';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2223';
BEGIN;
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1189, 0, 0
                    , 80.00, 72, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2621
UPDATE storemovement SET  buyPricesHistoryBookData = "72*2026-10-14*80.00," WHERE transferproductid = 838;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1189', '2', '72', '1', '838', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=9989
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1189';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1189, 0, 0
                    , 80.00, 72.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2620
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf991744250', '2026-10-14 18:00:39', '115', '420000.00', '504000', '0', '0', '84000.00',  '84000.00', '0', '84000', '1', '2026-10-14 18:01:06', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=153
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1189', '1', '72', '0', '838', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '72', '1', '2026-10-14','0','0'); -- id=9990
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01598', '153', '118', '1598', '120', '700', '84000.00', '0', '', '2026-10-14 18:01:06', '1598','','','0','0','0','0','0',null,'700','84000','0','0','0','0','0','0','0','0','1'); -- id=945
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '839';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:00:39', 1, 1598, 0, 0
                    , 700, 120, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyprice = 700,
                        buyQuantity =buyQuantity+120, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ;UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2222';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1188, 0, 0
                    , 360.00, 25, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2623
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*360.00," WHERE transferproductid = 839;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1188', '2', '25', '1', '839', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=9991
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1188';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1188, 0, 0
                    , 360.00, 25.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2622
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1188', '1', '25', '0', '839', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=9992
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '840';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2221';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1187, 0, 0
                    , 300.00, 28, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-28, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2625
UPDATE storemovement SET  buyPricesHistoryBookData = "28*2026-10-14*300.00," WHERE transferproductid = 840;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1187', '2', '28', '1', '840', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '28', '0', '1', '2026-10-14','0','0'); -- id=9993
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1187';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1187, 0, 0
                    , 300.00, 28.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+28.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2624
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1187', '1', '28', '0', '840', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '28', '1', '2026-10-14','0','0'); -- id=9994
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '841';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2220';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1186, 0, 0
                    , 250.00, 18, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2627
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-14*250.00," WHERE transferproductid = 841;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1186', '2', '18', '1', '841', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=9995
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1186';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1186, 0, 0
                    , 250.00, 18.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2626
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1186', '1', '18', '0', '841', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=9996
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '842';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2219';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1185, 0, 0
                    , 230.00, 78, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-78, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2629
UPDATE storemovement SET  buyPricesHistoryBookData = "78*2026-10-14*230.00," WHERE transferproductid = 842;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1185', '2', '78', '1', '842', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '78', '0', '1', '2026-10-14','0','0'); -- id=9997
UPDATE storedetail SET  productquantity = '78', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1185';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1185, 0, 0
                    , 230.00, 78.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+78.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2628
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1185', '1', '78', '0', '842', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '78', '1', '2026-10-14','0','0'); -- id=9998
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '843';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2218';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1184, 0, 0
                    , 280.00, 76, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-76, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2631
UPDATE storemovement SET  buyPricesHistoryBookData = "76*2026-10-14*280.00," WHERE transferproductid = 843;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1184', '2', '76', '1', '843', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '76', '0', '1', '2026-10-14','0','0'); -- id=9999
UPDATE storedetail SET  productquantity = '76', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1184';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1184, 0, 0
                    , 280.00, 76.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+76.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2630
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1184', '1', '76', '0', '843', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '76', '1', '2026-10-14','0','0'); -- id=10000
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '844';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2217';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1183, 0, 0
                    , 230.00, 9, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2633
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-14*230.00," WHERE transferproductid = 844;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1183', '2', '9', '1', '844', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=10001
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1183';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1183, 0, 0
                    , 230.00, 9.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2632
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1183', '1', '9', '0', '844', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=10002
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '845';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2216';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1182, 0, 0
                    , 155.00, 7, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-7, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2635
UPDATE storemovement SET  buyPricesHistoryBookData = "7*2026-10-14*155.00," WHERE transferproductid = 845;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1182', '2', '7', '1', '845', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '7', '0', '1', '2026-10-14','0','0'); -- id=10003
UPDATE storedetail SET  productquantity = '7', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1182';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1182, 0, 0
                    , 155.00, 7.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+7.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2634
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1182', '1', '7', '0', '845', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '7', '1', '2026-10-14','0','0'); -- id=10004
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '846';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2215';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 846;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1181', '2', '0', '1', '846', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10005
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1181';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1181', '1', '0', '0', '846', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10006
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '847';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2214';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 847;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1180', '2', '0', '1', '847', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10007
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1180';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1180', '1', '0', '0', '847', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10008
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '848';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2213';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1179, 0, 0
                    , 330.00, 15, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2637
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*330.00," WHERE transferproductid = 848;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1179', '2', '15', '1', '848', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10009
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1179';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1179, 0, 0
                    , 330.00, 15.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2636
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1179', '1', '15', '0', '848', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10010
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '849';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2212';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1178, 0, 0
                    , 380.00, 21, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2639
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-14*380.00," WHERE transferproductid = 849;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1178', '2', '21', '1', '849', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=10011
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1178';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1178, 0, 0
                    , 380.00, 21.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2638
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1178', '1', '21', '0', '849', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=10012
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '850';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2211';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1177, 0, 0
                    , 290.00, 6, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2641
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-14*290.00," WHERE transferproductid = 850;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1177', '2', '6', '1', '850', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=10013
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1177';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1177, 0, 0
                    , 290.00, 6.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2640
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1177', '1', '6', '0', '850', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=10014
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '851';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2210';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 851;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1176', '2', '0', '1', '851', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10015
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1176';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1176', '1', '0', '0', '851', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10016
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '852';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2209';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1175, 0, 0
                    , 210.00, 2, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-2, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2643
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2026-10-14*210.00," WHERE transferproductid = 852;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1175', '2', '2', '1', '852', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=10017
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1175';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1175, 0, 0
                    , 210.00, 2.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2642
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1175', '1', '2', '0', '852', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=10018
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '853';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2208';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1174, 0, 0
                    , 290.00, 6, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2645
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-14*290.00," WHERE transferproductid = 853;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1174', '2', '6', '1', '853', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=10019
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1174';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1174, 0, 0
                    , 290.00, 6.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2644
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1174', '1', '6', '0', '853', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=10020
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '854';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2207';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1173, 0, 0
                    , 185.00, 3, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2647
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-14*185.00," WHERE transferproductid = 854;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1173', '2', '3', '1', '854', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=10021
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1173';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1173, 0, 0
                    , 185.00, 3.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2646
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1173', '1', '3', '0', '854', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=10022
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '855';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2206';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1172, 0, 0
                    , 290.00, 12, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2649
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*290.00," WHERE transferproductid = 855;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1172', '2', '12', '1', '855', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=10023
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1172';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1172, 0, 0
                    , 290.00, 12.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2648
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1172', '1', '12', '0', '855', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=10024
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '856';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2205';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1171, 0, 0
                    , 350.00, 6, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2651
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-14*350.00," WHERE transferproductid = 856;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1171', '2', '6', '1', '856', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=10025
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1171';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1171, 0, 0
                    , 350.00, 6.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2650
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1171', '1', '6', '0', '856', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=10026
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '857';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2204';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 857;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1170', '2', '0', '1', '857', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10027
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1170';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1170', '1', '0', '0', '857', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10028
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '858';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2203';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 858;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1169', '2', '0', '1', '858', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10029
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1169';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1169', '1', '0', '0', '858', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10030
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '859';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2202';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1168, 0, 0
                    , 420.00, 2, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-2, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2653
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2026-10-14*420.00," WHERE transferproductid = 859;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1168', '2', '2', '1', '859', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=10031
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1168';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1168, 0, 0
                    , 420.00, 2.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2652
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1168', '1', '2', '0', '859', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=10032
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '860';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2201';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 860;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1167', '2', '0', '1', '860', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10033
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1167';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1167', '1', '0', '0', '860', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10034
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '861';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2200';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1166, 0, 0
                    , 240.00, 11, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-11, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2655
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2026-10-14*240.00," WHERE transferproductid = 861;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1166', '2', '11', '1', '861', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=10035
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1166';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1166, 0, 0
                    , 240.00, 11.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2654
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1166', '1', '11', '0', '861', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=10036
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '862';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2199';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1165, 0, 0
                    , 190.00, 3, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2657
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-14*190.00," WHERE transferproductid = 862;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1165', '2', '3', '1', '862', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=10037
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1165';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1165, 0, 0
                    , 190.00, 3.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2656
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1165', '1', '3', '0', '862', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=10038
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '863';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2198';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 863;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1164', '2', '0', '1', '863', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10039
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1164';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1164', '1', '0', '0', '863', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10040
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '864';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2197';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 864;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1163', '2', '0', '1', '864', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10041
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1163';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1163', '1', '0', '0', '864', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10042
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '865';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2196';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1162, 0, 0
                    , 200.00, 21, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2659
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-14*200.00," WHERE transferproductid = 865;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1162', '2', '21', '1', '865', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=10043
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1162';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1162, 0, 0
                    , 200.00, 21.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2658
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1162', '1', '21', '0', '865', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=10044
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '866';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2195';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 866;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1161', '2', '0', '1', '866', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10045
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1161';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1161', '1', '0', '0', '866', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10046
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '867';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2194';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1160, 0, 0
                    , 280.00, 2, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-2, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2661
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2026-10-14*280.00," WHERE transferproductid = 867;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1160', '2', '2', '1', '867', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=10047
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1160';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1160, 0, 0
                    , 280.00, 2.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2660
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1160', '1', '2', '0', '867', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=10048
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '868';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2193';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1159, 0, 0
                    , 245.00, 12, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2663
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*245.00," WHERE transferproductid = 868;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1159', '2', '12', '1', '868', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=10049
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1159';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1159, 0, 0
                    , 245.00, 12.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2662
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1159', '1', '12', '0', '868', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=10050
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '869';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2192';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 869;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1158', '2', '0', '1', '869', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10051
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1158';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1158', '1', '0', '0', '869', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10052
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '870';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2191';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1157, 0, 0
                    , 340.00, 3, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2665
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-14*340.00," WHERE transferproductid = 870;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1157', '2', '3', '1', '870', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=10053
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1157';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1157, 0, 0
                    , 340.00, 3.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2664
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1157', '1', '3', '0', '870', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=10054
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '871';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2190';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 871;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1156', '2', '0', '1', '871', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10055
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1156';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1156', '1', '0', '0', '871', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10056
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '872';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2189';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1155, 0, 0
                    , 345.00, 51, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-51, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2667
UPDATE storemovement SET  buyPricesHistoryBookData = "51*2026-10-14*345.00," WHERE transferproductid = 872;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1155', '2', '51', '1', '872', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '51', '0', '1', '2026-10-14','0','0'); -- id=10057
UPDATE storedetail SET  productquantity = '51', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1155';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1155, 0, 0
                    , 345.00, 51.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+51.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2666
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1155', '1', '51', '0', '872', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '51', '1', '2026-10-14','0','0'); -- id=10058
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '873';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2188';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1154, 0, 0
                    , 270.00, 152, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-152, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2669
UPDATE storemovement SET  buyPricesHistoryBookData = "152*2026-10-14*270.00," WHERE transferproductid = 873;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1154', '2', '152', '1', '873', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '152', '0', '1', '2026-10-14','0','0'); -- id=10059
UPDATE storedetail SET  productquantity = '152', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1154';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1154, 0, 0
                    , 270.00, 152.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+152.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2668
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1154', '1', '152', '0', '873', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '152', '1', '2026-10-14','0','0'); -- id=10060
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '874';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2187';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1153, 0, 0
                    , 205.00, 41, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-41, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2671
UPDATE storemovement SET  buyPricesHistoryBookData = "41*2026-10-14*205.00," WHERE transferproductid = 874;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1153', '2', '41', '1', '874', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '41', '0', '1', '2026-10-14','0','0'); -- id=10061
UPDATE storedetail SET  productquantity = '41', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1153';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1153, 0, 0
                    , 205.00, 41.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+41.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2670
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1153', '1', '41', '0', '874', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '41', '1', '2026-10-14','0','0'); -- id=10062
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '875';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2186';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1152, 0, 0
                    , 370.00, 33, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-33, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2673
UPDATE storemovement SET  buyPricesHistoryBookData = "33*2026-10-14*370.00," WHERE transferproductid = 875;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1152', '2', '33', '1', '875', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '33', '0', '1', '2026-10-14','0','0'); -- id=10063
UPDATE storedetail SET  productquantity = '33', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1152';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1152, 0, 0
                    , 370.00, 33.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+33.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2672
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1152', '1', '33', '0', '875', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '33', '1', '2026-10-14','0','0'); -- id=10064
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '876';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2185';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1151, 0, 0
                    , 400.00, 3, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2675
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-14*400.00," WHERE transferproductid = 876;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1151', '2', '3', '1', '876', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=10065
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1151';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1151, 0, 0
                    , 400.00, 3.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2674
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1151', '1', '3', '0', '876', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=10066
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '877';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2184';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 877;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1150', '2', '0', '1', '877', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10067
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1150';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1150', '1', '0', '0', '877', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10068
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '878';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2183';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1149, 0, 0
                    , 340.00, 36, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-36, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2677
UPDATE storemovement SET  buyPricesHistoryBookData = "36*2026-10-14*340.00," WHERE transferproductid = 878;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1149', '2', '36', '1', '878', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '36', '0', '1', '2026-10-14','0','0'); -- id=10069
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1149';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1149, 0, 0
                    , 340.00, 36.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+36.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2676
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1149', '1', '36', '0', '878', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '36', '1', '2026-10-14','0','0'); -- id=10070
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '879';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2182';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1148, 0, 0
                    , 265.00, 8, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2679
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2026-10-14*265.00," WHERE transferproductid = 879;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1148', '2', '8', '1', '879', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=10071
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1148';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1148, 0, 0
                    , 265.00, 8.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2678
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1148', '1', '8', '0', '879', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=10072
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '880';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2181';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1147, 0, 0
                    , 370.00, 20, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2681
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*370.00," WHERE transferproductid = 880;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1147', '2', '20', '1', '880', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10073
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1147';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1147, 0, 0
                    , 370.00, 20.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2680
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1147', '1', '20', '0', '880', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10074
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '881';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2180';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1146, 0, 0
                    , 355.00, 64, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-64, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2683
UPDATE storemovement SET  buyPricesHistoryBookData = "64*2026-10-14*355.00," WHERE transferproductid = 881;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1146', '2', '64', '1', '881', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '64', '0', '1', '2026-10-14','0','0'); -- id=10075
UPDATE storedetail SET  productquantity = '64', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1146';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1146, 0, 0
                    , 355.00, 64.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+64.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2682
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1146', '1', '64', '0', '881', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '64', '1', '2026-10-14','0','0'); -- id=10076
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '882';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2179';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 882;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1145', '2', '0', '1', '882', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10077
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1145';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1145', '1', '0', '0', '882', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10078
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '883';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2178';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 883;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1144', '2', '0', '1', '883', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10079
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1144';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1144', '1', '0', '0', '883', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10080
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '884';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2177';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1143, 0, 0
                    , 360.00, 32, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2685
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-14*360.00," WHERE transferproductid = 884;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1143', '2', '32', '1', '884', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=10081
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1143';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1143, 0, 0
                    , 360.00, 32.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2684
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1143', '1', '32', '0', '884', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=10082
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '885';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2176';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1142, 0, 0
                    , 355.00, 12, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2687
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*355.00," WHERE transferproductid = 885;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1142', '2', '12', '1', '885', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=10083
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1142';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1142, 0, 0
                    , 355.00, 12.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2686
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1142', '1', '12', '0', '885', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=10084
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '886';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2175';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 886;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1141', '2', '0', '1', '886', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10085
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1141';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1141', '1', '0', '0', '886', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10086
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '887';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2174';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1140, 0, 0
                    , 220.00, 20, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2689
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*220.00," WHERE transferproductid = 887;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1140', '2', '20', '1', '887', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10087
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1140';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1140, 0, 0
                    , 220.00, 20.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2688
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1140', '1', '20', '0', '887', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10088
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '888';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2173';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 888;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1139', '2', '0', '1', '888', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10089
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1139';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1139', '1', '0', '0', '888', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10090
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '889';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2172';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1138, 0, 0
                    , 200.00, 27, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2691
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-14*200.00," WHERE transferproductid = 889;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1138', '2', '27', '1', '889', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=10091
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1138';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1138, 0, 0
                    , 200.00, 27.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2690
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1138', '1', '27', '0', '889', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=10092
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '890';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2171';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 890;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1137', '2', '0', '1', '890', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10093
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1137';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1137', '1', '0', '0', '890', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10094
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '891';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2170';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 891;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1136', '2', '0', '1', '891', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10095
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1136';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1136', '1', '0', '0', '891', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10096
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '892';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2169';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1135, 0, 0
                    , 375.00, 25, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2693
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*375.00," WHERE transferproductid = 892;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1135', '2', '25', '1', '892', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10097
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1135';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1135, 0, 0
                    , 375.00, 25.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2692
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1135', '1', '25', '0', '892', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10098
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '893';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2168';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1134, 0, 0
                    , 300.00, 102, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-102, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2695
UPDATE storemovement SET  buyPricesHistoryBookData = "102*2026-10-14*300.00," WHERE transferproductid = 893;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1134', '2', '102', '1', '893', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '102', '0', '1', '2026-10-14','0','0'); -- id=10099
UPDATE storedetail SET  productquantity = '102', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1134';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1134, 0, 0
                    , 300.00, 102.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+102.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2694
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1134', '1', '102', '0', '893', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '102', '1', '2026-10-14','0','0'); -- id=10100
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '894';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2167';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1133, 0, 0
                    , 275.00, 50, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-50, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2697
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2026-10-14*275.00," WHERE transferproductid = 894;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1133', '2', '50', '1', '894', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=10101
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1133';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1133, 0, 0
                    , 275.00, 50.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2696
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1133', '1', '50', '0', '894', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=10102
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '895';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2166';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1132, 0, 0
                    , 320.00, 320, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-320, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2699
UPDATE storemovement SET  buyPricesHistoryBookData = "320*2026-10-14*320.00," WHERE transferproductid = 895;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1132', '2', '320', '1', '895', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '320', '0', '1', '2026-10-14','0','0'); -- id=10103
UPDATE storedetail SET  productquantity = '320', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1132';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1132, 0, 0
                    , 320.00, 320.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+320.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2698
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1132', '1', '320', '0', '895', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '320', '1', '2026-10-14','0','0'); -- id=10104
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '896';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2165';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1131, 0, 0
                    , 310.00, 460, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-460, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2701
UPDATE storemovement SET  buyPricesHistoryBookData = "460*2026-10-14*310.00," WHERE transferproductid = 896;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1131', '2', '460', '1', '896', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '460', '0', '1', '2026-10-14','0','0'); -- id=10105
UPDATE storedetail SET  productquantity = '460', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1131';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1131, 0, 0
                    , 310.00, 460.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+460.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2700
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1131', '1', '460', '0', '896', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '460', '1', '2026-10-14','0','0'); -- id=10106
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '897';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2164';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1130, 0, 0
                    , 300.00, 304, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-304, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2703
UPDATE storemovement SET  buyPricesHistoryBookData = "304*2026-10-14*300.00," WHERE transferproductid = 897;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1130', '2', '304', '1', '897', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '304', '0', '1', '2026-10-14','0','0'); -- id=10107
UPDATE storedetail SET  productquantity = '304', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1130';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1130, 0, 0
                    , 300.00, 304.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+304.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2702
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1130', '1', '304', '0', '897', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '304', '1', '2026-10-14','0','0'); -- id=10108
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '898';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2163';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1129, 0, 0
                    , 275.00, 497, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-497, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2705
UPDATE storemovement SET  buyPricesHistoryBookData = "497*2026-10-14*275.00," WHERE transferproductid = 898;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1129', '2', '497', '1', '898', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '497', '0', '1', '2026-10-14','0','0'); -- id=10109
UPDATE storedetail SET  productquantity = '497', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1129';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1129, 0, 0
                    , 275.00, 497.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+497.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2704
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1129', '1', '497', '0', '898', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '497', '1', '2026-10-14','0','0'); -- id=10110
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '899';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2162';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1128, 0, 0
                    , 280.00, 100, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-100, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2707
UPDATE storemovement SET  buyPricesHistoryBookData = "100*2026-10-14*280.00," WHERE transferproductid = 899;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1128', '2', '100', '1', '899', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '100', '0', '1', '2026-10-14','0','0'); -- id=10111
UPDATE storedetail SET  productquantity = '100', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1128';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1128, 0, 0
                    , 280.00, 100.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+100.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2706
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1128', '1', '100', '0', '899', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '100', '1', '2026-10-14','0','0'); -- id=10112
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '900';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2161';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1127, 0, 0
                    , 290.00, 167, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-167, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2709
UPDATE storemovement SET  buyPricesHistoryBookData = "167*2026-10-14*290.00," WHERE transferproductid = 900;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1127', '2', '167', '1', '900', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '167', '0', '1', '2026-10-14','0','0'); -- id=10113
UPDATE storedetail SET  productquantity = '167', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1127';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1127, 0, 0
                    , 290.00, 167.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+167.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2708
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1127', '1', '167', '0', '900', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '167', '1', '2026-10-14','0','0'); -- id=10114
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '901';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2160';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1126, 0, 0
                    , 300.00, 70, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-70, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2711
UPDATE storemovement SET  buyPricesHistoryBookData = "70*2026-10-14*300.00," WHERE transferproductid = 901;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1126', '2', '70', '1', '901', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '70', '0', '1', '2026-10-14','0','0'); -- id=10115
UPDATE storedetail SET  productquantity = '70', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1126';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1126, 0, 0
                    , 300.00, 70.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+70.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2710
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1126', '1', '70', '0', '901', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '70', '1', '2026-10-14','0','0'); -- id=10116
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '902';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2159';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1125, 0, 0
                    , 300.00, 12, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2713
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*300.00," WHERE transferproductid = 902;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1125', '2', '12', '1', '902', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=10117
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1125';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1125, 0, 0
                    , 300.00, 12.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2712
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1125', '1', '12', '0', '902', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=10118
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '903';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2158';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1124, 0, 0
                    , 270.00, 38, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-38, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2715
UPDATE storemovement SET  buyPricesHistoryBookData = "38*2026-10-14*270.00," WHERE transferproductid = 903;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1124', '2', '38', '1', '903', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '38', '0', '1', '2026-10-14','0','0'); -- id=10119
UPDATE storedetail SET  productquantity = '38', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1124';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1124, 0, 0
                    , 270.00, 38.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+38.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2714
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1124', '1', '38', '0', '903', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '38', '1', '2026-10-14','0','0'); -- id=10120
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '904';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2157';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1123, 0, 0
                    , 290.00, 38, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-38, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2717
UPDATE storemovement SET  buyPricesHistoryBookData = "38*2026-10-14*290.00," WHERE transferproductid = 904;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1123', '2', '38', '1', '904', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '38', '0', '1', '2026-10-14','0','0'); -- id=10121
UPDATE storedetail SET  productquantity = '38', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1123';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1123, 0, 0
                    , 290.00, 38.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+38.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2716
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1123', '1', '38', '0', '904', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '38', '1', '2026-10-14','0','0'); -- id=10122
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '905';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2156';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1122, 0, 0
                    , 310.00, 60, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2719
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*310.00," WHERE transferproductid = 905;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1122', '2', '60', '1', '905', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=10123
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1122';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1122, 0, 0
                    , 310.00, 60.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2718
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1122', '1', '60', '0', '905', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=10124
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '906';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2155';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1121, 0, 0
                    , 270.00, 15, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2721
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*270.00," WHERE transferproductid = 906;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1121', '2', '15', '1', '906', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10125
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1121';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1121, 0, 0
                    , 270.00, 15.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2720
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1121', '1', '15', '0', '906', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10126
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '907';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2154';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1120, 0, 0
                    , 265.00, 10, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2723
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*265.00," WHERE transferproductid = 907;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1120', '2', '10', '1', '907', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10127
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1120';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1120, 0, 0
                    , 265.00, 10.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2722
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1120', '1', '10', '0', '907', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10128
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '908';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2153';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 908;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1119', '2', '-20', '1', '908', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-20', '0', '1', '2026-10-14','0','0'); -- id=10129
UPDATE storedetail SET  productquantity = '-20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1119';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1119', '1', '-20', '0', '908', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-20', '1', '2026-10-14','0','0'); -- id=10130
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '909';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2152';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1118, 0, 0
                    , 375.00, 20, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2725
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*375.00," WHERE transferproductid = 909;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1118', '2', '20', '1', '909', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10131
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1118';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1118, 0, 0
                    , 375.00, 20.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2724
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1118', '1', '20', '0', '909', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10132
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '910';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2151';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 910;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1117', '2', '0', '1', '910', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10133
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1117';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1117', '1', '0', '0', '910', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10134
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '911';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2150';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 911;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1116', '2', '0', '1', '911', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10135
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1116';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1116', '1', '0', '0', '911', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10136
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '912';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2149';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 912;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1115', '2', '0', '1', '912', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10137
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1115';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1115', '1', '0', '0', '912', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10138
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '913';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2148';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1114, 0, 0
                    , 380.00, 69, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-69, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2727
UPDATE storemovement SET  buyPricesHistoryBookData = "69*2026-10-14*380.00," WHERE transferproductid = 913;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1114', '2', '69', '1', '913', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '69', '0', '1', '2026-10-14','0','0'); -- id=10139
UPDATE storedetail SET  productquantity = '69', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1114';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1114, 0, 0
                    , 380.00, 69.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+69.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2726
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1114', '1', '69', '0', '913', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '69', '1', '2026-10-14','0','0'); -- id=10140
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '914';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2147';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 914;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1113', '2', '0', '1', '914', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10141
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1113';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1113', '1', '0', '0', '914', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10142
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '915';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2146';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1112, 0, 0
                    , 380.00, 1, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-1, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2729
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2026-10-14*380.00," WHERE transferproductid = 915;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1112', '2', '1', '1', '915', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '1', '0', '1', '2026-10-14','0','0'); -- id=10143
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1112';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1112, 0, 0
                    , 380.00, 1.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2728
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1112', '1', '1', '0', '915', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '1', '1', '2026-10-14','0','0'); -- id=10144
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '916';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2145';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 916;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1111', '2', '0', '1', '916', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10145
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1111';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1111', '1', '0', '0', '916', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10146
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '917';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2144';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 917;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1110', '2', '0', '1', '917', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10147
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1110';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1110', '1', '0', '0', '917', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10148
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '918';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2143';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 918;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1109', '2', '-5', '1', '918', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-5', '0', '1', '2026-10-14','0','0'); -- id=10149
UPDATE storedetail SET  productquantity = '-5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1109';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1109', '1', '-5', '0', '918', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-5', '1', '2026-10-14','0','0'); -- id=10150
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '919';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2142';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 919;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1108', '2', '-2', '1', '919', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-2', '0', '1', '2026-10-14','0','0'); -- id=10151
UPDATE storedetail SET  productquantity = '-2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1108';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1108', '1', '-2', '0', '919', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-2', '1', '2026-10-14','0','0'); -- id=10152
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '920';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2141';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 920;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1107', '2', '-16', '1', '920', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-16', '0', '1', '2026-10-14','0','0'); -- id=10153
UPDATE storedetail SET  productquantity = '-16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1107';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1107', '1', '-16', '0', '920', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-16', '1', '2026-10-14','0','0'); -- id=10154
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '921';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2140';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 921;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1106', '2', '-2', '1', '921', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-2', '0', '1', '2026-10-14','0','0'); -- id=10155
UPDATE storedetail SET  productquantity = '-2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1106';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1106', '1', '-2', '0', '921', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-2', '1', '2026-10-14','0','0'); -- id=10156
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '922';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2139';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 922;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1105', '2', '0', '1', '922', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10157
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1105';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1105', '1', '0', '0', '922', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10158
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '923';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2138';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 923;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1104', '2', '-20', '1', '923', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-20', '0', '1', '2026-10-14','0','0'); -- id=10159
UPDATE storedetail SET  productquantity = '-20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1104';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1104', '1', '-20', '0', '923', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-20', '1', '2026-10-14','0','0'); -- id=10160
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '924';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2137';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1103, 0, 0
                    , 385.00, 20, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2731
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*385.00," WHERE transferproductid = 924;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1103', '2', '20', '1', '924', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10161
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1103';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1103, 0, 0
                    , 385.00, 20.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2730
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1103', '1', '20', '0', '924', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10162
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '925';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2136';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1102, 0, 0
                    , 395.00, 4, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2733
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2026-10-14*395.00," WHERE transferproductid = 925;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1102', '2', '4', '1', '925', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=10163
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1102';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1102, 0, 0
                    , 395.00, 4.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2732
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1102', '1', '4', '0', '925', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=10164
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '926';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2135';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 926;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1101', '2', '-1', '1', '926', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=10165
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1101';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1101', '1', '-1', '0', '926', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=10166
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '927';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2134';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 927;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1100', '2', '0', '1', '927', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10167
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1100';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1100', '1', '0', '0', '927', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10168
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '928';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2133';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 928;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1099', '2', '-1', '1', '928', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=10169
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1099';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1099', '1', '-1', '0', '928', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=10170
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '929';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2132';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 929;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1098', '2', '-5', '1', '929', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-5', '0', '1', '2026-10-14','0','0'); -- id=10171
UPDATE storedetail SET  productquantity = '-5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1098';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1098', '1', '-5', '0', '929', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-5', '1', '2026-10-14','0','0'); -- id=10172
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '930';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2131';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1097, 0, 0
                    , 415.00, 15, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2735
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*415.00," WHERE transferproductid = 930;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1097', '2', '15', '1', '930', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10173
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1097';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1097, 0, 0
                    , 415.00, 15.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2734
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1097', '1', '15', '0', '930', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10174
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '931';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2130';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1096, 0, 0
                    , 600.00, 25, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2737
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*600.00," WHERE transferproductid = 931;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1096', '2', '25', '1', '931', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10175
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1096';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1096, 0, 0
                    , 600.00, 25.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2736
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1096', '1', '25', '0', '931', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10176
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '932';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2129';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 932;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1095', '2', '0', '1', '932', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10177
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1095';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1095', '1', '0', '0', '932', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10178
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '933';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2128';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1094, 0, 0
                    , 580.00, 55, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-55, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2739
UPDATE storemovement SET  buyPricesHistoryBookData = "55*2026-10-14*580.00," WHERE transferproductid = 933;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1094', '2', '55', '1', '933', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '55', '0', '1', '2026-10-14','0','0'); -- id=10179
UPDATE storedetail SET  productquantity = '55', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1094';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1094, 0, 0
                    , 580.00, 55.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+55.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2738
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1094', '1', '55', '0', '933', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '55', '1', '2026-10-14','0','0'); -- id=10180
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '934';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2127';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1093, 0, 0
                    , 560.00, 30, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2741
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*560.00," WHERE transferproductid = 934;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1093', '2', '30', '1', '934', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10181
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1093';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1093, 0, 0
                    , 560.00, 30.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2740
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1093', '1', '30', '0', '934', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10182
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '935';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2126';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1092, 0, 0
                    , 530.00, 10, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2743
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*530.00," WHERE transferproductid = 935;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1092', '2', '10', '1', '935', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10183
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1092';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1092, 0, 0
                    , 530.00, 10.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2742
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1092', '1', '10', '0', '935', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10184
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '936';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2125';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1091, 0, 0
                    , 480.00, 5, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2745
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*480.00," WHERE transferproductid = 936;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1091', '2', '5', '1', '936', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10185
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1091';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1091, 0, 0
                    , 480.00, 5.00, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2744
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1091', '1', '5', '0', '936', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10186
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '937';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2124';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1090, 0, 0
                    , 430.00, 5, 0, 0, 1, '2026-10-14 18:01:06')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:06' ; -- id=2747
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*430.00," WHERE transferproductid = 937;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1090', '2', '5', '1', '937', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10187
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1090';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1090, 0, 0
                    , 430.00, 5.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2746
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1090', '1', '5', '0', '937', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10188
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '938';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2123';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 938;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1089', '2', '0', '1', '938', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10189
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1089';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1089', '1', '0', '0', '938', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10190
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '939';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2122';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1088, 0, 0
                    , 420.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2749
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*420.00," WHERE transferproductid = 939;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1088', '2', '20', '1', '939', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10191
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1088';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1088, 0, 0
                    , 420.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2748
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1088', '1', '20', '0', '939', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10192
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '940';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2121';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1087, 0, 0
                    , 440.00, 4, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2751
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2026-10-14*440.00," WHERE transferproductid = 940;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1087', '2', '4', '1', '940', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=10193
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1087';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1087, 0, 0
                    , 440.00, 4.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2750
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1087', '1', '4', '0', '940', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=10194
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '941';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2120';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1086, 0, 0
                    , 530.00, 4, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2753
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2026-10-14*530.00," WHERE transferproductid = 941;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1086', '2', '4', '1', '941', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=10195
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1086';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1086, 0, 0
                    , 530.00, 4.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2752
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1086', '1', '4', '0', '941', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=10196
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '942';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2119';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1085, 0, 0
                    , 425.00, 215, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-215, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2755
UPDATE storemovement SET  buyPricesHistoryBookData = "215*2026-10-14*425.00," WHERE transferproductid = 942;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1085', '2', '215', '1', '942', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '215', '0', '1', '2026-10-14','0','0'); -- id=10197
UPDATE storedetail SET  productquantity = '215', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1085';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1085, 0, 0
                    , 425.00, 215.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+215.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2754
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1085', '1', '215', '0', '942', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '215', '1', '2026-10-14','0','0'); -- id=10198
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '943';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2118';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1084, 0, 0
                    , 480.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2757
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*480.00," WHERE transferproductid = 943;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1084', '2', '5', '1', '943', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10199
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1084';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1084, 0, 0
                    , 480.00, 5.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2756
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1084', '1', '5', '0', '943', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10200
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '944';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2117';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1083, 0, 0
                    , 280.00, 74, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-74, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2759
UPDATE storemovement SET  buyPricesHistoryBookData = "74*2026-10-14*280.00," WHERE transferproductid = 944;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1083', '2', '74', '1', '944', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '74', '0', '1', '2026-10-14','0','0'); -- id=10201
UPDATE storedetail SET  productquantity = '74', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1083';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1083, 0, 0
                    , 280.00, 74.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+74.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2758
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1083', '1', '74', '0', '944', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '74', '1', '2026-10-14','0','0'); -- id=10202
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '945';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2116';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1082, 0, 0
                    , 305.00, 48, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2761
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-14*305.00," WHERE transferproductid = 945;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1082', '2', '48', '1', '945', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=10203
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1082';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1082, 0, 0
                    , 305.00, 48.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2760
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1082', '1', '48', '0', '945', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=10204
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '946';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2115';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1081, 0, 0
                    , 360.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2763
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*360.00," WHERE transferproductid = 946;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1081', '2', '20', '1', '946', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10205
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1081';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1081, 0, 0
                    , 360.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2762
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1081', '1', '20', '0', '946', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10206
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '947';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2114';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1080, 0, 0
                    , 310.00, 40, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2765
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*310.00," WHERE transferproductid = 947;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1080', '2', '40', '1', '947', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10207
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1080';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1080, 0, 0
                    , 310.00, 40.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2764
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1080', '1', '40', '0', '947', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10208
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '948';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2113';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1079, 0, 0
                    , 350.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2767
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*350.00," WHERE transferproductid = 948;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1079', '2', '20', '1', '948', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10209
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1079';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1079, 0, 0
                    , 350.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2766
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1079', '1', '20', '0', '948', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10210
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '949';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2112';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1078, 0, 0
                    , 310.00, 46, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-46, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2769
UPDATE storemovement SET  buyPricesHistoryBookData = "46*2026-10-14*310.00," WHERE transferproductid = 949;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1078', '2', '46', '1', '949', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '46', '0', '1', '2026-10-14','0','0'); -- id=10211
UPDATE storedetail SET  productquantity = '46', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1078';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1078, 0, 0
                    , 310.00, 46.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+46.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2768
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1078', '1', '46', '0', '949', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '46', '1', '2026-10-14','0','0'); -- id=10212
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '950';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2111';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1077, 0, 0
                    , 330.00, 60, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2771
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*330.00," WHERE transferproductid = 950;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1077', '2', '60', '1', '950', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=10213
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1077';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1077, 0, 0
                    , 330.00, 60.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2770
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1077', '1', '60', '0', '950', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=10214
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '951';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2110';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1076, 0, 0
                    , 430.00, 60, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2773
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*430.00," WHERE transferproductid = 951;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1076', '2', '60', '1', '951', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=10215
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1076';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1076, 0, 0
                    , 430.00, 60.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2772
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1076', '1', '60', '0', '951', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=10216
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '952';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2109';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1075, 0, 0
                    , 280.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2775
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*280.00," WHERE transferproductid = 952;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1075', '2', '5', '1', '952', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10217
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1075';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1075, 0, 0
                    , 280.00, 5.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2774
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1075', '1', '5', '0', '952', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10218
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '953';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2108';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1074, 0, 0
                    , 270.00, 206, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-206, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2777
UPDATE storemovement SET  buyPricesHistoryBookData = "206*2026-10-14*270.00," WHERE transferproductid = 953;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1074', '2', '206', '1', '953', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '206', '0', '1', '2026-10-14','0','0'); -- id=10219
UPDATE storedetail SET  productquantity = '206', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1074';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1074, 0, 0
                    , 270.00, 206.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+206.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2776
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1074', '1', '206', '0', '953', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '206', '1', '2026-10-14','0','0'); -- id=10220
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '954';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2107';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1073, 0, 0
                    , 430.00, 25, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2779
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*430.00," WHERE transferproductid = 954;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1073', '2', '25', '1', '954', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10221
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1073';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1073, 0, 0
                    , 430.00, 25.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2778
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1073', '1', '25', '0', '954', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10222
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '955';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2106';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1072, 0, 0
                    , 430.00, 11, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-11, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2781
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2026-10-14*430.00," WHERE transferproductid = 955;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1072', '2', '11', '1', '955', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=10223
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1072';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1072, 0, 0
                    , 430.00, 11.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2780
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1072', '1', '11', '0', '955', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=10224
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '956';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2105';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1071, 0, 0
                    , 480.00, 25, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2783
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*480.00," WHERE transferproductid = 956;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1071', '2', '25', '1', '956', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10225
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1071';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1071, 0, 0
                    , 480.00, 25.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2782
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1071', '1', '25', '0', '956', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10226
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '957';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2104';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1070, 0, 0
                    , 520.00, 40, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2785
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*520.00," WHERE transferproductid = 957;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1070', '2', '40', '1', '957', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10227
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1070';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1070, 0, 0
                    , 520.00, 40.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2784
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1070', '1', '40', '0', '957', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10228
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '958';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2103';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1069, 0, 0
                    , 450.00, 40, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2787
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*450.00," WHERE transferproductid = 958;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1069', '2', '40', '1', '958', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10229
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1069';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1069, 0, 0
                    , 450.00, 40.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2786
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1069', '1', '40', '0', '958', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10230
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '959';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2102';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1068, 0, 0
                    , 400.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2789
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*400.00," WHERE transferproductid = 959;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1068', '2', '5', '1', '959', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10231
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1068';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1068, 0, 0
                    , 400.00, 5.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2788
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1068', '1', '5', '0', '959', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10232
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '960';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2101';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1067, 0, 0
                    , 435.00, 30, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2791
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*435.00," WHERE transferproductid = 960;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1067', '2', '30', '1', '960', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10233
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1067';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1067, 0, 0
                    , 435.00, 30.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2790
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1067', '1', '30', '0', '960', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10234
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '961';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2100';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1066, 0, 0
                    , 400.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2793
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*400.00," WHERE transferproductid = 961;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1066', '2', '20', '1', '961', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10235
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1066';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1066, 0, 0
                    , 400.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2792
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1066', '1', '20', '0', '961', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10236
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '962';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2099';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1065, 0, 0
                    , 475.00, 10, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2795
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*475.00," WHERE transferproductid = 962;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1065', '2', '10', '1', '962', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10237
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1065';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1065, 0, 0
                    , 475.00, 10.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2794
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1065', '1', '10', '0', '962', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10238
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '963';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2098';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1064, 0, 0
                    , 445.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2797
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*445.00," WHERE transferproductid = 963;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1064', '2', '5', '1', '963', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10239
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1064';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1064, 0, 0
                    , 445.00, 5.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2796
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1064', '1', '5', '0', '963', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10240
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '964';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2097';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1063, 0, 0
                    , 485.00, 15, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2799
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*485.00," WHERE transferproductid = 964;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1063', '2', '15', '1', '964', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10241
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1063';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1063, 0, 0
                    , 485.00, 15.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2798
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1063', '1', '15', '0', '964', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10242
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '965';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2096';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1062, 0, 0
                    , 450.00, 35, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2801
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2026-10-14*450.00," WHERE transferproductid = 965;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1062', '2', '35', '1', '965', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=10243
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1062';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1062, 0, 0
                    , 450.00, 35.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2800
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1062', '1', '35', '0', '965', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=10244
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '966';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2095';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1061, 0, 0
                    , 440.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2803
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*440.00," WHERE transferproductid = 966;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1061', '2', '5', '1', '966', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10245
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1061';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1061, 0, 0
                    , 440.00, 5.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2802
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1061', '1', '5', '0', '966', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10246
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '967';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2094';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 967;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1060', '2', '0', '1', '967', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10247
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1060';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1060', '1', '0', '0', '967', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10248
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '968';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2093';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1059, 0, 0
                    , 780.00, 11, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-11, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2805
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2026-10-14*780.00," WHERE transferproductid = 968;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1059', '2', '11', '1', '968', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=10249
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1059';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1059, 0, 0
                    , 780.00, 11.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2804
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1059', '1', '11', '0', '968', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=10250
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '969';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2092';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1058, 0, 0
                    , 360.00, 14, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-14, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2807
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2026-10-14*360.00," WHERE transferproductid = 969;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1058', '2', '14', '1', '969', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=10251
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1058';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1058, 0, 0
                    , 360.00, 14.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2806
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1058', '1', '14', '0', '969', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=10252
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '970';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2091';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1057, 0, 0
                    , 365.00, 3, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2809
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-14*365.00," WHERE transferproductid = 970;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1057', '2', '3', '1', '970', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=10253
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1057';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1057, 0, 0
                    , 365.00, 3.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2808
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1057', '1', '3', '0', '970', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=10254
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '971';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2090';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1056, 0, 0
                    , 430.00, 4, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2811
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2026-10-14*430.00," WHERE transferproductid = 971;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1056', '2', '4', '1', '971', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=10255
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1056';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1056, 0, 0
                    , 430.00, 4.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2810
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1056', '1', '4', '0', '971', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=10256
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '972';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2089';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1055, 0, 0
                    , 430.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2813
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*430.00," WHERE transferproductid = 972;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1055', '2', '20', '1', '972', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10257
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1055';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1055, 0, 0
                    , 430.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2812
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1055', '1', '20', '0', '972', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10258
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '973';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2088';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1054, 0, 0
                    , 485.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2815
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*485.00," WHERE transferproductid = 973;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1054', '2', '20', '1', '973', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10259
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1054';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1054, 0, 0
                    , 485.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2814
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1054', '1', '20', '0', '973', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10260
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '974';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2087';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1053, 0, 0
                    , 385.00, 24, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2817
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-14*385.00," WHERE transferproductid = 974;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1053', '2', '24', '1', '974', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=10261
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1053';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1053, 0, 0
                    , 385.00, 24.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2816
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1053', '1', '24', '0', '974', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=10262
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '975';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2086';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1052, 0, 0
                    , 385.00, 10, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2819
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*385.00," WHERE transferproductid = 975;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1052', '2', '10', '1', '975', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10263
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1052';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1052, 0, 0
                    , 385.00, 10.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2818
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1052', '1', '10', '0', '975', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10264
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '976';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2085';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1051, 0, 0
                    , 420.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2821
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*420.00," WHERE transferproductid = 976;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1051', '2', '5', '1', '976', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10265
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1051';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1051, 0, 0
                    , 420.00, 5.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2820
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1051', '1', '5', '0', '976', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10266
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '977';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2084';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1050, 0, 0
                    , 385.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2823
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*385.00," WHERE transferproductid = 977;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1050', '2', '20', '1', '977', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10267
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1050';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1050, 0, 0
                    , 385.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2822
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1050', '1', '20', '0', '977', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10268
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '978';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2083';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1049, 0, 0
                    , 345.00, 25, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2825
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*345.00," WHERE transferproductid = 978;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1049', '2', '25', '1', '978', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10269
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1049';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1049, 0, 0
                    , 345.00, 25.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2824
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1049', '1', '25', '0', '978', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10270
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '979';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2082';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1048, 0, 0
                    , 385.00, 13, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-13, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2827
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2026-10-14*385.00," WHERE transferproductid = 979;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1048', '2', '13', '1', '979', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '13', '0', '1', '2026-10-14','0','0'); -- id=10271
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1048';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1048, 0, 0
                    , 385.00, 13.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2826
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1048', '1', '13', '0', '979', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '13', '1', '2026-10-14','0','0'); -- id=10272
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '980';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2081';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1047, 0, 0
                    , 435.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2829
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*435.00," WHERE transferproductid = 980;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1047', '2', '20', '1', '980', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10273
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1047';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1047, 0, 0
                    , 435.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2828
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1047', '1', '20', '0', '980', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10274
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '981';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2080';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1046, 0, 0
                    , 300.00, 14, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-14, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2831
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2026-10-14*300.00," WHERE transferproductid = 981;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1046', '2', '14', '1', '981', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=10275
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1046';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1046, 0, 0
                    , 300.00, 14.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2830
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1046', '1', '14', '0', '981', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=10276
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '982';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2079';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 2, 1045, 0, 0
                    , 250.00, 65, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-65, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2834
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1045, 0, 0
                    , 250.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2835
UPDATE storemovement SET  buyPricesHistoryBookData = "65*2026-10-01*250.00,20*2026-10-14*250.00," WHERE transferproductid = 982;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1045', '2', '85', '1', '982', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '85', '0', '1', '2026-10-14','0','0'); -- id=10277
UPDATE storedetail SET  productquantity = '85', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1045';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-01', 1, 1045, 0, 0
                    , 250.00, 65, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+65, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=61
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1045, 0, 0
                    , 250.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2833
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1045', '1', '85', '0', '982', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '85', '1', '2026-10-14','0','0'); -- id=10278
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '983';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2078';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1044, 0, 0
                    , 270.00, 120, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-120, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2837
UPDATE storemovement SET  buyPricesHistoryBookData = "120*2026-10-14*270.00," WHERE transferproductid = 983;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1044', '2', '120', '1', '983', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '120', '0', '1', '2026-10-14','0','0'); -- id=10279
UPDATE storedetail SET  productquantity = '120', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1044';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1044, 0, 0
                    , 270.00, 120.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+120.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2836
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1044', '1', '120', '0', '983', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '120', '1', '2026-10-14','0','0'); -- id=10280
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '984';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2077';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1043, 0, 0
                    , 360.00, 10, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2839
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*360.00," WHERE transferproductid = 984;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1043', '2', '10', '1', '984', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10281
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1043';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1043, 0, 0
                    , 360.00, 10.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2838
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1043', '1', '10', '0', '984', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10282
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '985';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2076';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1042, 0, 0
                    , 150.00, 35, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2841
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2026-10-14*150.00," WHERE transferproductid = 985;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1042', '2', '35', '1', '985', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=10283
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1042';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1042, 0, 0
                    , 150.00, 35.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2840
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1042', '1', '35', '0', '985', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=10284
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '986';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2075';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1041, 0, 0
                    , 340.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2843
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*340.00," WHERE transferproductid = 986;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1041', '2', '20', '1', '986', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10285
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1041';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1041, 0, 0
                    , 340.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2842
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1041', '1', '20', '0', '986', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10286
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '987';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2074';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1040, 0, 0
                    , 300.00, 10, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2845
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*300.00," WHERE transferproductid = 987;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1040', '2', '10', '1', '987', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10287
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1040';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1040, 0, 0
                    , 300.00, 10.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2844
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1040', '1', '10', '0', '987', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10288
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '988';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2073';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1039, 0, 0
                    , 300.00, 30, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2847
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*300.00," WHERE transferproductid = 988;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1039', '2', '30', '1', '988', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10289
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1039';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1039, 0, 0
                    , 300.00, 30.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2846
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1039', '1', '30', '0', '988', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10290
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '989';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2072';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1038, 0, 0
                    , 290.00, 38, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-38, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2849
UPDATE storemovement SET  buyPricesHistoryBookData = "38*2026-10-14*290.00," WHERE transferproductid = 989;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1038', '2', '38', '1', '989', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '38', '0', '1', '2026-10-14','0','0'); -- id=10291
UPDATE storedetail SET  productquantity = '38', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1038';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1038, 0, 0
                    , 290.00, 38.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+38.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2848
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1038', '1', '38', '0', '989', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '38', '1', '2026-10-14','0','0'); -- id=10292
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '990';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2071';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1037, 0, 0
                    , 430.00, 35, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2851
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2026-10-14*430.00," WHERE transferproductid = 990;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1037', '2', '35', '1', '990', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=10293
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1037';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1037, 0, 0
                    , 430.00, 35.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2850
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1037', '1', '35', '0', '990', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=10294
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '991';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2070';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1036, 0, 0
                    , 380.00, 30, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2853
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*380.00," WHERE transferproductid = 991;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1036', '2', '30', '1', '991', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10295
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1036';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1036, 0, 0
                    , 380.00, 30.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2852
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1036', '1', '30', '0', '991', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10296
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '992';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2069';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1035, 0, 0
                    , 430.00, 40, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2855
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*430.00," WHERE transferproductid = 992;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1035', '2', '40', '1', '992', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10297
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1035';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1035, 0, 0
                    , 430.00, 40.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2854
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1035', '1', '40', '0', '992', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10298
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '993';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2068';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1034, 0, 0
                    , 400.00, 90, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-90, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2857
UPDATE storemovement SET  buyPricesHistoryBookData = "90*2026-10-14*400.00," WHERE transferproductid = 993;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1034', '2', '90', '1', '993', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '90', '0', '1', '2026-10-14','0','0'); -- id=10299
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1034';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1034, 0, 0
                    , 400.00, 90.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+90.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2856
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1034', '1', '90', '0', '993', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '90', '1', '2026-10-14','0','0'); -- id=10300
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '994';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2067';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1033, 0, 0
                    , 430.00, 50, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-50, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2859
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2026-10-14*430.00," WHERE transferproductid = 994;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1033', '2', '50', '1', '994', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=10301
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1033';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1033, 0, 0
                    , 430.00, 50.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2858
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1033', '1', '50', '0', '994', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=10302
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '995';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2066';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1032, 0, 0
                    , 390.00, 30, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2861
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*390.00," WHERE transferproductid = 995;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1032', '2', '30', '1', '995', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10303
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1032';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1032, 0, 0
                    , 390.00, 30.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2860
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1032', '1', '30', '0', '995', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10304
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '996';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2065';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1031, 0, 0
                    , 400.00, 65, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-65, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2863
UPDATE storemovement SET  buyPricesHistoryBookData = "65*2026-10-14*400.00," WHERE transferproductid = 996;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1031', '2', '65', '1', '996', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '65', '0', '1', '2026-10-14','0','0'); -- id=10305
UPDATE storedetail SET  productquantity = '65', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1031';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1031, 0, 0
                    , 400.00, 65.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+65.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2862
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1031', '1', '65', '0', '996', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '65', '1', '2026-10-14','0','0'); -- id=10306
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '997';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2064';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1030, 0, 0
                    , 370.00, 19, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-19, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2865
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2026-10-14*370.00," WHERE transferproductid = 997;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1030', '2', '19', '1', '997', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '19', '0', '1', '2026-10-14','0','0'); -- id=10307
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1030';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1030, 0, 0
                    , 370.00, 19.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2864
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1030', '1', '19', '0', '997', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '19', '1', '2026-10-14','0','0'); -- id=10308
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '998';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2063';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1029, 0, 0
                    , 380.00, 25, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2867
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*380.00," WHERE transferproductid = 998;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1029', '2', '25', '1', '998', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10309
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1029';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1029, 0, 0
                    , 380.00, 25.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2866
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1029', '1', '25', '0', '998', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10310
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '999';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2062';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1028, 0, 0
                    , 375.00, 45, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-45, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2869
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2026-10-14*375.00," WHERE transferproductid = 999;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1028', '2', '45', '1', '999', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=10311
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1028';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1028, 0, 0
                    , 375.00, 45.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2868
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1028', '1', '45', '0', '999', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=10312
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1000';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2061';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1027, 0, 0
                    , 430.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2871
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*430.00," WHERE transferproductid = 1000;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1027', '2', '5', '1', '1000', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10313
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1027';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1027, 0, 0
                    , 430.00, 5.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2870
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1027', '1', '5', '0', '1000', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10314
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1001';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2060';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1026, 0, 0
                    , 355.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2873
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*355.00," WHERE transferproductid = 1001;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1026', '2', '20', '1', '1001', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10315
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1026';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1026, 0, 0
                    , 355.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2872
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1026', '1', '20', '0', '1001', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10316
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1002';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2059';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1025, 0, 0
                    , 360.00, 30, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2875
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*360.00," WHERE transferproductid = 1002;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1025', '2', '30', '1', '1002', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10317
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1025';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1025, 0, 0
                    , 360.00, 30.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2874
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1025', '1', '30', '0', '1002', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10318
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1003';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2058';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1024, 0, 0
                    , 360.00, 95, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-95, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2877
UPDATE storemovement SET  buyPricesHistoryBookData = "95*2026-10-14*360.00," WHERE transferproductid = 1003;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1024', '2', '95', '1', '1003', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '95', '0', '1', '2026-10-14','0','0'); -- id=10319
UPDATE storedetail SET  productquantity = '95', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1024';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1024, 0, 0
                    , 360.00, 95.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+95.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2876
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1024', '1', '95', '0', '1003', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '95', '1', '2026-10-14','0','0'); -- id=10320
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1004';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2057';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1023, 0, 0
                    , 430.00, 40, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2879
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*430.00," WHERE transferproductid = 1004;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1023', '2', '40', '1', '1004', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10321
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1023';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1023, 0, 0
                    , 430.00, 40.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2878
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1023', '1', '40', '0', '1004', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10322
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1005';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2056';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1022, 0, 0
                    , 375.00, 14, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-14, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2881
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2026-10-14*375.00," WHERE transferproductid = 1005;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1022', '2', '14', '1', '1005', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=10323
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1022';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1022, 0, 0
                    , 375.00, 14.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2880
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1022', '1', '14', '0', '1005', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=10324
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1006';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2055';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1021, 0, 0
                    , 330.00, 145, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-145, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2883
UPDATE storemovement SET  buyPricesHistoryBookData = "145*2026-10-14*330.00," WHERE transferproductid = 1006;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1021', '2', '145', '1', '1006', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '145', '0', '1', '2026-10-14','0','0'); -- id=10325
UPDATE storedetail SET  productquantity = '145', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1021';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1021, 0, 0
                    , 330.00, 145.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+145.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2882
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1021', '1', '145', '0', '1006', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '145', '1', '2026-10-14','0','0'); -- id=10326
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1007';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2054';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1020, 0, 0
                    , 330.00, 54, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-54, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2885
UPDATE storemovement SET  buyPricesHistoryBookData = "54*2026-10-14*330.00," WHERE transferproductid = 1007;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1020', '2', '54', '1', '1007', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '54', '0', '1', '2026-10-14','0','0'); -- id=10327
UPDATE storedetail SET  productquantity = '54', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1020';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1020, 0, 0
                    , 330.00, 54.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+54.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2884
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1020', '1', '54', '0', '1007', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '54', '1', '2026-10-14','0','0'); -- id=10328
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1008';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2053';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1019, 0, 0
                    , 360.00, 52, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-52, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2887
UPDATE storemovement SET  buyPricesHistoryBookData = "52*2026-10-14*360.00," WHERE transferproductid = 1008;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1019', '2', '52', '1', '1008', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '52', '0', '1', '2026-10-14','0','0'); -- id=10329
UPDATE storedetail SET  productquantity = '52', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1019';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1019, 0, 0
                    , 360.00, 52.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+52.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2886
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1019', '1', '52', '0', '1008', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '52', '1', '2026-10-14','0','0'); -- id=10330
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1009';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2052';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1018, 0, 0
                    , 310.00, 26, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-26, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2889
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2026-10-14*310.00," WHERE transferproductid = 1009;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1018', '2', '26', '1', '1009', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '26', '0', '1', '2026-10-14','0','0'); -- id=10331
UPDATE storedetail SET  productquantity = '26', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1018';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1018, 0, 0
                    , 310.00, 26.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2888
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1018', '1', '26', '0', '1009', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '26', '1', '2026-10-14','0','0'); -- id=10332
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1010';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2051';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1017, 0, 0
                    , 375.00, 40, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2891
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*375.00," WHERE transferproductid = 1010;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1017', '2', '40', '1', '1010', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10333
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1017';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1017, 0, 0
                    , 375.00, 40.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2890
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1017', '1', '40', '0', '1010', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10334
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1011';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2050';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1016, 0, 0
                    , 490.00, 72, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2893
UPDATE storemovement SET  buyPricesHistoryBookData = "72*2026-10-14*490.00," WHERE transferproductid = 1011;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1016', '2', '72', '1', '1011', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=10335
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1016';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1016, 0, 0
                    , 490.00, 72.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2892
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1016', '1', '72', '0', '1011', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '72', '1', '2026-10-14','0','0'); -- id=10336
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1012';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2049';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1015, 0, 0
                    , 400.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2895
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*400.00," WHERE transferproductid = 1012;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1015', '2', '20', '1', '1012', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10337
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1015';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1015, 0, 0
                    , 400.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2894
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1015', '1', '20', '0', '1012', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10338
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1013';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2048';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1014, 0, 0
                    , 450.00, 42, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-42, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2897
UPDATE storemovement SET  buyPricesHistoryBookData = "42*2026-10-14*450.00," WHERE transferproductid = 1013;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1014', '2', '42', '1', '1013', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '42', '0', '1', '2026-10-14','0','0'); -- id=10339
UPDATE storedetail SET  productquantity = '42', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1014';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1014, 0, 0
                    , 450.00, 42.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+42.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2896
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1014', '1', '42', '0', '1013', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '42', '1', '2026-10-14','0','0'); -- id=10340
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1014';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2047';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1013, 0, 0
                    , 380.00, 4, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2899
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2026-10-14*380.00," WHERE transferproductid = 1014;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1013', '2', '4', '1', '1014', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=10341
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1013';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1013, 0, 0
                    , 380.00, 4.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2898
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1013', '1', '4', '0', '1014', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=10342
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1015';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2046';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1012, 0, 0
                    , 385.00, 34, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-34, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2901
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2026-10-14*385.00," WHERE transferproductid = 1015;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1012', '2', '34', '1', '1015', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '34', '0', '1', '2026-10-14','0','0'); -- id=10343
UPDATE storedetail SET  productquantity = '34', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1012';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1012, 0, 0
                    , 385.00, 34.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2900
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1012', '1', '34', '0', '1015', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '34', '1', '2026-10-14','0','0'); -- id=10344
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1016';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2045';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1011, 0, 0
                    , 570.00, 10, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2903
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*570.00," WHERE transferproductid = 1016;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1011', '2', '10', '1', '1016', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10345
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1011';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1011, 0, 0
                    , 570.00, 10.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2902
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1011', '1', '10', '0', '1016', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10346
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1017';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2044';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1017;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1010', '2', '0', '1', '1017', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10347
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1010';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1010', '1', '0', '0', '1017', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10348
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1018';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2043';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1009, 0, 0
                    , 415.00, 15, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2905
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*415.00," WHERE transferproductid = 1018;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1009', '2', '15', '1', '1018', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10349
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1009';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1009, 0, 0
                    , 415.00, 15.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2904
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1009', '1', '15', '0', '1018', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10350
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1019';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2042';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1008, 0, 0
                    , 380.00, 25, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2907
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*380.00," WHERE transferproductid = 1019;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1008', '2', '25', '1', '1019', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10351
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1008';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1008, 0, 0
                    , 380.00, 25.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2906
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1008', '1', '25', '0', '1019', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10352
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1020';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2041';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1007, 0, 0
                    , 410.00, 24, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2909
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-14*410.00," WHERE transferproductid = 1020;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1007', '2', '24', '1', '1020', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=10353
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1007';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1007, 0, 0
                    , 410.00, 24.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2908
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1007', '1', '24', '0', '1020', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=10354
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1021';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2040';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1006, 0, 0
                    , 490.00, 19, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-19, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2911
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2026-10-14*490.00," WHERE transferproductid = 1021;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1006', '2', '19', '1', '1021', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '19', '0', '1', '2026-10-14','0','0'); -- id=10355
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1006';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1006, 0, 0
                    , 490.00, 19.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2910
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1006', '1', '19', '0', '1021', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '19', '1', '2026-10-14','0','0'); -- id=10356
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1022';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2039';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1005, 0, 0
                    , 405.00, 6, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2913
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-14*405.00," WHERE transferproductid = 1022;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1005', '2', '6', '1', '1022', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=10357
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1005';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1005, 0, 0
                    , 405.00, 6.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2912
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1005', '1', '6', '0', '1022', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=10358
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1023';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2038';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1004, 0, 0
                    , 390.00, 21, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2915
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-10-14*390.00," WHERE transferproductid = 1023;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1004', '2', '21', '1', '1023', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '21', '0', '1', '2026-10-14','0','0'); -- id=10359
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1004';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1004, 0, 0
                    , 390.00, 21.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2914
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1004', '1', '21', '0', '1023', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '21', '1', '2026-10-14','0','0'); -- id=10360
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1024';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2037';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1003, 0, 0
                    , 425.00, 15, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2917
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*425.00," WHERE transferproductid = 1024;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1003', '2', '15', '1', '1024', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10361
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1003';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1003, 0, 0
                    , 425.00, 15.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2916
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1003', '1', '15', '0', '1024', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10362
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1025';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2036';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1002, 0, 0
                    , 395.00, 50, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-50, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2919
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2026-10-14*395.00," WHERE transferproductid = 1025;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1002', '2', '50', '1', '1025', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=10363
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1002';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1002, 0, 0
                    , 395.00, 50.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2918
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1002', '1', '50', '0', '1025', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=10364
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1026';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2035';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1001, 0, 0
                    , 365.00, 23, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-23, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2921
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2026-10-14*365.00," WHERE transferproductid = 1026;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1001', '2', '23', '1', '1026', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '23', '0', '1', '2026-10-14','0','0'); -- id=10365
UPDATE storedetail SET  productquantity = '23', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1001';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1001, 0, 0
                    , 365.00, 23.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2920
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1001', '1', '23', '0', '1026', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '23', '1', '2026-10-14','0','0'); -- id=10366
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1027';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2034';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 1000, 0, 0
                    , 615.00, 48, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2923
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-14*615.00," WHERE transferproductid = 1027;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1000', '2', '48', '1', '1027', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=10367
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1000';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 1000, 0, 0
                    , 615.00, 48.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2922
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1000', '1', '48', '0', '1027', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=10368
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1028';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2033';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 999, 0, 0
                    , 435.00, 25, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2925
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*435.00," WHERE transferproductid = 1028;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('999', '2', '25', '1', '1028', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10369
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '999';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 999, 0, 0
                    , 435.00, 25.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2924
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('999', '1', '25', '0', '1028', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10370
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1029';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2032';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 998, 0, 0
                    , 450.00, 30, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2927
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*450.00," WHERE transferproductid = 1029;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('998', '2', '30', '1', '1029', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10371
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '998';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 998, 0, 0
                    , 450.00, 30.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2926
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('998', '1', '30', '0', '1029', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10372
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1030';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2031';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 997, 0, 0
                    , 450.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2929
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*450.00," WHERE transferproductid = 1030;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('997', '2', '20', '1', '1030', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10373
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '997';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 997, 0, 0
                    , 450.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2928
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('997', '1', '20', '0', '1030', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10374
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1031';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2030';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1031;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('996', '2', '0', '1', '1031', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10375
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '996';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('996', '1', '0', '0', '1031', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10376
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1032';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2029';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 995, 0, 0
                    , 500.00, 25, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2931
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*500.00," WHERE transferproductid = 1032;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('995', '2', '25', '1', '1032', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10377
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '995';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 995, 0, 0
                    , 500.00, 25.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2930
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('995', '1', '25', '0', '1032', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10378
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1033';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2028';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 994, 0, 0
                    , 465.00, 25, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2933
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*465.00," WHERE transferproductid = 1033;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('994', '2', '25', '1', '1033', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10379
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '994';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 994, 0, 0
                    , 465.00, 25.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2932
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('994', '1', '25', '0', '1033', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10380
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1034';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2027';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 993, 0, 0
                    , 440.00, 25, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2935
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*440.00," WHERE transferproductid = 1034;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('993', '2', '25', '1', '1034', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10381
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '993';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 993, 0, 0
                    , 440.00, 25.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2934
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('993', '1', '25', '0', '1034', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10382
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1035';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2026';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 992, 0, 0
                    , 500.00, 45, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-45, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2937
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2026-10-14*500.00," WHERE transferproductid = 1035;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('992', '2', '45', '1', '1035', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=10383
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '992';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 992, 0, 0
                    , 500.00, 45.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2936
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('992', '1', '45', '0', '1035', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=10384
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1036';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2025';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 991, 0, 0
                    , 500.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2939
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*500.00," WHERE transferproductid = 1036;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('991', '2', '20', '1', '1036', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10385
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '991';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 991, 0, 0
                    , 500.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2938
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('991', '1', '20', '0', '1036', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10386
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1037';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2024';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 990, 0, 0
                    , 440.00, 25, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2941
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*440.00," WHERE transferproductid = 1037;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('990', '2', '25', '1', '1037', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10387
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '990';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 990, 0, 0
                    , 440.00, 25.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2940
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('990', '1', '25', '0', '1037', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10388
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1038';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2023';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 989, 0, 0
                    , 490.00, 15, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2943
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*490.00," WHERE transferproductid = 1038;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('989', '2', '15', '1', '1038', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10389
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '989';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 989, 0, 0
                    , 490.00, 15.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2942
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('989', '1', '15', '0', '1038', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10390
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1039';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2022';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 988, 0, 0
                    , 500.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2945
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*500.00," WHERE transferproductid = 1039;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('988', '2', '20', '1', '1039', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10391
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '988';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 988, 0, 0
                    , 500.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2944
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('988', '1', '20', '0', '1039', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10392
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1040';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2021';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 987, 0, 0
                    , 485.00, 14, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-14, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2947
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2026-10-14*485.00," WHERE transferproductid = 1040;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('987', '2', '14', '1', '1040', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=10393
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '987';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 987, 0, 0
                    , 485.00, 14.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2946
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('987', '1', '14', '0', '1040', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=10394
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1041';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2020';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 986, 0, 0
                    , 460.00, 25, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2949
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*460.00," WHERE transferproductid = 1041;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('986', '2', '25', '1', '1041', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10395
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '986';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 986, 0, 0
                    , 460.00, 25.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2948
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('986', '1', '25', '0', '1041', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10396
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1042';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2019';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 985, 0, 0
                    , 465.00, 9, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2951
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-14*465.00," WHERE transferproductid = 1042;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('985', '2', '9', '1', '1042', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=10397
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '985';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 985, 0, 0
                    , 465.00, 9.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2950
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('985', '1', '9', '0', '1042', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=10398
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1043';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2018';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 984, 0, 0
                    , 485.00, 40, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2953
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*485.00," WHERE transferproductid = 1043;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('984', '2', '40', '1', '1043', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10399
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '984';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 984, 0, 0
                    , 485.00, 40.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2952
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('984', '1', '40', '0', '1043', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10400
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1044';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2017';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 983, 0, 0
                    , 435.00, 65, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-65, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2955
UPDATE storemovement SET  buyPricesHistoryBookData = "65*2026-10-14*435.00," WHERE transferproductid = 1044;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('983', '2', '65', '1', '1044', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '65', '0', '1', '2026-10-14','0','0'); -- id=10401
UPDATE storedetail SET  productquantity = '65', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '983';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 983, 0, 0
                    , 435.00, 65.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+65.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2954
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('983', '1', '65', '0', '1044', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '65', '1', '2026-10-14','0','0'); -- id=10402
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1045';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2016';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 982, 0, 0
                    , 470.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2957
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*470.00," WHERE transferproductid = 1045;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('982', '2', '20', '1', '1045', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10403
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '982';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 982, 0, 0
                    , 470.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2956
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('982', '1', '20', '0', '1045', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10404
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1046';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2015';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 981, 0, 0
                    , 460.00, 10, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2959
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*460.00," WHERE transferproductid = 1046;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('981', '2', '10', '1', '1046', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10405
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '981';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 981, 0, 0
                    , 460.00, 10.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2958
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('981', '1', '10', '0', '1046', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10406
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1047';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2014';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 980, 0, 0
                    , 480.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2961
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*480.00," WHERE transferproductid = 1047;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('980', '2', '5', '1', '1047', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10407
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '980';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 980, 0, 0
                    , 480.00, 5.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2960
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('980', '1', '5', '0', '1047', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10408
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1048';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2013';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 979, 0, 0
                    , 415.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2963
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*415.00," WHERE transferproductid = 1048;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('979', '2', '20', '1', '1048', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10409
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '979';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 979, 0, 0
                    , 415.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2962
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('979', '1', '20', '0', '1048', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10410
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1049';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2012';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 978, 0, 0
                    , 360.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2965
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*360.00," WHERE transferproductid = 1049;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('978', '2', '5', '1', '1049', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10411
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '978';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 978, 0, 0
                    , 360.00, 5.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2964
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('978', '1', '5', '0', '1049', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10412
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1050';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2011';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 977, 0, 0
                    , 400.00, 60, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2967
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*400.00," WHERE transferproductid = 1050;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('977', '2', '60', '1', '1050', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=10413
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '977';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 977, 0, 0
                    , 400.00, 60.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2966
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('977', '1', '60', '0', '1050', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=10414
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1051';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2010';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 976, 0, 0
                    , 365.00, 105, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-105, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2969
UPDATE storemovement SET  buyPricesHistoryBookData = "105*2026-10-14*365.00," WHERE transferproductid = 1051;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('976', '2', '105', '1', '1051', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '105', '0', '1', '2026-10-14','0','0'); -- id=10415
UPDATE storedetail SET  productquantity = '105', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '976';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 976, 0, 0
                    , 365.00, 105.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+105.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2968
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('976', '1', '105', '0', '1051', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '105', '1', '2026-10-14','0','0'); -- id=10416
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1052';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2009';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 975, 0, 0
                    , 390.00, 45, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-45, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2971
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2026-10-14*390.00," WHERE transferproductid = 1052;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('975', '2', '45', '1', '1052', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=10417
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '975';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 975, 0, 0
                    , 390.00, 45.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2970
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('975', '1', '45', '0', '1052', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=10418
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1053';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2008';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 974, 0, 0
                    , 530.00, 15, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2973
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*530.00," WHERE transferproductid = 1053;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('974', '2', '15', '1', '1053', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10419
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '974';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 974, 0, 0
                    , 530.00, 15.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2972
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('974', '1', '15', '0', '1053', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10420
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1054';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2007';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 973, 0, 0
                    , 430.00, 40, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2975
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*430.00," WHERE transferproductid = 1054;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('973', '2', '40', '1', '1054', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10421
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '973';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 973, 0, 0
                    , 430.00, 40.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2974
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('973', '1', '40', '0', '1054', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10422
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1055';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2006';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 972, 0, 0
                    , 450.00, 55, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-55, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2977
UPDATE storemovement SET  buyPricesHistoryBookData = "55*2026-10-14*450.00," WHERE transferproductid = 1055;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('972', '2', '55', '1', '1055', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '55', '0', '1', '2026-10-14','0','0'); -- id=10423
UPDATE storedetail SET  productquantity = '55', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '972';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 972, 0, 0
                    , 450.00, 55.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+55.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2976
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('972', '1', '55', '0', '1055', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '55', '1', '2026-10-14','0','0'); -- id=10424
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1056';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2005';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 971, 0, 0
                    , 360.00, 15, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2979
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*360.00," WHERE transferproductid = 1056;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('971', '2', '15', '1', '1056', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10425
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '971';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 971, 0, 0
                    , 360.00, 15.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2978
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('971', '1', '15', '0', '1056', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10426
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1057';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2004';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 970, 0, 0
                    , 305.00, 13, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-13, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2981
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2026-10-14*305.00," WHERE transferproductid = 1057;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('970', '2', '13', '1', '1057', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '13', '0', '1', '2026-10-14','0','0'); -- id=10427
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '970';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 970, 0, 0
                    , 305.00, 13.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2980
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('970', '1', '13', '0', '1057', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '13', '1', '2026-10-14','0','0'); -- id=10428
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1058';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2003';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 969, 0, 0
                    , 325.00, 14, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-14, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2983
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2026-10-14*325.00," WHERE transferproductid = 1058;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('969', '2', '14', '1', '1058', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=10429
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '969';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 969, 0, 0
                    , 325.00, 14.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2982
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('969', '1', '14', '0', '1058', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=10430
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1059';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2002';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 968, 0, 0
                    , 340.00, 10, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2985
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*340.00," WHERE transferproductid = 1059;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('968', '2', '10', '1', '1059', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10431
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '968';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 968, 0, 0
                    , 340.00, 10.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2984
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('968', '1', '10', '0', '1059', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10432
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1060';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2001';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 967, 0, 0
                    , 440.00, 10, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2987
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*440.00," WHERE transferproductid = 1060;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('967', '2', '10', '1', '1060', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10433
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '967';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 967, 0, 0
                    , 440.00, 10.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2986
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('967', '1', '10', '0', '1060', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10434
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1061';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2000';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 966, 0, 0
                    , 350.00, 10, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2989
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*350.00," WHERE transferproductid = 1061;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('966', '2', '10', '1', '1061', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10435
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '966';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 966, 0, 0
                    , 350.00, 10.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2988
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('966', '1', '10', '0', '1061', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10436
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1062';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1999';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 965, 0, 0
                    , 460.00, 60, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2991
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*460.00," WHERE transferproductid = 1062;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('965', '2', '60', '1', '1062', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=10437
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '965';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 965, 0, 0
                    , 460.00, 60.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2990
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('965', '1', '60', '0', '1062', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=10438
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1063';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1998';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 964, 0, 0
                    , 375.00, 55, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-55, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2993
UPDATE storemovement SET  buyPricesHistoryBookData = "55*2026-10-14*375.00," WHERE transferproductid = 1063;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('964', '2', '55', '1', '1063', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '55', '0', '1', '2026-10-14','0','0'); -- id=10439
UPDATE storedetail SET  productquantity = '55', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '964';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 964, 0, 0
                    , 375.00, 55.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+55.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2992
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('964', '1', '55', '0', '1063', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '55', '1', '2026-10-14','0','0'); -- id=10440
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1064';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1997';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 963, 0, 0
                    , 470.00, 40, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2995
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*470.00," WHERE transferproductid = 1064;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('963', '2', '40', '1', '1064', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10441
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '963';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 963, 0, 0
                    , 470.00, 40.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2994
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('963', '1', '40', '0', '1064', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10442
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1065';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1996';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1065;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('962', '2', '-1', '1', '1065', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=10443
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '962';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('962', '1', '-1', '0', '1065', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=10444
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1066';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1995';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 961, 0, 0
                    , 375.00, 15, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2997
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*375.00," WHERE transferproductid = 1066;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('961', '2', '15', '1', '1066', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10445
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '961';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 961, 0, 0
                    , 375.00, 15.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2996
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('961', '1', '15', '0', '1066', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10446
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1067';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1994';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1067;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('960', '2', '0', '1', '1067', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10447
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '960';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('960', '1', '0', '0', '1067', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10448
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1068';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1993';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1068;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('959', '2', '0', '1', '1068', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10449
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '959';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('959', '1', '0', '0', '1068', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10450
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1069';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1992';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 958, 0, 0
                    , 445.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2999
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*445.00," WHERE transferproductid = 1069;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('958', '2', '5', '1', '1069', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10451
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '958';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 958, 0, 0
                    , 445.00, 5.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=2998
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('958', '1', '5', '0', '1069', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10452
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1070';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1991';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1070;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('957', '2', '0', '1', '1070', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10453
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '957';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('957', '1', '0', '0', '1070', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10454
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1071';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1990';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1071;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('956', '2', '0', '1', '1071', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10455
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '956';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('956', '1', '0', '0', '1071', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10456
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1072';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1989';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 955, 0, 0
                    , 475.00, 10, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3001
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*475.00," WHERE transferproductid = 1072;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('955', '2', '10', '1', '1072', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10457
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '955';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 955, 0, 0
                    , 475.00, 10.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3000
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('955', '1', '10', '0', '1072', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10458
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1073';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1988';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1073;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('954', '2', '-1', '1', '1073', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=10459
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '954';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('954', '1', '-1', '0', '1073', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=10460
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1074';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1987';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1074;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('953', '2', '0', '1', '1074', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10461
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '953';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('953', '1', '0', '0', '1074', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10462
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1075';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1986';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 952, 0, 0
                    , 395.00, 30, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3003
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*395.00," WHERE transferproductid = 1075;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('952', '2', '30', '1', '1075', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10463
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '952';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 952, 0, 0
                    , 395.00, 30.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3002
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('952', '1', '30', '0', '1075', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10464
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1076';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1985';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 951, 0, 0
                    , 570.00, 20, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3005
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*570.00," WHERE transferproductid = 1076;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('951', '2', '20', '1', '1076', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10465
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '951';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 951, 0, 0
                    , 570.00, 20.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3004
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('951', '1', '20', '0', '1076', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10466
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1077';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1984';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 950, 0, 0
                    , 570.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3007
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*570.00," WHERE transferproductid = 1077;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('950', '2', '5', '1', '1077', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10467
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '950';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 950, 0, 0
                    , 570.00, 5.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3006
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('950', '1', '5', '0', '1077', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10468
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1078';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1983';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 949, 0, 0
                    , 580.00, 10, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3009
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*580.00," WHERE transferproductid = 1078;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('949', '2', '10', '1', '1078', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10469
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '949';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 949, 0, 0
                    , 580.00, 10.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3008
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('949', '1', '10', '0', '1078', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10470
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1079';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1982';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 948, 0, 0
                    , 520.00, 15, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3011
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*520.00," WHERE transferproductid = 1079;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('948', '2', '15', '1', '1079', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10471
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '948';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 948, 0, 0
                    , 520.00, 15.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3010
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('948', '1', '15', '0', '1079', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10472
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1080';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1981';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 947, 0, 0
                    , 550.00, 19, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-19, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3013
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2026-10-14*550.00," WHERE transferproductid = 1080;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('947', '2', '19', '1', '1080', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '19', '0', '1', '2026-10-14','0','0'); -- id=10473
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '947';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 947, 0, 0
                    , 550.00, 19.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3012
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('947', '1', '19', '0', '1080', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '19', '1', '2026-10-14','0','0'); -- id=10474
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1081';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1980';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1081;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('946', '2', '0', '1', '1081', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10475
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '946';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('946', '1', '0', '0', '1081', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10476
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1082';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1979';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 2, 945, 0, 0
                    , 510.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3016
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 945, 0, 0
                    , 510.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3017
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-09-30*510.00,5*2026-10-14*510.00," WHERE transferproductid = 1082;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('945', '2', '10', '1', '1082', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10477
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '945';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-30', 1, 945, 0, 0
                    , 510.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=24
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 945, 0, 0
                    , 510.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3015
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('945', '1', '10', '0', '1082', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10478
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1083';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1978';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1083;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('944', '2', '0', '1', '1083', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10479
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '944';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('944', '1', '0', '0', '1083', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10480
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1084';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1977';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 943, 0, 0
                    , 390.00, 94, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-94, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3019
UPDATE storemovement SET  buyPricesHistoryBookData = "94*2026-10-14*390.00," WHERE transferproductid = 1084;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('943', '2', '94', '1', '1084', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '94', '0', '1', '2026-10-14','0','0'); -- id=10481
UPDATE storedetail SET  productquantity = '94', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '943';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 943, 0, 0
                    , 390.00, 94.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+94.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3018
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('943', '1', '94', '0', '1084', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '94', '1', '2026-10-14','0','0'); -- id=10482
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1085';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1976';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 942, 0, 0
                    , 480.00, 2, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-2, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3021
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2026-10-14*480.00," WHERE transferproductid = 1085;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('942', '2', '2', '1', '1085', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=10483
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '942';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 942, 0, 0
                    , 480.00, 2.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3020
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('942', '1', '2', '0', '1085', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=10484
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1086';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1975';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 941, 0, 0
                    , 570.00, 15, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3023
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*570.00," WHERE transferproductid = 1086;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('941', '2', '15', '1', '1086', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10485
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '941';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 941, 0, 0
                    , 570.00, 15.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3022
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('941', '1', '15', '0', '1086', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10486
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1087';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1974';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 940, 0, 0
                    , 390.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3025
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*390.00," WHERE transferproductid = 1087;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('940', '2', '5', '1', '1087', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10487
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '940';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 940, 0, 0
                    , 390.00, 5.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3024
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('940', '1', '5', '0', '1087', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10488
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1088';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1973';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 939, 0, 0
                    , 560.00, 10, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3027
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*560.00," WHERE transferproductid = 1088;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('939', '2', '10', '1', '1088', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10489
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '939';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 939, 0, 0
                    , 560.00, 10.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3026
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('939', '1', '10', '0', '1088', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10490
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1089';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1972';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 938, 0, 0
                    , 560.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3029
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*560.00," WHERE transferproductid = 1089;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('938', '2', '5', '1', '1089', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10491
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '938';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 938, 0, 0
                    , 560.00, 5.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3028
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('938', '1', '5', '0', '1089', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10492
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1090';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1971';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 937, 0, 0
                    , 570.00, 34, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-34, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3031
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2026-10-14*570.00," WHERE transferproductid = 1090;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('937', '2', '34', '1', '1090', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '34', '0', '1', '2026-10-14','0','0'); -- id=10493
UPDATE storedetail SET  productquantity = '34', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '937';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 937, 0, 0
                    , 570.00, 34.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3030
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('937', '1', '34', '0', '1090', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '34', '1', '2026-10-14','0','0'); -- id=10494
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1091';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1970';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 936, 0, 0
                    , 555.00, 15, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3033
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*555.00," WHERE transferproductid = 1091;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('936', '2', '15', '1', '1091', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10495
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '936';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 936, 0, 0
                    , 555.00, 15.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3032
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('936', '1', '15', '0', '1091', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10496
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1092';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1969';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 935, 0, 0
                    , 480.00, 9, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3035
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-14*480.00," WHERE transferproductid = 1092;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('935', '2', '9', '1', '1092', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=10497
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '935';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 935, 0, 0
                    , 480.00, 9.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3034
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('935', '1', '9', '0', '1092', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=10498
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1093';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1968';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 934, 0, 0
                    , 590.00, 5, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3037
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*590.00," WHERE transferproductid = 1093;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('934', '2', '5', '1', '1093', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10499
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '934';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 934, 0, 0
                    , 590.00, 5.00, 0, 0, 1, '2026-10-14 18:01:07')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:07' ; -- id=3036
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('934', '1', '5', '0', '1093', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10500
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1094';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1967';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 933, 0, 0
                    , 440.00, 15, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3039
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*440.00," WHERE transferproductid = 1094;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('933', '2', '15', '1', '1094', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10501
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '933';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 933, 0, 0
                    , 440.00, 15.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3038
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('933', '1', '15', '0', '1094', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10502
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1095';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1966';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 932, 0, 0
                    , 580.00, 5, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3041
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*580.00," WHERE transferproductid = 1095;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('932', '2', '5', '1', '1095', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10503
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '932';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 932, 0, 0
                    , 580.00, 5.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3040
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('932', '1', '5', '0', '1095', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10504
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1096';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1965';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 931, 0, 0
                    , 570.00, 10, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3043
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*570.00," WHERE transferproductid = 1096;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('931', '2', '10', '1', '1096', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10505
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '931';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 931, 0, 0
                    , 570.00, 10.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3042
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('931', '1', '10', '0', '1096', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10506
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1097';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1964';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 930, 0, 0
                    , 530.00, 10, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3045
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*530.00," WHERE transferproductid = 1097;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('930', '2', '10', '1', '1097', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10507
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '930';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 930, 0, 0
                    , 530.00, 10.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3044
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('930', '1', '10', '0', '1097', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10508
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1098';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1963';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 929, 0, 0
                    , 560.00, 20, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3047
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*560.00," WHERE transferproductid = 1098;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('929', '2', '20', '1', '1098', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10509
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '929';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 929, 0, 0
                    , 560.00, 20.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3046
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('929', '1', '20', '0', '1098', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10510
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1099';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1962';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 928, 0, 0
                    , 405.00, 37, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-37, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3049
UPDATE storemovement SET  buyPricesHistoryBookData = "37*2026-10-14*405.00," WHERE transferproductid = 1099;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('928', '2', '37', '1', '1099', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '37', '0', '1', '2026-10-14','0','0'); -- id=10511
UPDATE storedetail SET  productquantity = '37', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '928';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 928, 0, 0
                    , 405.00, 37.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3048
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('928', '1', '37', '0', '1099', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '37', '1', '2026-10-14','0','0'); -- id=10512
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1100';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1961';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 927, 0, 0
                    , 480.00, 60, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3051
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*480.00," WHERE transferproductid = 1100;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('927', '2', '60', '1', '1100', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=10513
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '927';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 927, 0, 0
                    , 480.00, 60.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3050
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('927', '1', '60', '0', '1100', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=10514
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1101';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1960';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1101;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('926', '2', '0', '1', '1101', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10515
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '926';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('926', '1', '0', '0', '1101', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10516
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1102';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1959';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 925, 0, 0
                    , 580.00, 5, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3053
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*580.00," WHERE transferproductid = 1102;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('925', '2', '5', '1', '1102', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10517
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '925';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 925, 0, 0
                    , 580.00, 5.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3052
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('925', '1', '5', '0', '1102', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10518
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1103';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1958';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 924, 0, 0
                    , 580.00, 20, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3055
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*580.00," WHERE transferproductid = 1103;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('924', '2', '20', '1', '1103', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10519
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '924';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 924, 0, 0
                    , 580.00, 20.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3054
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('924', '1', '20', '0', '1103', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10520
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1104';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1957';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 923, 0, 0
                    , 580.00, 10, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3057
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*580.00," WHERE transferproductid = 1104;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('923', '2', '10', '1', '1104', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10521
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '923';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 923, 0, 0
                    , 580.00, 10.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3056
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('923', '1', '10', '0', '1104', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10522
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1105';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1956';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 922, 0, 0
                    , 530.00, 10, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3059
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*530.00," WHERE transferproductid = 1105;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('922', '2', '10', '1', '1105', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10523
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '922';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 922, 0, 0
                    , 530.00, 10.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3058
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('922', '1', '10', '0', '1105', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10524
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1106';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1955';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 921, 0, 0
                    , 620.00, 10, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3061
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*620.00," WHERE transferproductid = 1106;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('921', '2', '10', '1', '1106', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10525
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '921';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 921, 0, 0
                    , 620.00, 10.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3060
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('921', '1', '10', '0', '1106', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10526
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1107';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1954';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1107;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('920', '2', '0', '1', '1107', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10527
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '920';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('920', '1', '0', '0', '1107', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10528
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1108';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1953';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 919, 0, 0
                    , 615.00, 10, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3063
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*615.00," WHERE transferproductid = 1108;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('919', '2', '10', '1', '1108', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10529
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '919';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 919, 0, 0
                    , 615.00, 10.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3062
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('919', '1', '10', '0', '1108', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10530
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1109';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1952';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 918, 0, 0
                    , 490.00, 40, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3065
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*490.00," WHERE transferproductid = 1109;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('918', '2', '40', '1', '1109', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10531
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '918';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 918, 0, 0
                    , 490.00, 40.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3064
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('918', '1', '40', '0', '1109', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10532
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1110';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1951';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 917, 0, 0
                    , 500.00, 20, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3067
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*500.00," WHERE transferproductid = 1110;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('917', '2', '20', '1', '1110', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10533
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '917';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 917, 0, 0
                    , 500.00, 20.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3066
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('917', '1', '20', '0', '1110', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10534
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1111';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1950';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1111;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('916', '2', '0', '1', '1111', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10535
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '916';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('916', '1', '0', '0', '1111', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10536
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1112';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1949';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 915, 0, 0
                    , 555.00, 4, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3069
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2026-10-14*555.00," WHERE transferproductid = 1112;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('915', '2', '4', '1', '1112', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=10537
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '915';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 915, 0, 0
                    , 555.00, 4.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3068
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('915', '1', '4', '0', '1112', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=10538
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1113';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1948';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 914, 0, 0
                    , 720.00, 15, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3071
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*720.00," WHERE transferproductid = 1113;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('914', '2', '15', '1', '1113', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10539
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '914';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 914, 0, 0
                    , 720.00, 15.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3070
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('914', '1', '15', '0', '1113', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10540
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1114';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1947';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 913, 0, 0
                    , 410.00, 3, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-3, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3073
UPDATE storemovement SET  buyPricesHistoryBookData = "3*2026-10-14*410.00," WHERE transferproductid = 1114;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('913', '2', '3', '1', '1114', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '3', '0', '1', '2026-10-14','0','0'); -- id=10541
UPDATE storedetail SET  productquantity = '3', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '913';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 913, 0, 0
                    , 410.00, 3.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+3.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3072
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('913', '1', '3', '0', '1114', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '3', '1', '2026-10-14','0','0'); -- id=10542
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1115';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1946';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 912, 0, 0
                    , 470.00, 15, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3075
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*470.00," WHERE transferproductid = 1115;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('912', '2', '15', '1', '1115', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10543
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '912';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 912, 0, 0
                    , 470.00, 15.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3074
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('912', '1', '15', '0', '1115', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10544
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1116';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1945';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 911, 0, 0
                    , 655.00, 18, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3077
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-14*655.00," WHERE transferproductid = 1116;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('911', '2', '18', '1', '1116', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=10545
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '911';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 911, 0, 0
                    , 655.00, 18.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3076
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('911', '1', '18', '0', '1116', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=10546
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1117';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1944';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 910, 0, 0
                    , 265.00, 25, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3079
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*265.00," WHERE transferproductid = 1117;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('910', '2', '25', '1', '1117', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10547
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '910';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 910, 0, 0
                    , 265.00, 25.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3078
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('910', '1', '25', '0', '1117', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10548
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1118';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1943';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 909, 0, 0
                    , 335.00, 10, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3081
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*335.00," WHERE transferproductid = 1118;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('909', '2', '10', '1', '1118', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10549
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '909';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 909, 0, 0
                    , 335.00, 10.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3080
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('909', '1', '10', '0', '1118', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10550
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1119';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1942';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 908, 0, 0
                    , 245.00, 11, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-11, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3083
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2026-10-14*245.00," WHERE transferproductid = 1119;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('908', '2', '11', '1', '1119', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=10551
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '908';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 908, 0, 0
                    , 245.00, 11.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3082
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('908', '1', '11', '0', '1119', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=10552
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1120';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1941';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 907, 0, 0
                    , 295.00, 20, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3085
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*295.00," WHERE transferproductid = 1120;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('907', '2', '20', '1', '1120', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10553
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '907';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 907, 0, 0
                    , 295.00, 20.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3084
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('907', '1', '20', '0', '1120', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10554
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1121';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1940';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 906, 0, 0
                    , 315.00, 37, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-37, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3087
UPDATE storemovement SET  buyPricesHistoryBookData = "37*2026-10-14*315.00," WHERE transferproductid = 1121;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('906', '2', '37', '1', '1121', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '37', '0', '1', '2026-10-14','0','0'); -- id=10555
UPDATE storedetail SET  productquantity = '37', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '906';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 906, 0, 0
                    , 315.00, 37.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+37.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3086
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('906', '1', '37', '0', '1121', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '37', '1', '2026-10-14','0','0'); -- id=10556
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1122';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1939';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 905, 0, 0
                    , 445.00, 5, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3089
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*445.00," WHERE transferproductid = 1122;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('905', '2', '5', '1', '1122', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10557
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '905';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 905, 0, 0
                    , 445.00, 5.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3088
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('905', '1', '5', '0', '1122', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10558
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1123';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1938';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 904, 0, 0
                    , 400.00, 85, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-85, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3091
UPDATE storemovement SET  buyPricesHistoryBookData = "85*2026-10-14*400.00," WHERE transferproductid = 1123;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('904', '2', '85', '1', '1123', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '85', '0', '1', '2026-10-14','0','0'); -- id=10559
UPDATE storedetail SET  productquantity = '85', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '904';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 904, 0, 0
                    , 400.00, 85.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+85.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3090
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('904', '1', '85', '0', '1123', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '85', '1', '2026-10-14','0','0'); -- id=10560
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1124';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1937';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 903, 0, 0
                    , 390.00, 50, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-50, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3093
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2026-10-14*390.00," WHERE transferproductid = 1124;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('903', '2', '50', '1', '1124', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=10561
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '903';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 903, 0, 0
                    , 390.00, 50.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3092
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('903', '1', '50', '0', '1124', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=10562
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1125';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1936';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 902, 0, 0
                    , 430.00, 90, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-90, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3095
UPDATE storemovement SET  buyPricesHistoryBookData = "90*2026-10-14*430.00," WHERE transferproductid = 1125;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('902', '2', '90', '1', '1125', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '90', '0', '1', '2026-10-14','0','0'); -- id=10563
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '902';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 902, 0, 0
                    , 430.00, 90.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+90.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3094
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('902', '1', '90', '0', '1125', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '90', '1', '2026-10-14','0','0'); -- id=10564
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1126';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1935';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 901, 0, 0
                    , 395.00, 5, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3097
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*395.00," WHERE transferproductid = 1126;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('901', '2', '5', '1', '1126', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10565
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '901';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 901, 0, 0
                    , 395.00, 5.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3096
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('901', '1', '5', '0', '1126', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10566
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1127';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1934';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 900, 0, 0
                    , 330.00, 60, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3099
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*330.00," WHERE transferproductid = 1127;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('900', '2', '60', '1', '1127', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=10567
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '900';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 900, 0, 0
                    , 330.00, 60.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3098
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('900', '1', '60', '0', '1127', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=10568
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1128';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1933';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 899, 0, 0
                    , 350.00, 35, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3101
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2026-10-14*350.00," WHERE transferproductid = 1128;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('899', '2', '35', '1', '1128', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=10569
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '899';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 899, 0, 0
                    , 350.00, 35.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3100
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('899', '1', '35', '0', '1128', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=10570
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1129';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1932';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 898, 0, 0
                    , 380.00, 15, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3103
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*380.00," WHERE transferproductid = 1129;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('898', '2', '15', '1', '1129', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10571
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '898';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 898, 0, 0
                    , 380.00, 15.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3102
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('898', '1', '15', '0', '1129', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10572
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1130';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1931';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 897, 0, 0
                    , 270.00, 30, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3105
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*270.00," WHERE transferproductid = 1130;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('897', '2', '30', '1', '1130', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10573
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '897';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 897, 0, 0
                    , 270.00, 30.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3104
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('897', '1', '30', '0', '1130', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10574
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1131';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1930';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 896, 0, 0
                    , 270.00, 13, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-13, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3107
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2026-10-14*270.00," WHERE transferproductid = 1131;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('896', '2', '13', '1', '1131', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '13', '0', '1', '2026-10-14','0','0'); -- id=10575
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '896';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 896, 0, 0
                    , 270.00, 13.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3106
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('896', '1', '13', '0', '1131', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '13', '1', '2026-10-14','0','0'); -- id=10576
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1132';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1929';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 895, 0, 0
                    , 270.00, 40, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3109
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*270.00," WHERE transferproductid = 1132;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('895', '2', '40', '1', '1132', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10577
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '895';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 895, 0, 0
                    , 270.00, 40.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3108
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('895', '1', '40', '0', '1132', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10578
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1133';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1928';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 894, 0, 0
                    , 330.00, 5, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3111
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*330.00," WHERE transferproductid = 1133;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('894', '2', '5', '1', '1133', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10579
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '894';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 894, 0, 0
                    , 330.00, 5.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3110
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('894', '1', '5', '0', '1133', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10580
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1134';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1927';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1134;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('893', '2', '0', '1', '1134', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10581
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '893';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('893', '1', '0', '0', '1134', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10582
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1135';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1926';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 892, 0, 0
                    , 310.00, 185, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-185, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3113
UPDATE storemovement SET  buyPricesHistoryBookData = "185*2026-10-14*310.00," WHERE transferproductid = 1135;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('892', '2', '185', '1', '1135', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '185', '0', '1', '2026-10-14','0','0'); -- id=10583
UPDATE storedetail SET  productquantity = '185', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '892';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 892, 0, 0
                    , 310.00, 185.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+185.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3112
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('892', '1', '185', '0', '1135', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '185', '1', '2026-10-14','0','0'); -- id=10584
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1136';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1925';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1136;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('891', '2', '0', '1', '1136', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10585
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '891';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('891', '1', '0', '0', '1136', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10586
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1137';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1924';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 890, 0, 0
                    , 340.00, 40, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3115
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*340.00," WHERE transferproductid = 1137;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('890', '2', '40', '1', '1137', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10587
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '890';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 890, 0, 0
                    , 340.00, 40.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3114
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('890', '1', '40', '0', '1137', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10588
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1138';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1923';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 889, 0, 0
                    , 410.00, 30, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3117
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*410.00," WHERE transferproductid = 1138;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('889', '2', '30', '1', '1138', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10589
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '889';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 889, 0, 0
                    , 410.00, 30.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3116
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('889', '1', '30', '0', '1138', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10590
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1139';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1922';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 888, 0, 0
                    , 400.00, 60, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3119
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*400.00," WHERE transferproductid = 1139;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('888', '2', '60', '1', '1139', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=10591
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '888';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 888, 0, 0
                    , 400.00, 60.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3118
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('888', '1', '60', '0', '1139', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=10592
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1140';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1921';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 887, 0, 0
                    , 365.00, 40, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3121
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*365.00," WHERE transferproductid = 1140;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('887', '2', '40', '1', '1140', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10593
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '887';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 887, 0, 0
                    , 365.00, 40.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3120
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('887', '1', '40', '0', '1140', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10594
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1141';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1920';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 886, 0, 0
                    , 360.00, 10, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3123
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*360.00," WHERE transferproductid = 1141;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('886', '2', '10', '1', '1141', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10595
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '886';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 886, 0, 0
                    , 360.00, 10.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3122
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('886', '1', '10', '0', '1141', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10596
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1142';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1919';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 885, 0, 0
                    , 355.00, 25, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3125
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*355.00," WHERE transferproductid = 1142;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('885', '2', '25', '1', '1142', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10597
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '885';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 885, 0, 0
                    , 355.00, 25.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3124
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('885', '1', '25', '0', '1142', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10598
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1143';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1918';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 884, 0, 0
                    , 340.00, 30, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3127
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*340.00," WHERE transferproductid = 1143;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('884', '2', '30', '1', '1143', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10599
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '884';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 884, 0, 0
                    , 340.00, 30.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3126
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('884', '1', '30', '0', '1143', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10600
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1144';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1917';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 883, 0, 0
                    , 320.00, 45, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-45, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3129
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2026-10-14*320.00," WHERE transferproductid = 1144;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('883', '2', '45', '1', '1144', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=10601
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '883';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 883, 0, 0
                    , 320.00, 45.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3128
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('883', '1', '45', '0', '1144', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=10602
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1145';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1916';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 882, 0, 0
                    , 320.00, 96, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-96, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3131
UPDATE storemovement SET  buyPricesHistoryBookData = "96*2026-10-14*320.00," WHERE transferproductid = 1145;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('882', '2', '96', '1', '1145', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '96', '0', '1', '2026-10-14','0','0'); -- id=10603
UPDATE storedetail SET  productquantity = '96', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '882';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 882, 0, 0
                    , 320.00, 96.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+96.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3130
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('882', '1', '96', '0', '1145', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '96', '1', '2026-10-14','0','0'); -- id=10604
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1146';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1915';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 881, 0, 0
                    , 340.00, 10, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3133
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*340.00," WHERE transferproductid = 1146;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('881', '2', '10', '1', '1146', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10605
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '881';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 881, 0, 0
                    , 340.00, 10.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3132
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('881', '1', '10', '0', '1146', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10606
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1147';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1914';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 880, 0, 0
                    , 325.00, 24, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3135
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-14*325.00," WHERE transferproductid = 1147;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('880', '2', '24', '1', '1147', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=10607
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '880';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 880, 0, 0
                    , 325.00, 24.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3134
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('880', '1', '24', '0', '1147', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=10608
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1148';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1913';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 879, 0, 0
                    , 345.00, 4, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3137
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2026-10-14*345.00," WHERE transferproductid = 1148;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('879', '2', '4', '1', '1148', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=10609
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '879';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 879, 0, 0
                    , 345.00, 4.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3136
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('879', '1', '4', '0', '1148', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=10610
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1149';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1912';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1149;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('878', '2', '0', '1', '1149', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10611
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '878';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('878', '1', '0', '0', '1149', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10612
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1150';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1911';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 877, 0, 0
                    , 320.00, 72, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-72, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3139
UPDATE storemovement SET  buyPricesHistoryBookData = "72*2026-10-14*320.00," WHERE transferproductid = 1150;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('877', '2', '72', '1', '1150', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '72', '0', '1', '2026-10-14','0','0'); -- id=10613
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '877';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 877, 0, 0
                    , 320.00, 72.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+72.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3138
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('877', '1', '72', '0', '1150', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '72', '1', '2026-10-14','0','0'); -- id=10614
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1151';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1910';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 876, 0, 0
                    , 340.00, 10, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3141
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*340.00," WHERE transferproductid = 1151;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('876', '2', '10', '1', '1151', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10615
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '876';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 876, 0, 0
                    , 340.00, 10.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3140
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('876', '1', '10', '0', '1151', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10616
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1152';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1909';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 875, 0, 0
                    , 340.00, 15, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3143
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*340.00," WHERE transferproductid = 1152;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('875', '2', '15', '1', '1152', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10617
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '875';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 875, 0, 0
                    , 340.00, 15.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3142
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('875', '1', '15', '0', '1152', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10618
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1153';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1908';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 874, 0, 0
                    , 300.00, 13, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-13, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3145
UPDATE storemovement SET  buyPricesHistoryBookData = "13*2026-10-14*300.00," WHERE transferproductid = 1153;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('874', '2', '13', '1', '1153', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '13', '0', '1', '2026-10-14','0','0'); -- id=10619
UPDATE storedetail SET  productquantity = '13', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '874';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 874, 0, 0
                    , 300.00, 13.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+13.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3144
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('874', '1', '13', '0', '1153', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '13', '1', '2026-10-14','0','0'); -- id=10620
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1154';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1907';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 873, 0, 0
                    , 340.00, 5, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3147
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*340.00," WHERE transferproductid = 1154;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('873', '2', '5', '1', '1154', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10621
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '873';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 873, 0, 0
                    , 340.00, 5.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3146
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('873', '1', '5', '0', '1154', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10622
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1155';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1906';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 872, 0, 0
                    , 290.00, 55, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-55, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3149
UPDATE storemovement SET  buyPricesHistoryBookData = "55*2026-10-14*290.00," WHERE transferproductid = 1155;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('872', '2', '55', '1', '1155', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '55', '0', '1', '2026-10-14','0','0'); -- id=10623
UPDATE storedetail SET  productquantity = '55', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '872';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 872, 0, 0
                    , 290.00, 55.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+55.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3148
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('872', '1', '55', '0', '1155', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '55', '1', '2026-10-14','0','0'); -- id=10624
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1156';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1905';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 871, 0, 0
                    , 280.00, 40, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3151
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*280.00," WHERE transferproductid = 1156;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('871', '2', '40', '1', '1156', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10625
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '871';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 871, 0, 0
                    , 280.00, 40.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3150
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('871', '1', '40', '0', '1156', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10626
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1157';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1904';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1157;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('870', '2', '-5', '1', '1157', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-5', '0', '1', '2026-10-14','0','0'); -- id=10627
UPDATE storedetail SET  productquantity = '-5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '870';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('870', '1', '-5', '0', '1157', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-5', '1', '2026-10-14','0','0'); -- id=10628
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1158';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1903';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1158;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('869', '2', '-1', '1', '1158', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=10629
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '869';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('869', '1', '-1', '0', '1158', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=10630
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1159';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1902';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1159;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('868', '2', '-1', '1', '1159', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=10631
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '868';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('868', '1', '-1', '0', '1159', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=10632
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1160';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1901';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 867, 0, 0
                    , 250.00, 174, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-174, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3153
UPDATE storemovement SET  buyPricesHistoryBookData = "174*2026-10-14*250.00," WHERE transferproductid = 1160;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('867', '2', '174', '1', '1160', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '174', '0', '1', '2026-10-14','0','0'); -- id=10633
UPDATE storedetail SET  productquantity = '174', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '867';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 867, 0, 0
                    , 250.00, 174.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+174.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3152
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('867', '1', '174', '0', '1160', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '174', '1', '2026-10-14','0','0'); -- id=10634
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1161';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1900';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 866, 0, 0
                    , 315.00, 92, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-92, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3155
UPDATE storemovement SET  buyPricesHistoryBookData = "92*2026-10-14*315.00," WHERE transferproductid = 1161;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('866', '2', '92', '1', '1161', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '92', '0', '1', '2026-10-14','0','0'); -- id=10635
UPDATE storedetail SET  productquantity = '92', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '866';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 866, 0, 0
                    , 315.00, 92.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+92.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3154
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('866', '1', '92', '0', '1161', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '92', '1', '2026-10-14','0','0'); -- id=10636
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1162';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1899';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 865, 0, 0
                    , 320.00, 384, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-384, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3157
UPDATE storemovement SET  buyPricesHistoryBookData = "384*2026-10-14*320.00," WHERE transferproductid = 1162;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('865', '2', '384', '1', '1162', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '384', '0', '1', '2026-10-14','0','0'); -- id=10637
UPDATE storedetail SET  productquantity = '384', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '865';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 865, 0, 0
                    , 320.00, 384.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+384.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3156
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('865', '1', '384', '0', '1162', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '384', '1', '2026-10-14','0','0'); -- id=10638
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1163';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1898';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 864, 0, 0
                    , 310.00, 385, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-385, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3159
UPDATE storemovement SET  buyPricesHistoryBookData = "385*2026-10-14*310.00," WHERE transferproductid = 1163;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('864', '2', '385', '1', '1163', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '385', '0', '1', '2026-10-14','0','0'); -- id=10639
UPDATE storedetail SET  productquantity = '385', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '864';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 864, 0, 0
                    , 310.00, 385.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+385.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3158
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('864', '1', '385', '0', '1163', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '385', '1', '2026-10-14','0','0'); -- id=10640
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1164';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1897';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 863, 0, 0
                    , 300.00, 433, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-433, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3161
UPDATE storemovement SET  buyPricesHistoryBookData = "433*2026-10-14*300.00," WHERE transferproductid = 1164;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('863', '2', '433', '1', '1164', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '433', '0', '1', '2026-10-14','0','0'); -- id=10641
UPDATE storedetail SET  productquantity = '433', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '863';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 863, 0, 0
                    , 300.00, 433.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+433.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3160
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('863', '1', '433', '0', '1164', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '433', '1', '2026-10-14','0','0'); -- id=10642
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1165';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1896';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 862, 0, 0
                    , 280.00, 1630, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-1630, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3163
UPDATE storemovement SET  buyPricesHistoryBookData = "1630*2026-10-14*280.00," WHERE transferproductid = 1165;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('862', '2', '1630', '1', '1165', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '1630', '0', '1', '2026-10-14','0','0'); -- id=10643
UPDATE storedetail SET  productquantity = '1630', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '862';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 862, 0, 0
                    , 280.00, 1630.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1630.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3162
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('862', '1', '1630', '0', '1165', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '1630', '1', '2026-10-14','0','0'); -- id=10644
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1166';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1895';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 861, 0, 0
                    , 225.00, 630, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-630, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3165
UPDATE storemovement SET  buyPricesHistoryBookData = "630*2026-10-14*225.00," WHERE transferproductid = 1166;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('861', '2', '630', '1', '1166', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '630', '0', '1', '2026-10-14','0','0'); -- id=10645
UPDATE storedetail SET  productquantity = '630', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '861';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 861, 0, 0
                    , 225.00, 630.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+630.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3164
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('861', '1', '630', '0', '1166', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '630', '1', '2026-10-14','0','0'); -- id=10646
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1167';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1894';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 860, 0, 0
                    , 280.00, 235, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-235, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3167
UPDATE storemovement SET  buyPricesHistoryBookData = "235*2026-10-14*280.00," WHERE transferproductid = 1167;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('860', '2', '235', '1', '1167', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '235', '0', '1', '2026-10-14','0','0'); -- id=10647
UPDATE storedetail SET  productquantity = '235', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '860';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 860, 0, 0
                    , 280.00, 235.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+235.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3166
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('860', '1', '235', '0', '1167', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '235', '1', '2026-10-14','0','0'); -- id=10648
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1168';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1893';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 859, 0, 0
                    , 225.00, 643, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-643, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3169
UPDATE storemovement SET  buyPricesHistoryBookData = "643*2026-10-14*225.00," WHERE transferproductid = 1168;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('859', '2', '643', '1', '1168', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '643', '0', '1', '2026-10-14','0','0'); -- id=10649
UPDATE storedetail SET  productquantity = '643', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '859';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 859, 0, 0
                    , 225.00, 643.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+643.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3168
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('859', '1', '643', '0', '1168', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '643', '1', '2026-10-14','0','0'); -- id=10650
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1169';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1892';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 858, 0, 0
                    , 225.00, 115, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-115, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3171
UPDATE storemovement SET  buyPricesHistoryBookData = "115*2026-10-14*225.00," WHERE transferproductid = 1169;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('858', '2', '115', '1', '1169', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '115', '0', '1', '2026-10-14','0','0'); -- id=10651
UPDATE storedetail SET  productquantity = '115', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '858';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 858, 0, 0
                    , 225.00, 115.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+115.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3170
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('858', '1', '115', '0', '1169', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '115', '1', '2026-10-14','0','0'); -- id=10652
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1170';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1891';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 857, 0, 0
                    , 210.00, 127, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-127, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3173
UPDATE storemovement SET  buyPricesHistoryBookData = "127*2026-10-14*210.00," WHERE transferproductid = 1170;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('857', '2', '127', '1', '1170', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '127', '0', '1', '2026-10-14','0','0'); -- id=10653
UPDATE storedetail SET  productquantity = '127', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '857';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 857, 0, 0
                    , 210.00, 127.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+127.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3172
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('857', '1', '127', '0', '1170', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '127', '1', '2026-10-14','0','0'); -- id=10654
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1171';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1890';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 856, 0, 0
                    , 240.00, 417, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-417, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3175
UPDATE storemovement SET  buyPricesHistoryBookData = "417*2026-10-14*240.00," WHERE transferproductid = 1171;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('856', '2', '417', '1', '1171', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '417', '0', '1', '2026-10-14','0','0'); -- id=10655
UPDATE storedetail SET  productquantity = '417', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '856';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 856, 0, 0
                    , 240.00, 417.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+417.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3174
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('856', '1', '417', '0', '1171', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '417', '1', '2026-10-14','0','0'); -- id=10656
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1172';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1889';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 855, 0, 0
                    , 195.00, 1020, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-1020, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3177
UPDATE storemovement SET  buyPricesHistoryBookData = "1020*2026-10-14*195.00," WHERE transferproductid = 1172;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('855', '2', '1020', '1', '1172', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '1020', '0', '1', '2026-10-14','0','0'); -- id=10657
UPDATE storedetail SET  productquantity = '1020', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '855';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 855, 0, 0
                    , 195.00, 1020.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1020.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3176
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('855', '1', '1020', '0', '1172', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '1020', '1', '2026-10-14','0','0'); -- id=10658
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1173';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1888';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 854, 0, 0
                    , 235.00, 240, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-240, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3179
UPDATE storemovement SET  buyPricesHistoryBookData = "240*2026-10-14*235.00," WHERE transferproductid = 1173;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('854', '2', '240', '1', '1173', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '240', '0', '1', '2026-10-14','0','0'); -- id=10659
UPDATE storedetail SET  productquantity = '240', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '854';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 854, 0, 0
                    , 235.00, 240.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+240.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3178
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('854', '1', '240', '0', '1173', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '240', '1', '2026-10-14','0','0'); -- id=10660
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1174';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1887';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 853, 0, 0
                    , 145.00, 1432, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-1432, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3181
UPDATE storemovement SET  buyPricesHistoryBookData = "1432*2026-10-14*145.00," WHERE transferproductid = 1174;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('853', '2', '1432', '1', '1174', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '1432', '0', '1', '2026-10-14','0','0'); -- id=10661
UPDATE storedetail SET  productquantity = '1432', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '853';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 853, 0, 0
                    , 145.00, 1432.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1432.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3180
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('853', '1', '1432', '0', '1174', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '1432', '1', '2026-10-14','0','0'); -- id=10662
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1175';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1886';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 852, 0, 0
                    , 255.00, 1236, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-1236, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3183
UPDATE storemovement SET  buyPricesHistoryBookData = "1236*2026-10-14*255.00," WHERE transferproductid = 1175;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('852', '2', '1236', '1', '1175', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '1236', '0', '1', '2026-10-14','0','0'); -- id=10663
UPDATE storedetail SET  productquantity = '1236', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '852';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 852, 0, 0
                    , 255.00, 1236.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1236.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3182
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('852', '1', '1236', '0', '1175', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '1236', '1', '2026-10-14','0','0'); -- id=10664
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1176';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1885';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 851, 0, 0
                    , 405.00, 95, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-95, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3185
UPDATE storemovement SET  buyPricesHistoryBookData = "95*2026-10-14*405.00," WHERE transferproductid = 1176;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('851', '2', '95', '1', '1176', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '95', '0', '1', '2026-10-14','0','0'); -- id=10665
UPDATE storedetail SET  productquantity = '95', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '851';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 851, 0, 0
                    , 405.00, 95.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+95.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3184
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('851', '1', '95', '0', '1176', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '95', '1', '2026-10-14','0','0'); -- id=10666
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1177';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1884';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 2, 850, 0, 0
                    , 390.00, 40, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3188
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 850, 0, 0
                    , 390.00, 85, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-85, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3189
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-07*390.00,85*2026-10-14*390.00," WHERE transferproductid = 1177;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('850', '2', '125', '1', '1177', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '125', '0', '1', '2026-10-14','0','0'); -- id=10667
UPDATE storedetail SET  productquantity = '125', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '850';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-07', 1, 850, 0, 0
                    , 390.00, 40, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=491
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 850, 0, 0
                    , 390.00, 85, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+85, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3187
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('850', '1', '125', '0', '1177', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '125', '1', '2026-10-14','0','0'); -- id=10668
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1178';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1883';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 849, 0, 0
                    , 430.00, 105, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-105, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3191
UPDATE storemovement SET  buyPricesHistoryBookData = "105*2026-10-14*430.00," WHERE transferproductid = 1178;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('849', '2', '105', '1', '1178', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '105', '0', '1', '2026-10-14','0','0'); -- id=10669
UPDATE storedetail SET  productquantity = '105', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '849';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 849, 0, 0
                    , 430.00, 105.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+105.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3190
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('849', '1', '105', '0', '1178', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '105', '1', '2026-10-14','0','0'); -- id=10670
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1179';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1882';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 848, 0, 0
                    , 340.00, 139, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-139, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3193
UPDATE storemovement SET  buyPricesHistoryBookData = "139*2026-10-14*340.00," WHERE transferproductid = 1179;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('848', '2', '139', '1', '1179', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '139', '0', '1', '2026-10-14','0','0'); -- id=10671
UPDATE storedetail SET  productquantity = '139', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '848';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 848, 0, 0
                    , 340.00, 139.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+139.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3192
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('848', '1', '139', '0', '1179', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '139', '1', '2026-10-14','0','0'); -- id=10672
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1180';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1881';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 847, 0, 0
                    , 370.00, 48, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3195
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-14*370.00," WHERE transferproductid = 1180;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('847', '2', '48', '1', '1180', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=10673
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '847';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 847, 0, 0
                    , 370.00, 48.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3194
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('847', '1', '48', '0', '1180', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=10674
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1181';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1880';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 846, 0, 0
                    , 510.00, 18, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3197
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-14*510.00," WHERE transferproductid = 1181;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('846', '2', '18', '1', '1181', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=10675
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '846';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 846, 0, 0
                    , 510.00, 18.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3196
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('846', '1', '18', '0', '1181', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=10676
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1182';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1879';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 845, 0, 0
                    , 480.00, 27, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3199
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-14*480.00," WHERE transferproductid = 1182;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('845', '2', '27', '1', '1182', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=10677
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '845';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 845, 0, 0
                    , 480.00, 27.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3198
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('845', '1', '27', '0', '1182', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=10678
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1183';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1878';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 844, 0, 0
                    , 490.00, 18, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3201
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-14*490.00," WHERE transferproductid = 1183;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('844', '2', '18', '1', '1183', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=10679
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '844';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 844, 0, 0
                    , 490.00, 18.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3200
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('844', '1', '18', '0', '1183', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=10680
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1184';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1877';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 843, 0, 0
                    , 255.00, 95, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-95, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3203
UPDATE storemovement SET  buyPricesHistoryBookData = "95*2026-10-14*255.00," WHERE transferproductid = 1184;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('843', '2', '95', '1', '1184', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '95', '0', '1', '2026-10-14','0','0'); -- id=10681
UPDATE storedetail SET  productquantity = '95', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '843';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 843, 0, 0
                    , 255.00, 95.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+95.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3202
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('843', '1', '95', '0', '1184', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '95', '1', '2026-10-14','0','0'); -- id=10682
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1185';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1876';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 842, 0, 0
                    , 400.00, 99, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-99, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3205
UPDATE storemovement SET  buyPricesHistoryBookData = "99*2026-10-14*400.00," WHERE transferproductid = 1185;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('842', '2', '99', '1', '1185', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '99', '0', '1', '2026-10-14','0','0'); -- id=10683
UPDATE storedetail SET  productquantity = '99', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '842';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 842, 0, 0
                    , 400.00, 99.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+99.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3204
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('842', '1', '99', '0', '1185', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '99', '1', '2026-10-14','0','0'); -- id=10684
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1186';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1875';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 841, 0, 0
                    , 430.00, 50, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-50, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3207
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2026-10-14*430.00," WHERE transferproductid = 1186;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('841', '2', '50', '1', '1186', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=10685
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '841';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 841, 0, 0
                    , 430.00, 50.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3206
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('841', '1', '50', '0', '1186', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=10686
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1187';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1874';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 840, 0, 0
                    , 375.00, 35, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3209
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2026-10-14*375.00," WHERE transferproductid = 1187;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('840', '2', '35', '1', '1187', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=10687
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '840';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 840, 0, 0
                    , 375.00, 35.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3208
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('840', '1', '35', '0', '1187', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=10688
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1188';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1873';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 839, 0, 0
                    , 345.00, 144, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-144, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3211
UPDATE storemovement SET  buyPricesHistoryBookData = "144*2026-10-14*345.00," WHERE transferproductid = 1188;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('839', '2', '144', '1', '1188', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '144', '0', '1', '2026-10-14','0','0'); -- id=10689
UPDATE storedetail SET  productquantity = '144', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '839';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 839, 0, 0
                    , 345.00, 144.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+144.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3210
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('839', '1', '144', '0', '1188', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '144', '1', '2026-10-14','0','0'); -- id=10690
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1189';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1872';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 838, 0, 0
                    , 305.00, 35, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3213
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2026-10-14*305.00," WHERE transferproductid = 1189;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('838', '2', '35', '1', '1189', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=10691
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '838';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 838, 0, 0
                    , 305.00, 35.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3212
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('838', '1', '35', '0', '1189', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=10692
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1190';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1871';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 837, 0, 0
                    , 295.00, 47, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-47, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3215
UPDATE storemovement SET  buyPricesHistoryBookData = "47*2026-10-14*295.00," WHERE transferproductid = 1190;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('837', '2', '47', '1', '1190', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '47', '0', '1', '2026-10-14','0','0'); -- id=10693
UPDATE storedetail SET  productquantity = '47', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '837';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 837, 0, 0
                    , 295.00, 47.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+47.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3214
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('837', '1', '47', '0', '1190', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '47', '1', '2026-10-14','0','0'); -- id=10694
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1191';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1870';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 836, 0, 0
                    , 430.00, 44, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-44, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3217
UPDATE storemovement SET  buyPricesHistoryBookData = "44*2026-10-14*430.00," WHERE transferproductid = 1191;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('836', '2', '44', '1', '1191', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '44', '0', '1', '2026-10-14','0','0'); -- id=10695
UPDATE storedetail SET  productquantity = '44', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '836';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 836, 0, 0
                    , 430.00, 44.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+44.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3216
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('836', '1', '44', '0', '1191', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '44', '1', '2026-10-14','0','0'); -- id=10696
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1192';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1869';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 835, 0, 0
                    , 530.00, 18, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3219
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-14*530.00," WHERE transferproductid = 1192;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('835', '2', '18', '1', '1192', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=10697
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '835';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 835, 0, 0
                    , 530.00, 18.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3218
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('835', '1', '18', '0', '1192', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=10698
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1193';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1868';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 834, 0, 0
                    , 315.00, 15, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3221
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*315.00," WHERE transferproductid = 1193;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('834', '2', '15', '1', '1193', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10699
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '834';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 834, 0, 0
                    , 315.00, 15.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3220
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('834', '1', '15', '0', '1193', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10700
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1194';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1867';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 2, 833, 0, 0
                    , 430.00, 21, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-21, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3224
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 833, 0, 0
                    , 430.00, 4, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3225
UPDATE storemovement SET  buyPricesHistoryBookData = "21*2026-09-29*430.00,4*2026-10-14*430.00," WHERE transferproductid = 1194;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('833', '2', '25', '1', '1194', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10701
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '833';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-09-29', 1, 833, 0, 0
                    , 430.00, 21, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=7
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 833, 0, 0
                    , 430.00, 4, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3223
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('833', '1', '25', '0', '1194', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10702
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1195';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1866';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 832, 0, 0
                    , 380.00, 39, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-39, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3227
UPDATE storemovement SET  buyPricesHistoryBookData = "39*2026-10-14*380.00," WHERE transferproductid = 1195;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('832', '2', '39', '1', '1195', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '39', '0', '1', '2026-10-14','0','0'); -- id=10703
UPDATE storedetail SET  productquantity = '39', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '832';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 832, 0, 0
                    , 380.00, 39.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+39.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3226
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('832', '1', '39', '0', '1195', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '39', '1', '2026-10-14','0','0'); -- id=10704
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1196';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1865';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 831, 0, 0
                    , 500.00, 5, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3229
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*500.00," WHERE transferproductid = 1196;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('831', '2', '5', '1', '1196', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10705
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '831';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 831, 0, 0
                    , 500.00, 5.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3228
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('831', '1', '5', '0', '1196', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10706
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1197';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1864';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 830, 0, 0
                    , 400.00, 11, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-11, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3231
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2026-10-14*400.00," WHERE transferproductid = 1197;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('830', '2', '11', '1', '1197', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=10707
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '830';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 830, 0, 0
                    , 400.00, 11.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3230
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('830', '1', '11', '0', '1197', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=10708
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1198';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1863';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 829, 0, 0
                    , 520.00, 138, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-138, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3233
UPDATE storemovement SET  buyPricesHistoryBookData = "138*2026-10-14*520.00," WHERE transferproductid = 1198;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('829', '2', '138', '1', '1198', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '138', '0', '1', '2026-10-14','0','0'); -- id=10709
UPDATE storedetail SET  productquantity = '138', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '829';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 829, 0, 0
                    , 520.00, 138.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+138.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3232
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('829', '1', '138', '0', '1198', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '138', '1', '2026-10-14','0','0'); -- id=10710
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1199';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1862';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 828, 0, 0
                    , 240.00, 64, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-64, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3235
UPDATE storemovement SET  buyPricesHistoryBookData = "64*2026-10-14*240.00," WHERE transferproductid = 1199;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('828', '2', '64', '1', '1199', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '64', '0', '1', '2026-10-14','0','0'); -- id=10711
UPDATE storedetail SET  productquantity = '64', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '828';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 828, 0, 0
                    , 240.00, 64.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+64.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3234
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('828', '1', '64', '0', '1199', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '64', '1', '2026-10-14','0','0'); -- id=10712
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1200';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1861';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 827, 0, 0
                    , 240.00, 5, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3237
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*240.00," WHERE transferproductid = 1200;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('827', '2', '5', '1', '1200', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10713
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '827';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 827, 0, 0
                    , 240.00, 5.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3236
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('827', '1', '5', '0', '1200', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10714
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1201';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1860';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 826, 0, 0
                    , 270.00, 335, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-335, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3239
UPDATE storemovement SET  buyPricesHistoryBookData = "335*2026-10-14*270.00," WHERE transferproductid = 1201;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('826', '2', '335', '1', '1201', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '335', '0', '1', '2026-10-14','0','0'); -- id=10715
UPDATE storedetail SET  productquantity = '335', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '826';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 826, 0, 0
                    , 270.00, 335.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+335.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3238
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('826', '1', '335', '0', '1201', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '335', '1', '2026-10-14','0','0'); -- id=10716
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1202';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1859';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 825, 0, 0
                    , 360.00, 41, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-41, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3241
UPDATE storemovement SET  buyPricesHistoryBookData = "41*2026-10-14*360.00," WHERE transferproductid = 1202;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('825', '2', '41', '1', '1202', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '41', '0', '1', '2026-10-14','0','0'); -- id=10717
UPDATE storedetail SET  productquantity = '41', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '825';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 825, 0, 0
                    , 360.00, 41.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+41.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3240
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('825', '1', '41', '0', '1202', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '41', '1', '2026-10-14','0','0'); -- id=10718
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1203';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1858';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 824, 0, 0
                    , 270.00, 84, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-84, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3243
UPDATE storemovement SET  buyPricesHistoryBookData = "84*2026-10-14*270.00," WHERE transferproductid = 1203;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('824', '2', '84', '1', '1203', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '84', '0', '1', '2026-10-14','0','0'); -- id=10719
UPDATE storedetail SET  productquantity = '84', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '824';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 824, 0, 0
                    , 270.00, 84.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+84.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3242
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('824', '1', '84', '0', '1203', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '84', '1', '2026-10-14','0','0'); -- id=10720
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1204';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1857';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 823, 0, 0
                    , 275.00, 204, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-204, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3245
UPDATE storemovement SET  buyPricesHistoryBookData = "204*2026-10-14*275.00," WHERE transferproductid = 1204;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('823', '2', '204', '1', '1204', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '204', '0', '1', '2026-10-14','0','0'); -- id=10721
UPDATE storedetail SET  productquantity = '204', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '823';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 823, 0, 0
                    , 275.00, 204.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+204.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3244
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('823', '1', '204', '0', '1204', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '204', '1', '2026-10-14','0','0'); -- id=10722
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1205';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1856';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 822, 0, 0
                    , 290.00, 325, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-325, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3247
UPDATE storemovement SET  buyPricesHistoryBookData = "325*2026-10-14*290.00," WHERE transferproductid = 1205;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('822', '2', '325', '1', '1205', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '325', '0', '1', '2026-10-14','0','0'); -- id=10723
UPDATE storedetail SET  productquantity = '325', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '822';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 822, 0, 0
                    , 290.00, 325.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+325.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3246
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('822', '1', '325', '0', '1205', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '325', '1', '2026-10-14','0','0'); -- id=10724
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1206';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1855';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 821, 0, 0
                    , 245.00, 65, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-65, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3249
UPDATE storemovement SET  buyPricesHistoryBookData = "65*2026-10-14*245.00," WHERE transferproductid = 1206;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('821', '2', '65', '1', '1206', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '65', '0', '1', '2026-10-14','0','0'); -- id=10725
UPDATE storedetail SET  productquantity = '65', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '821';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 821, 0, 0
                    , 245.00, 65.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+65.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3248
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('821', '1', '65', '0', '1206', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '65', '1', '2026-10-14','0','0'); -- id=10726
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1207';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1854';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 820, 0, 0
                    , 215.00, 445, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-445, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3251
UPDATE storemovement SET  buyPricesHistoryBookData = "445*2026-10-14*215.00," WHERE transferproductid = 1207;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('820', '2', '445', '1', '1207', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '445', '0', '1', '2026-10-14','0','0'); -- id=10727
UPDATE storedetail SET  productquantity = '445', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '820';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 820, 0, 0
                    , 215.00, 445.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+445.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3250
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('820', '1', '445', '0', '1207', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '445', '1', '2026-10-14','0','0'); -- id=10728
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1208';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1853';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 819, 0, 0
                    , 240.00, 40, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3253
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*240.00," WHERE transferproductid = 1208;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('819', '2', '40', '1', '1208', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10729
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '819';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 819, 0, 0
                    , 240.00, 40.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3252
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('819', '1', '40', '0', '1208', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10730
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1209';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1852';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 818, 0, 0
                    , 240.00, 30, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3255
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*240.00," WHERE transferproductid = 1209;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('818', '2', '30', '1', '1209', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10731
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '818';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 818, 0, 0
                    , 240.00, 30.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3254
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('818', '1', '30', '0', '1209', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10732
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1210';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1851';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 817, 0, 0
                    , 270.00, 194, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-194, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3257
UPDATE storemovement SET  buyPricesHistoryBookData = "194*2026-10-14*270.00," WHERE transferproductid = 1210;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('817', '2', '194', '1', '1210', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '194', '0', '1', '2026-10-14','0','0'); -- id=10733
UPDATE storedetail SET  productquantity = '194', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '817';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 817, 0, 0
                    , 270.00, 194.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+194.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3256
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('817', '1', '194', '0', '1210', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '194', '1', '2026-10-14','0','0'); -- id=10734
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1211';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1850';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 816, 0, 0
                    , 250.00, 5, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3259
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*250.00," WHERE transferproductid = 1211;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('816', '2', '5', '1', '1211', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10735
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '816';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 816, 0, 0
                    , 250.00, 5.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3258
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('816', '1', '5', '0', '1211', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10736
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1212';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1849';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 815, 0, 0
                    , 180.00, 10, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3261
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*180.00," WHERE transferproductid = 1212;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('815', '2', '10', '1', '1212', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10737
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '815';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 815, 0, 0
                    , 180.00, 10.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3260
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('815', '1', '10', '0', '1212', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10738
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1213';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1848';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 814, 0, 0
                    , 345.00, 15, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3263
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*345.00," WHERE transferproductid = 1213;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('814', '2', '15', '1', '1213', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10739
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '814';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 814, 0, 0
                    , 345.00, 15.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3262
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('814', '1', '15', '0', '1213', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10740
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1214';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1847';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 813, 0, 0
                    , 335.00, 100, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-100, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3265
UPDATE storemovement SET  buyPricesHistoryBookData = "100*2026-10-14*335.00," WHERE transferproductid = 1214;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('813', '2', '100', '1', '1214', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '100', '0', '1', '2026-10-14','0','0'); -- id=10741
UPDATE storedetail SET  productquantity = '100', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '813';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 813, 0, 0
                    , 335.00, 100.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+100.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3264
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('813', '1', '100', '0', '1214', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '100', '1', '2026-10-14','0','0'); -- id=10742
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1215';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1846';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 812, 0, 0
                    , 430.00, 25, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3267
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*430.00," WHERE transferproductid = 1215;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('812', '2', '25', '1', '1215', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10743
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '812';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 812, 0, 0
                    , 430.00, 25.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3266
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('812', '1', '25', '0', '1215', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10744
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1216';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1845';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 811, 0, 0
                    , 430.00, 25, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3269
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*430.00," WHERE transferproductid = 1216;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('811', '2', '25', '1', '1216', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10745
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '811';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 811, 0, 0
                    , 430.00, 25.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3268
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('811', '1', '25', '0', '1216', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10746
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1217';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1844';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 810, 0, 0
                    , 430.00, 10, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3271
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*430.00," WHERE transferproductid = 1217;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('810', '2', '10', '1', '1217', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10747
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '810';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 810, 0, 0
                    , 430.00, 10.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3270
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('810', '1', '10', '0', '1217', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10748
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1218';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1843';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 809, 0, 0
                    , 430.00, 15, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3273
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*430.00," WHERE transferproductid = 1218;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('809', '2', '15', '1', '1218', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10749
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '809';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 809, 0, 0
                    , 430.00, 15.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3272
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('809', '1', '15', '0', '1218', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10750
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1219';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1842';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 808, 0, 0
                    , 380.00, 95, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-95, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3275
UPDATE storemovement SET  buyPricesHistoryBookData = "95*2026-10-14*380.00," WHERE transferproductid = 1219;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('808', '2', '95', '1', '1219', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '95', '0', '1', '2026-10-14','0','0'); -- id=10751
UPDATE storedetail SET  productquantity = '95', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '808';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 808, 0, 0
                    , 380.00, 95.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+95.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3274
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('808', '1', '95', '0', '1219', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '95', '1', '2026-10-14','0','0'); -- id=10752
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1220';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1841';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 807, 0, 0
                    , 330.00, 18, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3277
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-14*330.00," WHERE transferproductid = 1220;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('807', '2', '18', '1', '1220', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=10753
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '807';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 807, 0, 0
                    , 330.00, 18.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3276
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('807', '1', '18', '0', '1220', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=10754
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1221';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1840';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 806, 0, 0
                    , 260.00, 65, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-65, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3279
UPDATE storemovement SET  buyPricesHistoryBookData = "65*2026-10-14*260.00," WHERE transferproductid = 1221;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('806', '2', '65', '1', '1221', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '65', '0', '1', '2026-10-14','0','0'); -- id=10755
UPDATE storedetail SET  productquantity = '65', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '806';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 806, 0, 0
                    , 260.00, 65.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+65.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3278
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('806', '1', '65', '0', '1221', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '65', '1', '2026-10-14','0','0'); -- id=10756
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1222';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1839';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 805, 0, 0
                    , 245.00, 135, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-135, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3281
UPDATE storemovement SET  buyPricesHistoryBookData = "135*2026-10-14*245.00," WHERE transferproductid = 1222;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('805', '2', '135', '1', '1222', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '135', '0', '1', '2026-10-14','0','0'); -- id=10757
UPDATE storedetail SET  productquantity = '135', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '805';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 805, 0, 0
                    , 245.00, 135.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+135.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3280
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('805', '1', '135', '0', '1222', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '135', '1', '2026-10-14','0','0'); -- id=10758
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1223';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1838';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 804, 0, 0
                    , 305.00, 5, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3283
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*305.00," WHERE transferproductid = 1223;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('804', '2', '5', '1', '1223', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10759
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '804';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 804, 0, 0
                    , 305.00, 5.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3282
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('804', '1', '5', '0', '1223', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10760
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1224';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1837';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 803, 0, 0
                    , 215.00, 45, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-45, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3285
UPDATE storemovement SET  buyPricesHistoryBookData = "45*2026-10-14*215.00," WHERE transferproductid = 1224;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('803', '2', '45', '1', '1224', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '45', '0', '1', '2026-10-14','0','0'); -- id=10761
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '803';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 803, 0, 0
                    , 215.00, 45.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+45.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3284
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('803', '1', '45', '0', '1224', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '45', '1', '2026-10-14','0','0'); -- id=10762
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1225';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1836';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 802, 0, 0
                    , 300.00, 115, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-115, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3287
UPDATE storemovement SET  buyPricesHistoryBookData = "115*2026-10-14*300.00," WHERE transferproductid = 1225;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('802', '2', '115', '1', '1225', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '115', '0', '1', '2026-10-14','0','0'); -- id=10763
UPDATE storedetail SET  productquantity = '115', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '802';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 802, 0, 0
                    , 300.00, 115.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+115.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3286
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('802', '1', '115', '0', '1225', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '115', '1', '2026-10-14','0','0'); -- id=10764
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1226';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1835';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 801, 0, 0
                    , 290.00, 55, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-55, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3289
UPDATE storemovement SET  buyPricesHistoryBookData = "55*2026-10-14*290.00," WHERE transferproductid = 1226;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('801', '2', '55', '1', '1226', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '55', '0', '1', '2026-10-14','0','0'); -- id=10765
UPDATE storedetail SET  productquantity = '55', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '801';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 801, 0, 0
                    , 290.00, 55.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+55.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3288
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('801', '1', '55', '0', '1226', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '55', '1', '2026-10-14','0','0'); -- id=10766
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1227';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1834';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 800, 0, 0
                    , 280.00, 75, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-75, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3291
UPDATE storemovement SET  buyPricesHistoryBookData = "75*2026-10-14*280.00," WHERE transferproductid = 1227;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('800', '2', '75', '1', '1227', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '75', '0', '1', '2026-10-14','0','0'); -- id=10767
UPDATE storedetail SET  productquantity = '75', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '800';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 800, 0, 0
                    , 280.00, 75.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+75.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3290
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('800', '1', '75', '0', '1227', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '75', '1', '2026-10-14','0','0'); -- id=10768
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1228';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1833';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 799, 0, 0
                    , 265.00, 40, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3293
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*265.00," WHERE transferproductid = 1228;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('799', '2', '40', '1', '1228', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10769
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '799';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 799, 0, 0
                    , 265.00, 40.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3292
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('799', '1', '40', '0', '1228', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10770
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1229';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1832';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 798, 0, 0
                    , 310.00, 75, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-75, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3295
UPDATE storemovement SET  buyPricesHistoryBookData = "75*2026-10-14*310.00," WHERE transferproductid = 1229;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('798', '2', '75', '1', '1229', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '75', '0', '1', '2026-10-14','0','0'); -- id=10771
UPDATE storedetail SET  productquantity = '75', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '798';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 798, 0, 0
                    , 310.00, 75.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+75.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3294
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('798', '1', '75', '0', '1229', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '75', '1', '2026-10-14','0','0'); -- id=10772
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1230';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1831';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 797, 0, 0
                    , 290.00, 80, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-80, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3297
UPDATE storemovement SET  buyPricesHistoryBookData = "80*2026-10-14*290.00," WHERE transferproductid = 1230;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('797', '2', '80', '1', '1230', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '80', '0', '1', '2026-10-14','0','0'); -- id=10773
UPDATE storedetail SET  productquantity = '80', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '797';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 797, 0, 0
                    , 290.00, 80.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+80.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3296
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('797', '1', '80', '0', '1230', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '80', '1', '2026-10-14','0','0'); -- id=10774
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1231';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1830';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 796, 0, 0
                    , 260.00, 75, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-75, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3299
UPDATE storemovement SET  buyPricesHistoryBookData = "75*2026-10-14*260.00," WHERE transferproductid = 1231;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('796', '2', '75', '1', '1231', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '75', '0', '1', '2026-10-14','0','0'); -- id=10775
UPDATE storedetail SET  productquantity = '75', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '796';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 796, 0, 0
                    , 260.00, 75.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+75.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3298
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('796', '1', '75', '0', '1231', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '75', '1', '2026-10-14','0','0'); -- id=10776
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1232';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1829';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 795, 0, 0
                    , 260.00, 75, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-75, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3301
UPDATE storemovement SET  buyPricesHistoryBookData = "75*2026-10-14*260.00," WHERE transferproductid = 1232;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('795', '2', '75', '1', '1232', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '75', '0', '1', '2026-10-14','0','0'); -- id=10777
UPDATE storedetail SET  productquantity = '75', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '795';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 795, 0, 0
                    , 260.00, 75.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+75.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3300
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('795', '1', '75', '0', '1232', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '75', '1', '2026-10-14','0','0'); -- id=10778
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1233';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1828';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 794, 0, 0
                    , 260.00, 80, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-80, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3303
UPDATE storemovement SET  buyPricesHistoryBookData = "80*2026-10-14*260.00," WHERE transferproductid = 1233;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('794', '2', '80', '1', '1233', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '80', '0', '1', '2026-10-14','0','0'); -- id=10779
UPDATE storedetail SET  productquantity = '80', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '794';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 794, 0, 0
                    , 260.00, 80.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+80.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3302
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('794', '1', '80', '0', '1233', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '80', '1', '2026-10-14','0','0'); -- id=10780
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1234';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1827';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 793, 0, 0
                    , 290.00, 60, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3305
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*290.00," WHERE transferproductid = 1234;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('793', '2', '60', '1', '1234', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=10781
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '793';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 793, 0, 0
                    , 290.00, 60.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3304
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('793', '1', '60', '0', '1234', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=10782
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1235';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1826';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 792, 0, 0
                    , 250.00, 30, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3307
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*250.00," WHERE transferproductid = 1235;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('792', '2', '30', '1', '1235', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10783
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '792';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 792, 0, 0
                    , 250.00, 30.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3306
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('792', '1', '30', '0', '1235', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10784
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1236';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1825';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 791, 0, 0
                    , 240.00, 15, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3309
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*240.00," WHERE transferproductid = 1236;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('791', '2', '15', '1', '1236', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10785
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '791';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 791, 0, 0
                    , 240.00, 15.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3308
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('791', '1', '15', '0', '1236', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10786
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1237';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1824';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 790, 0, 0
                    , 240.00, 100, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-100, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3311
UPDATE storemovement SET  buyPricesHistoryBookData = "100*2026-10-14*240.00," WHERE transferproductid = 1237;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('790', '2', '100', '1', '1237', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '100', '0', '1', '2026-10-14','0','0'); -- id=10787
UPDATE storedetail SET  productquantity = '100', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '790';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 790, 0, 0
                    , 240.00, 100.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+100.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3310
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('790', '1', '100', '0', '1237', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '100', '1', '2026-10-14','0','0'); -- id=10788
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1238';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1823';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 789, 0, 0
                    , 260.00, 249, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-249, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3313
UPDATE storemovement SET  buyPricesHistoryBookData = "249*2026-10-14*260.00," WHERE transferproductid = 1238;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('789', '2', '249', '1', '1238', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '249', '0', '1', '2026-10-14','0','0'); -- id=10789
UPDATE storedetail SET  productquantity = '249', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '789';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 789, 0, 0
                    , 260.00, 249.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+249.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3312
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('789', '1', '249', '0', '1238', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '249', '1', '2026-10-14','0','0'); -- id=10790
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1239';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1822';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 788, 0, 0
                    , 215.00, 720, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-720, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3315
UPDATE storemovement SET  buyPricesHistoryBookData = "720*2026-10-14*215.00," WHERE transferproductid = 1239;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('788', '2', '720', '1', '1239', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '720', '0', '1', '2026-10-14','0','0'); -- id=10791
UPDATE storedetail SET  productquantity = '720', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '788';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 788, 0, 0
                    , 215.00, 720.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+720.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3314
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('788', '1', '720', '0', '1239', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '720', '1', '2026-10-14','0','0'); -- id=10792
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1240';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1821';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 787, 0, 0
                    , 255.00, 70, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-70, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3317
UPDATE storemovement SET  buyPricesHistoryBookData = "70*2026-10-14*255.00," WHERE transferproductid = 1240;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('787', '2', '70', '1', '1240', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '70', '0', '1', '2026-10-14','0','0'); -- id=10793
UPDATE storedetail SET  productquantity = '70', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '787';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 787, 0, 0
                    , 255.00, 70.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+70.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3316
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('787', '1', '70', '0', '1240', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '70', '1', '2026-10-14','0','0'); -- id=10794
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1241';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1820';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 786, 0, 0
                    , 270.00, 115, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-115, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3319
UPDATE storemovement SET  buyPricesHistoryBookData = "115*2026-10-14*270.00," WHERE transferproductid = 1241;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('786', '2', '115', '1', '1241', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '115', '0', '1', '2026-10-14','0','0'); -- id=10795
UPDATE storedetail SET  productquantity = '115', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '786';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 786, 0, 0
                    , 270.00, 115.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+115.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3318
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('786', '1', '115', '0', '1241', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '115', '1', '2026-10-14','0','0'); -- id=10796
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1242';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1819';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 785, 0, 0
                    , 360.00, 50, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-50, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3321
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2026-10-14*360.00," WHERE transferproductid = 1242;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('785', '2', '50', '1', '1242', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=10797
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '785';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 785, 0, 0
                    , 360.00, 50.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3320
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('785', '1', '50', '0', '1242', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=10798
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1243';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1818';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 784, 0, 0
                    , 340.00, 15, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3323
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*340.00," WHERE transferproductid = 1243;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('784', '2', '15', '1', '1243', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10799
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '784';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 784, 0, 0
                    , 340.00, 15.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3322
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('784', '1', '15', '0', '1243', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10800
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1244';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1817';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 783, 0, 0
                    , 280.00, 15, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3325
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*280.00," WHERE transferproductid = 1244;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('783', '2', '15', '1', '1244', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10801
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '783';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 783, 0, 0
                    , 280.00, 15.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3324
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('783', '1', '15', '0', '1244', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10802
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1245';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1816';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 782, 0, 0
                    , 300.00, 22, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-22, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3327
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2026-10-14*300.00," WHERE transferproductid = 1245;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('782', '2', '22', '1', '1245', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '22', '0', '1', '2026-10-14','0','0'); -- id=10803
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '782';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 782, 0, 0
                    , 300.00, 22.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3326
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('782', '1', '22', '0', '1245', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '22', '1', '2026-10-14','0','0'); -- id=10804
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1246';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1815';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 781, 0, 0
                    , 320.00, 25, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3329
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*320.00," WHERE transferproductid = 1246;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('781', '2', '25', '1', '1246', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10805
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '781';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 781, 0, 0
                    , 320.00, 25.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3328
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('781', '1', '25', '0', '1246', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10806
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1247';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1814';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 780, 0, 0
                    , 295.00, 78, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-78, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3331
UPDATE storemovement SET  buyPricesHistoryBookData = "78*2026-10-14*295.00," WHERE transferproductid = 1247;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('780', '2', '78', '1', '1247', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '78', '0', '1', '2026-10-14','0','0'); -- id=10807
UPDATE storedetail SET  productquantity = '78', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '780';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 780, 0, 0
                    , 295.00, 78.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+78.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3330
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('780', '1', '78', '0', '1247', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '78', '1', '2026-10-14','0','0'); -- id=10808
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1248';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1813';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 779, 0, 0
                    , 300.00, 26, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-26, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3333
UPDATE storemovement SET  buyPricesHistoryBookData = "26*2026-10-14*300.00," WHERE transferproductid = 1248;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('779', '2', '26', '1', '1248', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '26', '0', '1', '2026-10-14','0','0'); -- id=10809
UPDATE storedetail SET  productquantity = '26', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '779';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 779, 0, 0
                    , 300.00, 26.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+26.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3332
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('779', '1', '26', '0', '1248', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '26', '1', '2026-10-14','0','0'); -- id=10810
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1249';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1812';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 778, 0, 0
                    , 275.00, 27, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3335
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-14*275.00," WHERE transferproductid = 1249;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('778', '2', '27', '1', '1249', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=10811
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '778';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 778, 0, 0
                    , 275.00, 27.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3334
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('778', '1', '27', '0', '1249', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=10812
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1250';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1811';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 777, 0, 0
                    , 245.00, 23, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-23, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3337
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2026-10-14*245.00," WHERE transferproductid = 1250;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('777', '2', '23', '1', '1250', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '23', '0', '1', '2026-10-14','0','0'); -- id=10813
UPDATE storedetail SET  productquantity = '23', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '777';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 777, 0, 0
                    , 245.00, 23.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3336
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('777', '1', '23', '0', '1250', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '23', '1', '2026-10-14','0','0'); -- id=10814
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1251';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1810';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 776, 0, 0
                    , 320.00, 8, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3339
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2026-10-14*320.00," WHERE transferproductid = 1251;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('776', '2', '8', '1', '1251', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=10815
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '776';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 776, 0, 0
                    , 320.00, 8.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3338
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('776', '1', '8', '0', '1251', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=10816
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1252';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1809';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 775, 0, 0
                    , 295.00, 8, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3341
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2026-10-14*295.00," WHERE transferproductid = 1252;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('775', '2', '8', '1', '1252', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=10817
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '775';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 775, 0, 0
                    , 295.00, 8.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3340
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('775', '1', '8', '0', '1252', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=10818
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1253';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1808';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 774, 0, 0
                    , 315.00, 9, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-9, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3343
UPDATE storemovement SET  buyPricesHistoryBookData = "9*2026-10-14*315.00," WHERE transferproductid = 1253;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('774', '2', '9', '1', '1253', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '9', '0', '1', '2026-10-14','0','0'); -- id=10819
UPDATE storedetail SET  productquantity = '9', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '774';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 774, 0, 0
                    , 315.00, 9.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+9.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3342
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('774', '1', '9', '0', '1253', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '9', '1', '2026-10-14','0','0'); -- id=10820
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1254';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1807';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 773, 0, 0
                    , 300.00, 27, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-27, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3345
UPDATE storemovement SET  buyPricesHistoryBookData = "27*2026-10-14*300.00," WHERE transferproductid = 1254;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('773', '2', '27', '1', '1254', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '27', '0', '1', '2026-10-14','0','0'); -- id=10821
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '773';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 773, 0, 0
                    , 300.00, 27.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+27.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3344
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('773', '1', '27', '0', '1254', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '27', '1', '2026-10-14','0','0'); -- id=10822
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1255';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1806';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 772, 0, 0
                    , 210.00, 34, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-34, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3347
UPDATE storemovement SET  buyPricesHistoryBookData = "34*2026-10-14*210.00," WHERE transferproductid = 1255;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('772', '2', '34', '1', '1255', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '34', '0', '1', '2026-10-14','0','0'); -- id=10823
UPDATE storedetail SET  productquantity = '34', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '772';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 772, 0, 0
                    , 210.00, 34.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+34.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3346
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('772', '1', '34', '0', '1255', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '34', '1', '2026-10-14','0','0'); -- id=10824
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1256';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1805';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 771, 0, 0
                    , 345.00, 25, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3349
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*345.00," WHERE transferproductid = 1256;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('771', '2', '25', '1', '1256', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10825
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '771';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 771, 0, 0
                    , 345.00, 25.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3348
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('771', '1', '25', '0', '1256', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10826
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1257';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1804';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 770, 0, 0
                    , 435.00, 319, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-319, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3351
UPDATE storemovement SET  buyPricesHistoryBookData = "319*2026-10-14*435.00," WHERE transferproductid = 1257;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('770', '2', '319', '1', '1257', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '319', '0', '1', '2026-10-14','0','0'); -- id=10827
UPDATE storedetail SET  productquantity = '319', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '770';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 770, 0, 0
                    , 435.00, 319.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+319.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3350
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('770', '1', '319', '0', '1257', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '319', '1', '2026-10-14','0','0'); -- id=10828
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1258';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1803';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1258;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('769', '2', '-1', '1', '1258', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=10829
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '769';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('769', '1', '-1', '0', '1258', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=10830
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1259';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1802';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1259;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('768', '2', '-1', '1', '1259', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-1', '0', '1', '2026-10-14','0','0'); -- id=10831
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '768';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('768', '1', '-1', '0', '1259', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-1', '1', '2026-10-14','0','0'); -- id=10832
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1260';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1801';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 767, 0, 0
                    , 360.00, 2, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-2, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3353
UPDATE storemovement SET  buyPricesHistoryBookData = "2*2026-10-14*360.00," WHERE transferproductid = 1260;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('767', '2', '2', '1', '1260', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '2', '0', '1', '2026-10-14','0','0'); -- id=10833
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '767';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 767, 0, 0
                    , 360.00, 2.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+2.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3352
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('767', '1', '2', '0', '1260', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '2', '1', '2026-10-14','0','0'); -- id=10834
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1261';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1800';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 766, 0, 0
                    , 410.00, 15, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3355
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*410.00," WHERE transferproductid = 1261;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('766', '2', '15', '1', '1261', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10835
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '766';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 766, 0, 0
                    , 410.00, 15.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3354
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('766', '1', '15', '0', '1261', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10836
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1262';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1799';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1262;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('765', '2', '-20', '1', '1262', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '-20', '0', '1', '2026-10-14','0','0'); -- id=10837
UPDATE storedetail SET  productquantity = '-20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '765';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('765', '1', '-20', '0', '1262', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '-20', '1', '2026-10-14','0','0'); -- id=10838
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1263';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1798';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1263;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('764', '2', '0', '1', '1263', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10839
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '764';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('764', '1', '0', '0', '1263', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10840
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1264';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1797';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1264;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('763', '2', '0', '1', '1264', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10841
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '763';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('763', '1', '0', '0', '1264', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10842
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1265';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1796';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 762, 0, 0
                    , 200.00, 361, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-361, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3357
UPDATE storemovement SET  buyPricesHistoryBookData = "361*2026-10-14*200.00," WHERE transferproductid = 1265;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('762', '2', '361', '1', '1265', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '361', '0', '1', '2026-10-14','0','0'); -- id=10843
UPDATE storedetail SET  productquantity = '361', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '762';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 762, 0, 0
                    , 200.00, 361.00, 0, 0, 1, '2026-10-14 18:01:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+361.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:08' ; -- id=3356
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('762', '1', '361', '0', '1265', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '361', '1', '2026-10-14','0','0'); -- id=10844
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1266';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1795';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 761, 0, 0
                    , 520.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3359
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*520.00," WHERE transferproductid = 1266;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('761', '2', '10', '1', '1266', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10845
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '761';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 761, 0, 0
                    , 520.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3358
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('761', '1', '10', '0', '1266', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10846
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1267';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1794';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 760, 0, 0
                    , 620.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3361
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*620.00," WHERE transferproductid = 1267;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('760', '2', '5', '1', '1267', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10847
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '760';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 760, 0, 0
                    , 620.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3360
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('760', '1', '5', '0', '1267', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10848
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1268';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1793';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 759, 0, 0
                    , 580.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3363
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*580.00," WHERE transferproductid = 1268;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('759', '2', '10', '1', '1268', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10849
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '759';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 759, 0, 0
                    , 580.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3362
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('759', '1', '10', '0', '1268', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10850
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1269';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1792';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 758, 0, 0
                    , 635.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3365
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*635.00," WHERE transferproductid = 1269;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('758', '2', '10', '1', '1269', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10851
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '758';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 758, 0, 0
                    , 635.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3364
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('758', '1', '10', '0', '1269', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10852
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1270';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1791';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 757, 0, 0
                    , 585.00, 20, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3367
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*585.00," WHERE transferproductid = 1270;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('757', '2', '20', '1', '1270', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10853
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '757';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 757, 0, 0
                    , 585.00, 20.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3366
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('757', '1', '20', '0', '1270', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10854
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1271';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1790';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 756, 0, 0
                    , 575.00, 15, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3369
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*575.00," WHERE transferproductid = 1271;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('756', '2', '15', '1', '1271', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10855
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '756';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 756, 0, 0
                    , 575.00, 15.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3368
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('756', '1', '15', '0', '1271', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10856
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1272';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1789';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 755, 0, 0
                    , 605.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3371
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*605.00," WHERE transferproductid = 1272;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('755', '2', '5', '1', '1272', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10857
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '755';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 755, 0, 0
                    , 605.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3370
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('755', '1', '5', '0', '1272', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10858
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1273';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1788';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 754, 0, 0
                    , 590.00, 15, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3373
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*590.00," WHERE transferproductid = 1273;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('754', '2', '15', '1', '1273', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10859
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '754';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 754, 0, 0
                    , 590.00, 15.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3372
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('754', '1', '15', '0', '1273', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10860
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1274';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1787';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 753, 0, 0
                    , 625.00, 20, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3375
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*625.00," WHERE transferproductid = 1274;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('753', '2', '20', '1', '1274', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10861
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '753';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 753, 0, 0
                    , 625.00, 20.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3374
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('753', '1', '20', '0', '1274', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10862
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1275';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1786';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 752, 0, 0
                    , 640.00, 19, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-19, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3377
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2026-10-14*640.00," WHERE transferproductid = 1275;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('752', '2', '19', '1', '1275', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '19', '0', '1', '2026-10-14','0','0'); -- id=10863
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '752';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 752, 0, 0
                    , 640.00, 19.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3376
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('752', '1', '19', '0', '1275', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '19', '1', '2026-10-14','0','0'); -- id=10864
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1276';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1785';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 751, 0, 0
                    , 565.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3379
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*565.00," WHERE transferproductid = 1276;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('751', '2', '5', '1', '1276', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10865
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '751';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 751, 0, 0
                    , 565.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3378
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('751', '1', '5', '0', '1276', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10866
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1277';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1784';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 750, 0, 0
                    , 575.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3381
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*575.00," WHERE transferproductid = 1277;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('750', '2', '10', '1', '1277', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10867
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '750';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 750, 0, 0
                    , 575.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3380
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('750', '1', '10', '0', '1277', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10868
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1278';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1783';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 749, 0, 0
                    , 615.00, 15, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3383
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*615.00," WHERE transferproductid = 1278;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('749', '2', '15', '1', '1278', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10869
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '749';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 749, 0, 0
                    , 615.00, 15.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3382
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('749', '1', '15', '0', '1278', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10870
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1279';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1782';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 748, 0, 0
                    , 585.00, 15, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3385
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*585.00," WHERE transferproductid = 1279;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('748', '2', '15', '1', '1279', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10871
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '748';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 748, 0, 0
                    , 585.00, 15.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3384
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('748', '1', '15', '0', '1279', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10872
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1280';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1781';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 747, 0, 0
                    , 535.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3387
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*535.00," WHERE transferproductid = 1280;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('747', '2', '10', '1', '1280', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10873
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '747';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 747, 0, 0
                    , 535.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3386
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('747', '1', '10', '0', '1280', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10874
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1281';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1780';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 746, 0, 0
                    , 545.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3389
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*545.00," WHERE transferproductid = 1281;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('746', '2', '5', '1', '1281', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10875
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '746';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 746, 0, 0
                    , 545.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3388
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('746', '1', '5', '0', '1281', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10876
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1282';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1779';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 745, 0, 0
                    , 575.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3391
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*575.00," WHERE transferproductid = 1282;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('745', '2', '5', '1', '1282', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10877
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '745';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 745, 0, 0
                    , 575.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3390
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('745', '1', '5', '0', '1282', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10878
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1283';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1778';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 744, 0, 0
                    , 535.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3393
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*535.00," WHERE transferproductid = 1283;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('744', '2', '10', '1', '1283', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10879
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '744';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 744, 0, 0
                    , 535.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3392
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('744', '1', '10', '0', '1283', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10880
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1284';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1777';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 743, 0, 0
                    , 540.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3395
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*540.00," WHERE transferproductid = 1284;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('743', '2', '5', '1', '1284', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10881
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '743';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 743, 0, 0
                    , 540.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3394
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('743', '1', '5', '0', '1284', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10882
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1285';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1776';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 742, 0, 0
                    , 600.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3397
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*600.00," WHERE transferproductid = 1285;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('742', '2', '5', '1', '1285', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10883
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '742';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 742, 0, 0
                    , 600.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3396
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('742', '1', '5', '0', '1285', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10884
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1286';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1775';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 741, 0, 0
                    , 575.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3399
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*575.00," WHERE transferproductid = 1286;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('741', '2', '10', '1', '1286', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10885
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '741';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 741, 0, 0
                    , 575.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3398
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('741', '1', '10', '0', '1286', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10886
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1287';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1774';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 740, 0, 0
                    , 555.00, 40, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3401
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*555.00," WHERE transferproductid = 1287;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('740', '2', '40', '1', '1287', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=10887
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '740';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 740, 0, 0
                    , 555.00, 40.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3400
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('740', '1', '40', '0', '1287', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=10888
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1288';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1773';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 739, 0, 0
                    , 555.00, 15, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3403
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*555.00," WHERE transferproductid = 1288;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('739', '2', '15', '1', '1288', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10889
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '739';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 739, 0, 0
                    , 555.00, 15.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3402
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('739', '1', '15', '0', '1288', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10890
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1289';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1772';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 738, 0, 0
                    , 480.00, 25, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3405
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*480.00," WHERE transferproductid = 1289;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('738', '2', '25', '1', '1289', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10891
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '738';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 738, 0, 0
                    , 480.00, 25.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3404
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('738', '1', '25', '0', '1289', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10892
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1290';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1771';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 737, 0, 0
                    , 585.00, 30, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3407
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*585.00," WHERE transferproductid = 1290;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('737', '2', '30', '1', '1290', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10893
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '737';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 737, 0, 0
                    , 585.00, 30.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3406
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('737', '1', '30', '0', '1290', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10894
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1291';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1770';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 736, 0, 0
                    , 570.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3409
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*570.00," WHERE transferproductid = 1291;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('736', '2', '5', '1', '1291', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10895
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '736';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 736, 0, 0
                    , 570.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3408
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('736', '1', '5', '0', '1291', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10896
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1292';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1769';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 735, 0, 0
                    , 600.00, 20, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3411
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*600.00," WHERE transferproductid = 1292;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('735', '2', '20', '1', '1292', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10897
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '735';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 735, 0, 0
                    , 600.00, 20.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3410
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('735', '1', '20', '0', '1292', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10898
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1293';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1768';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 734, 0, 0
                    , 570.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3413
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*570.00," WHERE transferproductid = 1293;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('734', '2', '10', '1', '1293', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10899
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '734';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 734, 0, 0
                    , 570.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3412
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('734', '1', '10', '0', '1293', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10900
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1294';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1767';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 733, 0, 0
                    , 570.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3415
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*570.00," WHERE transferproductid = 1294;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('733', '2', '10', '1', '1294', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10901
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '733';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 733, 0, 0
                    , 570.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3414
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('733', '1', '10', '0', '1294', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10902
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1295';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1766';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 732, 0, 0
                    , 540.00, 19, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-19, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3417
UPDATE storemovement SET  buyPricesHistoryBookData = "19*2026-10-14*540.00," WHERE transferproductid = 1295;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('732', '2', '19', '1', '1295', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '19', '0', '1', '2026-10-14','0','0'); -- id=10903
UPDATE storedetail SET  productquantity = '19', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '732';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 732, 0, 0
                    , 540.00, 19.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+19.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3416
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('732', '1', '19', '0', '1295', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '19', '1', '2026-10-14','0','0'); -- id=10904
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1296';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1765';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 731, 0, 0
                    , 500.00, 29, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-29, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3419
UPDATE storemovement SET  buyPricesHistoryBookData = "29*2026-10-14*500.00," WHERE transferproductid = 1296;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('731', '2', '29', '1', '1296', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '29', '0', '1', '2026-10-14','0','0'); -- id=10905
UPDATE storedetail SET  productquantity = '29', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '731';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 731, 0, 0
                    , 500.00, 29.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3418
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('731', '1', '29', '0', '1296', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '29', '1', '2026-10-14','0','0'); -- id=10906
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1297';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1764';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 730, 0, 0
                    , 540.00, 25, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3421
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*540.00," WHERE transferproductid = 1297;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('730', '2', '25', '1', '1297', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10907
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '730';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 730, 0, 0
                    , 540.00, 25.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3420
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('730', '1', '25', '0', '1297', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10908
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1298';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1763';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 729, 0, 0
                    , 555.00, 35, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3423
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2026-10-14*555.00," WHERE transferproductid = 1298;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('729', '2', '35', '1', '1298', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=10909
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '729';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 729, 0, 0
                    , 555.00, 35.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3422
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('729', '1', '35', '0', '1298', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=10910
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1299';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1762';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 728, 0, 0
                    , 545.00, 35, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3425
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2026-10-14*545.00," WHERE transferproductid = 1299;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('728', '2', '35', '1', '1299', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=10911
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '728';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 728, 0, 0
                    , 545.00, 35.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3424
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('728', '1', '35', '0', '1299', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=10912
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1300';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1761';
UPDATE storemovement SET  buyPricesHistoryBookData = "" WHERE transferproductid = 1300;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('727', '2', '0', '1', '1300', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10913
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '727';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('727', '1', '0', '0', '1300', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=10914
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1301';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1760';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 726, 0, 0
                    , 565.00, 29, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-29, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3427
UPDATE storemovement SET  buyPricesHistoryBookData = "29*2026-10-14*565.00," WHERE transferproductid = 1301;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('726', '2', '29', '1', '1301', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '29', '0', '1', '2026-10-14','0','0'); -- id=10915
UPDATE storedetail SET  productquantity = '29', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '726';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 726, 0, 0
                    , 565.00, 29.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+29.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3426
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('726', '1', '29', '0', '1301', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '29', '1', '2026-10-14','0','0'); -- id=10916
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1302';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1759';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 725, 0, 0
                    , 540.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3429
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*540.00," WHERE transferproductid = 1302;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('725', '2', '5', '1', '1302', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10917
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '725';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 725, 0, 0
                    , 540.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3428
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('725', '1', '5', '0', '1302', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10918
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1303';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1758';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 724, 0, 0
                    , 590.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3431
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*590.00," WHERE transferproductid = 1303;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('724', '2', '5', '1', '1303', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10919
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '724';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 724, 0, 0
                    , 590.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3430
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('724', '1', '5', '0', '1303', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10920
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1304';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1757';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 723, 0, 0
                    , 590.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3433
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*590.00," WHERE transferproductid = 1304;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('723', '2', '5', '1', '1304', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10921
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '723';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 723, 0, 0
                    , 590.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3432
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('723', '1', '5', '0', '1304', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10922
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1305';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1756';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 722, 0, 0
                    , 565.00, 15, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3435
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*565.00," WHERE transferproductid = 1305;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('722', '2', '15', '1', '1305', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10923
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '722';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 722, 0, 0
                    , 565.00, 15.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3434
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('722', '1', '15', '0', '1305', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10924
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1306';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1755';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 721, 0, 0
                    , 570.00, 20, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3437
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*570.00," WHERE transferproductid = 1306;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('721', '2', '20', '1', '1306', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10925
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '721';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 721, 0, 0
                    , 570.00, 20.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3436
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('721', '1', '20', '0', '1306', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10926
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1307';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1754';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 720, 0, 0
                    , 580.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3439
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*580.00," WHERE transferproductid = 1307;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('720', '2', '5', '1', '1307', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10927
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '720';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 720, 0, 0
                    , 580.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3438
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('720', '1', '5', '0', '1307', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10928
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1308';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1753';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 719, 0, 0
                    , 545.00, 25, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3441
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*545.00," WHERE transferproductid = 1308;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('719', '2', '25', '1', '1308', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10929
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '719';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 719, 0, 0
                    , 545.00, 25.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3440
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('719', '1', '25', '0', '1308', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10930
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1309';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1752';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 718, 0, 0
                    , 490.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3443
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*490.00," WHERE transferproductid = 1309;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('718', '2', '5', '1', '1309', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10931
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '718';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 718, 0, 0
                    , 490.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3442
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('718', '1', '5', '0', '1309', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10932
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1310';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1751';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 717, 0, 0
                    , 580.00, 18, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3445
UPDATE storemovement SET  buyPricesHistoryBookData = "18*2026-10-14*580.00," WHERE transferproductid = 1310;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('717', '2', '18', '1', '1310', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '18', '0', '1', '2026-10-14','0','0'); -- id=10933
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '717';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 717, 0, 0
                    , 580.00, 18.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+18.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3444
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('717', '1', '18', '0', '1310', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '18', '1', '2026-10-14','0','0'); -- id=10934
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1311';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1750';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 716, 0, 0
                    , 580.00, 12, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3447
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*580.00," WHERE transferproductid = 1311;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('716', '2', '12', '1', '1311', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=10935
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '716';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 716, 0, 0
                    , 580.00, 12.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3446
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('716', '1', '12', '0', '1311', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=10936
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1312';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1749';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 715, 0, 0
                    , 435.00, 1, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-1, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3449
UPDATE storemovement SET  buyPricesHistoryBookData = "1*2026-10-14*435.00," WHERE transferproductid = 1312;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('715', '2', '1', '1', '1312', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '1', '0', '1', '2026-10-14','0','0'); -- id=10937
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '715';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 715, 0, 0
                    , 435.00, 1.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+1.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3448
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('715', '1', '1', '0', '1312', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '1', '1', '2026-10-14','0','0'); -- id=10938
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1313';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1748';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 714, 0, 0
                    , 590.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3451
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*590.00," WHERE transferproductid = 1313;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('714', '2', '10', '1', '1313', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10939
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '714';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 714, 0, 0
                    , 590.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3450
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('714', '1', '10', '0', '1313', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10940
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1314';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1747';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 713, 0, 0
                    , 575.00, 4, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3453
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2026-10-14*575.00," WHERE transferproductid = 1314;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('713', '2', '4', '1', '1314', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=10941
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '713';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 713, 0, 0
                    , 575.00, 4.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3452
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('713', '1', '4', '0', '1314', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=10942
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1315';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1746';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 712, 0, 0
                    , 550.00, 20, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3455
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*550.00," WHERE transferproductid = 1315;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('712', '2', '20', '1', '1315', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10943
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '712';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 712, 0, 0
                    , 550.00, 20.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3454
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('712', '1', '20', '0', '1315', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10944
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1316';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1745';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 711, 0, 0
                    , 720.00, 25, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3457
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*720.00," WHERE transferproductid = 1316;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('711', '2', '25', '1', '1316', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10945
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '711';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 711, 0, 0
                    , 720.00, 25.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3456
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('711', '1', '25', '0', '1316', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10946
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1317';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1744';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 710, 0, 0
                    , 525.00, 30, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3459
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*525.00," WHERE transferproductid = 1317;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('710', '2', '30', '1', '1317', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10947
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '710';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 710, 0, 0
                    , 525.00, 30.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3458
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('710', '1', '30', '0', '1317', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10948
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1318';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1743';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 709, 0, 0
                    , 535.00, 20, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3461
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*535.00," WHERE transferproductid = 1318;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('709', '2', '20', '1', '1318', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10949
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '709';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 709, 0, 0
                    , 535.00, 20.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3460
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('709', '1', '20', '0', '1318', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10950
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1319';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1742';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 708, 0, 0
                    , 550.00, 25, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3463
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*550.00," WHERE transferproductid = 1319;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('708', '2', '25', '1', '1319', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10951
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '708';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 708, 0, 0
                    , 550.00, 25.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3462
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('708', '1', '25', '0', '1319', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10952
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1320';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1741';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 707, 0, 0
                    , 550.00, 25, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3465
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*550.00," WHERE transferproductid = 1320;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('707', '2', '25', '1', '1320', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10953
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '707';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 707, 0, 0
                    , 550.00, 25.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3464
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('707', '1', '25', '0', '1320', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10954
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1321';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1740';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 706, 0, 0
                    , 425.00, 25, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3467
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*425.00," WHERE transferproductid = 1321;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('706', '2', '25', '1', '1321', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10955
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '706';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 706, 0, 0
                    , 425.00, 25.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3466
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('706', '1', '25', '0', '1321', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10956
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1322';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1739';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 705, 0, 0
                    , 600.00, 8, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3469
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2026-10-14*600.00," WHERE transferproductid = 1322;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('705', '2', '8', '1', '1322', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=10957
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '705';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 705, 0, 0
                    , 600.00, 8.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3468
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('705', '1', '8', '0', '1322', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=10958
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1323';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1738';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 704, 0, 0
                    , 570.00, 15, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3471
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*570.00," WHERE transferproductid = 1323;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('704', '2', '15', '1', '1323', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10959
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '704';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 704, 0, 0
                    , 570.00, 15.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3470
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('704', '1', '15', '0', '1323', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10960
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1324';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1737';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 703, 0, 0
                    , 625.00, 50, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-50, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3473
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2026-10-14*625.00," WHERE transferproductid = 1324;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('703', '2', '50', '1', '1324', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=10961
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '703';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 703, 0, 0
                    , 625.00, 50.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3472
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('703', '1', '50', '0', '1324', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=10962
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1325';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1736';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 702, 0, 0
                    , 585.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3475
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*585.00," WHERE transferproductid = 1325;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('702', '2', '5', '1', '1325', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10963
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '702';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 702, 0, 0
                    , 585.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3474
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('702', '1', '5', '0', '1325', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10964
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1326';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1735';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 701, 0, 0
                    , 570.00, 30, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3477
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*570.00," WHERE transferproductid = 1326;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('701', '2', '30', '1', '1326', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=10965
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '701';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 701, 0, 0
                    , 570.00, 30.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3476
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('701', '1', '30', '0', '1326', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=10966
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1327';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1734';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 700, 0, 0
                    , 505.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3479
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*505.00," WHERE transferproductid = 1327;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('700', '2', '10', '1', '1327', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10967
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '700';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 700, 0, 0
                    , 505.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3478
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('700', '1', '10', '0', '1327', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10968
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1328';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1733';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 699, 0, 0
                    , 520.00, 12, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3481
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*520.00," WHERE transferproductid = 1328;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('699', '2', '12', '1', '1328', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=10969
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '699';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 699, 0, 0
                    , 520.00, 12.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3480
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('699', '1', '12', '0', '1328', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=10970
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1329';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1732';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 698, 0, 0
                    , 500.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3483
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*500.00," WHERE transferproductid = 1329;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('698', '2', '10', '1', '1329', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10971
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '698';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 698, 0, 0
                    , 500.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3482
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('698', '1', '10', '0', '1329', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10972
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1330';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1731';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 697, 0, 0
                    , 460.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3485
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*460.00," WHERE transferproductid = 1330;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('697', '2', '5', '1', '1330', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=10973
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '697';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 697, 0, 0
                    , 460.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3484
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('697', '1', '5', '0', '1330', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=10974
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1331';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1730';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 696, 0, 0
                    , 575.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3487
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*575.00," WHERE transferproductid = 1331;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('696', '2', '10', '1', '1331', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10975
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '696';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 696, 0, 0
                    , 575.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3486
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('696', '1', '10', '0', '1331', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10976
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1332';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1729';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 695, 0, 0
                    , 525.00, 50, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-50, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3489
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2026-10-14*525.00," WHERE transferproductid = 1332;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('695', '2', '50', '1', '1332', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=10977
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '695';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 695, 0, 0
                    , 525.00, 50.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3488
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('695', '1', '50', '0', '1332', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=10978
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1333';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1728';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 694, 0, 0
                    , 540.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3491
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*540.00," WHERE transferproductid = 1333;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('694', '2', '10', '1', '1333', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10979
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '694';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 694, 0, 0
                    , 540.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3490
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('694', '1', '10', '0', '1333', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10980
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1334';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1727';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 693, 0, 0
                    , 535.00, 20, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3493
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*535.00," WHERE transferproductid = 1334;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('693', '2', '20', '1', '1334', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=10981
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '693';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 693, 0, 0
                    , 535.00, 20.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3492
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('693', '1', '20', '0', '1334', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=10982
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1335';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1726';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 692, 0, 0
                    , 570.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3495
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*570.00," WHERE transferproductid = 1335;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('692', '2', '10', '1', '1335', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10983
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '692';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 692, 0, 0
                    , 570.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3494
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('692', '1', '10', '0', '1335', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10984
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1336';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1725';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 691, 0, 0
                    , 555.00, 15, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3497
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*555.00," WHERE transferproductid = 1336;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('691', '2', '15', '1', '1336', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=10985
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '691';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 691, 0, 0
                    , 555.00, 15.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3496
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('691', '1', '15', '0', '1336', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=10986
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1337';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1724';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 690, 0, 0
                    , 500.00, 14, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-14, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3499
UPDATE storemovement SET  buyPricesHistoryBookData = "14*2026-10-14*500.00," WHERE transferproductid = 1337;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('690', '2', '14', '1', '1337', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '14', '0', '1', '2026-10-14','0','0'); -- id=10987
UPDATE storedetail SET  productquantity = '14', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '690';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 690, 0, 0
                    , 500.00, 14.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+14.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3498
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('690', '1', '14', '0', '1337', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '14', '1', '2026-10-14','0','0'); -- id=10988
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1338';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1723';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 689, 0, 0
                    , 540.00, 25, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3501
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*540.00," WHERE transferproductid = 1338;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('689', '2', '25', '1', '1338', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=10989
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '689';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 689, 0, 0
                    , 540.00, 25.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3500
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('689', '1', '25', '0', '1338', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=10990
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1339';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1722';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 688, 0, 0
                    , 640.00, 35, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-35, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3503
UPDATE storemovement SET  buyPricesHistoryBookData = "35*2026-10-14*640.00," WHERE transferproductid = 1339;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('688', '2', '35', '1', '1339', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '35', '0', '1', '2026-10-14','0','0'); -- id=10991
UPDATE storedetail SET  productquantity = '35', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '688';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 688, 0, 0
                    , 640.00, 35.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+35.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3502
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('688', '1', '35', '0', '1339', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '35', '1', '2026-10-14','0','0'); -- id=10992
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1340';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1721';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 687, 0, 0
                    , 570.00, 22, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-22, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3505
UPDATE storemovement SET  buyPricesHistoryBookData = "22*2026-10-14*570.00," WHERE transferproductid = 1340;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('687', '2', '22', '1', '1340', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '22', '0', '1', '2026-10-14','0','0'); -- id=10993
UPDATE storedetail SET  productquantity = '22', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '687';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 687, 0, 0
                    , 570.00, 22.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+22.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3504
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('687', '1', '22', '0', '1340', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '22', '1', '2026-10-14','0','0'); -- id=10994
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1341';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1720';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 686, 0, 0
                    , 200.00, 138, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-138, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3507
UPDATE storemovement SET  buyPricesHistoryBookData = "138*2026-10-14*200.00," WHERE transferproductid = 1341;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('686', '2', '138', '1', '1341', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '138', '0', '1', '2026-10-14','0','0'); -- id=10995
UPDATE storedetail SET  productquantity = '138', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '686';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 686, 0, 0
                    , 200.00, 138.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+138.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3506
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('686', '1', '138', '0', '1341', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '138', '1', '2026-10-14','0','0'); -- id=10996
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1342';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1719';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 685, 0, 0
                    , 375.00, 10, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-10, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3509
UPDATE storemovement SET  buyPricesHistoryBookData = "10*2026-10-14*375.00," WHERE transferproductid = 1342;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('685', '2', '10', '1', '1342', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '10', '0', '1', '2026-10-14','0','0'); -- id=10997
UPDATE storedetail SET  productquantity = '10', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '685';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 685, 0, 0
                    , 375.00, 10.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+10.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3508
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('685', '1', '10', '0', '1342', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '10', '1', '2026-10-14','0','0'); -- id=10998
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1343';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1718';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 684, 0, 0
                    , 330.00, 49, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-49, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3511
UPDATE storemovement SET  buyPricesHistoryBookData = "49*2026-10-14*330.00," WHERE transferproductid = 1343;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('684', '2', '49', '1', '1343', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '49', '0', '1', '2026-10-14','0','0'); -- id=10999
UPDATE storedetail SET  productquantity = '49', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '684';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 684, 0, 0
                    , 330.00, 49.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+49.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3510
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('684', '1', '49', '0', '1343', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '49', '1', '2026-10-14','0','0'); -- id=11000
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1344';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1717';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 683, 0, 0
                    , 330.00, 60, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3513
UPDATE storemovement SET  buyPricesHistoryBookData = "60*2026-10-14*330.00," WHERE transferproductid = 1344;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('683', '2', '60', '1', '1344', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '60', '0', '1', '2026-10-14','0','0'); -- id=11001
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '683';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 683, 0, 0
                    , 330.00, 60.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+60.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3512
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('683', '1', '60', '0', '1344', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '60', '1', '2026-10-14','0','0'); -- id=11002
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1345';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1716';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 682, 0, 0
                    , 425.00, 50, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-50, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3515
UPDATE storemovement SET  buyPricesHistoryBookData = "50*2026-10-14*425.00," WHERE transferproductid = 1345;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('682', '2', '50', '1', '1345', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '50', '0', '1', '2026-10-14','0','0'); -- id=11003
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '682';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 682, 0, 0
                    , 425.00, 50.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+50.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3514
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('682', '1', '50', '0', '1345', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '50', '1', '2026-10-14','0','0'); -- id=11004
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1346';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1715';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 681, 0, 0
                    , 425.00, 61, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-61, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3517
UPDATE storemovement SET  buyPricesHistoryBookData = "61*2026-10-14*425.00," WHERE transferproductid = 1346;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('681', '2', '61', '1', '1346', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '61', '0', '1', '2026-10-14','0','0'); -- id=11005
UPDATE storedetail SET  productquantity = '61', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '681';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 681, 0, 0
                    , 425.00, 61.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+61.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3516
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('681', '1', '61', '0', '1346', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '61', '1', '2026-10-14','0','0'); -- id=11006
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1347';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1714';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 680, 0, 0
                    , 410.00, 49, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-49, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3519
UPDATE storemovement SET  buyPricesHistoryBookData = "49*2026-10-14*410.00," WHERE transferproductid = 1347;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('680', '2', '49', '1', '1347', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '49', '0', '1', '2026-10-14','0','0'); -- id=11007
UPDATE storedetail SET  productquantity = '49', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '680';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 680, 0, 0
                    , 410.00, 49.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+49.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3518
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('680', '1', '49', '0', '1347', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '49', '1', '2026-10-14','0','0'); -- id=11008
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1348';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1713';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 679, 0, 0
                    , 375.00, 76, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-76, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3521
UPDATE storemovement SET  buyPricesHistoryBookData = "76*2026-10-14*375.00," WHERE transferproductid = 1348;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('679', '2', '76', '1', '1348', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '76', '0', '1', '2026-10-14','0','0'); -- id=11009
UPDATE storedetail SET  productquantity = '76', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '679';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 679, 0, 0
                    , 375.00, 76.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+76.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3520
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('679', '1', '76', '0', '1348', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '76', '1', '2026-10-14','0','0'); -- id=11010
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1349';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1712';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 678, 0, 0
                    , 360.00, 88, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-88, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3523
UPDATE storemovement SET  buyPricesHistoryBookData = "88*2026-10-14*360.00," WHERE transferproductid = 1349;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('678', '2', '88', '1', '1349', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '88', '0', '1', '2026-10-14','0','0'); -- id=11011
UPDATE storedetail SET  productquantity = '88', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '678';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 678, 0, 0
                    , 360.00, 88.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+88.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3522
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('678', '1', '88', '0', '1349', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '88', '1', '2026-10-14','0','0'); -- id=11012
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1350';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1711';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 677, 0, 0
                    , 330.00, 43, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-43, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3525
UPDATE storemovement SET  buyPricesHistoryBookData = "43*2026-10-14*330.00," WHERE transferproductid = 1350;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('677', '2', '43', '1', '1350', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '43', '0', '1', '2026-10-14','0','0'); -- id=11013
UPDATE storedetail SET  productquantity = '43', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '677';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 677, 0, 0
                    , 330.00, 43.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+43.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3524
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('677', '1', '43', '0', '1350', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '43', '1', '2026-10-14','0','0'); -- id=11014
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1351';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1710';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 676, 0, 0
                    , 310.00, 290, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-290, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3527
UPDATE storemovement SET  buyPricesHistoryBookData = "290*2026-10-14*310.00," WHERE transferproductid = 1351;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('676', '2', '290', '1', '1351', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '290', '0', '1', '2026-10-14','0','0'); -- id=11015
UPDATE storedetail SET  productquantity = '290', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '676';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 676, 0, 0
                    , 310.00, 290.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+290.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3526
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('676', '1', '290', '0', '1351', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '290', '1', '2026-10-14','0','0'); -- id=11016
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1352';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1709';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 675, 0, 0
                    , 425.00, 108, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-108, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3529
UPDATE storemovement SET  buyPricesHistoryBookData = "108*2026-10-14*425.00," WHERE transferproductid = 1352;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('675', '2', '108', '1', '1352', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '108', '0', '1', '2026-10-14','0','0'); -- id=11017
UPDATE storedetail SET  productquantity = '108', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '675';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 675, 0, 0
                    , 425.00, 108.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+108.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3528
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('675', '1', '108', '0', '1352', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '108', '1', '2026-10-14','0','0'); -- id=11018
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1353';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1708';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 674, 0, 0
                    , 425.00, 90, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-90, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3531
UPDATE storemovement SET  buyPricesHistoryBookData = "90*2026-10-14*425.00," WHERE transferproductid = 1353;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('674', '2', '90', '1', '1353', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '90', '0', '1', '2026-10-14','0','0'); -- id=11019
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '674';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 674, 0, 0
                    , 425.00, 90.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+90.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3530
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('674', '1', '90', '0', '1353', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '90', '1', '2026-10-14','0','0'); -- id=11020
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1354';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1707';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 673, 0, 0
                    , 420.00, 119, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-119, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3533
UPDATE storemovement SET  buyPricesHistoryBookData = "119*2026-10-14*420.00," WHERE transferproductid = 1354;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('673', '2', '119', '1', '1354', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '119', '0', '1', '2026-10-14','0','0'); -- id=11021
UPDATE storedetail SET  productquantity = '119', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '673';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 673, 0, 0
                    , 420.00, 119.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+119.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3532
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('673', '1', '119', '0', '1354', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '119', '1', '2026-10-14','0','0'); -- id=11022
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1355';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1706';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 672, 0, 0
                    , 255.00, 11, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-11, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3535
UPDATE storemovement SET  buyPricesHistoryBookData = "11*2026-10-14*255.00," WHERE transferproductid = 1355;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('672', '2', '11', '1', '1355', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '11', '0', '1', '2026-10-14','0','0'); -- id=11023
UPDATE storedetail SET  productquantity = '11', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '672';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 672, 0, 0
                    , 255.00, 11.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+11.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3534
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('672', '1', '11', '0', '1355', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '11', '1', '2026-10-14','0','0'); -- id=11024
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1356';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1705';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 671, 0, 0
                    , 310.00, 752, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-752, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3537
UPDATE storemovement SET  buyPricesHistoryBookData = "752*2026-10-14*310.00," WHERE transferproductid = 1356;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('671', '2', '752', '1', '1356', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '752', '0', '1', '2026-10-14','0','0'); -- id=11025
UPDATE storedetail SET  productquantity = '752', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '671';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 671, 0, 0
                    , 310.00, 752.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+752.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3536
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('671', '1', '752', '0', '1356', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '752', '1', '2026-10-14','0','0'); -- id=11026
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1357';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1704';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 670, 0, 0
                    , 325.00, 54, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-54, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3539
UPDATE storemovement SET  buyPricesHistoryBookData = "54*2026-10-14*325.00," WHERE transferproductid = 1357;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('670', '2', '54', '1', '1357', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '54', '0', '1', '2026-10-14','0','0'); -- id=11027
UPDATE storedetail SET  productquantity = '54', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '670';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 670, 0, 0
                    , 325.00, 54.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+54.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3538
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('670', '1', '54', '0', '1357', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '54', '1', '2026-10-14','0','0'); -- id=11028
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1358';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1703';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 669, 0, 0
                    , 310.00, 103, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-103, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3541
UPDATE storemovement SET  buyPricesHistoryBookData = "103*2026-10-14*310.00," WHERE transferproductid = 1358;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('669', '2', '103', '1', '1358', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '103', '0', '1', '2026-10-14','0','0'); -- id=11029
UPDATE storedetail SET  productquantity = '103', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '669';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 669, 0, 0
                    , 310.00, 103.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+103.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3540
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('669', '1', '103', '0', '1358', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '103', '1', '2026-10-14','0','0'); -- id=11030
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1359';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1702';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 668, 0, 0
                    , 310.00, 43, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-43, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3543
UPDATE storemovement SET  buyPricesHistoryBookData = "43*2026-10-14*310.00," WHERE transferproductid = 1359;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('668', '2', '43', '1', '1359', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '43', '0', '1', '2026-10-14','0','0'); -- id=11031
UPDATE storedetail SET  productquantity = '43', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '668';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 668, 0, 0
                    , 310.00, 43.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+43.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3542
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('668', '1', '43', '0', '1359', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '43', '1', '2026-10-14','0','0'); -- id=11032
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1360';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1701';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 667, 0, 0
                    , 330.00, 23, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-23, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3545
UPDATE storemovement SET  buyPricesHistoryBookData = "23*2026-10-14*330.00," WHERE transferproductid = 1360;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('667', '2', '23', '1', '1360', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '23', '0', '1', '2026-10-14','0','0'); -- id=11033
UPDATE storedetail SET  productquantity = '23', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '667';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 667, 0, 0
                    , 330.00, 23.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+23.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3544
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('667', '1', '23', '0', '1360', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '23', '1', '2026-10-14','0','0'); -- id=11034
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1361';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1700';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 666, 0, 0
                    , 310.00, 25, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3547
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*310.00," WHERE transferproductid = 1361;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('666', '2', '25', '1', '1361', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=11035
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '666';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 666, 0, 0
                    , 310.00, 25.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3546
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('666', '1', '25', '0', '1361', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=11036
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1362';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1699';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 665, 0, 0
                    , 235.00, 6, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-6, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3549
UPDATE storemovement SET  buyPricesHistoryBookData = "6*2026-10-14*235.00," WHERE transferproductid = 1362;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('665', '2', '6', '1', '1362', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '6', '0', '1', '2026-10-14','0','0'); -- id=11037
UPDATE storedetail SET  productquantity = '6', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '665';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 665, 0, 0
                    , 235.00, 6.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+6.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3548
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('665', '1', '6', '0', '1362', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '6', '1', '2026-10-14','0','0'); -- id=11038
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1363';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1698';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 664, 0, 0
                    , 220.00, 62, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-62, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3551
UPDATE storemovement SET  buyPricesHistoryBookData = "62*2026-10-14*220.00," WHERE transferproductid = 1363;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('664', '2', '62', '1', '1363', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '62', '0', '1', '2026-10-14','0','0'); -- id=11039
UPDATE storedetail SET  productquantity = '62', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '664';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 664, 0, 0
                    , 220.00, 62.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+62.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3550
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('664', '1', '62', '0', '1363', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '62', '1', '2026-10-14','0','0'); -- id=11040
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1364';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1697';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 663, 0, 0
                    , 375.00, 160, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-160, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3553
UPDATE storemovement SET  buyPricesHistoryBookData = "160*2026-10-14*375.00," WHERE transferproductid = 1364;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('663', '2', '160', '1', '1364', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '160', '0', '1', '2026-10-14','0','0'); -- id=11041
UPDATE storedetail SET  productquantity = '160', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '663';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 663, 0, 0
                    , 375.00, 160.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+160.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3552
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('663', '1', '160', '0', '1364', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '160', '1', '2026-10-14','0','0'); -- id=11042
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1365';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1696';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 662, 0, 0
                    , 240.00, 24, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3555
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-14*240.00," WHERE transferproductid = 1365;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('662', '2', '24', '1', '1365', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=11043
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '662';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 662, 0, 0
                    , 240.00, 24.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3554
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('662', '1', '24', '0', '1365', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=11044
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1366';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1695';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 661, 0, 0
                    , 270.00, 70, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-70, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3557
UPDATE storemovement SET  buyPricesHistoryBookData = "70*2026-10-14*270.00," WHERE transferproductid = 1366;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('661', '2', '70', '1', '1366', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '70', '0', '1', '2026-10-14','0','0'); -- id=11045
UPDATE storedetail SET  productquantity = '70', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '661';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 661, 0, 0
                    , 270.00, 70.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+70.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3556
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('661', '1', '70', '0', '1366', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '70', '1', '2026-10-14','0','0'); -- id=11046
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1367';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1694';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 660, 0, 0
                    , 530.00, 20, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-20, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3559
UPDATE storemovement SET  buyPricesHistoryBookData = "20*2026-10-14*530.00," WHERE transferproductid = 1367;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('660', '2', '20', '1', '1367', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '20', '0', '1', '2026-10-14','0','0'); -- id=11047
UPDATE storedetail SET  productquantity = '20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '660';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 660, 0, 0
                    , 530.00, 20.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+20.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3558
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('660', '1', '20', '0', '1367', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '20', '1', '2026-10-14','0','0'); -- id=11048
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1368';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1693';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 659, 0, 0
                    , 580.00, 25, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-25, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3561
UPDATE storemovement SET  buyPricesHistoryBookData = "25*2026-10-14*580.00," WHERE transferproductid = 1368;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('659', '2', '25', '1', '1368', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '25', '0', '1', '2026-10-14','0','0'); -- id=11049
UPDATE storedetail SET  productquantity = '25', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '659';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 659, 0, 0
                    , 580.00, 25.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+25.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3560
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('659', '1', '25', '0', '1368', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '25', '1', '2026-10-14','0','0'); -- id=11050
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1369';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1692';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 658, 0, 0
                    , 580.00, 30, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3563
UPDATE storemovement SET  buyPricesHistoryBookData = "30*2026-10-14*580.00," WHERE transferproductid = 1369;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('658', '2', '30', '1', '1369', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '30', '0', '1', '2026-10-14','0','0'); -- id=11051
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '658';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 658, 0, 0
                    , 580.00, 30.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+30.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3562
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('658', '1', '30', '0', '1369', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '30', '1', '2026-10-14','0','0'); -- id=11052
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1370';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1691';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 657, 0, 0
                    , 580.00, 15, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3565
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*580.00," WHERE transferproductid = 1370;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('657', '2', '15', '1', '1370', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=11053
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '657';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 657, 0, 0
                    , 580.00, 15.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3564
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('657', '1', '15', '0', '1370', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=11054
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1371';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1690';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 656, 0, 0
                    , 550.00, 40, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3567
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*550.00," WHERE transferproductid = 1371;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('656', '2', '40', '1', '1371', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=11055
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '656';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 656, 0, 0
                    , 550.00, 40.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3566
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('656', '1', '40', '0', '1371', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=11056
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1372';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1689';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 655, 0, 0
                    , 580.00, 40, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3569
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-14*580.00," WHERE transferproductid = 1372;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('655', '2', '40', '1', '1372', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=11057
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '655';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 655, 0, 0
                    , 580.00, 40.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3568
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('655', '1', '40', '0', '1372', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=11058
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1373';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1688';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 654, 0, 0
                    , 550.00, 15, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3571
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*550.00," WHERE transferproductid = 1373;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('654', '2', '15', '1', '1373', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=11059
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '654';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 654, 0, 0
                    , 550.00, 15.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3570
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('654', '1', '15', '0', '1373', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=11060
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1374';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1687';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 653, 0, 0
                    , 480.00, 16, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-16, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3573
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2026-10-14*480.00," WHERE transferproductid = 1374;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('653', '2', '16', '1', '1374', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=11061
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '653';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 653, 0, 0
                    , 480.00, 16.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3572
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('653', '1', '16', '0', '1374', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '16', '1', '2026-10-14','0','0'); -- id=11062
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1375';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1686';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 652, 0, 0
                    , 505.00, 15, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3575
UPDATE storemovement SET  buyPricesHistoryBookData = "15*2026-10-14*505.00," WHERE transferproductid = 1375;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('652', '2', '15', '1', '1375', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '15', '0', '1', '2026-10-14','0','0'); -- id=11063
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '652';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 652, 0, 0
                    , 505.00, 15.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+15.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3574
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('652', '1', '15', '0', '1375', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '15', '1', '2026-10-14','0','0'); -- id=11064
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1376';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1685';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 651, 0, 0
                    , 490.00, 4, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-4, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3577
UPDATE storemovement SET  buyPricesHistoryBookData = "4*2026-10-14*490.00," WHERE transferproductid = 1376;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('651', '2', '4', '1', '1376', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '4', '0', '1', '2026-10-14','0','0'); -- id=11065
UPDATE storedetail SET  productquantity = '4', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '651';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 651, 0, 0
                    , 490.00, 4.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+4.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3576
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('651', '1', '4', '0', '1376', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '4', '1', '2026-10-14','0','0'); -- id=11066
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1377';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1684';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 650, 0, 0
                    , 310.00, 74, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-74, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3579
UPDATE storemovement SET  buyPricesHistoryBookData = "74*2026-10-14*310.00," WHERE transferproductid = 1377;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('650', '2', '74', '1', '1377', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '74', '0', '1', '2026-10-14','0','0'); -- id=11067
UPDATE storedetail SET  productquantity = '74', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '650';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 650, 0, 0
                    , 310.00, 74.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+74.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3578
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('650', '1', '74', '0', '1377', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '74', '1', '2026-10-14','0','0'); -- id=11068
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1378';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1683';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 649, 0, 0
                    , 290.00, 44, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-44, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3581
UPDATE storemovement SET  buyPricesHistoryBookData = "44*2026-10-14*290.00," WHERE transferproductid = 1378;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('649', '2', '44', '1', '1378', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '44', '0', '1', '2026-10-14','0','0'); -- id=11069
UPDATE storedetail SET  productquantity = '44', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '649';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 649, 0, 0
                    , 290.00, 44.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+44.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3580
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('649', '1', '44', '0', '1378', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '44', '1', '2026-10-14','0','0'); -- id=11070
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1379';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1682';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 648, 0, 0
                    , 340.00, 49, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-49, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3583
UPDATE storemovement SET  buyPricesHistoryBookData = "49*2026-10-14*340.00," WHERE transferproductid = 1379;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('648', '2', '49', '1', '1379', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '49', '0', '1', '2026-10-14','0','0'); -- id=11071
UPDATE storedetail SET  productquantity = '49', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '648';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 648, 0, 0
                    , 340.00, 49.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+49.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3582
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('648', '1', '49', '0', '1379', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '49', '1', '2026-10-14','0','0'); -- id=11072
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1380';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1681';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 647, 0, 0
                    , 310.00, 69, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-69, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3585
UPDATE storemovement SET  buyPricesHistoryBookData = "69*2026-10-14*310.00," WHERE transferproductid = 1380;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('647', '2', '69', '1', '1380', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '69', '0', '1', '2026-10-14','0','0'); -- id=11073
UPDATE storedetail SET  productquantity = '69', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '647';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 647, 0, 0
                    , 310.00, 69.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+69.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3584
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('647', '1', '69', '0', '1380', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '69', '1', '2026-10-14','0','0'); -- id=11074
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1381';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1680';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 646, 0, 0
                    , 270.00, 5, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-5, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3587
UPDATE storemovement SET  buyPricesHistoryBookData = "5*2026-10-14*270.00," WHERE transferproductid = 1381;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('646', '2', '5', '1', '1381', 'حذف تحويل منتجات إلى المخزن', 'storemovementController.php', '5', '0', '1', '2026-10-14','0','0'); -- id=11075
UPDATE storedetail SET  productquantity = '5', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '646';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 646, 0, 0
                    , 270.00, 5.00, 0, 0, 1, '2026-10-14 18:01:09')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+5.00, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:01:09' ; -- id=3586
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('646', '1', '5', '0', '1381', 'حذف تحويل منتجات من المخزن', 'storemovementController.php', '0', '5', '1', '2026-10-14','0','0'); -- id=11076
UPDATE storemovement SET  transferproductdate = '2026-10-14', userid = '1', conditions = '1' WHERE transferproductid = '1382';
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = null;
INSERT INTO onlinetempstoredetail (storeid, productid, sizeid, colorid, quantity, edited, sysdate, userid)
                VALUES (, , 0, 0, -0,1,'2026-10-14 18:01:09',1)
                ON DUPLICATE KEY UPDATE quantity = quantity+-0, edited = 1, sysdate = '2026-10-14 18:01:09', userid = 1;COMMIT;
 -- id=4984
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1598', '700', '120', '0', 'buyBillController.php', '945', '', '0', '0'); -- id=728
UPDATE product SET  productBuyPrice = "700" WHERE productId = 1598 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 945 ;
UPDATE product SET productName = 'جاكت دبور', productDescription = '', productCatId = '118', productBuyPrice = '700.00', productSellAllPrice = '800.00', productSellUnitPrice = '800.00', productSellHalfPrice = '800.00', productDate = '2026-10-07', conditions = '0', userId = '1', limitamount = '0', parcode = '01598',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '700',lastbuyprice_withDiscount = '700',meanbuyprice = '700',meanbuyprice_withDiscount = '700' , productbuypricereal = '700.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '14.29' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='700',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='700',meanbuyprice_withTax='700',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='700',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1598';
UPDATE buybilldetail SET  lastbuyprice = 700 , meanbuyprice = 700, lastbuyprice_withDiscount = 700, meanbuyprice_withDiscount = 700
        , lastbuyprice_withTax = 700, meanbuyprice_withTax = 700, lastbuyprice_withDiscountAndTax = 700
                where buybilldetailid = 945;
UPDATE productunit SET proUnitBuyPrice  = 700 * productnumber WHERE productid = 1598;
UPDATE storedetail SET  productquantity = '120', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1623';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1598', '1', '120', '0', '153', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '120', '1', '2026-10-14 18:00:39','0','0'); -- id=11077
UPDATE supplier SET  suppliercurrentDebt = '504000',suppliercurrentDebtInCurrency= '504000' , userid = '1', supplierdate = '2026-10-14 18:01:06'   WHERE supplierid = '115';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('115', '420000.00', '84000', '0', 'اضافة فاتورة مشتريات', '153', '504000', '2026-10-14 18:00:39', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','84000','1','420000','84000','504000','0',''); -- id=487
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '84000', '84000', '2026-10-14', '1', '0', '0', '2026-10-14 18:01:09','اضافة فاتورة مشتريات رقم 153','1','0',null,'0','153','buyBillController.php?do=details&id=153'); -- id=2430
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2430', '382', '84000', '','0'); -- id=2486
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22371091.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2430', '598', '84000', '','0'); -- id=2432
UPDATE accountstree SET name = 'مصطفي دبور', customName = 'مصطفي دبور', customNameEn = 'مصطفي دبور', nameEn = 'مصطفي دبور', parent = '81', accountNature = '1', theValue = '504000', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-07 20:10:54' WHERE id = '598';
update buybill set dailyentryid='2430,0' where buybillid=153;
COMMIT;
UPDATE product SET overAllAveragePrice = 700 WHERE productId = 1598;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:31:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:01:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:01:09', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=153'); -- id=9573
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:31:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:01:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 18:01:11', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php?do=show'); -- id=9574
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:31:18";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:01:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 18:01:18', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9575
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:31:19";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:01:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:01:19', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9576
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:31:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:01:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:01:35', '1', 'showbarcodestoremovement', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodestoremovement&operationnum=10&parcodeTypeToPrint=1'); -- id=9577
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:31:40";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:01:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 18:01:40', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9578
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:31:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:01:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 18:01:43', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9579
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:31:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:01:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 18:01:47', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9580
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:32:08";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:02:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 18:02:08', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9581
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:32:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:02:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 18:02:09', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9582
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:32:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:02:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 18:02:14', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9583
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:32:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:02:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:02:39', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9584
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:32:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:02:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 18:02:41', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php'); -- id=9585
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:32:48";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:02:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 18:02:48', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php?do=show'); -- id=9586
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:33:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:03:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('otherstoremovementController.php', '2026-10-14 18:03:56', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/otherstoremovementController.php'); -- id=9587
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:35:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:05:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('otherstoremovementController.php', '2026-10-14 18:05:32', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/otherstoremovementController.php?do=add'); -- id=9588
BEGIN;
INSERT INTO otherstoremovement (oprationnumber, deloperation, del, userid,comment,oprationdata) VALUES ('11', '0', '0', '1','','2026-10-14'); -- id=1
CALL insertUniqueOptNum(11,1,2,1475,40,'2026-10-14',1,0, '' , '' ,0,0,0,0,0,'',0,'',0,'','',0,@id,@optnum);
UPDATE otherstoremovement SET oprationnumber = "11"  WHERE id =1;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1500';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1475, 0, 0
                    , 1200.00, 40, 0, 0, 1, '2026-10-14 18:05:32')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:05:32' ; -- id=236
UPDATE storemovement SET  buyPricesHistoryBookData = "40*2026-10-06*1200.00," WHERE transferproductid = 1383;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1475', '1', '40', '1', '1383', 'تحويل منتجات من المخزن', 'storemovementController.php', '40', '0', '1', '2026-10-14','0','0'); -- id=11078
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2487';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1475, 0, 0
                    , 1200.00, 40, 0, 0, 1, '2026-10-14 18:05:32')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:05:32' ; -- id=2167
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1475', '2', '40', '0', '1383', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '40', '1', '2026-10-14','0','0'); -- id=11079
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,expireDate) VALUES ('1', '2', '1476', '16', '2026-10-14', '1', '0' ,'','11' ,'0','0','0',''); -- id=1384
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1501';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 1, 1476, 0, 0
                    , 1000.00, 16, 0, 0, 1, '2026-10-14 18:05:32')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-16, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:05:32' ; -- id=238
UPDATE storemovement SET  buyPricesHistoryBookData = "16*2026-10-06*1000.00," WHERE transferproductid = 1384;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1476', '1', '16', '1', '1384', 'تحويل منتجات من المخزن', 'storemovementController.php', '16', '0', '1', '2026-10-14','0','0'); -- id=11080
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2488';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-06', 2, 1476, 0, 0
                    , 1000.00, 16, 0, 0, 1, '2026-10-14 18:05:32')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+16, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:05:32' ; -- id=2165
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1476', '2', '16', '0', '1384', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '16', '1', '2026-10-14','0','0'); -- id=11081
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,expireDate) VALUES ('1', '2', '1772', '48', '2026-10-14', '1', '0' ,'','11' ,'0','0','0',''); -- id=1385
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2785';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1772, 0, 0
                    , 940.00, 48, 0, 0, 1, '2026-10-14 18:05:32')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:05:32' ; -- id=686
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-08*940.00," WHERE transferproductid = 1385;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1772', '1', '48', '1', '1385', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=11082
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3240';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1772, 0, 0
                    , 940.00, 48, 0, 0, 1, '2026-10-14 18:05:32')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:05:32' ; -- id=1651
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1772', '2', '48', '0', '1385', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=11083
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,expireDate) VALUES ('1', '2', '1771', '48', '2026-10-14', '1', '0' ,'','11' ,'0','0','0',''); -- id=1386
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2784';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1771, 0, 0
                    , 920.00, 48, 0, 0, 1, '2026-10-14 18:05:32')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-48, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:05:32' ; -- id=685
UPDATE storemovement SET  buyPricesHistoryBookData = "48*2026-10-08*920.00," WHERE transferproductid = 1386;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1771', '1', '48', '1', '1386', 'تحويل منتجات من المخزن', 'storemovementController.php', '48', '0', '1', '2026-10-14','0','0'); -- id=11084
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3241';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1771, 0, 0
                    , 920.00, 48, 0, 0, 1, '2026-10-14 18:05:32')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:05:32' ; -- id=1653
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1771', '2', '48', '0', '1386', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '48', '1', '2026-10-14','0','0'); -- id=11085
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,expireDate) VALUES ('1', '2', '1773', '32', '2026-10-14', '1', '0' ,'','11' ,'0','0','0',''); -- id=1387
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2786';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1773, 0, 0
                    , 890.00, 32, 0, 0, 1, '2026-10-14 18:05:32')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-32, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:05:32' ; -- id=687
UPDATE storemovement SET  buyPricesHistoryBookData = "32*2026-10-08*890.00," WHERE transferproductid = 1387;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1773', '1', '32', '1', '1387', 'تحويل منتجات من المخزن', 'storemovementController.php', '32', '0', '1', '2026-10-14','0','0'); -- id=11086
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3239';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1773, 0, 0
                    , 890.00, 32, 0, 0, 1, '2026-10-14 18:05:32')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:05:32' ; -- id=1649
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1773', '2', '32', '0', '1387', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '32', '1', '2026-10-14','0','0'); -- id=11087
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,expireDate) VALUES ('1', '2', '1769', '8', '2026-10-14', '1', '0' ,'','11' ,'0','0','0',''); -- id=1388
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2782';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 1, 1769, 0, 0
                    , 980.00, 8, 0, 0, 1, '2026-10-14 18:05:32')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-8, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:05:32' ; -- id=683
UPDATE storemovement SET  buyPricesHistoryBookData = "8*2026-10-08*980.00," WHERE transferproductid = 1388;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1769', '1', '8', '1', '1388', 'تحويل منتجات من المخزن', 'storemovementController.php', '8', '0', '1', '2026-10-14','0','0'); -- id=11088
UPDATE storedetail SET  productquantity = '8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3243';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-08', 2, 1769, 0, 0
                    , 980.00, 8, 0, 0, 1, '2026-10-14 18:05:32')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+8, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:05:32' ; -- id=1657
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1769', '2', '8', '0', '1388', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '8', '1', '2026-10-14','0','0'); -- id=11089
INSERT INTO storemovement (storeidfrom, storeidto, productid, transferproductamount, transferproductdate, userid, conditions,comment,operationnum ,deloperationnum,sizeid,colorid,expireDate) VALUES ('1', '2', '1892', '24', '2026-10-14', '1', '0' ,'','11' ,'0','0','0',''); -- id=1389
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2909';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 1, 1892, 0, 0
                    , 1100.00, 24, 0, 0, 1, '2026-10-14 18:05:32')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:05:32' ; -- id=986
UPDATE storemovement SET  buyPricesHistoryBookData = "24*2026-10-12*1100.00," WHERE transferproductid = 1389;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1892', '1', '24', '1', '1389', 'تحويل منتجات من المخزن', 'storemovementController.php', '24', '0', '1', '2026-10-14','0','0'); -- id=11090
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3124';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-12', 2, 1892, 0, 0
                    , 1100.00, 24, 0, 0, 1, '2026-10-14 18:05:32')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:05:32' ; -- id=1433
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1892', '2', '24', '0', '1389', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '24', '1', '2026-10-14','0','0'); -- id=11091
COMMIT;
BEGIN;
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '48000', '48000', '2026-10-14', '1', '0', '0', '2026-10-14 18:05:32','تحويل بين المخازن من مخزن المخزن الرئيسي الى مخزن مخزن المحل رقم 11','1','0',null,'0','0','otherstoremovementController.php?do=show&operationnum=11'); -- id=2431
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2431', '492', '48000', '','0'); -- id=2487
UPDATE accountstree SET name = 'مخزن المحل', customName = 'مخزن المحل', customNameEn = 'مخزن المحل', nameEn = 'مخزن المحل', parent = '49', accountNature = '0', theValue = '1135870', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 19:38:59' WHERE id = '492';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2431', '382', '48000', '','0'); -- id=2433
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22323091.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
COMMIT;
UPDATE storemovement SET  dailyentryid =2431 WHERE transferproductid = 1383;
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '16000', '16000', '2026-10-14', '1', '0', '0', '2026-10-14 18:05:32','تحويل بين المخازن من مخزن المخزن الرئيسي الى مخزن مخزن المحل رقم 11','1','0',null,'0','0','otherstoremovementController.php?do=show&operationnum=11'); -- id=2432
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2432', '492', '16000', '','0'); -- id=2488
UPDATE accountstree SET name = 'مخزن المحل', customName = 'مخزن المحل', customNameEn = 'مخزن المحل', nameEn = 'مخزن المحل', parent = '49', accountNature = '0', theValue = '1151870', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 19:38:59' WHERE id = '492';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2432', '382', '16000', '','0'); -- id=2434
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22307091.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
COMMIT;
UPDATE storemovement SET  dailyentryid =2432 WHERE transferproductid = 1384;
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '45120', '45120', '2026-10-14', '1', '0', '0', '2026-10-14 18:05:32','تحويل بين المخازن من مخزن المخزن الرئيسي الى مخزن مخزن المحل رقم 11','1','0',null,'0','0','otherstoremovementController.php?do=show&operationnum=11'); -- id=2433
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2433', '492', '45120', '','0'); -- id=2489
UPDATE accountstree SET name = 'مخزن المحل', customName = 'مخزن المحل', customNameEn = 'مخزن المحل', nameEn = 'مخزن المحل', parent = '49', accountNature = '0', theValue = '1196990', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 19:38:59' WHERE id = '492';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2433', '382', '45120', '','0'); -- id=2435
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22261971.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
COMMIT;
UPDATE storemovement SET  dailyentryid =2433 WHERE transferproductid = 1385;
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '44160', '44160', '2026-10-14', '1', '0', '0', '2026-10-14 18:05:32','تحويل بين المخازن من مخزن المخزن الرئيسي الى مخزن مخزن المحل رقم 11','1','0',null,'0','0','otherstoremovementController.php?do=show&operationnum=11'); -- id=2434
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2434', '492', '44160', '','0'); -- id=2490
UPDATE accountstree SET name = 'مخزن المحل', customName = 'مخزن المحل', customNameEn = 'مخزن المحل', nameEn = 'مخزن المحل', parent = '49', accountNature = '0', theValue = '1241150', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 19:38:59' WHERE id = '492';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2434', '382', '44160', '','0'); -- id=2436
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22217811.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
COMMIT;
UPDATE storemovement SET  dailyentryid =2434 WHERE transferproductid = 1386;
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '28480', '28480', '2026-10-14', '1', '0', '0', '2026-10-14 18:05:32','تحويل بين المخازن من مخزن المخزن الرئيسي الى مخزن مخزن المحل رقم 11','1','0',null,'0','0','otherstoremovementController.php?do=show&operationnum=11'); -- id=2435
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2435', '492', '28480', '','0'); -- id=2491
UPDATE accountstree SET name = 'مخزن المحل', customName = 'مخزن المحل', customNameEn = 'مخزن المحل', nameEn = 'مخزن المحل', parent = '49', accountNature = '0', theValue = '1269630', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 19:38:59' WHERE id = '492';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2435', '382', '28480', '','0'); -- id=2437
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22189331.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
COMMIT;
UPDATE storemovement SET  dailyentryid =2435 WHERE transferproductid = 1387;
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '7840', '7840', '2026-10-14', '1', '0', '0', '2026-10-14 18:05:32','تحويل بين المخازن من مخزن المخزن الرئيسي الى مخزن مخزن المحل رقم 11','1','0',null,'0','0','otherstoremovementController.php?do=show&operationnum=11'); -- id=2436
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2436', '492', '7840', '','0'); -- id=2492
UPDATE accountstree SET name = 'مخزن المحل', customName = 'مخزن المحل', customNameEn = 'مخزن المحل', nameEn = 'مخزن المحل', parent = '49', accountNature = '0', theValue = '1277470', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 19:38:59' WHERE id = '492';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2436', '382', '7840', '','0'); -- id=2438
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22181491.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
COMMIT;
UPDATE storemovement SET  dailyentryid =2436 WHERE transferproductid = 1388;
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '26400', '26400', '2026-10-14', '1', '0', '0', '2026-10-14 18:05:32','تحويل بين المخازن من مخزن المخزن الرئيسي الى مخزن مخزن المحل رقم 11','1','0',null,'0','0','otherstoremovementController.php?do=show&operationnum=11'); -- id=2437
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2437', '492', '26400', '','0'); -- id=2493
UPDATE accountstree SET name = 'مخزن المحل', customName = 'مخزن المحل', customNameEn = 'مخزن المحل', nameEn = 'مخزن المحل', parent = '49', accountNature = '0', theValue = '1303870', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 19:38:59' WHERE id = '492';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2437', '382', '26400', '','0'); -- id=2439
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22155091.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
COMMIT;
UPDATE storemovement SET  dailyentryid =2437 WHERE transferproductid = 1389;
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:35:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:05:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('otherstoremovementController.php', '2026-10-14 18:05:32', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/otherstoremovementController.php?do=sucess'); -- id=9589
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:35:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:05:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('otherstoremovementController.php', '2026-10-14 18:05:34', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/otherstoremovementController.php?do=show'); -- id=9590
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:38:25";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:08:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:08:25', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9591
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('شيرت 501 يوني شيرت','','162','515','550','550','550','2026-10-14','0','1','0','','0','0','0','0','0','515','515','515','515','515','0','6.8','0','0','.','0','0','0','515','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','515','515','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','515','0','0','0','0','0','0','','','0','0','0','0'); -- id=2000
UPDATE product SET productName = 'شيرت 501 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '515', productSellAllPrice = '550', productSellUnitPrice = '550', productSellHalfPrice = '550', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02000',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '515',lastbuyprice_withDiscount = '515',meanbuyprice = '515',meanbuyprice_withDiscount = '515' , productbuypricereal = '515' , buypricereal_precentage = '0' , buytotal_precentage = '6.8' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='515',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='515',meanbuyprice_withTax='515',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='515',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2000';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2000', '1.00', '2026-10-14', '1', '0','0200001','550','550','550','515','','0','0','0','0','0','0','0','0','0','0'); -- id=2000
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2000', '1', '0', '1', '2026-10-14'); -- id=3358
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2000', '1', '0', '0', '2000', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11092
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2000, 1,'2026-10-14 18:08:25',1)
                ON DUPLICATE KEY UPDATE productid = 2000, edited = 1, sysdate = '2026-10-14 18:08:25', userid = 1; -- id=2955
UPDATE product SET productName = 'شيرت 501 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '515.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02000',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '515',lastbuyprice_withDiscount = '515',meanbuyprice = '515',meanbuyprice_withDiscount = '515' , productbuypricereal = '515' , buypricereal_precentage = '0' , buytotal_precentage = '6.8' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='515',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='515',meanbuyprice_withTax='515',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='515',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2000';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('شيرت 507 يوني شيرت','','162','435','470','470','470','2026-10-14','0','1','0','','0','0','0','0','0','435','435','435','435','435','0','8.05','0','0','.','0','0','0','435','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','435','435','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','435','0','0','0','0','0','0','','','0','0','0','0'); -- id=2001
UPDATE product SET productName = 'شيرت 507 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '435', productSellAllPrice = '470', productSellUnitPrice = '470', productSellHalfPrice = '470', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02001',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '435',lastbuyprice_withDiscount = '435',meanbuyprice = '435',meanbuyprice_withDiscount = '435' , productbuypricereal = '435' , buypricereal_precentage = '0' , buytotal_precentage = '8.05' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='435',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='435',meanbuyprice_withTax='435',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='435',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2001';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2001', '1.00', '2026-10-14', '1', '0','0200101','470','470','470','435','','0','0','0','0','0','0','0','0','0','0'); -- id=2001
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2001', '1', '0', '1', '2026-10-14'); -- id=3359
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2001', '1', '0', '0', '2001', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11093
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2001, 1,'2026-10-14 18:08:25',1)
                ON DUPLICATE KEY UPDATE productid = 2001, edited = 1, sysdate = '2026-10-14 18:08:25', userid = 1; -- id=2956
UPDATE product SET productName = 'شيرت 507 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '435.00', productSellAllPrice = '470.00', productSellUnitPrice = '470.00', productSellHalfPrice = '470.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02001',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '435',lastbuyprice_withDiscount = '435',meanbuyprice = '435',meanbuyprice_withDiscount = '435' , productbuypricereal = '435' , buypricereal_precentage = '0' , buytotal_precentage = '8.05' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='435',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='435',meanbuyprice_withTax='435',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='435',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2001';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('شيرت 506 يوني شيرت','','162','515','550','550','550','2026-10-14','0','1','0','','0','0','0','0','0','515','515','515','515','515','0','6.8','0','0','.','0','0','0','515','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','515','515','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','515','0','0','0','0','0','0','','','0','0','0','0'); -- id=2002
UPDATE product SET productName = 'شيرت 506 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '515', productSellAllPrice = '550', productSellUnitPrice = '550', productSellHalfPrice = '550', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02002',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '515',lastbuyprice_withDiscount = '515',meanbuyprice = '515',meanbuyprice_withDiscount = '515' , productbuypricereal = '515' , buypricereal_precentage = '0' , buytotal_precentage = '6.8' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='515',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='515',meanbuyprice_withTax='515',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='515',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2002';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2002', '1.00', '2026-10-14', '1', '0','0200201','550','550','550','515','','0','0','0','0','0','0','0','0','0','0'); -- id=2002
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2002', '1', '0', '1', '2026-10-14'); -- id=3360
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2002', '1', '0', '0', '2002', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11094
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2002, 1,'2026-10-14 18:08:25',1)
                ON DUPLICATE KEY UPDATE productid = 2002, edited = 1, sysdate = '2026-10-14 18:08:25', userid = 1; -- id=2957
UPDATE product SET productName = 'شيرت 506 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '515.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02002',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '515',lastbuyprice_withDiscount = '515',meanbuyprice = '515',meanbuyprice_withDiscount = '515' , productbuypricereal = '515' , buypricereal_precentage = '0' , buytotal_precentage = '6.8' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='515',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='515',meanbuyprice_withTax='515',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='515',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2002';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('شيرت 508 يوني شيرت','','162','435','470','470','470','2026-10-14','0','1','0','','0','0','0','0','0','435','435','435','435','435','0','8.05','0','0','.','0','0','0','435','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','435','435','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','435','0','0','0','0','0','0','','','0','0','0','0'); -- id=2003
UPDATE product SET productName = 'شيرت 508 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '435', productSellAllPrice = '470', productSellUnitPrice = '470', productSellHalfPrice = '470', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02003',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '435',lastbuyprice_withDiscount = '435',meanbuyprice = '435',meanbuyprice_withDiscount = '435' , productbuypricereal = '435' , buypricereal_precentage = '0' , buytotal_precentage = '8.05' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='435',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='435',meanbuyprice_withTax='435',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='435',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2003';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2003', '1.00', '2026-10-14', '1', '0','0200301','470','470','470','435','','0','0','0','0','0','0','0','0','0','0'); -- id=2003
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2003', '1', '0', '1', '2026-10-14'); -- id=3361
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2003', '1', '0', '0', '2003', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11095
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2003, 1,'2026-10-14 18:08:25',1)
                ON DUPLICATE KEY UPDATE productid = 2003, edited = 1, sysdate = '2026-10-14 18:08:25', userid = 1; -- id=2958
UPDATE product SET productName = 'شيرت 508 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '435.00', productSellAllPrice = '470.00', productSellUnitPrice = '470.00', productSellHalfPrice = '470.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02003',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '435',lastbuyprice_withDiscount = '435',meanbuyprice = '435',meanbuyprice_withDiscount = '435' , productbuypricereal = '435' , buypricereal_precentage = '0' , buytotal_precentage = '8.05' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='435',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='435',meanbuyprice_withTax='435',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='435',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2003';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('شيرت 509 يوني شيرت','','162','515','550','550','550','2026-10-14','0','1','0','','0','0','0','0','0','515','515','515','515','515','0','6.8','0','0','.','0','0','0','515','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','515','515','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','515','0','0','0','0','0','0','','','0','0','0','0'); -- id=2004
UPDATE product SET productName = 'شيرت 509 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '515', productSellAllPrice = '550', productSellUnitPrice = '550', productSellHalfPrice = '550', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02004',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '515',lastbuyprice_withDiscount = '515',meanbuyprice = '515',meanbuyprice_withDiscount = '515' , productbuypricereal = '515' , buypricereal_precentage = '0' , buytotal_precentage = '6.8' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='515',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='515',meanbuyprice_withTax='515',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='515',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2004';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2004', '1.00', '2026-10-14', '1', '0','0200401','550','550','550','515','','0','0','0','0','0','0','0','0','0','0'); -- id=2004
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2004', '1', '0', '1', '2026-10-14'); -- id=3362
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2004', '1', '0', '0', '2004', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11096
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2004, 1,'2026-10-14 18:08:25',1)
                ON DUPLICATE KEY UPDATE productid = 2004, edited = 1, sysdate = '2026-10-14 18:08:25', userid = 1; -- id=2959
UPDATE product SET productName = 'شيرت 509 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '515.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02004',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '515',lastbuyprice_withDiscount = '515',meanbuyprice = '515',meanbuyprice_withDiscount = '515' , productbuypricereal = '515' , buypricereal_precentage = '0' , buytotal_precentage = '6.8' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='515',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='515',meanbuyprice_withTax='515',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='515',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2004';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('شيرت 515 يوني شيرت','','162','365','400','400','400','2026-10-14','0','1','0','','0','0','0','0','0','365','365','365','365','365','0','9.59','0','0','.','0','0','0','365','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','365','365','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','365','0','0','0','0','0','0','','','0','0','0','0'); -- id=2005
UPDATE product SET productName = 'شيرت 515 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '365', productSellAllPrice = '400', productSellUnitPrice = '400', productSellHalfPrice = '400', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02005',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '365',lastbuyprice_withDiscount = '365',meanbuyprice = '365',meanbuyprice_withDiscount = '365' , productbuypricereal = '365' , buypricereal_precentage = '0' , buytotal_precentage = '9.59' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='365',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2005';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2005', '1.00', '2026-10-14', '1', '0','0200501','400','400','400','365','','0','0','0','0','0','0','0','0','0','0'); -- id=2005
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2005', '1', '0', '1', '2026-10-14'); -- id=3363
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2005', '1', '0', '0', '2005', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11097
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2005, 1,'2026-10-14 18:08:25',1)
                ON DUPLICATE KEY UPDATE productid = 2005, edited = 1, sysdate = '2026-10-14 18:08:25', userid = 1; -- id=2960
UPDATE product SET productName = 'شيرت 515 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '365.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02005',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '365',lastbuyprice_withDiscount = '365',meanbuyprice = '365',meanbuyprice_withDiscount = '365' , productbuypricereal = '365' , buypricereal_precentage = '0' , buytotal_precentage = '9.59' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='365',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2005';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('شيرت 516 يوني شيرت','','162','365','400','400','400','2026-10-14','0','1','0','','0','0','0','0','0','365','365','365','365','365','0','9.59','0','0','.','0','0','0','365','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','365','365','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','365','0','0','0','0','0','0','','','0','0','0','0'); -- id=2006
UPDATE product SET productName = 'شيرت 516 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '365', productSellAllPrice = '400', productSellUnitPrice = '400', productSellHalfPrice = '400', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02006',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '365',lastbuyprice_withDiscount = '365',meanbuyprice = '365',meanbuyprice_withDiscount = '365' , productbuypricereal = '365' , buypricereal_precentage = '0' , buytotal_precentage = '9.59' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='365',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2006';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2006', '1.00', '2026-10-14', '1', '0','0200601','400','400','400','365','','0','0','0','0','0','0','0','0','0','0'); -- id=2006
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2006', '1', '0', '1', '2026-10-14'); -- id=3364
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2006', '1', '0', '0', '2006', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11098
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2006, 1,'2026-10-14 18:08:25',1)
                ON DUPLICATE KEY UPDATE productid = 2006, edited = 1, sysdate = '2026-10-14 18:08:25', userid = 1; -- id=2961
UPDATE product SET productName = 'شيرت 516 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '365.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02006',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '365',lastbuyprice_withDiscount = '365',meanbuyprice = '365',meanbuyprice_withDiscount = '365' , productbuypricereal = '365' , buypricereal_precentage = '0' , buytotal_precentage = '9.59' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='365',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2006';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:38:27";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:08:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:08:27', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9592
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:38:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:08:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 18:08:57', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9593
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:39:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:09:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 18:09:22', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9594
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('يوني شيرت جاكيت','2026-10-14','','90', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=163
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (163, 1,'2026-10-14 18:09:22',1)
                ON DUPLICATE KEY UPDATE catid = 163, edited = 1, sysdate = '2026-10-14 18:09:22', userid = 1; -- id=175
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '163', '1', '2026-10-14', '1', '0'); -- id=68
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:39:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:09:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 18:09:23', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9595
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:39:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:09:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 18:09:24', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9596
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:39:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:09:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:09:26', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9597
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:41:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:11:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:11:42', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9598
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكيت 502 يوني شيرت','','163','700','750','750','750','2026-10-14','0','1','0','','0','0','0','0','0','700','700','700','700','700','0','7.14','0','0','.','0','0','0','700','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','700','700','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','700','0','0','0','0','0','0','','','0','0','0','0'); -- id=2007
UPDATE product SET productName = 'جاكيت 502 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '700', productSellAllPrice = '750', productSellUnitPrice = '750', productSellHalfPrice = '750', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02007',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '700',lastbuyprice_withDiscount = '700',meanbuyprice = '700',meanbuyprice_withDiscount = '700' , productbuypricereal = '700' , buypricereal_precentage = '0' , buytotal_precentage = '7.14' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='700',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='700',meanbuyprice_withTax='700',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='700',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2007';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2007', '1.00', '2026-10-14', '1', '0','0200701','750','750','750','700','','0','0','0','0','0','0','0','0','0','0'); -- id=2007
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2007', '1', '0', '1', '2026-10-14'); -- id=3365
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2007', '1', '0', '0', '2007', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11099
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2007, 1,'2026-10-14 18:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2007, edited = 1, sysdate = '2026-10-14 18:11:42', userid = 1; -- id=2962
UPDATE product SET productName = 'جاكيت 502 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '700.00', productSellAllPrice = '750.00', productSellUnitPrice = '750.00', productSellHalfPrice = '750.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02007',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '700',lastbuyprice_withDiscount = '700',meanbuyprice = '700',meanbuyprice_withDiscount = '700' , productbuypricereal = '700' , buypricereal_precentage = '0' , buytotal_precentage = '7.14' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='700',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='700',meanbuyprice_withTax='700',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='700',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2007';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكيت 503 يوني شيرت','','163','900','950','950','950','2026-10-14','0','1','0','','0','0','0','0','0','900','900','900','900','900','0','5.56','0','0','.','0','0','0','900','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','900','900','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','900','0','0','0','0','0','0','','','0','0','0','0'); -- id=2008
UPDATE product SET productName = 'جاكيت 503 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '900', productSellAllPrice = '950', productSellUnitPrice = '950', productSellHalfPrice = '950', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02008',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '900',lastbuyprice_withDiscount = '900',meanbuyprice = '900',meanbuyprice_withDiscount = '900' , productbuypricereal = '900' , buypricereal_precentage = '0' , buytotal_precentage = '5.56' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='900',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='900',meanbuyprice_withTax='900',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='900',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2008';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2008', '1.00', '2026-10-14', '1', '0','0200801','950','950','950','900','','0','0','0','0','0','0','0','0','0','0'); -- id=2008
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2008', '1', '0', '1', '2026-10-14'); -- id=3366
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2008', '1', '0', '0', '2008', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11100
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2008, 1,'2026-10-14 18:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2008, edited = 1, sysdate = '2026-10-14 18:11:42', userid = 1; -- id=2963
UPDATE product SET productName = 'جاكيت 503 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '900.00', productSellAllPrice = '950.00', productSellUnitPrice = '950.00', productSellHalfPrice = '950.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02008',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '900',lastbuyprice_withDiscount = '900',meanbuyprice = '900',meanbuyprice_withDiscount = '900' , productbuypricereal = '900' , buypricereal_precentage = '0' , buytotal_precentage = '5.56' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='900',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='900',meanbuyprice_withTax='900',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='900',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2008';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكيت 504 يوني شيرت','','163','900','950','950','950','2026-10-14','0','1','0','','0','0','0','0','0','900','900','900','900','900','0','5.56','0','0','.','0','0','0','900','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','900','900','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','900','0','0','0','0','0','0','','','0','0','0','0'); -- id=2009
UPDATE product SET productName = 'جاكيت 504 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '900', productSellAllPrice = '950', productSellUnitPrice = '950', productSellHalfPrice = '950', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02009',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '900',lastbuyprice_withDiscount = '900',meanbuyprice = '900',meanbuyprice_withDiscount = '900' , productbuypricereal = '900' , buypricereal_precentage = '0' , buytotal_precentage = '5.56' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='900',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='900',meanbuyprice_withTax='900',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='900',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2009';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2009', '1.00', '2026-10-14', '1', '0','0200901','950','950','950','900','','0','0','0','0','0','0','0','0','0','0'); -- id=2009
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2009', '1', '0', '1', '2026-10-14'); -- id=3367
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2009', '1', '0', '0', '2009', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11101
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2009, 1,'2026-10-14 18:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2009, edited = 1, sysdate = '2026-10-14 18:11:42', userid = 1; -- id=2964
UPDATE product SET productName = 'جاكيت 504 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '900.00', productSellAllPrice = '950.00', productSellUnitPrice = '950.00', productSellHalfPrice = '950.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02009',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '900',lastbuyprice_withDiscount = '900',meanbuyprice = '900',meanbuyprice_withDiscount = '900' , productbuypricereal = '900' , buypricereal_precentage = '0' , buytotal_precentage = '5.56' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='900',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='900',meanbuyprice_withTax='900',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='900',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2009';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكيت 505 يوني شيرت','','163','800','850','850','850','2026-10-14','0','1','0','','0','0','0','0','0','800','800','800','800','800','0','6.25','0','0','.','0','0','0','800','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','800','800','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','800','0','0','0','0','0','0','','','0','0','0','0'); -- id=2010
UPDATE product SET productName = 'جاكيت 505 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '800', productSellAllPrice = '850', productSellUnitPrice = '850', productSellHalfPrice = '850', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02010',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800' , buypricereal_precentage = '0' , buytotal_precentage = '6.25' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='800',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2010';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2010', '1.00', '2026-10-14', '1', '0','0201001','850','850','850','800','','0','0','0','0','0','0','0','0','0','0'); -- id=2010
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2010', '1', '0', '1', '2026-10-14'); -- id=3368
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2010', '1', '0', '0', '2010', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11102
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2010, 1,'2026-10-14 18:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2010, edited = 1, sysdate = '2026-10-14 18:11:42', userid = 1; -- id=2965
UPDATE product SET productName = 'جاكيت 505 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02010',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800' , buypricereal_precentage = '0' , buytotal_precentage = '6.25' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='800',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2010';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكيت 511 يوني شيرت','','163','730','780','780','780','2026-10-14','0','1','0','','0','0','0','0','0','730','730','730','730','730','0','6.85','0','0','.','0','0','0','730','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','730','730','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','730','0','0','0','0','0','0','','','0','0','0','0'); -- id=2011
UPDATE product SET productName = 'جاكيت 511 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '730', productSellAllPrice = '780', productSellUnitPrice = '780', productSellHalfPrice = '780', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02011',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '730',lastbuyprice_withDiscount = '730',meanbuyprice = '730',meanbuyprice_withDiscount = '730' , productbuypricereal = '730' , buypricereal_precentage = '0' , buytotal_precentage = '6.85' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='730',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='730',meanbuyprice_withTax='730',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='730',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2011';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2011', '1.00', '2026-10-14', '1', '0','0201101','780','780','780','730','','0','0','0','0','0','0','0','0','0','0'); -- id=2011
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2011', '1', '0', '1', '2026-10-14'); -- id=3369
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2011', '1', '0', '0', '2011', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11103
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2011, 1,'2026-10-14 18:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2011, edited = 1, sysdate = '2026-10-14 18:11:42', userid = 1; -- id=2966
UPDATE product SET productName = 'جاكيت 511 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '730.00', productSellAllPrice = '780.00', productSellUnitPrice = '780.00', productSellHalfPrice = '780.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02011',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '730',lastbuyprice_withDiscount = '730',meanbuyprice = '730',meanbuyprice_withDiscount = '730' , productbuypricereal = '730' , buypricereal_precentage = '0' , buytotal_precentage = '6.85' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='730',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='730',meanbuyprice_withTax='730',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='730',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2011';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكيت 512 يوني شيرت','','163','800','850','850','850','2026-10-14','0','1','0','','0','0','0','0','0','800','800','800','800','800','0','6.25','0','0','.','0','0','0','800','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','800','800','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','800','0','0','0','0','0','0','','','0','0','0','0'); -- id=2012
UPDATE product SET productName = 'جاكيت 512 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '800', productSellAllPrice = '850', productSellUnitPrice = '850', productSellHalfPrice = '850', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02012',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800' , buypricereal_precentage = '0' , buytotal_precentage = '6.25' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='800',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2012';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2012', '1.00', '2026-10-14', '1', '0','0201201','850','850','850','800','','0','0','0','0','0','0','0','0','0','0'); -- id=2012
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2012', '1', '0', '1', '2026-10-14'); -- id=3370
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2012', '1', '0', '0', '2012', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11104
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2012, 1,'2026-10-14 18:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2012, edited = 1, sysdate = '2026-10-14 18:11:42', userid = 1; -- id=2967
UPDATE product SET productName = 'جاكيت 512 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02012',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800' , buypricereal_precentage = '0' , buytotal_precentage = '6.25' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='800',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2012';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:41:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:11:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:11:43', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9599
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:42:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:12:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:12:11', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9600
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('ترينج 514 يوني شيرت','','162','1100','1150','1150','1150','2026-10-14','0','1','0','','0','0','0','0','0','1100','1100','1100','1100','1100','0','4.55','0','0','.','0','0','0','1100','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','1100','1100','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','1100','0','0','0','0','0','0','','','0','0','0','0'); -- id=2013
UPDATE product SET productName = 'ترينج 514 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '1100', productSellAllPrice = '1150', productSellUnitPrice = '1150', productSellHalfPrice = '1150', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02013',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '1100',lastbuyprice_withDiscount = '1100',meanbuyprice = '1100',meanbuyprice_withDiscount = '1100' , productbuypricereal = '1100' , buypricereal_precentage = '0' , buytotal_precentage = '4.55' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='1100',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='1100',meanbuyprice_withTax='1100',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='1100',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2013';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2013', '1.00', '2026-10-14', '1', '0','0201301','1150','1150','1150','1100','','0','0','0','0','0','0','0','0','0','0'); -- id=2013
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2013', '1', '0', '1', '2026-10-14'); -- id=3371
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2013', '1', '0', '0', '2013', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11105
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2013, 1,'2026-10-14 18:12:11',1)
                ON DUPLICATE KEY UPDATE productid = 2013, edited = 1, sysdate = '2026-10-14 18:12:11', userid = 1; -- id=2968
UPDATE product SET productName = 'ترينج 514 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '1100.00', productSellAllPrice = '1150.00', productSellUnitPrice = '1150.00', productSellHalfPrice = '1150.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02013',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '1100',lastbuyprice_withDiscount = '1100',meanbuyprice = '1100',meanbuyprice_withDiscount = '1100' , productbuypricereal = '1100' , buypricereal_precentage = '0' , buytotal_precentage = '4.55' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='1100',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='1100',meanbuyprice_withTax='1100',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='1100',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2013';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:42:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:12:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:12:12', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9601
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:42:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:12:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:12:14', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9602
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:45:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:15:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:15:49', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9603
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:45:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:15:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:15:56', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9604
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:45:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:15:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:15:59', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9605
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:46:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:16:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:16:16', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9606
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:47:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:17:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:17:32', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9607
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('قصات اوفر سايز تصنيع','','104','328','435','435','435','2026-10-14','0','1','0','','0','0','0','0','0','328','328','328','328','328','0','32.62','0','0','.','0','0','0','328','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','328','328','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','328','0','0','0','0','0','0','','','0','0','0','0'); -- id=2014
UPDATE product SET productName = 'قصات اوفر سايز تصنيع', productDescription = '', productCatId = '104', productBuyPrice = '328', productSellAllPrice = '435', productSellUnitPrice = '435', productSellHalfPrice = '435', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02014',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '328',lastbuyprice_withDiscount = '328',meanbuyprice = '328',meanbuyprice_withDiscount = '328' , productbuypricereal = '328' , buypricereal_precentage = '0' , buytotal_precentage = '32.62' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='328',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='328',meanbuyprice_withTax='328',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='328',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2014';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2014', '1.00', '2026-10-14', '1', '0','0201401','435','435','435','328','','0','0','0','0','0','0','0','0','0','0'); -- id=2014
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2014', '1', '0', '1', '2026-10-14'); -- id=3372
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2014', '1', '0', '0', '2014', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11106
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2014, 1,'2026-10-14 18:17:32',1)
                ON DUPLICATE KEY UPDATE productid = 2014, edited = 1, sysdate = '2026-10-14 18:17:32', userid = 1; -- id=2969
UPDATE product SET productName = 'قصات اوفر سايز تصنيع', productDescription = '', productCatId = '104', productBuyPrice = '328.00', productSellAllPrice = '435.00', productSellUnitPrice = '435.00', productSellHalfPrice = '435.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02014',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '328',lastbuyprice_withDiscount = '328',meanbuyprice = '328',meanbuyprice_withDiscount = '328' , productbuypricereal = '328' , buypricereal_precentage = '0' , buytotal_precentage = '32.62' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='328',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='328',meanbuyprice_withTax='328',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='328',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2014';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:47:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:17:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:17:34', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9608
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:47:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:17:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:17:44', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9609
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:47:48";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:17:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:17:48', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9610
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:48:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:18:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:18:31', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9611
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf9d1cc73e2', '2026-10-14 18:17:48', '107', '482676.00', '712276', '0', '0', '229600.00',  '229600.00', '0', '229600', '1', '2026-10-14 18:18:31', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=154
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02014', '154', '104', '2014', '700', '328', '229600.00', '0', '', '2026-10-14 18:18:31', '2014','','','0','0','0','0','0',null,'328','229600','0','0','0','0','0','0','0','0','1'); -- id=946
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:17:48', 1, 2014, 0, 0
                    , 328, 700, 0, 0, 1, '2026-10-14 18:18:31')
                ON DUPLICATE KEY UPDATE buyprice = 328,
                        buyQuantity =buyQuantity+700, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:18:31' ; -- id=5965
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2014', '328', '700', '0', 'buyBillController.php', '946', '', '0', '0'); -- id=729
UPDATE product SET  productBuyPrice = "328" WHERE productId = 2014 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 946 ;
UPDATE product SET productName = 'قصات اوفر سايز تصنيع', productDescription = '', productCatId = '104', productBuyPrice = '328.00', productSellAllPrice = '435.00', productSellUnitPrice = '435.00', productSellHalfPrice = '435.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02014',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '328',lastbuyprice_withDiscount = '328',meanbuyprice = '328',meanbuyprice_withDiscount = '328' , productbuypricereal = '328.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '32.62' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='328',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='328',meanbuyprice_withTax='328',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='328',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2014';
UPDATE buybilldetail SET  lastbuyprice = 328 , meanbuyprice = 328, lastbuyprice_withDiscount = 328, meanbuyprice_withDiscount = 328
        , lastbuyprice_withTax = 328, meanbuyprice_withTax = 328, lastbuyprice_withDiscountAndTax = 328
                where buybilldetailid = 946;
UPDATE productunit SET proUnitBuyPrice  = 328 * productnumber WHERE productid = 2014;
UPDATE storedetail SET  productquantity = '700', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3372';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2014', '1', '700', '0', '154', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '700', '1', '2026-10-14 18:17:48','0','0'); -- id=11107
UPDATE supplier SET  suppliercurrentDebt = '712276',suppliercurrentDebtInCurrency= '712276' , userid = '1', supplierdate = '2026-10-14 18:18:31'   WHERE supplierid = '107';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('107', '482676.00', '229600', '0', 'اضافة فاتورة مشتريات', '154', '712276', '2026-10-14 18:17:48', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','229600','1','482676','229600','712276','0',''); -- id=488
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '229600', '229600', '2026-10-14', '1', '0', '0', '2026-10-14 18:18:31','اضافة فاتورة مشتريات رقم 154','1','0',null,'0','154','buyBillController.php?do=details&id=154'); -- id=2438
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2438', '382', '229600', '','0'); -- id=2494
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22384691.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2438', '590', '229600', '','0'); -- id=2440
UPDATE accountstree SET name = 'تصنيع احمد العربي', customName = 'تصنيع احمد العربي', customNameEn = 'تصنيع احمد العربي', nameEn = 'تصنيع احمد العربي', parent = '81', accountNature = '1', theValue = '712276', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-07 10:22:14' WHERE id = '590';
update buybill set dailyentryid='2438,0' where buybillid=154;
COMMIT;
UPDATE product SET overAllAveragePrice = 328 WHERE productId = 2014;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:48:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:18:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:18:32', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=154'); -- id=9612
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:48:40";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:18:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:18:40', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=154&type=2'); -- id=9613
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:49:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:19:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:19:02', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=154&type=2'); -- id=9614
UPDATE product SET productName = 'بالون فيت قصات ميرور', productDescription = '', productCatId = '78', productBuyPrice = '410.00', productSellAllPrice = '435.00', productSellUnitPrice = '435.00', productSellHalfPrice = '435.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01999',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '410.00',lastbuyprice_withDiscount = '410',meanbuyprice = '410.00',meanbuyprice_withDiscount = '410' , productbuypricereal = '410.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.10' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1999';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1999, 1,'2026-10-14 18:20:28',1)
                ON DUPLICATE KEY UPDATE productid = 1999, edited = 1, sysdate = '2026-10-14 18:20:28', userid = 1; -- id=2951
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:50:48";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:20:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 18:20:48', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9615
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:51:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:21:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 18:21:01', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9616
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:51:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:21:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 18:21:31', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9617
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 14:51:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:21:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 18:21:41', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9618
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:01:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:31:23", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 18:31:23', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9619
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 15:01:24";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 18:31:24', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9620
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:01:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:31:26", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 18:31:26', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9621
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:01:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:31:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:31:35', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9622
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf9cafc78a7', '2026-10-14 18:15:59', '145', '-50000.00', '103165', '0', '0', '153165.00',  '153165.00', '0', '153165', '1', '2026-10-14 18:31:35', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=155
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02000', '155', '162', '2000', '24', '515', '12360.00', '0', '', '2026-10-14 18:31:35', '2000','','','0','0','0','0','0',null,'515','12360','0','0','0','0','0','0','0','0','1'); -- id=947
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2000, 0, 0
                    , 515, 24, 0, 0, 1, '2026-10-14 18:31:35')
                ON DUPLICATE KEY UPDATE buyprice = 515,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:31:35' ; -- id=5966
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2000', '515', '24', '0', 'buyBillController.php', '947', '', '0', '0'); -- id=730
UPDATE product SET  productBuyPrice = "515" WHERE productId = 2000 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 947 ;
UPDATE product SET productName = 'شيرت 501 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '515.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02000',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '515',lastbuyprice_withDiscount = '515',meanbuyprice = '515',meanbuyprice_withDiscount = '515' , productbuypricereal = '515.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.80' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='515',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='515',meanbuyprice_withTax='515',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='515',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2000';
UPDATE buybilldetail SET  lastbuyprice = 515 , meanbuyprice = 515, lastbuyprice_withDiscount = 515, meanbuyprice_withDiscount = 515
        , lastbuyprice_withTax = 515, meanbuyprice_withTax = 515, lastbuyprice_withDiscountAndTax = 515
                where buybilldetailid = 947;
UPDATE productunit SET proUnitBuyPrice  = 515 * productnumber WHERE productid = 2000;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3358';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2000', '1', '24', '0', '155', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 18:15:59','0','0'); -- id=11108
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02007', '155', '163', '2007', '15', '700', '10500.00', '0', '', '2026-10-14 18:31:35', '2007','','','0','0','0','0','0',null,'700','10500','0','0','0','0','0','0','0','0','1'); -- id=948
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2007, 0, 0
                    , 700, 15, 0, 0, 1, '2026-10-14 18:31:35')
                ON DUPLICATE KEY UPDATE buyprice = 700,
                        buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:31:35' ; -- id=5967
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2007', '700', '15', '0', 'buyBillController.php', '948', '', '0', '0'); -- id=731
UPDATE product SET  productBuyPrice = "700" WHERE productId = 2007 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 948 ;
UPDATE product SET productName = 'جاكيت 502 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '700.00', productSellAllPrice = '750.00', productSellUnitPrice = '750.00', productSellHalfPrice = '750.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02007',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '700',lastbuyprice_withDiscount = '700',meanbuyprice = '700',meanbuyprice_withDiscount = '700' , productbuypricereal = '700.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '7.14' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='700',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='700',meanbuyprice_withTax='700',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='700',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2007';
UPDATE buybilldetail SET  lastbuyprice = 700 , meanbuyprice = 700, lastbuyprice_withDiscount = 700, meanbuyprice_withDiscount = 700
        , lastbuyprice_withTax = 700, meanbuyprice_withTax = 700, lastbuyprice_withDiscountAndTax = 700
                where buybilldetailid = 948;
UPDATE productunit SET proUnitBuyPrice  = 700 * productnumber WHERE productid = 2007;
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3365';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2007', '1', '15', '0', '155', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '15', '1', '2026-10-14 18:15:59','0','0'); -- id=11109
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02008', '155', '163', '2008', '18', '900', '16200.00', '0', '', '2026-10-14 18:31:35', '2008','','','0','0','0','0','0',null,'900','16200','0','0','0','0','0','0','0','0','1'); -- id=949
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2008, 0, 0
                    , 900, 18, 0, 0, 1, '2026-10-14 18:31:36')
                ON DUPLICATE KEY UPDATE buyprice = 900,
                        buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:31:36' ; -- id=5968
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2008', '900', '18', '0', 'buyBillController.php', '949', '', '0', '0'); -- id=732
UPDATE product SET  productBuyPrice = "900" WHERE productId = 2008 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 949 ;
UPDATE product SET productName = 'جاكيت 503 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '900.00', productSellAllPrice = '950.00', productSellUnitPrice = '950.00', productSellHalfPrice = '950.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02008',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '900',lastbuyprice_withDiscount = '900',meanbuyprice = '900',meanbuyprice_withDiscount = '900' , productbuypricereal = '900.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.56' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='900',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='900',meanbuyprice_withTax='900',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='900',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2008';
UPDATE buybilldetail SET  lastbuyprice = 900 , meanbuyprice = 900, lastbuyprice_withDiscount = 900, meanbuyprice_withDiscount = 900
        , lastbuyprice_withTax = 900, meanbuyprice_withTax = 900, lastbuyprice_withDiscountAndTax = 900
                where buybilldetailid = 949;
UPDATE productunit SET proUnitBuyPrice  = 900 * productnumber WHERE productid = 2008;
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3366';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2008', '1', '18', '0', '155', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '18', '1', '2026-10-14 18:15:59','0','0'); -- id=11110
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02009', '155', '163', '2009', '18', '900', '16200.00', '0', '', '2026-10-14 18:31:35', '2009','','','0','0','0','0','0',null,'900','16200','0','0','0','0','0','0','0','0','1'); -- id=950
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2009, 0, 0
                    , 900, 18, 0, 0, 1, '2026-10-14 18:31:36')
                ON DUPLICATE KEY UPDATE buyprice = 900,
                        buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:31:36' ; -- id=5969
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2009', '900', '18', '0', 'buyBillController.php', '950', '', '0', '0'); -- id=733
UPDATE product SET  productBuyPrice = "900" WHERE productId = 2009 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 950 ;
UPDATE product SET productName = 'جاكيت 504 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '900.00', productSellAllPrice = '950.00', productSellUnitPrice = '950.00', productSellHalfPrice = '950.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02009',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '900',lastbuyprice_withDiscount = '900',meanbuyprice = '900',meanbuyprice_withDiscount = '900' , productbuypricereal = '900.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.56' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='900',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='900',meanbuyprice_withTax='900',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='900',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2009';
UPDATE buybilldetail SET  lastbuyprice = 900 , meanbuyprice = 900, lastbuyprice_withDiscount = 900, meanbuyprice_withDiscount = 900
        , lastbuyprice_withTax = 900, meanbuyprice_withTax = 900, lastbuyprice_withDiscountAndTax = 900
                where buybilldetailid = 950;
UPDATE productunit SET proUnitBuyPrice  = 900 * productnumber WHERE productid = 2009;
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3367';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2009', '1', '18', '0', '155', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '18', '1', '2026-10-14 18:15:59','0','0'); -- id=11111
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02010', '155', '163', '2010', '18', '800', '14400.00', '0', '', '2026-10-14 18:31:35', '2010','','','0','0','0','0','0',null,'800','14400','0','0','0','0','0','0','0','0','1'); -- id=951
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2010, 0, 0
                    , 800, 18, 0, 0, 1, '2026-10-14 18:31:36')
                ON DUPLICATE KEY UPDATE buyprice = 800,
                        buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:31:36' ; -- id=5970
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2010', '800', '18', '0', 'buyBillController.php', '951', '', '0', '0'); -- id=734
UPDATE product SET  productBuyPrice = "800" WHERE productId = 2010 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 951 ;
UPDATE product SET productName = 'جاكيت 505 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02010',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.25' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='800',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2010';
UPDATE buybilldetail SET  lastbuyprice = 800 , meanbuyprice = 800, lastbuyprice_withDiscount = 800, meanbuyprice_withDiscount = 800
        , lastbuyprice_withTax = 800, meanbuyprice_withTax = 800, lastbuyprice_withDiscountAndTax = 800
                where buybilldetailid = 951;
UPDATE productunit SET proUnitBuyPrice  = 800 * productnumber WHERE productid = 2010;
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3368';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2010', '1', '18', '0', '155', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '18', '1', '2026-10-14 18:15:59','0','0'); -- id=11112
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02002', '155', '162', '2002', '15', '515', '7725.00', '0', '', '2026-10-14 18:31:35', '2002','','','0','0','0','0','0',null,'515','7725','0','0','0','0','0','0','0','0','1'); -- id=952
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2002, 0, 0
                    , 515, 15, 0, 0, 1, '2026-10-14 18:31:36')
                ON DUPLICATE KEY UPDATE buyprice = 515,
                        buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:31:36' ; -- id=5971
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2002', '515', '15', '0', 'buyBillController.php', '952', '', '0', '0'); -- id=735
UPDATE product SET  productBuyPrice = "515" WHERE productId = 2002 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 952 ;
UPDATE product SET productName = 'شيرت 506 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '515.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02002',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '515',lastbuyprice_withDiscount = '515',meanbuyprice = '515',meanbuyprice_withDiscount = '515' , productbuypricereal = '515.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.80' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='515',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='515',meanbuyprice_withTax='515',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='515',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2002';
UPDATE buybilldetail SET  lastbuyprice = 515 , meanbuyprice = 515, lastbuyprice_withDiscount = 515, meanbuyprice_withDiscount = 515
        , lastbuyprice_withTax = 515, meanbuyprice_withTax = 515, lastbuyprice_withDiscountAndTax = 515
                where buybilldetailid = 952;
UPDATE productunit SET proUnitBuyPrice  = 515 * productnumber WHERE productid = 2002;
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3360';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2002', '1', '15', '0', '155', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '15', '1', '2026-10-14 18:15:59','0','0'); -- id=11113
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02001', '155', '162', '2001', '15', '435', '6525.00', '0', '', '2026-10-14 18:31:35', '2001','','','0','0','0','0','0',null,'435','6525','0','0','0','0','0','0','0','0','1'); -- id=953
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2001, 0, 0
                    , 435, 15, 0, 0, 1, '2026-10-14 18:31:36')
                ON DUPLICATE KEY UPDATE buyprice = 435,
                        buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:31:36' ; -- id=5972
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2001', '435', '15', '0', 'buyBillController.php', '953', '', '0', '0'); -- id=736
UPDATE product SET  productBuyPrice = "435" WHERE productId = 2001 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 953 ;
UPDATE product SET productName = 'شيرت 507 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '435.00', productSellAllPrice = '470.00', productSellUnitPrice = '470.00', productSellHalfPrice = '470.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02001',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '435',lastbuyprice_withDiscount = '435',meanbuyprice = '435',meanbuyprice_withDiscount = '435' , productbuypricereal = '435.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.05' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='435',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='435',meanbuyprice_withTax='435',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='435',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2001';
UPDATE buybilldetail SET  lastbuyprice = 435 , meanbuyprice = 435, lastbuyprice_withDiscount = 435, meanbuyprice_withDiscount = 435
        , lastbuyprice_withTax = 435, meanbuyprice_withTax = 435, lastbuyprice_withDiscountAndTax = 435
                where buybilldetailid = 953;
UPDATE productunit SET proUnitBuyPrice  = 435 * productnumber WHERE productid = 2001;
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3359';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2001', '1', '15', '0', '155', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '15', '1', '2026-10-14 18:15:59','0','0'); -- id=11114
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02003', '155', '162', '2003', '15', '435', '6525.00', '0', '', '2026-10-14 18:31:35', '2003','','','0','0','0','0','0',null,'435','6525','0','0','0','0','0','0','0','0','1'); -- id=954
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2003, 0, 0
                    , 435, 15, 0, 0, 1, '2026-10-14 18:31:36')
                ON DUPLICATE KEY UPDATE buyprice = 435,
                        buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:31:36' ; -- id=5973
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2003', '435', '15', '0', 'buyBillController.php', '954', '', '0', '0'); -- id=737
UPDATE product SET  productBuyPrice = "435" WHERE productId = 2003 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 954 ;
UPDATE product SET productName = 'شيرت 508 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '435.00', productSellAllPrice = '470.00', productSellUnitPrice = '470.00', productSellHalfPrice = '470.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02003',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '435',lastbuyprice_withDiscount = '435',meanbuyprice = '435',meanbuyprice_withDiscount = '435' , productbuypricereal = '435.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.05' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='435',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='435',meanbuyprice_withTax='435',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='435',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2003';
UPDATE buybilldetail SET  lastbuyprice = 435 , meanbuyprice = 435, lastbuyprice_withDiscount = 435, meanbuyprice_withDiscount = 435
        , lastbuyprice_withTax = 435, meanbuyprice_withTax = 435, lastbuyprice_withDiscountAndTax = 435
                where buybilldetailid = 954;
UPDATE productunit SET proUnitBuyPrice  = 435 * productnumber WHERE productid = 2003;
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3361';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2003', '1', '15', '0', '155', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '15', '1', '2026-10-14 18:15:59','0','0'); -- id=11115
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02004', '155', '162', '2004', '18', '515', '9270.00', '0', '', '2026-10-14 18:31:35', '2004','','','0','0','0','0','0',null,'515','9270','0','0','0','0','0','0','0','0','1'); -- id=955
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2004, 0, 0
                    , 515, 18, 0, 0, 1, '2026-10-14 18:31:36')
                ON DUPLICATE KEY UPDATE buyprice = 515,
                        buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:31:36' ; -- id=5974
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2004', '515', '18', '0', 'buyBillController.php', '955', '', '0', '0'); -- id=738
UPDATE product SET  productBuyPrice = "515" WHERE productId = 2004 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 955 ;
UPDATE product SET productName = 'شيرت 509 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '515.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02004',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '515',lastbuyprice_withDiscount = '515',meanbuyprice = '515',meanbuyprice_withDiscount = '515' , productbuypricereal = '515.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.80' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='515',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='515',meanbuyprice_withTax='515',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='515',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2004';
UPDATE buybilldetail SET  lastbuyprice = 515 , meanbuyprice = 515, lastbuyprice_withDiscount = 515, meanbuyprice_withDiscount = 515
        , lastbuyprice_withTax = 515, meanbuyprice_withTax = 515, lastbuyprice_withDiscountAndTax = 515
                where buybilldetailid = 955;
UPDATE productunit SET proUnitBuyPrice  = 515 * productnumber WHERE productid = 2004;
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3362';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2004', '1', '18', '0', '155', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '18', '1', '2026-10-14 18:15:59','0','0'); -- id=11116
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02011', '155', '163', '2011', '18', '730', '13140.00', '0', '', '2026-10-14 18:31:35', '2011','','','0','0','0','0','0',null,'730','13140','0','0','0','0','0','0','0','0','1'); -- id=956
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2011, 0, 0
                    , 730, 18, 0, 0, 1, '2026-10-14 18:31:36')
                ON DUPLICATE KEY UPDATE buyprice = 730,
                        buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:31:36' ; -- id=5975
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2011', '730', '18', '0', 'buyBillController.php', '956', '', '0', '0'); -- id=739
UPDATE product SET  productBuyPrice = "730" WHERE productId = 2011 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 956 ;
UPDATE product SET productName = 'جاكيت 511 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '730.00', productSellAllPrice = '780.00', productSellUnitPrice = '780.00', productSellHalfPrice = '780.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02011',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '730',lastbuyprice_withDiscount = '730',meanbuyprice = '730',meanbuyprice_withDiscount = '730' , productbuypricereal = '730.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.85' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='730',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='730',meanbuyprice_withTax='730',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='730',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2011';
UPDATE buybilldetail SET  lastbuyprice = 730 , meanbuyprice = 730, lastbuyprice_withDiscount = 730, meanbuyprice_withDiscount = 730
        , lastbuyprice_withTax = 730, meanbuyprice_withTax = 730, lastbuyprice_withDiscountAndTax = 730
                where buybilldetailid = 956;
UPDATE productunit SET proUnitBuyPrice  = 730 * productnumber WHERE productid = 2011;
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3369';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2011', '1', '18', '0', '155', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '18', '1', '2026-10-14 18:15:59','0','0'); -- id=11117
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02012', '155', '163', '2012', '12', '800', '9600.00', '0', '', '2026-10-14 18:31:35', '2012','','','0','0','0','0','0',null,'800','9600','0','0','0','0','0','0','0','0','1'); -- id=957
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2012, 0, 0
                    , 800, 12, 0, 0, 1, '2026-10-14 18:31:36')
                ON DUPLICATE KEY UPDATE buyprice = 800,
                        buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:31:36' ; -- id=5976
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2012', '800', '12', '0', 'buyBillController.php', '957', '', '0', '0'); -- id=740
UPDATE product SET  productBuyPrice = "800" WHERE productId = 2012 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 957 ;
UPDATE product SET productName = 'جاكيت 512 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02012',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.25' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='800',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2012';
UPDATE buybilldetail SET  lastbuyprice = 800 , meanbuyprice = 800, lastbuyprice_withDiscount = 800, meanbuyprice_withDiscount = 800
        , lastbuyprice_withTax = 800, meanbuyprice_withTax = 800, lastbuyprice_withDiscountAndTax = 800
                where buybilldetailid = 957;
UPDATE productunit SET proUnitBuyPrice  = 800 * productnumber WHERE productid = 2012;
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3370';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2012', '1', '12', '0', '155', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '12', '1', '2026-10-14 18:15:59','0','0'); -- id=11118
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02013', '155', '162', '2013', '12', '1100', '13200.00', '0', '', '2026-10-14 18:31:35', '2013','','','0','0','0','0','0',null,'1100','13200','0','0','0','0','0','0','0','0','1'); -- id=958
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2013, 0, 0
                    , 1100, 12, 0, 0, 1, '2026-10-14 18:31:36')
                ON DUPLICATE KEY UPDATE buyprice = 1100,
                        buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:31:36' ; -- id=5977
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2013', '1100', '12', '0', 'buyBillController.php', '958', '', '0', '0'); -- id=741
UPDATE product SET  productBuyPrice = "1100" WHERE productId = 2013 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 958 ;
UPDATE product SET productName = 'ترينج 514 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '1100.00', productSellAllPrice = '1150.00', productSellUnitPrice = '1150.00', productSellHalfPrice = '1150.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02013',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '1100',lastbuyprice_withDiscount = '1100',meanbuyprice = '1100',meanbuyprice_withDiscount = '1100' , productbuypricereal = '1100.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.55' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='1100',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='1100',meanbuyprice_withTax='1100',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='1100',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2013';
UPDATE buybilldetail SET  lastbuyprice = 1100 , meanbuyprice = 1100, lastbuyprice_withDiscount = 1100, meanbuyprice_withDiscount = 1100
        , lastbuyprice_withTax = 1100, meanbuyprice_withTax = 1100, lastbuyprice_withDiscountAndTax = 1100
                where buybilldetailid = 958;
UPDATE productunit SET proUnitBuyPrice  = 1100 * productnumber WHERE productid = 2013;
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3371';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2013', '1', '12', '0', '155', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '12', '1', '2026-10-14 18:15:59','0','0'); -- id=11119
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02005', '155', '162', '2005', '24', '365', '8760.00', '0', '', '2026-10-14 18:31:35', '2005','','','0','0','0','0','0',null,'365','8760','0','0','0','0','0','0','0','0','1'); -- id=959
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2005, 0, 0
                    , 365, 24, 0, 0, 1, '2026-10-14 18:31:36')
                ON DUPLICATE KEY UPDATE buyprice = 365,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:31:36' ; -- id=5978
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2005', '365', '24', '0', 'buyBillController.php', '959', '', '0', '0'); -- id=742
UPDATE product SET  productBuyPrice = "365" WHERE productId = 2005 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 959 ;
UPDATE product SET productName = 'شيرت 515 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '365.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02005',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '365',lastbuyprice_withDiscount = '365',meanbuyprice = '365',meanbuyprice_withDiscount = '365' , productbuypricereal = '365.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '9.59' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='365',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2005';
UPDATE buybilldetail SET  lastbuyprice = 365 , meanbuyprice = 365, lastbuyprice_withDiscount = 365, meanbuyprice_withDiscount = 365
        , lastbuyprice_withTax = 365, meanbuyprice_withTax = 365, lastbuyprice_withDiscountAndTax = 365
                where buybilldetailid = 959;
UPDATE productunit SET proUnitBuyPrice  = 365 * productnumber WHERE productid = 2005;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3363';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2005', '1', '24', '0', '155', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 18:15:59','0','0'); -- id=11120
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02006', '155', '162', '2006', '24', '365', '8760.00', '0', '', '2026-10-14 18:31:35', '2006','','','0','0','0','0','0',null,'365','8760','0','0','0','0','0','0','0','0','1'); -- id=960
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2006, 0, 0
                    , 365, 24, 0, 0, 1, '2026-10-14 18:31:36')
                ON DUPLICATE KEY UPDATE buyprice = 365,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:31:36' ; -- id=5979
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2006', '365', '24', '0', 'buyBillController.php', '960', '', '0', '0'); -- id=743
UPDATE product SET  productBuyPrice = "365" WHERE productId = 2006 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 960 ;
UPDATE product SET productName = 'شيرت 516 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '365.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02006',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '365',lastbuyprice_withDiscount = '365',meanbuyprice = '365',meanbuyprice_withDiscount = '365' , productbuypricereal = '365.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '9.59' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='365',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2006';
UPDATE buybilldetail SET  lastbuyprice = 365 , meanbuyprice = 365, lastbuyprice_withDiscount = 365, meanbuyprice_withDiscount = 365
        , lastbuyprice_withTax = 365, meanbuyprice_withTax = 365, lastbuyprice_withDiscountAndTax = 365
                where buybilldetailid = 960;
UPDATE productunit SET proUnitBuyPrice  = 365 * productnumber WHERE productid = 2006;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3364';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2006', '1', '24', '0', '155', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 18:15:59','0','0'); -- id=11121
UPDATE supplier SET  suppliercurrentDebt = '103165',suppliercurrentDebtInCurrency= '103165' , userid = '1', supplierdate = '2026-10-14 18:31:35'   WHERE supplierid = '145';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('145', '-50000.00', '153165', '0', 'اضافة فاتورة مشتريات', '155', '103165', '2026-10-14 18:15:59', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','153165','1','-50000','153165','103165','0',''); -- id=489
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '153165', '153165', '2026-10-14', '1', '0', '0', '2026-10-14 18:31:36','اضافة فاتورة مشتريات رقم 155','1','0',null,'0','155','buyBillController.php?do=details&id=155'); -- id=2439
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2439', '382', '153165', '','0'); -- id=2495
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22537856.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2439', '628', '153165', '','0'); -- id=2441
UPDATE accountstree SET name = 'يوني شيرت', customName = 'يوني شيرت', customNameEn = 'يوني شيرت', nameEn = 'يوني شيرت', parent = '81', accountNature = '1', theValue = '103165', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-09 21:25:49' WHERE id = '628';
update buybill set dailyentryid='2439,0' where buybillid=155;
COMMIT;
UPDATE product SET overAllAveragePrice = 515 WHERE productId = 2000;UPDATE product SET overAllAveragePrice = 435 WHERE productId = 2001;UPDATE product SET overAllAveragePrice = 515 WHERE productId = 2002;UPDATE product SET overAllAveragePrice = 435 WHERE productId = 2003;UPDATE product SET overAllAveragePrice = 515 WHERE productId = 2004;UPDATE product SET overAllAveragePrice = 365 WHERE productId = 2005;UPDATE product SET overAllAveragePrice = 365 WHERE productId = 2006;UPDATE product SET overAllAveragePrice = 700 WHERE productId = 2007;UPDATE product SET overAllAveragePrice = 900 WHERE productId = 2008;UPDATE product SET overAllAveragePrice = 900 WHERE productId = 2009;UPDATE product SET overAllAveragePrice = 800 WHERE productId = 2010;UPDATE product SET overAllAveragePrice = 730 WHERE productId = 2011;UPDATE product SET overAllAveragePrice = 800 WHERE productId = 2012;UPDATE product SET overAllAveragePrice = 1100 WHERE productId = 2013;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:01:36";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:31:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:31:36', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=155'); -- id=9623
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:03:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:33:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:33:05', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=155&type=2'); -- id=9624
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:05:21";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:35:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 18:35:21', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9625
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:05:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:35:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 18:35:34', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9626
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:06:13";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:36:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 18:36:13', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php'); -- id=9627
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:06:17";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:36:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:36:17', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9628
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:06:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:36:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 18:36:28', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php?do=add'); -- id=9629
BEGIN;
CALL insertUniqueOptNum(12,1,2,2013,12,'2026-10-14',1,0, '' , '' ,0,0,0,0,0,'2026-10-14 18:36:28',0,'',0,'','hide',0,@id,@optnum);
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3371';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 1, 2013, 0, 0
                    , 1100.00, 12, 0, 0, 1, '2026-10-14 18:36:28')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:36:28' ; -- id=5977
UPDATE storemovement SET  buyPricesHistoryBookData = "12*2026-10-14*1100.00," WHERE transferproductid = 1390;
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2013', '1', '12', '1', '1390', 'تحويل منتجات من المخزن', 'storemovementController.php', '12', '0', '1', '2026-10-14','0','0'); -- id=11122
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2013', '2', '12', '1', '2026-10-14'); -- id=3373
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14', 2, 2013, 0, 0
                    , 1100.00, 12, 0, 0, 1, '2026-10-14 18:36:28')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:36:28' ; -- id=5981
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2013', '2', '12', '0', '1390', 'تحويل منتجات إلى المخزن', 'storemovementController.php', '0', '12', '1', '2026-10-14','0','0'); -- id=11123
UPDATE storedetail SET inUse = 0 WHERE storedetailid=3371;
COMMIT;
BEGIN;
BEGIN;
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '13200', '13200', '2026-10-14', '1', '0', '0', '2026-10-14 18:36:28','تحويل من مخزن المخزن الرئيسي الى مخزن مخزن المحل','1','0',null,'0','12','storemovementController.php?do=show&operationnum=12'); -- id=2440
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2440', '492', '13200', '','0'); -- id=2496
UPDATE accountstree SET name = 'مخزن المحل', customName = 'مخزن المحل', customNameEn = 'مخزن المحل', nameEn = 'مخزن المحل', parent = '49', accountNature = '0', theValue = '1317070', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 19:38:59' WHERE id = '492';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2440', '382', '13200', '','0'); -- id=2442
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22524656.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
COMMIT;
COMMIT;
UPDATE storemovement SET  dailyentryid =2440 WHERE operationnum = 12;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:06:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:36:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 18:36:28', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php?do=sucess'); -- id=9630
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:06:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:36:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 18:36:30', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php?do=show'); -- id=9631
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:06:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:36:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 18:36:45', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9632
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:06:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:36:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 18:36:52', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9633
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:07:40";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:37:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:37:40', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9634
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('اوفر سايز زنط دبل','','115','400','400','400','400','2026-10-14','0','1','0','','0','0','0','0','0','400','400','400','400','400','0','0','0','0','.','0','0','0','400','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','400','400','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','400','0','0','0','0','0','0','','','0','0','0','0'); -- id=2015
UPDATE product SET productName = 'اوفر سايز زنط دبل', productDescription = '', productCatId = '115', productBuyPrice = '400', productSellAllPrice = '400', productSellUnitPrice = '400', productSellHalfPrice = '400', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02015',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '400',lastbuyprice_withDiscount = '400',meanbuyprice = '400',meanbuyprice_withDiscount = '400' , productbuypricereal = '400' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='400',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='400',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='400',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2015';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2015', '1.00', '2026-10-14', '1', '0','0201501','400','400','400','400','','0','0','0','0','0','0','0','0','0','0'); -- id=2015
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2015', '1', '0', '1', '2026-10-14'); -- id=3374
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2015', '1', '0', '0', '2015', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11124
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2015, 1,'2026-10-14 18:37:40',1)
                ON DUPLICATE KEY UPDATE productid = 2015, edited = 1, sysdate = '2026-10-14 18:37:40', userid = 1; -- id=2971
UPDATE product SET productName = 'اوفر سايز زنط دبل', productDescription = '', productCatId = '115', productBuyPrice = '400.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02015',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '400',lastbuyprice_withDiscount = '400',meanbuyprice = '400',meanbuyprice_withDiscount = '400' , productbuypricereal = '400' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='400',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='400',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='400',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2015';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('بوكس فيت','','115','450','450','450','450','2026-10-14','0','1','0','','0','0','0','0','0','450','450','450','450','450','0','0','0','0','.','0','0','0','450','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','450','450','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','450','0','0','0','0','0','0','','','0','0','0','0'); -- id=2016
UPDATE product SET productName = 'بوكس فيت', productDescription = '', productCatId = '115', productBuyPrice = '450', productSellAllPrice = '450', productSellUnitPrice = '450', productSellHalfPrice = '450', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02016',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2016';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2016', '1.00', '2026-10-14', '1', '0','0201601','450','450','450','450','','0','0','0','0','0','0','0','0','0','0'); -- id=2016
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2016', '1', '0', '1', '2026-10-14'); -- id=3375
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2016', '1', '0', '0', '2016', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11125
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2016, 1,'2026-10-14 18:37:40',1)
                ON DUPLICATE KEY UPDATE productid = 2016, edited = 1, sysdate = '2026-10-14 18:37:40', userid = 1; -- id=2972
UPDATE product SET productName = 'بوكس فيت', productDescription = '', productCatId = '115', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02016',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2016';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('اوفر سايز عادي','','115','350','350','350','350','2026-10-14','0','1','0','','0','0','0','0','0','350','350','350','350','350','0','0','0','0','.','0','0','0','350','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','350','350','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','350','0','0','0','0','0','0','','','0','0','0','0'); -- id=2017
UPDATE product SET productName = 'اوفر سايز عادي', productDescription = '', productCatId = '115', productBuyPrice = '350', productSellAllPrice = '350', productSellUnitPrice = '350', productSellHalfPrice = '350', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02017',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '350',meanbuyprice = '350',meanbuyprice_withDiscount = '350' , productbuypricereal = '350' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='350',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2017';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2017', '1.00', '2026-10-14', '1', '0','0201701','350','350','350','350','','0','0','0','0','0','0','0','0','0','0'); -- id=2017
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2017', '1', '0', '1', '2026-10-14'); -- id=3376
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2017', '1', '0', '0', '2017', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11126
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2017, 1,'2026-10-14 18:37:40',1)
                ON DUPLICATE KEY UPDATE productid = 2017, edited = 1, sysdate = '2026-10-14 18:37:40', userid = 1; -- id=2973
UPDATE product SET productName = 'اوفر سايز عادي', productDescription = '', productCatId = '115', productBuyPrice = '350.00', productSellAllPrice = '350.00', productSellUnitPrice = '350.00', productSellHalfPrice = '350.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02017',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '350',meanbuyprice = '350',meanbuyprice_withDiscount = '350' , productbuypricereal = '350' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='350',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2017';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('اوفر قصات','','115','430','430','430','430','2026-10-14','0','1','0','','0','0','0','0','0','430','430','430','430','430','0','0','0','0','.','0','0','0','430','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','430','430','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','430','0','0','0','0','0','0','','','0','0','0','0'); -- id=2018
UPDATE product SET productName = 'اوفر قصات', productDescription = '', productCatId = '115', productBuyPrice = '430', productSellAllPrice = '430', productSellUnitPrice = '430', productSellHalfPrice = '430', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02018',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',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='430',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2018';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2018', '1.00', '2026-10-14', '1', '0','0201801','430','430','430','430','','0','0','0','0','0','0','0','0','0','0'); -- id=2018
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2018', '1', '0', '1', '2026-10-14'); -- id=3377
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2018', '1', '0', '0', '2018', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11127
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2018, 1,'2026-10-14 18:37:40',1)
                ON DUPLICATE KEY UPDATE productid = 2018, edited = 1, sysdate = '2026-10-14 18:37:40', userid = 1; -- id=2974
UPDATE product SET productName = 'اوفر قصات', productDescription = '', productCatId = '115', productBuyPrice = '430.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02018',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',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='430',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2018';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:07:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:37:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:37:41', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9635
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:07:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:37:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:37:43', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9636
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:10:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:40:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:40:15', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9637
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfa1c72c28c', '2026-10-14 18:37:43', '111', '39667.40', '141641.9', '7', '1', '109650.00',  '101974.50', '0', '101974.5', '1', '2026-10-14 18:40:15', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=156
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02015', '156', '115', '2015', '108', '400', '43200.00', '0', '', '2026-10-14 18:40:15', '2015','','','0','0','0','0','0',null,'400','43200','0','0','0','0','0','0','0','0','1'); -- id=961
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:37:43', 1, 2015, 0, 0
                    , 372, 108, 0, 0, 1, '2026-10-14 18:40:15')
                ON DUPLICATE KEY UPDATE buyprice = 372,
                        buyQuantity =buyQuantity+108, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:40:15' ; -- id=5982
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2015', '400', '108', '0', 'buyBillController.php', '961', '', '0', '0'); -- id=744
UPDATE product SET  productBuyPrice = "400" WHERE productId = 2015 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 961 ;
UPDATE product SET productName = 'اوفر سايز زنط دبل', productDescription = '', productCatId = '115', productBuyPrice = '400.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02015',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '400',lastbuyprice_withDiscount = '372',meanbuyprice = '400',meanbuyprice_withDiscount = '372' , productbuypricereal = '400.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='400',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='400',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='372',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2015';
UPDATE buybilldetail SET  lastbuyprice = 400 , meanbuyprice = 400, lastbuyprice_withDiscount = 372, meanbuyprice_withDiscount = 372
        , lastbuyprice_withTax = 400, meanbuyprice_withTax = 400, lastbuyprice_withDiscountAndTax = 372
                where buybilldetailid = 961;
UPDATE productunit SET proUnitBuyPrice  = 400 * productnumber WHERE productid = 2015;
UPDATE storedetail SET  productquantity = '108', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3374';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2015', '1', '108', '0', '156', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '108', '1', '2026-10-14 18:37:43','0','0'); -- id=11128
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02016', '156', '115', '2016', '63', '450', '28350.00', '0', '', '2026-10-14 18:40:15', '2016','','','0','0','0','0','0',null,'450','28350','0','0','0','0','0','0','0','0','1'); -- id=962
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:37:43', 1, 2016, 0, 0
                    , 418.5, 63, 0, 0, 1, '2026-10-14 18:40:15')
                ON DUPLICATE KEY UPDATE buyprice = 418.5,
                        buyQuantity =buyQuantity+63, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:40:15' ; -- id=5983
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2016', '450', '63', '0', 'buyBillController.php', '962', '', '0', '0'); -- id=745
UPDATE product SET  productBuyPrice = "450" WHERE productId = 2016 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 962 ;
UPDATE product SET productName = 'بوكس فيت', productDescription = '', productCatId = '115', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02016',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '418.5',meanbuyprice = '450',meanbuyprice_withDiscount = '418.5' , productbuypricereal = '450.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='418.5',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2016';
UPDATE buybilldetail SET  lastbuyprice = 450 , meanbuyprice = 450, lastbuyprice_withDiscount = 418.5, meanbuyprice_withDiscount = 418.5
        , lastbuyprice_withTax = 450, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 418.5
                where buybilldetailid = 962;
UPDATE productunit SET proUnitBuyPrice  = 450 * productnumber WHERE productid = 2016;
UPDATE storedetail SET  productquantity = '63', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3375';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2016', '1', '63', '0', '156', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '63', '1', '2026-10-14 18:37:43','0','0'); -- id=11129
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02017', '156', '115', '2017', '72', '350', '25200.00', '0', '', '2026-10-14 18:40:15', '2017','','','0','0','0','0','0',null,'350','25200','0','0','0','0','0','0','0','0','1'); -- id=963
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:37:43', 1, 2017, 0, 0
                    , 325.5, 72, 0, 0, 1, '2026-10-14 18:40:15')
                ON DUPLICATE KEY UPDATE buyprice = 325.5,
                        buyQuantity =buyQuantity+72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:40:15' ; -- id=5984
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2017', '350', '72', '0', 'buyBillController.php', '963', '', '0', '0'); -- id=746
UPDATE product SET  productBuyPrice = "350" WHERE productId = 2017 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 963 ;
UPDATE product SET productName = 'اوفر سايز عادي', productDescription = '', productCatId = '115', productBuyPrice = '350.00', productSellAllPrice = '350.00', productSellUnitPrice = '350.00', productSellHalfPrice = '350.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02017',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '325.5',meanbuyprice = '350',meanbuyprice_withDiscount = '325.5' , productbuypricereal = '350.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='325.5',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2017';
UPDATE buybilldetail SET  lastbuyprice = 350 , meanbuyprice = 350, lastbuyprice_withDiscount = 325.5, meanbuyprice_withDiscount = 325.5
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 325.5
                where buybilldetailid = 963;
UPDATE productunit SET proUnitBuyPrice  = 350 * productnumber WHERE productid = 2017;
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3376';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2017', '1', '72', '0', '156', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '72', '1', '2026-10-14 18:37:43','0','0'); -- id=11130
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02018', '156', '115', '2018', '30', '430', '12900.00', '0', '', '2026-10-14 18:40:15', '2018','','','0','0','0','0','0',null,'430','12900','0','0','0','0','0','0','0','0','1'); -- id=964
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:37:43', 1, 2018, 0, 0
                    , 399.9, 30, 0, 0, 1, '2026-10-14 18:40:15')
                ON DUPLICATE KEY UPDATE buyprice = 399.9,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 18:40:15' ; -- id=5985
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2018', '430', '30', '0', 'buyBillController.php', '964', '', '0', '0'); -- id=747
UPDATE product SET  productBuyPrice = "430" WHERE productId = 2018 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 964 ;
UPDATE product SET productName = 'اوفر قصات', productDescription = '', productCatId = '115', productBuyPrice = '430.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02018',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '430',lastbuyprice_withDiscount = '399.9',meanbuyprice = '430',meanbuyprice_withDiscount = '399.9' , productbuypricereal = '430.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='399.9',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2018';
UPDATE buybilldetail SET  lastbuyprice = 430 , meanbuyprice = 430, lastbuyprice_withDiscount = 399.9, meanbuyprice_withDiscount = 399.9
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 399.9
                where buybilldetailid = 964;
UPDATE productunit SET proUnitBuyPrice  = 430 * productnumber WHERE productid = 2018;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3377';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2018', '1', '30', '0', '156', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 18:37:43','0','0'); -- id=11131
UPDATE supplier SET  suppliercurrentDebt = '141641.9',suppliercurrentDebtInCurrency= '141641.9' , userid = '1', supplierdate = '2026-10-14 18:40:15'   WHERE supplierid = '111';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('111', '39667.40', '101974.5', '0', 'اضافة فاتورة مشتريات', '156', '141641.9', '2026-10-14 18:37:43', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','101974.5','1','39667.4','101974.5','141641.9','0',''); -- id=490
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '101974.5', '101974.5', '2026-10-14', '1', '0', '0', '2026-10-14 18:40:15','اضافة فاتورة مشتريات رقم 156','1','0',null,'0','156','buyBillController.php?do=details&id=156'); -- id=2441
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2441', '382', '101974.5', '','0'); -- id=2497
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22626631.33', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2441', '594', '101974.5', '','0'); -- id=2443
UPDATE accountstree SET name = 'باور ماكس', customName = 'باور ماكس', customNameEn = 'باور ماكس', nameEn = 'باور ماكس', parent = '81', accountNature = '1', theValue = '141641.9', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-07 16:56:48' WHERE id = '594';
update buybill set dailyentryid='2441,0' where buybillid=156;
COMMIT;
UPDATE product SET overAllAveragePrice = 372 WHERE productId = 2015;UPDATE product SET overAllAveragePrice = 418.5 WHERE productId = 2016;UPDATE product SET overAllAveragePrice = 325.5 WHERE productId = 2017;UPDATE product SET overAllAveragePrice = 399.9 WHERE productId = 2018;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:10:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:40:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:40:15', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=156'); -- id=9638
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:10:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:40:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:40:33', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=156&type=2'); -- id=9639
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:12:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:42:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:42:44', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=156&type=2'); -- id=9640
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:12:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:42:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:42:47', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9641
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:13:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:43:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:43:41', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9642
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:17:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:47:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:47:49', '1', 'details', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=details&id=30'); -- id=9643
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:18:55";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:48:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 18:48:55', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9644
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:19:21";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:49:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 18:49:21', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9645
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:19:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:49:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 18:49:32', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9646
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:25:38";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:55:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:55:38', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9647
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:26:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:56:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 18:56:05', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9648
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:26:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:56:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 18:56:59', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9649
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('جاكت الحريف','2026-10-14','','90', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=164
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (164, 1,'2026-10-14 18:56:59',1)
                ON DUPLICATE KEY UPDATE catid = 164, edited = 1, sysdate = '2026-10-14 18:56:59', userid = 1; -- id=176
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '164', '1', '2026-10-14', '1', '0'); -- id=69
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:27:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:57:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 18:57:00', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9650
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:27:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:57:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 18:57:01', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9651
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:27:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:57:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:57:52', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9652
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:28:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:58:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:58:15', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=show'); -- id=9653
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:28:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:58:16", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 18:58:16', '4', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9654

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf7bd373aa8
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 18:58:16', '06acf7bd373aa8', '1', '0.00', '0', '0', '1', '1650.00', '1650', '1650', '0', '2', '2026-10-14 18:58:16', '', '4', '0', 'نقدي', '3', '0', '3', '0', 'نقدي', '3' ,'0','','','','','-1','0','0','0','0','0','1650','0','','0','0','1650','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=537
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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','537', '0', '2026-10-14 18:58:16', '4', 'sellbillController.php', 'اضافة فاتورة مبيعات', '1650', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 18:58:16','0','0','',''); -- id=685
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 621;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('495','01722', '537', '49', '1722', '3', '550', '1650', '0', '', '0', '2026-10-14 18:58:16', '1722', '0.00', '0', '2','0.00','','','0','0','0','0','0','0','0','0','','621-3,','1','1','0','0','550','1650','0','','0','0.00','0','0','0','0'); -- id=1959
UPDATE sellbilldetail SET  lastbuyprice = 550.00 , meanbuyprice = 550.00, lastbuyprice_withDiscount = 495.00, meanbuyprice_withDiscount = 495.00
        , lastbuyprice_withTax = 550, meanbuyprice_withTax = 550, lastbuyprice_withDiscountAndTax = 495
                where sellbilldetailid = 1959;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1722, '2026-10-14', 1650, 1650, 1650
                    , 1650, 1485, 1485, 1485
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1650, 1650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1650, sellCostBuyPrice =sellCostBuyPrice+1650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1485, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1485
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1485
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (2, '2026-10-14', 1650, 1650, 1650
                    , 1650, 1485, 1485, 1485
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1650, 1650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1650, sellCostBuyPrice =sellCostBuyPrice+1650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1485, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1485
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1485
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '27', userid = '4', storedetaildate = '2026-10-14 18:58:16' WHERE storedetailid = '2735';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1722', '2', '3', '1', '537', 'اضافة فاتورة مبيعات', 'sellbillController.php', '30', '27', '4', '2026-10-14 18:58:16','0','0'); -- id=11132
CALL saveInUse(3,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '568650',  userid = '4' WHERE saveid = '3';
UPDATE save SET  inUse = 0 where saveid = 3;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('567000','1650', '0', '3', 'اضافة فاتورة مبيعات', '537', '568650', '2026-10-14 18:58:16', '4',  'sellbillController.php','1','','0'); -- id=677
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '1650', '1650', '2026-10-14', '4', '0', '0', '2026-10-14 18:58:16','اضافة فاتورة مبيعات رقم 537','1','0',null,'0','537','sellbillController.php?do=showDetail&sellbillid=537'); -- id=2442
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2442', '501', '1650', '','0'); -- id=2498
UPDATE accountstree SET name = 'خزينه المحل الارضي', customName = 'خزينه المحل الارضي', customNameEn = 'خزينه المحل الارضي', nameEn = 'خزينه المحل الارضي', parent = '40', accountNature = '0', theValue = '568650', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-30 21:35:47' WHERE id = '501';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2442', '143', '1650', '','0'); -- id=2444
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5904350', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '1485', '1485', '2026-10-14', '4', '0', '0', '2026-10-14 18:58:16','اضافة فاتورة مبيعات رقم 537 - صرف البضاعة من المخزن','1','0',null,'0','537','sellbillController.php?do=showDetail&sellbillid=537'); -- id=2443
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2443', '402', '1485', '','0'); -- id=2499
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5506848.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2443', '492', '1485', '','0'); -- id=2445
UPDATE accountstree SET name = 'مخزن المحل', customName = 'مخزن المحل', customNameEn = 'مخزن المحل', nameEn = 'مخزن المحل', parent = '49', accountNature = '0', theValue = '1315585', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 19:38:59' WHERE id = '492';
update sellbill set dailyentryid='2442,0,2443' where sellbillid=537;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 1650, 1650, 1650
                    , 1650, 1485, 1485, 1485
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,1650, 1650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1650, sellCostBuyPrice =sellCostBuyPrice+1650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1485, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1485
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1485
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1650, 1650, 1650
                    , 1650, 1485, 1485, 1485
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,1650, 1650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1650, sellCostBuyPrice =sellCostBuyPrice+1650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1485, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1485
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1485
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 1650, 1650, 1650
                    , 1650, 1485, 1485, 1485, 1650, 1650)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+1650, netSellCostBuyPrice = netSellCostBuyPrice+1650
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+1650
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+1650
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+1485
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+1485
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+1485
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+1650
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+1650;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf7bd373aa8 and sellbillId = 537 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:28:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:58:16", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 18:58:16', '4', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9655
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:28:21";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:58:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:58:21', '1', 'editbill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editbill&id=152'); -- id=9656
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:29:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:59:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:59:32', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9657
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكت 600 الحريف','','164','600','600','600','600','2026-10-14','0','1','0','','0','0','0','0','0','600','600','600','600','600','0','0','0','0','.','0','0','0','600','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','600','600','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','600','0','0','0','0','0','0','','','0','0','0','0'); -- id=2019
UPDATE product SET productName = 'جاكت 600 الحريف', productDescription = '', productCatId = '164', productBuyPrice = '600', productSellAllPrice = '600', productSellUnitPrice = '600', productSellHalfPrice = '600', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02019',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '600',meanbuyprice = '600',meanbuyprice_withDiscount = '600' , productbuypricereal = '600' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='600',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2019';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2019', '1.00', '2026-10-14', '1', '0','0201901','600','600','600','600','','0','0','0','0','0','0','0','0','0','0'); -- id=2019
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2019', '1', '0', '1', '2026-10-14'); -- id=3378
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2019', '1', '0', '0', '2019', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11133
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2019, 1,'2026-10-14 18:59:32',1)
                ON DUPLICATE KEY UPDATE productid = 2019, edited = 1, sysdate = '2026-10-14 18:59:32', userid = 1; -- id=2975
UPDATE product SET productName = 'جاكت 600 الحريف', productDescription = '', productCatId = '164', productBuyPrice = '600.00', productSellAllPrice = '600.00', productSellUnitPrice = '600.00', productSellHalfPrice = '600.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02019',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '600',meanbuyprice = '600',meanbuyprice_withDiscount = '600' , productbuypricereal = '600' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='600',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2019';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكت جلد الحريف 650','','164','650','650','650','650','2026-10-14','0','1','0','','0','0','0','0','0','650','650','650','650','650','0','0','0','0','.','0','0','0','650','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','650','650','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','650','0','0','0','0','0','0','','','0','0','0','0'); -- id=2020
UPDATE product SET productName = 'جاكت جلد الحريف 650', productDescription = '', productCatId = '164', productBuyPrice = '650', productSellAllPrice = '650', productSellUnitPrice = '650', productSellHalfPrice = '650', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02020',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '650',lastbuyprice_withDiscount = '650',meanbuyprice = '650',meanbuyprice_withDiscount = '650' , productbuypricereal = '650' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='650',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='650',meanbuyprice_withTax='650',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='650',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2020';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2020', '1.00', '2026-10-14', '1', '0','0202001','650','650','650','650','','0','0','0','0','0','0','0','0','0','0'); -- id=2020
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2020', '1', '0', '1', '2026-10-14'); -- id=3379
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2020', '1', '0', '0', '2020', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11134
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2020, 1,'2026-10-14 18:59:32',1)
                ON DUPLICATE KEY UPDATE productid = 2020, edited = 1, sysdate = '2026-10-14 18:59:32', userid = 1; -- id=2976
UPDATE product SET productName = 'جاكت جلد الحريف 650', productDescription = '', productCatId = '164', productBuyPrice = '650.00', productSellAllPrice = '650.00', productSellUnitPrice = '650.00', productSellHalfPrice = '650.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02020',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '650',lastbuyprice_withDiscount = '650',meanbuyprice = '650',meanbuyprice_withDiscount = '650' , productbuypricereal = '650' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='650',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='650',meanbuyprice_withTax='650',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='650',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2020';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:29:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:59:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 18:59:34', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9658
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:29:36";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 18:59:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 18:59:36', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9659
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:30:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:00:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:00:02', '1', 'update', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=update'); -- id=9660
BEGIN;
UPDATE costcenterdetail SET del = 1 WHERE type in( 3) and  modelid = 152;
UPDATE buybill SET  buybillsysdate = '2026-10-14 19:00:02', userid = '1',delbyuserid = '1', conditions = '1' WHERE buybillid = '152';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1993, 0, 0
                    , 360, 60, 0, 0, 1, '2026-10-14 19:00:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:00:02' ; -- id=1219
UPDATE buybilldetail SET  lastbuyprice = 360.00 , meanbuyprice = 360.00, lastbuyprice_withDiscount = 360.00, meanbuyprice_withDiscount = 360.00
        , lastbuyprice_withTax = 360.00, meanbuyprice_withTax = 360.00, lastbuyprice_withDiscountAndTax = 360.00
                where buybilldetailid = 938;
UPDATE product SET productName = 'نايك اوفر سايز ميرور', productDescription = '', productCatId = '78', productBuyPrice = '360.00', productSellAllPrice = '385.00', productSellUnitPrice = '385.00', productSellHalfPrice = '385.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01993',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '0',meanbuyprice = '360',meanbuyprice_withDiscount = '360' , productbuypricereal = '360.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.94' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1993';
UPDATE productunit SET proUnitBuyPrice  = 360 * productnumber WHERE productid = 1993;
UPDATE storedetail SET  productquantity = '-8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3010';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1993', '1', '60', '1', '152', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '52', '-8', '1', '2026-10-14 17:34:42','0','0'); -- id=11135
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1994, 0, 0
                    , 380, 60, 0, 0, 1, '2026-10-14 19:00:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:00:02' ; -- id=1220
UPDATE buybilldetail SET  lastbuyprice = 380.00 , meanbuyprice = 380.00, lastbuyprice_withDiscount = 380.00, meanbuyprice_withDiscount = 380.00
        , lastbuyprice_withTax = 380.00, meanbuyprice_withTax = 380.00, lastbuyprice_withDiscountAndTax = 380.00
                where buybilldetailid = 939;
UPDATE product SET productName = 'شروال قصات ميرور', productDescription = '', productCatId = '78', productBuyPrice = '380.00', productSellAllPrice = '405.00', productSellUnitPrice = '405.00', productSellHalfPrice = '405.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01994',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '0',meanbuyprice = '380',meanbuyprice_withDiscount = '380' , productbuypricereal = '380.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.58' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='380',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1994';
UPDATE productunit SET proUnitBuyPrice  = 380 * productnumber WHERE productid = 1994;
UPDATE storedetail SET  productquantity = '-8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3011';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1994', '1', '60', '1', '152', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '52', '-8', '1', '2026-10-14 17:34:42','0','0'); -- id=11136
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1995, 0, 0
                    , 370, 60, 0, 0, 1, '2026-10-14 19:00:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:00:02' ; -- id=1221
UPDATE buybilldetail SET  lastbuyprice = 370.00 , meanbuyprice = 370.00, lastbuyprice_withDiscount = 370.00, meanbuyprice_withDiscount = 370.00
        , lastbuyprice_withTax = 370.00, meanbuyprice_withTax = 370.00, lastbuyprice_withDiscountAndTax = 370.00
                where buybilldetailid = 940;
UPDATE product SET productName = 'اوفر سايز ميرور', productDescription = '', productCatId = '78', productBuyPrice = '370.00', productSellAllPrice = '395.00', productSellUnitPrice = '395.00', productSellHalfPrice = '395.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01995',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '0',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.76' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1995';
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 1995;
UPDATE storedetail SET  productquantity = '-8', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3012';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1995', '1', '60', '1', '152', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '52', '-8', '1', '2026-10-14 17:34:42','0','0'); -- id=11137
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1996, 0, 0
                    , 375, 60, 0, 0, 1, '2026-10-14 19:00:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:00:02' ; -- id=1222
UPDATE buybilldetail SET  lastbuyprice = 375.00 , meanbuyprice = 375.00, lastbuyprice_withDiscount = 375.00, meanbuyprice_withDiscount = 375.00
        , lastbuyprice_withTax = 375.00, meanbuyprice_withTax = 375.00, lastbuyprice_withDiscountAndTax = 375.00
                where buybilldetailid = 941;
UPDATE product SET productName = 'وايد ليج نايك ميرور', productDescription = '', productCatId = '78', productBuyPrice = '375.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01996',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '375',lastbuyprice_withDiscount = '0',meanbuyprice = '375.00',meanbuyprice_withDiscount = '375' , productbuypricereal = '375.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.67' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='375',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='375',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1996';
UPDATE productunit SET proUnitBuyPrice  = 375 * productnumber WHERE productid = 1996;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3013';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1996', '1', '60', '1', '152', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '60', '0', '1', '2026-10-14 17:34:42','0','0'); -- id=11138
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1997, 0, 0
                    , 365, 60, 0, 0, 1, '2026-10-14 19:00:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:00:02' ; -- id=1223
UPDATE buybilldetail SET  lastbuyprice = 365.00 , meanbuyprice = 365.00, lastbuyprice_withDiscount = 365.00, meanbuyprice_withDiscount = 365.00
        , lastbuyprice_withTax = 365.00, meanbuyprice_withTax = 365.00, lastbuyprice_withDiscountAndTax = 365.00
                where buybilldetailid = 942;
UPDATE product SET productName = 'اوفر سايز بنز كبير ميرور', productDescription = '', productCatId = '78', productBuyPrice = '365.00', productSellAllPrice = '390.00', productSellUnitPrice = '390.00', productSellHalfPrice = '390.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01997',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '365',lastbuyprice_withDiscount = '0',meanbuyprice = '365.00',meanbuyprice_withDiscount = '365' , productbuypricereal = '365.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.85' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1997';
UPDATE productunit SET proUnitBuyPrice  = 365 * productnumber WHERE productid = 1997;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3014';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1997', '1', '60', '1', '152', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '60', '0', '1', '2026-10-14 17:34:42','0','0'); -- id=11139
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1998, 0, 0
                    , 395, 60, 0, 0, 1, '2026-10-14 19:00:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:00:02' ; -- id=1224
UPDATE buybilldetail SET  lastbuyprice = 395.00 , meanbuyprice = 395.00, lastbuyprice_withDiscount = 395.00, meanbuyprice_withDiscount = 395.00
        , lastbuyprice_withTax = 395.00, meanbuyprice_withTax = 395.00, lastbuyprice_withDiscountAndTax = 395.00
                where buybilldetailid = 943;
UPDATE product SET productName = 'وايد ليج اديداس ميرور', productDescription = '', productCatId = '78', productBuyPrice = '395.00', productSellAllPrice = '420.00', productSellUnitPrice = '420.00', productSellHalfPrice = '420.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01998',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '395',lastbuyprice_withDiscount = '0',meanbuyprice = '395.00',meanbuyprice_withDiscount = '395' , productbuypricereal = '395.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.33' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1998';
UPDATE productunit SET proUnitBuyPrice  = 395 * productnumber WHERE productid = 1998;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3015';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1998', '1', '60', '1', '152', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '60', '0', '1', '2026-10-14 17:34:42','0','0'); -- id=11140
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1999, 0, 0
                    , 410, 60, 0, 0, 1, '2026-10-14 19:00:02')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-60, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:00:02' ; -- id=1225
UPDATE buybilldetail SET  lastbuyprice = 410.00 , meanbuyprice = 410.00, lastbuyprice_withDiscount = 410.00, meanbuyprice_withDiscount = 410.00
        , lastbuyprice_withTax = 410.00, meanbuyprice_withTax = 410.00, lastbuyprice_withDiscountAndTax = 410.00
                where buybilldetailid = 944;
UPDATE product SET productName = 'بالون فيت قصات ميرور', productDescription = '', productCatId = '78', productBuyPrice = '410.00', productSellAllPrice = '435.00', productSellUnitPrice = '435.00', productSellHalfPrice = '435.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01999',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '410',lastbuyprice_withDiscount = '0',meanbuyprice = '410.00',meanbuyprice_withDiscount = '410' , productbuypricereal = '410.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.10' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1999';
UPDATE productunit SET proUnitBuyPrice  = 410 * productnumber WHERE productid = 1999;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3016';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1999', '1', '60', '1', '152', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '60', '0', '1', '2026-10-14 17:34:42','0','0'); -- id=11141
UPDATE supplier SET  suppliercurrentDebt = '-109307.05',suppliercurrentDebtInCurrency= '-109307.05' , userid = '1', supplierdate = '2026-10-14 19:00:02'   WHERE supplierid = '61';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('61', '49992.95', '159300.00', '1', 'حذف فاتورة مشتريات - للتعديل', '152', '-109307.05', '2026-10-14 17:34:42', '1', 'buyBillController.php', 'حذف فاتورة مشتريات - للتعديل', '0','', '0','1','1','159300','1','49992.95','159300','-109307.05','0',''); -- id=491
UPDATE productserial SET del = 1
		 WHERE billid = 152;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,deletedbuyid,controlname,payedtax,costcenterid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf93029b445', '2026-10-14 17:34:42', '61', '-109307.05', '50292.95', '0', '0', '159600.00', '159600.00', '0.00', '159600', '1', '2026-10-14 19:00:02', '', '1', '0', '', '1', '1','1','152','buyBillController.php','0.00','-1','1','0','0','.','0','0','0','0','0','0'); -- id=157
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01993', '157', '78', '1993', '60.00', '360', '21600.00', '0.00', '', '2026-10-14 19:00:02', '1993','','','0','0','0','0','0',null,'360','21600','0','0','0','0','0','0','0','0','1'); -- id=965
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1993, 0, 0
                    , 360, 60, 0, 0, 1, '2026-10-14 19:00:02')
                ON DUPLICATE KEY UPDATE buyprice = 360,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:00:02' ; -- id=1219
UPDATE product SET  productBuyPrice = "360" WHERE productId = 1993 ;
UPDATE buybilldetail SET  quantitybefore = -8 WHERE buybilldetailid = 965 ;
UPDATE product SET productName = 'نايك اوفر سايز ميرور', productDescription = '', productCatId = '78', productBuyPrice = '360.00', productSellAllPrice = '385.00', productSellUnitPrice = '385.00', productSellHalfPrice = '385.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01993',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '360',meanbuyprice = '360',meanbuyprice_withDiscount = '360' , productbuypricereal = '360.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.94' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1993';
UPDATE buybilldetail SET  lastbuyprice = 360 , meanbuyprice = 360, lastbuyprice_withDiscount = 360, meanbuyprice_withDiscount = 360
        , lastbuyprice_withTax = 360, meanbuyprice_withTax = 360, lastbuyprice_withDiscountAndTax = 360
                where buybilldetailid = 965;
UPDATE productunit SET proUnitBuyPrice  = 360 * productnumber WHERE productid = 1993;
UPDATE storedetail SET  productquantity = '52', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3010';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1993', '1', '60', '0', '157', 'اضافة فاتورة مشتريات', 'buyBillController.php', '-8', '52', '1', '2026-10-14 17:34:42','0','0'); -- id=11142
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01994', '157', '78', '1994', '60.00', '380', '22800.00', '0.00', '', '2026-10-14 19:00:02', '1994','','','0','0','0','0','0',null,'380','22800','0','0','0','0','0','0','0','0','1'); -- id=966
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1994, 0, 0
                    , 380, 60, 0, 0, 1, '2026-10-14 19:00:02')
                ON DUPLICATE KEY UPDATE buyprice = 380,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:00:02' ; -- id=1220
UPDATE product SET  productBuyPrice = "380" WHERE productId = 1994 ;
UPDATE buybilldetail SET  quantitybefore = -8 WHERE buybilldetailid = 966 ;
UPDATE product SET productName = 'شروال قصات ميرور', productDescription = '', productCatId = '78', productBuyPrice = '380.00', productSellAllPrice = '405.00', productSellUnitPrice = '405.00', productSellHalfPrice = '405.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01994',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '380',meanbuyprice = '380',meanbuyprice_withDiscount = '380' , productbuypricereal = '380.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.58' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='380',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1994';
UPDATE buybilldetail SET  lastbuyprice = 380 , meanbuyprice = 380, lastbuyprice_withDiscount = 380, meanbuyprice_withDiscount = 380
        , lastbuyprice_withTax = 380, meanbuyprice_withTax = 380, lastbuyprice_withDiscountAndTax = 380
                where buybilldetailid = 966;
UPDATE productunit SET proUnitBuyPrice  = 380 * productnumber WHERE productid = 1994;
UPDATE storedetail SET  productquantity = '52', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3011';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1994', '1', '60', '0', '157', 'اضافة فاتورة مشتريات', 'buyBillController.php', '-8', '52', '1', '2026-10-14 17:34:42','0','0'); -- id=11143
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01995', '157', '78', '1995', '60.00', '370', '22200.00', '0.00', '', '2026-10-14 19:00:02', '1995','','','0','0','0','0','0',null,'370','22200','0','0','0','0','0','0','0','0','1'); -- id=967
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1995, 0, 0
                    , 370, 60, 0, 0, 1, '2026-10-14 19:00:02')
                ON DUPLICATE KEY UPDATE buyprice = 370,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:00:02' ; -- id=1221
UPDATE product SET  productBuyPrice = "370" WHERE productId = 1995 ;
UPDATE buybilldetail SET  quantitybefore = -8 WHERE buybilldetailid = 967 ;
UPDATE product SET productName = 'اوفر سايز ميرور', productDescription = '', productCatId = '78', productBuyPrice = '370.00', productSellAllPrice = '395.00', productSellUnitPrice = '395.00', productSellHalfPrice = '395.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01995',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.76' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1995';
UPDATE buybilldetail SET  lastbuyprice = 370 , meanbuyprice = 370, lastbuyprice_withDiscount = 370, meanbuyprice_withDiscount = 370
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 370
                where buybilldetailid = 967;
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 1995;
UPDATE storedetail SET  productquantity = '52', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3012';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1995', '1', '60', '0', '157', 'اضافة فاتورة مشتريات', 'buyBillController.php', '-8', '52', '1', '2026-10-14 17:34:42','0','0'); -- id=11144
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01996', '157', '78', '1996', '60.00', '375', '22500.00', '0.00', '', '2026-10-14 19:00:02', '1996','','','0','0','0','0','0',null,'375','22500','0','0','0','0','0','0','0','0','1'); -- id=968
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1996, 0, 0
                    , 375, 60, 0, 0, 1, '2026-10-14 19:00:03')
                ON DUPLICATE KEY UPDATE buyprice = 375,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:00:03' ; -- id=1222
UPDATE product SET  productBuyPrice = "375" WHERE productId = 1996 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 968 ;
UPDATE product SET productName = 'وايد ليج نايك ميرور', productDescription = '', productCatId = '78', productBuyPrice = '375.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01996',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '375',lastbuyprice_withDiscount = '375',meanbuyprice = '375',meanbuyprice_withDiscount = '375' , productbuypricereal = '375.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.67' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='375',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='375',meanbuyprice_withTax='187.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='375',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1996';
UPDATE buybilldetail SET  lastbuyprice = 375 , meanbuyprice = 375, lastbuyprice_withDiscount = 375, meanbuyprice_withDiscount = 375
        , lastbuyprice_withTax = 375, meanbuyprice_withTax = 187.5, lastbuyprice_withDiscountAndTax = 375
                where buybilldetailid = 968;
UPDATE productunit SET proUnitBuyPrice  = 375 * productnumber WHERE productid = 1996;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3013';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1996', '1', '60', '0', '157', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '60', '1', '2026-10-14 17:34:42','0','0'); -- id=11145
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01995', '157', '78', '1995', '60.00', '370', '22200.00', '0.00', '', '2026-10-14 19:00:02', '1995','','','0','0','0','0','0',null,'370','22200','0','0','0','0','0','0','0','0','1'); -- id=969
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1995, 0, 0
                    , 370, 60, 0, 0, 1, '2026-10-14 19:00:03')
                ON DUPLICATE KEY UPDATE buyprice = 370,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:00:03' ; -- id=1221
UPDATE product SET  productBuyPrice = "370" WHERE productId = 1995 ;
UPDATE buybilldetail SET  quantitybefore = 52 WHERE buybilldetailid = 969 ;
UPDATE product SET productName = 'اوفر سايز ميرور', productDescription = '', productCatId = '78', productBuyPrice = '370.00', productSellAllPrice = '395.00', productSellUnitPrice = '395.00', productSellHalfPrice = '395.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01995',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.76' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1995';
UPDATE buybilldetail SET  lastbuyprice = 370 , meanbuyprice = 370, lastbuyprice_withDiscount = 370, meanbuyprice_withDiscount = 370
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 370
                where buybilldetailid = 969;
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 1995;
UPDATE storedetail SET  productquantity = '112', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3012';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1995', '1', '60', '0', '157', 'اضافة فاتورة مشتريات', 'buyBillController.php', '52', '112', '1', '2026-10-14 17:34:42','0','0'); -- id=11146
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01998', '157', '78', '1998', '60.00', '395', '23700.00', '0.00', '', '2026-10-14 19:00:02', '1998','','','0','0','0','0','0',null,'395','23700','0','0','0','0','0','0','0','0','1'); -- id=970
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1998, 0, 0
                    , 395, 60, 0, 0, 1, '2026-10-14 19:00:03')
                ON DUPLICATE KEY UPDATE buyprice = 395,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:00:03' ; -- id=1224
UPDATE product SET  productBuyPrice = "395" WHERE productId = 1998 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 970 ;
UPDATE product SET productName = 'وايد ليج اديداس ميرور', productDescription = '', productCatId = '78', productBuyPrice = '395.00', productSellAllPrice = '420.00', productSellUnitPrice = '420.00', productSellHalfPrice = '420.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01998',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '395',lastbuyprice_withDiscount = '395',meanbuyprice = '395',meanbuyprice_withDiscount = '395' , productbuypricereal = '395.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.33' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='197.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='395',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1998';
UPDATE buybilldetail SET  lastbuyprice = 395 , meanbuyprice = 395, lastbuyprice_withDiscount = 395, meanbuyprice_withDiscount = 395
        , lastbuyprice_withTax = 395, meanbuyprice_withTax = 197.5, lastbuyprice_withDiscountAndTax = 395
                where buybilldetailid = 970;
UPDATE productunit SET proUnitBuyPrice  = 395 * productnumber WHERE productid = 1998;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3015';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1998', '1', '60', '0', '157', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '60', '1', '2026-10-14 17:34:42','0','0'); -- id=11147
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01999', '157', '78', '1999', '60.00', '410', '24600.00', '0.00', '', '2026-10-14 19:00:02', '1999','','','0','0','0','0','0',null,'410','24600','0','0','0','0','0','0','0','0','1'); -- id=971
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 17:34:42', 1, 1999, 0, 0
                    , 410, 60, 0, 0, 1, '2026-10-14 19:00:03')
                ON DUPLICATE KEY UPDATE buyprice = 410,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:00:03' ; -- id=1225
UPDATE product SET  productBuyPrice = "410" WHERE productId = 1999 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 971 ;
UPDATE product SET productName = 'بالون فيت قصات ميرور', productDescription = '', productCatId = '78', productBuyPrice = '410.00', productSellAllPrice = '435.00', productSellUnitPrice = '435.00', productSellHalfPrice = '435.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01999',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '410',lastbuyprice_withDiscount = '410',meanbuyprice = '410',meanbuyprice_withDiscount = '410' , productbuypricereal = '410.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.10' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='205',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1999';
UPDATE buybilldetail SET  lastbuyprice = 410 , meanbuyprice = 410, lastbuyprice_withDiscount = 410, meanbuyprice_withDiscount = 410
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 205, lastbuyprice_withDiscountAndTax = 410
                where buybilldetailid = 971;
UPDATE productunit SET proUnitBuyPrice  = 410 * productnumber WHERE productid = 1999;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3016';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1999', '1', '60', '0', '157', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '60', '1', '2026-10-14 17:34:42','0','0'); -- id=11148
DELETE FROM productserial WHERE billid = 152
		and type =0 
		;
UPDATE supplier SET  suppliercurrentDebt = '50292.95',suppliercurrentDebtInCurrency= '50292.95' , userid = '1', supplierdate = '2026-10-14 19:00:02'   WHERE supplierid = '61';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('61', '-109307.05', '159600', '0', 'اضافة فاتورة مشتريات', '157', '50292.95', '2026-10-14 19:00:02', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','159300','1','-109307.05','159600','50292.95','0',''); -- id=492
UPDATE dailyentry SET totalcreditor = '159300.00', totaldebtor = '159300.00', thedate = '2026-10-14', userid = '1', `condition` = '0', reverseofid = '-10', dDateTime = '2026-10-14 17:36:29', entryComment = 'اضافة فاتورة مشتريات رقم 152', fromFlag = '1',related='0',isopeningentry='0',operationId='152',operationDetailLink='buyBillController.php?do=details&id=152' WHERE id = '2425';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '159300.00', '159300.00', '2026-10-14', '1', '0', '2425', '2026-10-14 19:00:03','تم عكس القيد رقم 2425 ','1','0','0','0','0',''); -- id=2444
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2444', '382', '159300.00', '','0'); -- id=2446
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22467331.33', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2444', '480', '159300.00', '','0'); -- id=2500
UPDATE accountstree SET name = 'ميرور - مورد', customName = 'ميرور - مورد', customNameEn = 'ميرور - مورد', nameEn = 'ميرور - مورد', parent = '81', accountNature = '1', theValue = '-340000', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '480';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '159600', '159600', '2026-10-14', '1', '0', '0', '2026-10-14 19:00:03','اضافة فاتورة مشتريات رقم 157','1','0',null,'0','157','buyBillController.php?do=details&id=157'); -- id=2445
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2445', '382', '159600', '','0'); -- id=2501
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22626931.33', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2445', '480', '159600', '','0'); -- id=2447
UPDATE accountstree SET name = 'ميرور - مورد', customName = 'ميرور - مورد', customNameEn = 'ميرور - مورد', nameEn = 'ميرور - مورد', parent = '81', accountNature = '1', theValue = '-180400', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '480';
update buybill set dailyentryid='2445,0' where buybillid=157;
UPDATE product SET overAllAveragePrice = 360 WHERE productId = 1993;UPDATE product SET overAllAveragePrice = 380 WHERE productId = 1994;UPDATE product SET overAllAveragePrice = 370 WHERE productId = 1995;UPDATE product SET overAllAveragePrice = 375 WHERE productId = 1996;UPDATE product SET overAllAveragePrice = 395 WHERE productId = 1998;UPDATE product SET overAllAveragePrice = 410 WHERE productId = 1999;;
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:30:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:00:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:00:03', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=157'); -- id=9661
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:30:07";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:00:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:00:07', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=157&type=2'); -- id=9662
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:30:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:00:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:00:54', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9663
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:30:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:00:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:00:59', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9664
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:31:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:01:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:01:01', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9665
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfa6e89615f', '2026-10-14 18:59:36', '105', '367096.00', '460651', '10', '1', '103950.00',  '93555.00', '0', '93555', '1', '2026-10-14 19:01:01', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=158
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02019', '158', '164', '2019', '144', '600', '86400.00', '0', '', '2026-10-14 19:01:01', '2019','','','0','0','0','0','0',null,'600','86400','0','0','0','0','0','0','0','0','1'); -- id=972
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:59:36', 1, 2019, 0, 0
                    , 540, 144, 0, 0, 1, '2026-10-14 19:01:01')
                ON DUPLICATE KEY UPDATE buyprice = 540,
                        buyQuantity =buyQuantity+144, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:01:01' ; -- id=6000
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2019', '600', '144', '0', 'buyBillController.php', '972', '', '0', '0'); -- id=748
UPDATE product SET  productBuyPrice = "600" WHERE productId = 2019 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 972 ;
UPDATE product SET productName = 'جاكت 600 الحريف', productDescription = '', productCatId = '164', productBuyPrice = '600.00', productSellAllPrice = '600.00', productSellUnitPrice = '600.00', productSellHalfPrice = '600.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02019',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '540',meanbuyprice = '600',meanbuyprice_withDiscount = '540' , productbuypricereal = '600.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='540',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2019';
UPDATE buybilldetail SET  lastbuyprice = 600 , meanbuyprice = 600, lastbuyprice_withDiscount = 540, meanbuyprice_withDiscount = 540
        , lastbuyprice_withTax = 600, meanbuyprice_withTax = 600, lastbuyprice_withDiscountAndTax = 540
                where buybilldetailid = 972;
UPDATE productunit SET proUnitBuyPrice  = 600 * productnumber WHERE productid = 2019;
UPDATE storedetail SET  productquantity = '144', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3378';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2019', '1', '144', '0', '158', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '144', '1', '2026-10-14 18:59:36','0','0'); -- id=11149
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02020', '158', '164', '2020', '27', '650', '17550.00', '0', '', '2026-10-14 19:01:01', '2020','','','0','0','0','0','0',null,'650','17550','0','0','0','0','0','0','0','0','1'); -- id=973
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:59:36', 1, 2020, 0, 0
                    , 585, 27, 0, 0, 1, '2026-10-14 19:01:01')
                ON DUPLICATE KEY UPDATE buyprice = 585,
                        buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:01:01' ; -- id=6001
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2020', '650', '27', '0', 'buyBillController.php', '973', '', '0', '0'); -- id=749
UPDATE product SET  productBuyPrice = "650" WHERE productId = 2020 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 973 ;
UPDATE product SET productName = 'جاكت جلد الحريف 650', productDescription = '', productCatId = '164', productBuyPrice = '650.00', productSellAllPrice = '650.00', productSellUnitPrice = '650.00', productSellHalfPrice = '650.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02020',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '650',lastbuyprice_withDiscount = '585',meanbuyprice = '650',meanbuyprice_withDiscount = '585' , productbuypricereal = '650.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='650',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='650',meanbuyprice_withTax='650',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='585',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2020';
UPDATE buybilldetail SET  lastbuyprice = 650 , meanbuyprice = 650, lastbuyprice_withDiscount = 585, meanbuyprice_withDiscount = 585
        , lastbuyprice_withTax = 650, meanbuyprice_withTax = 650, lastbuyprice_withDiscountAndTax = 585
                where buybilldetailid = 973;
UPDATE productunit SET proUnitBuyPrice  = 650 * productnumber WHERE productid = 2020;
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3379';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2020', '1', '27', '0', '158', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '27', '1', '2026-10-14 18:59:36','0','0'); -- id=11150
UPDATE supplier SET  suppliercurrentDebt = '460651',suppliercurrentDebtInCurrency= '460651' , userid = '1', supplierdate = '2026-10-14 19:01:01'   WHERE supplierid = '105';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('105', '367096.00', '93555', '0', 'اضافة فاتورة مشتريات', '158', '460651', '2026-10-14 18:59:36', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','93555','1','367096','93555','460651','0',''); -- id=493
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '93555', '93555', '2026-10-14', '1', '0', '0', '2026-10-14 19:01:01','اضافة فاتورة مشتريات رقم 158','1','0',null,'0','158','buyBillController.php?do=details&id=158'); -- id=2446
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2446', '382', '93555', '','0'); -- id=2502
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22720486.33', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2446', '588', '93555', '','0'); -- id=2448
UPDATE accountstree SET name = 'الحريف', customName = 'الحريف', customNameEn = 'الحريف', nameEn = 'الحريف', parent = '81', accountNature = '1', theValue = '460651', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-06 20:25:30' WHERE id = '588';
update buybill set dailyentryid='2446,0' where buybillid=158;
COMMIT;
UPDATE product SET overAllAveragePrice = 540 WHERE productId = 2019;UPDATE product SET overAllAveragePrice = 585 WHERE productId = 2020;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:31:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:01:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:01:01', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=158'); -- id=9666
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:31:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:01:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:01:04', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9667
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:31:05";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:01:05", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:01:05', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=158&type=2'); -- id=9668
UPDATE user SET loginip = "" WHERE userid = 3;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:31:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:01:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:01:39', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=157&type=2'); -- id=9669
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:31:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:01:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:01:42', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=157'); -- id=9670
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:32:19";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:02:19", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 19:02:19', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9671
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 15:32:19";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 19:02:19', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9672
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:32:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:02:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:02:39', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=158&type=2'); -- id=9673
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:32:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:02:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:02:49', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9674
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:33:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:03:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 19:03:09', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9675
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:33:17";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:03:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 19:03:17', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9676
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:33:21";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:03:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 19:03:21', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9677
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:33:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:03:34", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 19:03:34', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9678

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acfa04e41d13
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 19:03:34', '06acfa04e41d13', '1', '0.00', '0', '0', '1', '4215.00', '4215', '4215', '0', '1', '2026-10-14 19:03:34', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '18' ,'0','','','','','-1','0','0','0','0','0','4215','0','','0','0','4215','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=538
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','538', '0', '2026-10-14 19:03:34', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '4215', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 19:03:34','0','0','',''); -- id=686
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 1084;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('230','01923', '538', '154', '1923', '9', '245', '2205', '0', '', '0', '2026-10-14 19:03:34', '1923', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1084-9,','1','1','0','0','245','2205','0','','0','0.00','0','0','0','0'); -- id=1960
UPDATE sellbilldetail SET  lastbuyprice = 230.00 , meanbuyprice = 230.00, lastbuyprice_withDiscount = 230.00, meanbuyprice_withDiscount = 230.00
        , lastbuyprice_withTax = 230, meanbuyprice_withTax = 230, lastbuyprice_withDiscountAndTax = 230
                where sellbilldetailid = 1960;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1923, '2026-10-14', 2205, 2070, 2070
                    , 2070, 2070, 2070, 2070
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2070, 2070, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2205, sellCostBuyPrice =sellCostBuyPrice+2070
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2070, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2070
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2070, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2070
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2070
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2070
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2070
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2205, 2070, 2070
                    , 2070, 2070, 2070, 2070
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2070, 2070, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2205, sellCostBuyPrice =sellCostBuyPrice+2070
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2070, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2070
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2070, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2070
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2070
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2070
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2070
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '171', userid = '3', storedetaildate = '2026-10-14 19:03:34' WHERE storedetailid = '2940';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1923', '1', '9', '1', '538', 'اضافة فاتورة مبيعات', 'sellbillController.php', '180', '171', '3', '2026-10-14 19:03:34','0','0'); -- id=11151
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('375','08144', '538', '71', '1244', '3', '250', '750', '0', '', '0', '2026-10-14 19:03:34', '1244', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','250','750','0','','0','0.00','0','0','0','0'); -- id=1961
UPDATE sellbilldetail SET  lastbuyprice = 365.00 , meanbuyprice = 370.00, lastbuyprice_withDiscount = 365.00, meanbuyprice_withDiscount = 370.00
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 365
                where sellbilldetailid = 1961;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1244, '2026-10-14', 750, 1125, 1095
                    , 1110, 1095, 1110, 1095
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1110, 1110, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+750, sellCostBuyPrice =sellCostBuyPrice+1125
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1095, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1110
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1095, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1110
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1095
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1110
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1110
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 750, 1125, 1095
                    , 1110, 1095, 1110, 1095
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1110, 1110, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+750, sellCostBuyPrice =sellCostBuyPrice+1125
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1095, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1110
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1095, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1110
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1095
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1110
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1110
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '47', userid = '3', storedetaildate = '2026-10-14 19:03:34' WHERE storedetailid = '1244';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1244', '1', '3', '1', '538', 'اضافة فاتورة مبيعات', 'sellbillController.php', '50', '47', '3', '2026-10-14 19:03:34','0','0'); -- id=11152
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 1169;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('200','01975', '538', '59', '1975', '6', '210', '1260', '0', '', '0', '2026-10-14 19:03:34', '1975', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1169-6,','1','1','0','0','210','1260','0','','0','0.00','0','0','0','0'); -- id=1962
UPDATE sellbilldetail SET  lastbuyprice = 200.00 , meanbuyprice = 200.00, lastbuyprice_withDiscount = 200.00, meanbuyprice_withDiscount = 200.00
        , lastbuyprice_withTax = 200, meanbuyprice_withTax = 200, lastbuyprice_withDiscountAndTax = 200
                where sellbilldetailid = 1962;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1975, '2026-10-14', 1260, 1200, 1200
                    , 1200, 1200, 1200, 1200
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1200, 1200, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1260, sellCostBuyPrice =sellCostBuyPrice+1200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1200, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1200
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1200
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1200
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1260, 1200, 1200
                    , 1200, 1200, 1200, 1200
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1200, 1200, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1260, sellCostBuyPrice =sellCostBuyPrice+1200
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1200, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1200
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1200, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1200
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1200
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1200
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1200
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '29', userid = '3', storedetaildate = '2026-10-14 19:03:34' WHERE storedetailid = '2992';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1975', '1', '6', '1', '538', 'اضافة فاتورة مبيعات', 'sellbillController.php', '35', '29', '3', '2026-10-14 19:03:34','0','0'); -- id=11153
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3662605',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3658390','4215', '0', '2', 'اضافة فاتورة مبيعات', '538', '3662605', '2026-10-14 19:03:34', '3',  'sellbillController.php','1','','0'); -- id=678
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '4215', '4215', '2026-10-14', '3', '0', '0', '2026-10-14 19:03:34','اضافة فاتورة مبيعات رقم 538','1','0',null,'0','538','sellbillController.php?do=showDetail&sellbillid=538'); -- id=2447
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2447', '419', '4215', '','0'); -- id=2503
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3662605', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2447', '143', '4215', '','0'); -- id=2449
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5908565', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '4365', '4365', '2026-10-14', '3', '0', '0', '2026-10-14 19:03:34','اضافة فاتورة مبيعات رقم 538 - صرف البضاعة من المخزن','1','0',null,'0','538','sellbillController.php?do=showDetail&sellbillid=538'); -- id=2448
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2448', '402', '4365', '','0'); -- id=2504
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5511213.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2448', '382', '4365', '','0'); -- id=2450
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22716121.33', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2447,0,2448' where sellbillid=538;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 4215, 4395, 4365
                    , 4380, 4365, 4380, 4365
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,4380, 4380, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4215, sellCostBuyPrice =sellCostBuyPrice+4395
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4365, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4380
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4365, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4380
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4365
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4380
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4380
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4215, 4395, 4365
                    , 4380, 4365, 4380, 4365
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,4380, 4380, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4215, sellCostBuyPrice =sellCostBuyPrice+4395
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4365, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4380
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4365, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4380
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4365
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4380
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4380
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 4215, 4395, 4365
                    , 4380, 4365, 4380, 4365, 4380, 4380)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+4215, netSellCostBuyPrice = netSellCostBuyPrice+4395
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+4365
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+4380
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+4365
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+4380
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+4365
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+4380
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+4380;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acfa04e41d13 and sellbillId = 538 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:33:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:03:34", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 19:03:34', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9679
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:33:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:03:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 19:03:44', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9680
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('تي ام على سالم','2026-10-14','','93', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=165
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (165, 1,'2026-10-14 19:03:44',1)
                ON DUPLICATE KEY UPDATE catid = 165, edited = 1, sysdate = '2026-10-14 19:03:44', userid = 1; -- id=177
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '165', '1', '2026-10-14', '1', '0'); -- id=70
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:33:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:03:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 19:03:44', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9681
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:33:46";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:03:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 19:03:46', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9682
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:33:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:03:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:03:50', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9683
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:34:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:04:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:04:16', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9684
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:34:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:04:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 19:04:59', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9685
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 15:35:00";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 19:05:00', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9686
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:35:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:05:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 19:05:00', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9687
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 15:35:00";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 19:05:01', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9688
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:35:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:05:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 19:05:04', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9689
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:35:11";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:05:11", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 19:05:11', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9690
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:35:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:05:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:05:49', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9691
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('بوكس فيت جلد موديل العربي','','91','390','490','490','490','2026-10-14','0','1','0','','0','0','0','0','0','390','390','390','390','390','0','25.64','0','0','.','0','0','0','390','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','390','390','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','390','0','0','0','0','0','0','','','0','0','0','0'); -- id=2021
UPDATE product SET productName = 'بوكس فيت جلد موديل العربي', productDescription = '', productCatId = '91', productBuyPrice = '390', productSellAllPrice = '490', productSellUnitPrice = '490', productSellHalfPrice = '490', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02021',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '390',lastbuyprice_withDiscount = '390',meanbuyprice = '390',meanbuyprice_withDiscount = '390' , productbuypricereal = '390' , buypricereal_precentage = '0' , buytotal_precentage = '25.64' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='390',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='390',meanbuyprice_withTax='390',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='390',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2021';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2021', '1.00', '2026-10-14', '1', '0','0202101','490','490','490','390','','0','0','0','0','0','0','0','0','0','0'); -- id=2021
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2021', '1', '0', '1', '2026-10-14'); -- id=3380
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2021', '1', '0', '0', '2021', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11154
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2021, 1,'2026-10-14 19:05:49',1)
                ON DUPLICATE KEY UPDATE productid = 2021, edited = 1, sysdate = '2026-10-14 19:05:49', userid = 1; -- id=2977
UPDATE product SET productName = 'بوكس فيت جلد موديل العربي', productDescription = '', productCatId = '91', productBuyPrice = '390.00', productSellAllPrice = '490.00', productSellUnitPrice = '490.00', productSellHalfPrice = '490.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02021',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '390',lastbuyprice_withDiscount = '390',meanbuyprice = '390',meanbuyprice_withDiscount = '390' , productbuypricereal = '390' , buypricereal_precentage = '0' , buytotal_precentage = '25.64' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='390',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='390',meanbuyprice_withTax='390',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='390',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2021';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('بوكس فيت ساده','','91','330','420','420','420','2026-10-14','0','1','0','','0','0','0','0','0','330','330','330','330','330','0','27.27','0','0','.','0','0','0','330','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','330','330','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','330','0','0','0','0','0','0','','','0','0','0','0'); -- id=2022
UPDATE product SET productName = 'بوكس فيت ساده', productDescription = '', productCatId = '91', productBuyPrice = '330', productSellAllPrice = '420', productSellUnitPrice = '420', productSellHalfPrice = '420', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02022',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '330',lastbuyprice_withDiscount = '330',meanbuyprice = '330',meanbuyprice_withDiscount = '330' , productbuypricereal = '330' , buypricereal_precentage = '0' , buytotal_precentage = '27.27' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='330',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='330',meanbuyprice_withTax='330',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='330',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2022';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2022', '1.00', '2026-10-14', '1', '0','0202201','420','420','420','330','','0','0','0','0','0','0','0','0','0','0'); -- id=2022
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2022', '1', '0', '1', '2026-10-14'); -- id=3381
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2022', '1', '0', '0', '2022', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11155
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2022, 1,'2026-10-14 19:05:49',1)
                ON DUPLICATE KEY UPDATE productid = 2022, edited = 1, sysdate = '2026-10-14 19:05:49', userid = 1; -- id=2978
UPDATE product SET productName = 'بوكس فيت ساده', productDescription = '', productCatId = '91', productBuyPrice = '330.00', productSellAllPrice = '420.00', productSellUnitPrice = '420.00', productSellHalfPrice = '420.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02022',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '330',lastbuyprice_withDiscount = '330',meanbuyprice = '330',meanbuyprice_withDiscount = '330' , productbuypricereal = '330' , buypricereal_precentage = '0' , buytotal_precentage = '27.27' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='330',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='330',meanbuyprice_withTax='330',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='330',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2022';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:35:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:05:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:05:50', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9692
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:35:55";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:05:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:05:55', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9693
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:36:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:06:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:06:42', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9694
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('نص سوسته خاص تي ام','','165','360','360','360','360','2026-10-14','0','1','0','','0','0','0','0','0','360','360','360','360','360','0','0','0','0','.','0','0','0','360','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','360','360','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','360','0','0','0','0','0','0','','','0','0','0','0'); -- id=2023
UPDATE product SET productName = 'نص سوسته خاص تي ام', productDescription = '', productCatId = '165', productBuyPrice = '360', productSellAllPrice = '360', productSellUnitPrice = '360', productSellHalfPrice = '360', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02023',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2023';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2023', '1.00', '2026-10-14', '1', '0','0202301','360','360','360','360','','0','0','0','0','0','0','0','0','0','0'); -- id=2023
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2023', '1', '0', '1', '2026-10-14'); -- id=3382
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2023', '1', '0', '0', '2023', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11156
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2023, 1,'2026-10-14 19:06:42',1)
                ON DUPLICATE KEY UPDATE productid = 2023, edited = 1, sysdate = '2026-10-14 19:06:42', userid = 1; -- id=2979
UPDATE product SET productName = 'نص سوسته خاص تي ام', productDescription = '', productCatId = '165', productBuyPrice = '360.00', productSellAllPrice = '360.00', productSellUnitPrice = '360.00', productSellHalfPrice = '360.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02023',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2023';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تقطيع ليزر تي ام','','165','550','550','550','550','2026-10-14','0','1','0','','0','0','0','0','0','550','550','550','550','550','0','0','0','0','.','0','0','0','550','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','550','550','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','550','0','0','0','0','0','0','','','0','0','0','0'); -- id=2024
UPDATE product SET productName = 'تقطيع ليزر تي ام', productDescription = '', productCatId = '165', productBuyPrice = '550', productSellAllPrice = '550', productSellUnitPrice = '550', productSellHalfPrice = '550', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02024',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '550',meanbuyprice = '550',meanbuyprice_withDiscount = '550' , productbuypricereal = '550' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='550',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2024';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2024', '1.00', '2026-10-14', '1', '0','0202401','550','550','550','550','','0','0','0','0','0','0','0','0','0','0'); -- id=2024
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2024', '1', '0', '1', '2026-10-14'); -- id=3383
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2024', '1', '0', '0', '2024', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11157
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2024, 1,'2026-10-14 19:06:42',1)
                ON DUPLICATE KEY UPDATE productid = 2024, edited = 1, sysdate = '2026-10-14 19:06:42', userid = 1; -- id=2980
UPDATE product SET productName = 'تقطيع ليزر تي ام', productDescription = '', productCatId = '165', productBuyPrice = '550.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02024',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '550',meanbuyprice = '550',meanbuyprice_withDiscount = '550' , productbuypricereal = '550' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='550',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2024';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديلات 450 تي ام','','165','450','450','450','450','2026-10-14','0','1','0','','0','0','0','0','0','450','450','450','450','450','0','0','0','0','.','0','0','0','450','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','450','450','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','450','0','0','0','0','0','0','','','0','0','0','0'); -- id=2025
UPDATE product SET productName = 'موديلات 450 تي ام', productDescription = '', productCatId = '165', productBuyPrice = '450', productSellAllPrice = '450', productSellUnitPrice = '450', productSellHalfPrice = '450', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02025',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2025';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2025', '1.00', '2026-10-14', '1', '0','0202501','450','450','450','450','','0','0','0','0','0','0','0','0','0','0'); -- id=2025
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2025', '1', '0', '1', '2026-10-14'); -- id=3384
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2025', '1', '0', '0', '2025', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11158
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2025, 1,'2026-10-14 19:06:42',1)
                ON DUPLICATE KEY UPDATE productid = 2025, edited = 1, sysdate = '2026-10-14 19:06:42', userid = 1; -- id=2981
UPDATE product SET productName = 'موديلات 450 تي ام', productDescription = '', productCatId = '165', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02025',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2025';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:36:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:06:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:06:43', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9695
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:36:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:06:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:06:49', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9696
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfa863cac34', '2026-10-14 19:05:55', '76', '180800.00', '327500', '0', '0', '146700.00',  '146700.00', '0', '146700', '1', '2026-10-14 19:06:49', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=159
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02021', '159', '91', '2021', '300', '390', '117000.00', '0', '', '2026-10-14 19:06:49', '2021','','','0','0','0','0','0',null,'390','117000','0','0','0','0','0','0','0','0','1'); -- id=974
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:05:55', 1, 2021, 0, 0
                    , 390, 300, 0, 0, 1, '2026-10-14 19:06:49')
                ON DUPLICATE KEY UPDATE buyprice = 390,
                        buyQuantity =buyQuantity+300, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:06:49' ; -- id=6002
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2021', '390', '300', '0', 'buyBillController.php', '974', '', '0', '0'); -- id=750
UPDATE product SET  productBuyPrice = "390" WHERE productId = 2021 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 974 ;
UPDATE product SET productName = 'بوكس فيت جلد موديل العربي', productDescription = '', productCatId = '91', productBuyPrice = '390.00', productSellAllPrice = '490.00', productSellUnitPrice = '490.00', productSellHalfPrice = '490.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02021',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '390',lastbuyprice_withDiscount = '390',meanbuyprice = '390',meanbuyprice_withDiscount = '390' , productbuypricereal = '390.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '25.64' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='390',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='390',meanbuyprice_withTax='390',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='390',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2021';
UPDATE buybilldetail SET  lastbuyprice = 390 , meanbuyprice = 390, lastbuyprice_withDiscount = 390, meanbuyprice_withDiscount = 390
        , lastbuyprice_withTax = 390, meanbuyprice_withTax = 390, lastbuyprice_withDiscountAndTax = 390
                where buybilldetailid = 974;
UPDATE productunit SET proUnitBuyPrice  = 390 * productnumber WHERE productid = 2021;
UPDATE storedetail SET  productquantity = '300', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3380';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2021', '1', '300', '0', '159', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '300', '1', '2026-10-14 19:05:55','0','0'); -- id=11159
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02022', '159', '91', '2022', '90', '330', '29700.00', '0', '', '2026-10-14 19:06:49', '2022','','','0','0','0','0','0',null,'330','29700','0','0','0','0','0','0','0','0','1'); -- id=975
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:05:55', 1, 2022, 0, 0
                    , 330, 90, 0, 0, 1, '2026-10-14 19:06:49')
                ON DUPLICATE KEY UPDATE buyprice = 330,
                        buyQuantity =buyQuantity+90, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:06:49' ; -- id=6003
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2022', '330', '90', '0', 'buyBillController.php', '975', '', '0', '0'); -- id=751
UPDATE product SET  productBuyPrice = "330" WHERE productId = 2022 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 975 ;
UPDATE product SET productName = 'بوكس فيت ساده', productDescription = '', productCatId = '91', productBuyPrice = '330.00', productSellAllPrice = '420.00', productSellUnitPrice = '420.00', productSellHalfPrice = '420.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02022',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '330',lastbuyprice_withDiscount = '330',meanbuyprice = '330',meanbuyprice_withDiscount = '330' , productbuypricereal = '330.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '27.27' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='330',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='330',meanbuyprice_withTax='330',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='330',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2022';
UPDATE buybilldetail SET  lastbuyprice = 330 , meanbuyprice = 330, lastbuyprice_withDiscount = 330, meanbuyprice_withDiscount = 330
        , lastbuyprice_withTax = 330, meanbuyprice_withTax = 330, lastbuyprice_withDiscountAndTax = 330
                where buybilldetailid = 975;
UPDATE productunit SET proUnitBuyPrice  = 330 * productnumber WHERE productid = 2022;
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3381';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2022', '1', '90', '0', '159', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '90', '1', '2026-10-14 19:05:55','0','0'); -- id=11160
UPDATE supplier SET  suppliercurrentDebt = '327500',suppliercurrentDebtInCurrency= '327500' , userid = '1', supplierdate = '2026-10-14 19:06:49'   WHERE supplierid = '76';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('76', '180800.00', '146700', '0', 'اضافة فاتورة مشتريات', '159', '327500', '2026-10-14 19:05:55', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','146700','1','180800','146700','327500','0',''); -- id=494
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '146700', '146700', '2026-10-14', '1', '0', '0', '2026-10-14 19:06:49','اضافة فاتورة مشتريات رقم 159','1','0',null,'0','159','buyBillController.php?do=details&id=159'); -- id=2449
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2449', '382', '146700', '','0'); -- id=2505
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22862821.33', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2449', '502', '146700', '','0'); -- id=2451
UPDATE accountstree SET name = 'عبد العال', customName = 'عبد العال', customNameEn = 'عبد العال', nameEn = 'عبد العال', parent = '81', accountNature = '1', theValue = '327500', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-01 16:39:09' WHERE id = '502';
update buybill set dailyentryid='2449,0' where buybillid=159;
COMMIT;
UPDATE product SET overAllAveragePrice = 390 WHERE productId = 2021;UPDATE product SET overAllAveragePrice = 330 WHERE productId = 2022;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:36:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:06:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:06:49', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=159'); -- id=9697
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:36:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:06:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:06:54', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=show'); -- id=9698
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:36:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:06:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:06:57', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=159&type=2'); -- id=9699
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:37:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:07:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:07:00', '1', 'editbill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editbill&id=147'); -- id=9700
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:37:13";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:07:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:07:13', '1', 'update', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=update'); -- id=9701
BEGIN;
UPDATE costcenterdetail SET del = 1 WHERE type in( 3) and  modelid = 147;
UPDATE buybill SET  buybillsysdate = '2026-10-14 19:07:13', userid = '1',delbyuserid = '1', conditions = '1' WHERE buybillid = '147';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:29:29', 1, 1977, 0, 0
                    , 550, 40, 0, 0, 1, '2026-10-14 19:07:13')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:07:13' ; -- id=1175
UPDATE buybilldetail SET  lastbuyprice = 550.00 , meanbuyprice = 550.00, lastbuyprice_withDiscount = 550.00, meanbuyprice_withDiscount = 550.00
        , lastbuyprice_withTax = 550.00, meanbuyprice_withTax = 550.00, lastbuyprice_withDiscountAndTax = 550.00
                where buybilldetailid = 898;
UPDATE product SET productName = 'دربي الماظ رش 1219 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '550.00', productSellAllPrice = '570.00', productSellUnitPrice = '570.00', productSellHalfPrice = '570.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01977',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '0',meanbuyprice = '550.00',meanbuyprice_withDiscount = '550' , productbuypricereal = '550.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.64' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1977';
UPDATE productunit SET proUnitBuyPrice  = 550 * productnumber WHERE productid = 1977;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2994';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1977', '1', '40', '1', '147', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '40', '0', '1', '2026-10-14 15:29:29','0','0'); -- id=11161
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:29:29', 1, 1978, 0, 0
                    , 500, 40, 0, 0, 1, '2026-10-14 19:07:13')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:07:13' ; -- id=1176
UPDATE buybilldetail SET  lastbuyprice = 500.00 , meanbuyprice = 500.00, lastbuyprice_withDiscount = 500.00, meanbuyprice_withDiscount = 500.00
        , lastbuyprice_withTax = 500.00, meanbuyprice_withTax = 500.00, lastbuyprice_withDiscountAndTax = 500.00
                where buybilldetailid = 899;
UPDATE product SET productName = 'كفراج 2004 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '500.00', productSellAllPrice = '520.00', productSellUnitPrice = '520.00', productSellHalfPrice = '520.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01978',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '0',meanbuyprice = '500.00',meanbuyprice_withDiscount = '500' , productbuypricereal = '500.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1978';
UPDATE productunit SET proUnitBuyPrice  = 500 * productnumber WHERE productid = 1978;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2995';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1978', '1', '40', '1', '147', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '40', '0', '1', '2026-10-14 15:29:29','0','0'); -- id=11162
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:29:29', 1, 1979, 0, 0
                    , 580, 30, 0, 0, 1, '2026-10-14 19:07:13')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-30, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:07:13' ; -- id=1177
UPDATE buybilldetail SET  lastbuyprice = 580.00 , meanbuyprice = 580.00, lastbuyprice_withDiscount = 580.00, meanbuyprice_withDiscount = 580.00
        , lastbuyprice_withTax = 580.00, meanbuyprice_withTax = 580.00, lastbuyprice_withDiscountAndTax = 580.00
                where buybilldetailid = 900;
UPDATE product SET productName = 'اميري فوطة حروف 2026 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '580.00', productSellAllPrice = '600.00', productSellUnitPrice = '600.00', productSellHalfPrice = '600.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01979',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '580',lastbuyprice_withDiscount = '0',meanbuyprice = '580.00',meanbuyprice_withDiscount = '580' , productbuypricereal = '580.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.45' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='580',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='580',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1979';
UPDATE productunit SET proUnitBuyPrice  = 580 * productnumber WHERE productid = 1979;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2996';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1979', '1', '30', '1', '147', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '30', '0', '1', '2026-10-14 15:29:29','0','0'); -- id=11163
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:29:29', 1, 1980, 0, 0
                    , 530, 40, 0, 0, 1, '2026-10-14 19:07:13')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-40, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:07:13' ; -- id=1178
UPDATE buybilldetail SET  lastbuyprice = 530.00 , meanbuyprice = 530.00, lastbuyprice_withDiscount = 530.00, meanbuyprice_withDiscount = 530.00
        , lastbuyprice_withTax = 530.00, meanbuyprice_withTax = 530.00, lastbuyprice_withDiscountAndTax = 530.00
                where buybilldetailid = 901;
UPDATE product SET productName = 'دربي جلد 2011 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '530.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01980',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '530',lastbuyprice_withDiscount = '0',meanbuyprice = '530.00',meanbuyprice_withDiscount = '530' , productbuypricereal = '530.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.77' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='530',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='530',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1980';
UPDATE productunit SET proUnitBuyPrice  = 530 * productnumber WHERE productid = 1980;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2997';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1980', '1', '40', '1', '147', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '40', '0', '1', '2026-10-14 15:29:29','0','0'); -- id=11164
UPDATE supplier SET  suppliercurrentDebt = '19320',suppliercurrentDebtInCurrency= '19320' , userid = '1', supplierdate = '2026-10-14 19:07:13'   WHERE supplierid = '1';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('1', '99920.00', '80600.00', '1', 'حذف فاتورة مشتريات - للتعديل', '147', '19320', '2026-10-14 15:29:29', '1', 'buyBillController.php', 'حذف فاتورة مشتريات - للتعديل', '0','', '0','1','1','80600','1','99920','80600','19320','0',''); -- id=495
UPDATE productserial SET del = 1
		 WHERE billid = 147;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,deletedbuyid,controlname,payedtax,costcenterid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf75a99cce5', '2026-10-14 15:29:29', '44', '339510.00', '420110', '0', '0', '80600.00', '80600.00', '0.00', '80600', '1', '2026-10-14 19:07:13', '', '1', '0', '', '1', '1','1','147','buyBillController.php','0.00','-1','1','0','0','.','0','0','0','0','0','0'); -- id=160
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01977', '160', '37', '1977', '40.00', '550', '22000.00', '0.00', '', '2026-10-14 19:07:13', '1977','','','0','0','0','0','0',null,'550','22000','0','0','0','0','0','0','0','0','1'); -- id=976
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:29:29', 1, 1977, 0, 0
                    , 550, 40, 0, 0, 1, '2026-10-14 19:07:13')
                ON DUPLICATE KEY UPDATE buyprice = 550,
                        buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:07:13' ; -- id=1175
UPDATE product SET  productBuyPrice = "550" WHERE productId = 1977 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 976 ;
UPDATE product SET productName = 'دربي الماظ رش 1219 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '550.00', productSellAllPrice = '570.00', productSellUnitPrice = '570.00', productSellHalfPrice = '570.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01977',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '550',meanbuyprice = '550',meanbuyprice_withDiscount = '550' , productbuypricereal = '550.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.64' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='275',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='550',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1977';
UPDATE buybilldetail SET  lastbuyprice = 550 , meanbuyprice = 550, lastbuyprice_withDiscount = 550, meanbuyprice_withDiscount = 550
        , lastbuyprice_withTax = 550, meanbuyprice_withTax = 275, lastbuyprice_withDiscountAndTax = 550
                where buybilldetailid = 976;
UPDATE productunit SET proUnitBuyPrice  = 550 * productnumber WHERE productid = 1977;
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2994';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1977', '1', '40', '0', '160', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '40', '1', '2026-10-14 15:29:29','0','0'); -- id=11165
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01978', '160', '37', '1978', '40.00', '500', '20000.00', '0.00', '', '2026-10-14 19:07:13', '1978','','','0','0','0','0','0',null,'500','20000','0','0','0','0','0','0','0','0','1'); -- id=977
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:29:29', 1, 1978, 0, 0
                    , 500, 40, 0, 0, 1, '2026-10-14 19:07:13')
                ON DUPLICATE KEY UPDATE buyprice = 500,
                        buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:07:13' ; -- id=1176
UPDATE product SET  productBuyPrice = "500" WHERE productId = 1978 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 977 ;
UPDATE product SET productName = 'كفراج 2004 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '500.00', productSellAllPrice = '520.00', productSellUnitPrice = '520.00', productSellHalfPrice = '520.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01978',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='250',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1978';
UPDATE buybilldetail SET  lastbuyprice = 500 , meanbuyprice = 500, lastbuyprice_withDiscount = 500, meanbuyprice_withDiscount = 500
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 250, lastbuyprice_withDiscountAndTax = 500
                where buybilldetailid = 977;
UPDATE productunit SET proUnitBuyPrice  = 500 * productnumber WHERE productid = 1978;
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2995';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1978', '1', '40', '0', '160', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '40', '1', '2026-10-14 15:29:29','0','0'); -- id=11166
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01979', '160', '37', '1979', '30.00', '580', '17400.00', '0.00', '', '2026-10-14 19:07:13', '1979','','','0','0','0','0','0',null,'580','17400','0','0','0','0','0','0','0','0','1'); -- id=978
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:29:29', 1, 1979, 0, 0
                    , 580, 30, 0, 0, 1, '2026-10-14 19:07:13')
                ON DUPLICATE KEY UPDATE buyprice = 580,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:07:13' ; -- id=1177
UPDATE product SET  productBuyPrice = "580" WHERE productId = 1979 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 978 ;
UPDATE product SET productName = 'اميري فوطة حروف 2026 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '580.00', productSellAllPrice = '600.00', productSellUnitPrice = '600.00', productSellHalfPrice = '600.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01979',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '580',lastbuyprice_withDiscount = '580',meanbuyprice = '580',meanbuyprice_withDiscount = '580' , productbuypricereal = '580.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.45' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='580',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='580',meanbuyprice_withTax='290',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='580',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1979';
UPDATE buybilldetail SET  lastbuyprice = 580 , meanbuyprice = 580, lastbuyprice_withDiscount = 580, meanbuyprice_withDiscount = 580
        , lastbuyprice_withTax = 580, meanbuyprice_withTax = 290, lastbuyprice_withDiscountAndTax = 580
                where buybilldetailid = 978;
UPDATE productunit SET proUnitBuyPrice  = 580 * productnumber WHERE productid = 1979;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2996';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1979', '1', '30', '0', '160', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 15:29:29','0','0'); -- id=11167
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01980', '160', '37', '1980', '40.00', '530', '21200.00', '0.00', '', '2026-10-14 19:07:13', '1980','','','0','0','0','0','0',null,'530','21200','0','0','0','0','0','0','0','0','1'); -- id=979
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 15:29:29', 1, 1980, 0, 0
                    , 530, 40, 0, 0, 1, '2026-10-14 19:07:13')
                ON DUPLICATE KEY UPDATE buyprice = 530,
                        buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:07:13' ; -- id=1178
UPDATE product SET  productBuyPrice = "530" WHERE productId = 1980 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 979 ;
UPDATE product SET productName = 'دربي جلد 2011 ميلانو', productDescription = '', productCatId = '37', productBuyPrice = '530.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01980',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '530',lastbuyprice_withDiscount = '530',meanbuyprice = '530',meanbuyprice_withDiscount = '530' , productbuypricereal = '530.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.77' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='530',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='530',meanbuyprice_withTax='265',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='530',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1980';
UPDATE buybilldetail SET  lastbuyprice = 530 , meanbuyprice = 530, lastbuyprice_withDiscount = 530, meanbuyprice_withDiscount = 530
        , lastbuyprice_withTax = 530, meanbuyprice_withTax = 265, lastbuyprice_withDiscountAndTax = 530
                where buybilldetailid = 979;
UPDATE productunit SET proUnitBuyPrice  = 530 * productnumber WHERE productid = 1980;
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2997';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1980', '1', '40', '0', '160', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '40', '1', '2026-10-14 15:29:29','0','0'); -- id=11168
DELETE FROM productserial WHERE billid = 147
		and type =0 
		;
UPDATE supplier SET  suppliercurrentDebt = '420110',suppliercurrentDebtInCurrency= '420110' , userid = '1', supplierdate = '2026-10-14 19:07:13'   WHERE supplierid = '44';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('44', '339510.00', '80600', '0', 'اضافة فاتورة مشتريات', '160', '420110', '2026-10-14 19:07:13', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','80600','1','339510','80600','420110','0',''); -- id=496
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '80600', '80600', '2026-10-14', '1', '0', '0', '2026-10-14 19:07:13','اضافة فاتورة مشتريات رقم 160','1','0',null,'0','160','buyBillController.php?do=details&id=160'); -- id=2450
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2450', '382', '80600', '','0'); -- id=2506
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22943421.33', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2450', '463', '80600', '','0'); -- id=2452
UPDATE accountstree SET name = 'ميلانو - مورد', customName = 'ميلانو - مورد', customNameEn = 'ميلانو - مورد', nameEn = 'ميلانو - مورد', parent = '81', accountNature = '1', theValue = '157800', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '463';
update buybill set dailyentryid='2450,0' where buybillid=160;
UPDATE product SET overAllAveragePrice = 550 WHERE productId = 1977;UPDATE product SET overAllAveragePrice = 500 WHERE productId = 1978;UPDATE product SET overAllAveragePrice = 580 WHERE productId = 1979;UPDATE product SET overAllAveragePrice = 530 WHERE productId = 1980;;
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:37:13";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:07:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:07:13', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=160'); -- id=9702
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:37:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:07:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:07:24', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9703
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:37:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:07:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:07:37', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=159&type=2'); -- id=9704
INSERT INTO supplier (suppliername, supplieraddress, supplierphone, suppliercurrentDebt, supplierdetails, conditions, userid, supplierdate, dailyentryid, category_id, typesupplier_id,linkedClientId,inUse,suppliercode,goverareaid,namepayeecheck,suppliermobile,warrantyOfficer,warrantymobile,sellername,sellermobile,taxnumber,supplierTypeForTree,treeId,sullpierCurrencyid,suppliercurrentDebtInCurrency,webApiId,shippingDiscountPer) VALUES ('تي ام على سالم', '', '', '', '', '0', '1', '2026-10-14 19:07:50', '0', '', '','0','0','','','','','','','','','','0','0','1','0','0','0'); -- id=175
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('175', '0', '', '0', 'إضافة مورد جديد', '175', '', '2026-10-14 19:07:50', '1', 'supplierController.php', '', '0','', '0','1','1','0','1','0','0','0','0',''); -- id=497
INSERT INTO accountstree (name, customName, customNameEn, nameEn, parent, accountNature, theValue, theOrder, layingOrder, reportid, listId, notes, itemfrom, itemtype, itemtype2, itemtype3, userid, del, sysdate) VALUES ('تي ام على سالم', 'تي ام على سالم', 'تي ام على سالم', 'تي ام على سالم', '81', '1', '0', '0', '', '1', '1', '', '0', '1', '1', '', '1', '0', '2026-10-14 19:07:50'); -- id=658
UPDATE supplier SET suppliername = 'تي ام على سالم', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '0.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-10-14', dailyentryid = '0', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='658',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='0',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '175';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:38:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:08:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:08:41', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9705
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:38:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:08:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:08:47', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9706
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfa8bc5f700', '2026-10-14 19:07:24', '175', '0.00', '54756', '10', '1', '60840.00',  '54756.00', '0', '54756', '1', '2026-10-14 19:08:47', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=161
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02023', '161', '165', '2023', '54', '360', '19440.00', '0', '', '2026-10-14 19:08:47', '2023','','','0','0','0','0','0',null,'360','19440','0','0','0','0','0','0','0','0','1'); -- id=980
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:07:24', 1, 2023, 0, 0
                    , 324, 54, 0, 0, 1, '2026-10-14 19:08:47')
                ON DUPLICATE KEY UPDATE buyprice = 324,
                        buyQuantity =buyQuantity+54, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:08:47' ; -- id=6012
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2023', '360', '54', '0', 'buyBillController.php', '980', '', '0', '0'); -- id=752
UPDATE product SET  productBuyPrice = "360" WHERE productId = 2023 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 980 ;
UPDATE product SET productName = 'نص سوسته خاص تي ام', productDescription = '', productCatId = '165', productBuyPrice = '360.00', productSellAllPrice = '360.00', productSellUnitPrice = '360.00', productSellHalfPrice = '360.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02023',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '324',meanbuyprice = '360',meanbuyprice_withDiscount = '324' , productbuypricereal = '360.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='324',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2023';
UPDATE buybilldetail SET  lastbuyprice = 360 , meanbuyprice = 360, lastbuyprice_withDiscount = 324, meanbuyprice_withDiscount = 324
        , lastbuyprice_withTax = 360, meanbuyprice_withTax = 360, lastbuyprice_withDiscountAndTax = 324
                where buybilldetailid = 980;
UPDATE productunit SET proUnitBuyPrice  = 360 * productnumber WHERE productid = 2023;
UPDATE storedetail SET  productquantity = '54', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3382';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2023', '1', '54', '0', '161', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '54', '1', '2026-10-14 19:07:24','0','0'); -- id=11169
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02024', '161', '165', '2024', '36', '550', '19800.00', '0', '', '2026-10-14 19:08:47', '2024','','','0','0','0','0','0',null,'550','19800','0','0','0','0','0','0','0','0','1'); -- id=981
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:07:24', 1, 2024, 0, 0
                    , 495, 36, 0, 0, 1, '2026-10-14 19:08:47')
                ON DUPLICATE KEY UPDATE buyprice = 495,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:08:47' ; -- id=6013
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2024', '550', '36', '0', 'buyBillController.php', '981', '', '0', '0'); -- id=753
UPDATE product SET  productBuyPrice = "550" WHERE productId = 2024 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 981 ;
UPDATE product SET productName = 'تقطيع ليزر تي ام', productDescription = '', productCatId = '165', productBuyPrice = '550.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02024',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '495',meanbuyprice = '550',meanbuyprice_withDiscount = '495' , productbuypricereal = '550.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='495',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2024';
UPDATE buybilldetail SET  lastbuyprice = 550 , meanbuyprice = 550, lastbuyprice_withDiscount = 495, meanbuyprice_withDiscount = 495
        , lastbuyprice_withTax = 550, meanbuyprice_withTax = 550, lastbuyprice_withDiscountAndTax = 495
                where buybilldetailid = 981;
UPDATE productunit SET proUnitBuyPrice  = 550 * productnumber WHERE productid = 2024;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3383';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2024', '1', '36', '0', '161', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 19:07:24','0','0'); -- id=11170
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02025', '161', '165', '2025', '24', '450', '10800.00', '0', '', '2026-10-14 19:08:47', '2025','','','0','0','0','0','0',null,'450','10800','0','0','0','0','0','0','0','0','1'); -- id=982
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:07:24', 1, 2025, 0, 0
                    , 405, 24, 0, 0, 1, '2026-10-14 19:08:47')
                ON DUPLICATE KEY UPDATE buyprice = 405,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:08:47' ; -- id=6014
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2025', '450', '24', '0', 'buyBillController.php', '982', '', '0', '0'); -- id=754
UPDATE product SET  productBuyPrice = "450" WHERE productId = 2025 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 982 ;
UPDATE product SET productName = 'موديلات 450 تي ام', productDescription = '', productCatId = '165', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02025',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '405',meanbuyprice = '450',meanbuyprice_withDiscount = '405' , productbuypricereal = '450.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='405',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2025';
UPDATE buybilldetail SET  lastbuyprice = 450 , meanbuyprice = 450, lastbuyprice_withDiscount = 405, meanbuyprice_withDiscount = 405
        , lastbuyprice_withTax = 450, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 405
                where buybilldetailid = 982;
UPDATE productunit SET proUnitBuyPrice  = 450 * productnumber WHERE productid = 2025;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3384';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2025', '1', '24', '0', '161', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 19:07:24','0','0'); -- id=11171
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02025', '161', '165', '2025', '24', '450', '10800.00', '0', '', '2026-10-14 19:08:47', '2025','','','0','0','0','0','0',null,'450','10800','0','0','0','0','0','0','0','0','1'); -- id=983
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:07:24', 1, 2025, 0, 0
                    , 405, 24, 0, 0, 1, '2026-10-14 19:08:47')
                ON DUPLICATE KEY UPDATE buyprice = 405,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:08:47' ; -- id=6014
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2025', '450', '24', '0', 'buyBillController.php', '983', '', '0', '0'); -- id=755
UPDATE product SET  productBuyPrice = "450" WHERE productId = 2025 ;
UPDATE buybilldetail SET  quantitybefore = 24 WHERE buybilldetailid = 983 ;
UPDATE product SET productName = 'موديلات 450 تي ام', productDescription = '', productCatId = '165', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02025',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '405',meanbuyprice = '450',meanbuyprice_withDiscount = '405' , productbuypricereal = '450.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='405',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2025';
UPDATE buybilldetail SET  lastbuyprice = 450 , meanbuyprice = 450, lastbuyprice_withDiscount = 405, meanbuyprice_withDiscount = 405
        , lastbuyprice_withTax = 450, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 405
                where buybilldetailid = 983;
UPDATE productunit SET proUnitBuyPrice  = 450 * productnumber WHERE productid = 2025;
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3384';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2025', '1', '24', '0', '161', 'اضافة فاتورة مشتريات', 'buyBillController.php', '24', '48', '1', '2026-10-14 19:07:24','0','0'); -- id=11172
UPDATE supplier SET  suppliercurrentDebt = '54756',suppliercurrentDebtInCurrency= '54756' , userid = '1', supplierdate = '2026-10-14 19:08:47'   WHERE supplierid = '175';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('175', '0.00', '54756', '0', 'اضافة فاتورة مشتريات', '161', '54756', '2026-10-14 19:07:24', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','54756','1','0','54756','54756','0',''); -- id=498
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '54756', '54756', '2026-10-14', '1', '0', '0', '2026-10-14 19:08:47','اضافة فاتورة مشتريات رقم 161','1','0',null,'0','161','buyBillController.php?do=details&id=161'); -- id=2451
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2451', '382', '54756', '','0'); -- id=2507
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '22998177.33', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2451', '658', '54756', '','0'); -- id=2453
UPDATE accountstree SET name = 'تي ام على سالم', customName = 'تي ام على سالم', customNameEn = 'تي ام على سالم', nameEn = 'تي ام على سالم', parent = '81', accountNature = '1', theValue = '54756', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-14 19:07:50' WHERE id = '658';
update buybill set dailyentryid='2451,0' where buybillid=161;
COMMIT;
UPDATE product SET overAllAveragePrice = 324 WHERE productId = 2023;UPDATE product SET overAllAveragePrice = 495 WHERE productId = 2024;UPDATE product SET overAllAveragePrice = 405 WHERE productId = 2025;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:38:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:08:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:08:47', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=161'); -- id=9707
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:38:51";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:08:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:08:51', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=161&type=2'); -- id=9708
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:39:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:09:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:09:01', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9709
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:40:17";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:10:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:10:17', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9710
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:40:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:10:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 19:10:33', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9711
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:40:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:10:41", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 19:10:41', '4', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9712

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acfa6985a7da
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 19:10:41', '06acfa6985a7da', '1', '0.00', '0', '0', '1', '1650.00', '1650', '1650', '0', '2', '2026-10-14 19:10:41', '', '4', '0', 'نقدي', '3', '0', '3', '0', 'نقدي', '3' ,'0','','','','','-1','0','0','0','0','0','1650','0','','0','0','1650','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=539
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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','539', '0', '2026-10-14 19:10:41', '4', 'sellbillController.php', 'اضافة فاتورة مبيعات', '1650', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 19:10:41','0','0','',''); -- id=687
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 621;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('495','01722', '539', '49', '1722', '3', '550', '1650', '0', '', '0', '2026-10-14 19:10:41', '1722', '0.00', '0', '2','0.00','','','0','0','0','0','0','0','0','0','','621-3,','1','1','0','0','550','1650','0','','0','0.00','0','0','0','0'); -- id=1963
UPDATE sellbilldetail SET  lastbuyprice = 550.00 , meanbuyprice = 550.00, lastbuyprice_withDiscount = 495.00, meanbuyprice_withDiscount = 495.00
        , lastbuyprice_withTax = 550, meanbuyprice_withTax = 550, lastbuyprice_withDiscountAndTax = 495
                where sellbilldetailid = 1963;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1722, '2026-10-14', 1650, 1650, 1650
                    , 1650, 1485, 1485, 1485
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1650, 1650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1650, sellCostBuyPrice =sellCostBuyPrice+1650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1485, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1485
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1485
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (2, '2026-10-14', 1650, 1650, 1650
                    , 1650, 1485, 1485, 1485
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1650, 1650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1650, sellCostBuyPrice =sellCostBuyPrice+1650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1485, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1485
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1485
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '24', userid = '4', storedetaildate = '2026-10-14 19:10:42' WHERE storedetailid = '2735';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1722', '2', '3', '1', '539', 'اضافة فاتورة مبيعات', 'sellbillController.php', '27', '24', '4', '2026-10-14 19:10:42','0','0'); -- id=11173
CALL saveInUse(3,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '570300',  userid = '4' WHERE saveid = '3';
UPDATE save SET  inUse = 0 where saveid = 3;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('568650','1650', '0', '3', 'اضافة فاتورة مبيعات', '539', '570300', '2026-10-14 19:10:42', '4',  'sellbillController.php','1','','0'); -- id=679
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '1650', '1650', '2026-10-14', '4', '0', '0', '2026-10-14 19:10:42','اضافة فاتورة مبيعات رقم 539','1','0',null,'0','539','sellbillController.php?do=showDetail&sellbillid=539'); -- id=2452
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2452', '501', '1650', '','0'); -- id=2508
UPDATE accountstree SET name = 'خزينه المحل الارضي', customName = 'خزينه المحل الارضي', customNameEn = 'خزينه المحل الارضي', nameEn = 'خزينه المحل الارضي', parent = '40', accountNature = '0', theValue = '570300', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-30 21:35:47' WHERE id = '501';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2452', '143', '1650', '','0'); -- id=2454
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5910215', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '1485', '1485', '2026-10-14', '4', '0', '0', '2026-10-14 19:10:42','اضافة فاتورة مبيعات رقم 539 - صرف البضاعة من المخزن','1','0',null,'0','539','sellbillController.php?do=showDetail&sellbillid=539'); -- id=2453
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2453', '402', '1485', '','0'); -- id=2509
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5512698.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2453', '492', '1485', '','0'); -- id=2455
UPDATE accountstree SET name = 'مخزن المحل', customName = 'مخزن المحل', customNameEn = 'مخزن المحل', nameEn = 'مخزن المحل', parent = '49', accountNature = '0', theValue = '1314100', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 19:38:59' WHERE id = '492';
update sellbill set dailyentryid='2452,0,2453' where sellbillid=539;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 1650, 1650, 1650
                    , 1650, 1485, 1485, 1485
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,1650, 1650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1650, sellCostBuyPrice =sellCostBuyPrice+1650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1485, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1485
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1485
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1650, 1650, 1650
                    , 1650, 1485, 1485, 1485
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,1650, 1650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1650, sellCostBuyPrice =sellCostBuyPrice+1650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1485, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1485
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1485
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 1650, 1650, 1650
                    , 1650, 1485, 1485, 1485, 1650, 1650)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+1650, netSellCostBuyPrice = netSellCostBuyPrice+1650
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+1650
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+1650
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+1485
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+1485
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+1485
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+1650
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+1650;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acfa6985a7da and sellbillId = 539 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:40:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:10:42", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 19:10:42', '4', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9713
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:40:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:10:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 19:10:54', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9714
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('يورو','2026-10-14','','93', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=166
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (166, 1,'2026-10-14 19:10:54',1)
                ON DUPLICATE KEY UPDATE catid = 166, edited = 1, sysdate = '2026-10-14 19:10:54', userid = 1; -- id=178
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '166', '1', '2026-10-14', '1', '0'); -- id=71
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:40:55";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:10:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 19:10:55', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9715
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:40:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:10:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 19:10:56', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9716
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:40:58";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:10:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:10:58', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9717
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:44:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:14:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:14:30', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9718
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 111 يورو','','166','490','490','490','490','2026-10-14','0','1','0','','0','0','0','0','0','490','490','490','490','490','0','0','0','0','.','0','0','0','490','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','490','490','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','490','0','0','0','0','0','0','','','0','0','0','0'); -- id=2026
UPDATE product SET productName = 'موديل 111 يورو', productDescription = '', productCatId = '166', productBuyPrice = '490', productSellAllPrice = '490', productSellUnitPrice = '490', productSellHalfPrice = '490', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02026',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '490',lastbuyprice_withDiscount = '490',meanbuyprice = '490',meanbuyprice_withDiscount = '490' , productbuypricereal = '490' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='490',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='490',meanbuyprice_withTax='490',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='490',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2026';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2026', '1.00', '2026-10-14', '1', '0','0202601','490','490','490','490','','0','0','0','0','0','0','0','0','0','0'); -- id=2026
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2026', '1', '0', '1', '2026-10-14'); -- id=3385
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2026', '1', '0', '0', '2026', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11174
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2026, 1,'2026-10-14 19:14:30',1)
                ON DUPLICATE KEY UPDATE productid = 2026, edited = 1, sysdate = '2026-10-14 19:14:30', userid = 1; -- id=2982
UPDATE product SET productName = 'موديل 111 يورو', productDescription = '', productCatId = '166', productBuyPrice = '490.00', productSellAllPrice = '490.00', productSellUnitPrice = '490.00', productSellHalfPrice = '490.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02026',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '490',lastbuyprice_withDiscount = '490',meanbuyprice = '490',meanbuyprice_withDiscount = '490' , productbuypricereal = '490' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='490',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='490',meanbuyprice_withTax='490',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='490',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2026';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 106 يورو','','166','400','400','400','400','2026-10-14','0','1','0','','0','0','0','0','0','400','400','400','400','400','0','0','0','0','.','0','0','0','400','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','400','400','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','400','0','0','0','0','0','0','','','0','0','0','0'); -- id=2027
UPDATE product SET productName = 'موديل 106 يورو', productDescription = '', productCatId = '166', productBuyPrice = '400', productSellAllPrice = '400', productSellUnitPrice = '400', productSellHalfPrice = '400', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02027',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '400',lastbuyprice_withDiscount = '400',meanbuyprice = '400',meanbuyprice_withDiscount = '400' , productbuypricereal = '400' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='400',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='400',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='400',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2027';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2027', '1.00', '2026-10-14', '1', '0','0202701','400','400','400','400','','0','0','0','0','0','0','0','0','0','0'); -- id=2027
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2027', '1', '0', '1', '2026-10-14'); -- id=3386
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2027', '1', '0', '0', '2027', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11175
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2027, 1,'2026-10-14 19:14:30',1)
                ON DUPLICATE KEY UPDATE productid = 2027, edited = 1, sysdate = '2026-10-14 19:14:30', userid = 1; -- id=2983
UPDATE product SET productName = 'موديل 106 يورو', productDescription = '', productCatId = '166', productBuyPrice = '400.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02027',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '400',lastbuyprice_withDiscount = '400',meanbuyprice = '400',meanbuyprice_withDiscount = '400' , productbuypricereal = '400' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='400',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='400',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='400',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2027';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 108 يورو','','166','320','320','320','320','2026-10-14','0','1','0','','0','0','0','0','0','320','320','320','320','320','0','0','0','0','.','0','0','0','320','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','320','320','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','320','0','0','0','0','0','0','','','0','0','0','0'); -- id=2028
UPDATE product SET productName = 'موديل 108 يورو', productDescription = '', productCatId = '166', productBuyPrice = '320', productSellAllPrice = '320', productSellUnitPrice = '320', productSellHalfPrice = '320', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02028',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '320',lastbuyprice_withDiscount = '320',meanbuyprice = '320',meanbuyprice_withDiscount = '320' , productbuypricereal = '320' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='320',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='320',meanbuyprice_withTax='320',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='320',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2028';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2028', '1.00', '2026-10-14', '1', '0','0202801','320','320','320','320','','0','0','0','0','0','0','0','0','0','0'); -- id=2028
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2028', '1', '0', '1', '2026-10-14'); -- id=3387
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2028', '1', '0', '0', '2028', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11176
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2028, 1,'2026-10-14 19:14:30',1)
                ON DUPLICATE KEY UPDATE productid = 2028, edited = 1, sysdate = '2026-10-14 19:14:30', userid = 1; -- id=2984
UPDATE product SET productName = 'موديل 108 يورو', productDescription = '', productCatId = '166', productBuyPrice = '320.00', productSellAllPrice = '320.00', productSellUnitPrice = '320.00', productSellHalfPrice = '320.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02028',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '320',lastbuyprice_withDiscount = '320',meanbuyprice = '320',meanbuyprice_withDiscount = '320' , productbuypricereal = '320' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='320',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='320',meanbuyprice_withTax='320',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='320',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2028';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 104&107  يورو','','166','430','430','430','430','2026-10-14','0','1','0','','0','0','0','0','0','430','430','430','430','430','0','0','0','0','.','0','0','0','430','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','430','430','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','430','0','0','0','0','0','0','','','0','0','0','0'); -- id=2029
UPDATE product SET productName = 'موديل 104&107  يورو', productDescription = '', productCatId = '166', productBuyPrice = '430', productSellAllPrice = '430', productSellUnitPrice = '430', productSellHalfPrice = '430', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02029',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',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='430',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2029';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2029', '1.00', '2026-10-14', '1', '0','0202901','430','430','430','430','','0','0','0','0','0','0','0','0','0','0'); -- id=2029
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2029', '1', '0', '1', '2026-10-14'); -- id=3388
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2029', '1', '0', '0', '2029', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11177
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2029, 1,'2026-10-14 19:14:30',1)
                ON DUPLICATE KEY UPDATE productid = 2029, edited = 1, sysdate = '2026-10-14 19:14:30', userid = 1; -- id=2985
UPDATE product SET productName = 'موديل 104&107  يورو', productDescription = '', productCatId = '166', productBuyPrice = '430.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02029',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',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='430',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2029';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 102&110&114  يورو','','166','450','450','450','450','2026-10-14','0','1','0','','0','0','0','0','0','450','450','450','450','450','0','0','0','0','.','0','0','0','450','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','450','450','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','450','0','0','0','0','0','0','','','0','0','0','0'); -- id=2030
UPDATE product SET productName = 'موديل 102&110&114  يورو', productDescription = '', productCatId = '166', productBuyPrice = '450', productSellAllPrice = '450', productSellUnitPrice = '450', productSellHalfPrice = '450', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02030',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2030';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2030', '1.00', '2026-10-14', '1', '0','0203001','450','450','450','450','','0','0','0','0','0','0','0','0','0','0'); -- id=2030
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2030', '1', '0', '1', '2026-10-14'); -- id=3389
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2030', '1', '0', '0', '2030', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11178
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2030, 1,'2026-10-14 19:14:30',1)
                ON DUPLICATE KEY UPDATE productid = 2030, edited = 1, sysdate = '2026-10-14 19:14:30', userid = 1; -- id=2986
UPDATE product SET productName = 'موديل 102&110&114  يورو', productDescription = '', productCatId = '166', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02030',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2030';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 100 يورو','','166','550','550','550','550','2026-10-14','0','1','0','','0','0','0','0','0','550','550','550','550','550','0','0','0','0','.','0','0','0','550','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','550','550','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','550','0','0','0','0','0','0','','','0','0','0','0'); -- id=2031
UPDATE product SET productName = 'موديل 100 يورو', productDescription = '', productCatId = '166', productBuyPrice = '550', productSellAllPrice = '550', productSellUnitPrice = '550', productSellHalfPrice = '550', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02031',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '550',meanbuyprice = '550',meanbuyprice_withDiscount = '550' , productbuypricereal = '550' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='550',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2031';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2031', '1.00', '2026-10-14', '1', '0','0203101','550','550','550','550','','0','0','0','0','0','0','0','0','0','0'); -- id=2031
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2031', '1', '0', '1', '2026-10-14'); -- id=3390
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2031', '1', '0', '0', '2031', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11179
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2031, 1,'2026-10-14 19:14:30',1)
                ON DUPLICATE KEY UPDATE productid = 2031, edited = 1, sysdate = '2026-10-14 19:14:30', userid = 1; -- id=2987
UPDATE product SET productName = 'موديل 100 يورو', productDescription = '', productCatId = '166', productBuyPrice = '550.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02031',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '550',meanbuyprice = '550',meanbuyprice_withDiscount = '550' , productbuypricereal = '550' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='550',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2031';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 101 يورو','','166','500','500','500','500','2026-10-14','0','1','0','','0','0','0','0','0','500','500','500','500','500','0','0','0','0','.','0','0','0','500','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','500','500','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','500','0','0','0','0','0','0','','','0','0','0','0'); -- id=2032
UPDATE product SET productName = 'موديل 101 يورو', productDescription = '', productCatId = '166', productBuyPrice = '500', productSellAllPrice = '500', productSellUnitPrice = '500', productSellHalfPrice = '500', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02032',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2032';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2032', '1.00', '2026-10-14', '1', '0','0203201','500','500','500','500','','0','0','0','0','0','0','0','0','0','0'); -- id=2032
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2032', '1', '0', '1', '2026-10-14'); -- id=3391
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2032', '1', '0', '0', '2032', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11180
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2032, 1,'2026-10-14 19:14:30',1)
                ON DUPLICATE KEY UPDATE productid = 2032, edited = 1, sysdate = '2026-10-14 19:14:30', userid = 1; -- id=2988
UPDATE product SET productName = 'موديل 101 يورو', productDescription = '', productCatId = '166', productBuyPrice = '500.00', productSellAllPrice = '500.00', productSellUnitPrice = '500.00', productSellHalfPrice = '500.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02032',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2032';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 113 يورو','','166','560','560','560','560','2026-10-14','0','1','0','','0','0','0','0','0','560','560','560','560','560','0','0','0','0','.','0','0','0','560','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','560','560','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','560','0','0','0','0','0','0','','','0','0','0','0'); -- id=2033
UPDATE product SET productName = 'موديل 113 يورو', productDescription = '', productCatId = '166', productBuyPrice = '560', productSellAllPrice = '560', productSellUnitPrice = '560', productSellHalfPrice = '560', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02033',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '560',lastbuyprice_withDiscount = '560',meanbuyprice = '560',meanbuyprice_withDiscount = '560' , productbuypricereal = '560' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='560',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='560',meanbuyprice_withTax='560',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='560',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2033';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2033', '1.00', '2026-10-14', '1', '0','0203301','560','560','560','560','','0','0','0','0','0','0','0','0','0','0'); -- id=2033
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2033', '1', '0', '1', '2026-10-14'); -- id=3392
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2033', '1', '0', '0', '2033', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11181
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2033, 1,'2026-10-14 19:14:30',1)
                ON DUPLICATE KEY UPDATE productid = 2033, edited = 1, sysdate = '2026-10-14 19:14:30', userid = 1; -- id=2989
UPDATE product SET productName = 'موديل 113 يورو', productDescription = '', productCatId = '166', productBuyPrice = '560.00', productSellAllPrice = '560.00', productSellUnitPrice = '560.00', productSellHalfPrice = '560.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02033',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '560',lastbuyprice_withDiscount = '560',meanbuyprice = '560',meanbuyprice_withDiscount = '560' , productbuypricereal = '560' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='560',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='560',meanbuyprice_withTax='560',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='560',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2033';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 112 يورو','','166','390','390','390','390','2026-10-14','0','1','0','','0','0','0','0','0','390','390','390','390','390','0','0','0','0','.','0','0','0','390','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','390','390','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','390','0','0','0','0','0','0','','','0','0','0','0'); -- id=2034
UPDATE product SET productName = 'موديل 112 يورو', productDescription = '', productCatId = '166', productBuyPrice = '390', productSellAllPrice = '390', productSellUnitPrice = '390', productSellHalfPrice = '390', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02034',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '390',lastbuyprice_withDiscount = '390',meanbuyprice = '390',meanbuyprice_withDiscount = '390' , productbuypricereal = '390' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='390',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='390',meanbuyprice_withTax='390',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='390',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2034';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2034', '1.00', '2026-10-14', '1', '0','0203401','390','390','390','390','','0','0','0','0','0','0','0','0','0','0'); -- id=2034
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2034', '1', '0', '1', '2026-10-14'); -- id=3393
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2034', '1', '0', '0', '2034', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11182
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2034, 1,'2026-10-14 19:14:30',1)
                ON DUPLICATE KEY UPDATE productid = 2034, edited = 1, sysdate = '2026-10-14 19:14:30', userid = 1; -- id=2990
UPDATE product SET productName = 'موديل 112 يورو', productDescription = '', productCatId = '166', productBuyPrice = '390.00', productSellAllPrice = '390.00', productSellUnitPrice = '390.00', productSellHalfPrice = '390.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02034',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '390',lastbuyprice_withDiscount = '390',meanbuyprice = '390',meanbuyprice_withDiscount = '390' , productbuypricereal = '390' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='390',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='390',meanbuyprice_withTax='390',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='390',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2034';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 201 يورو','','166','350','350','350','350','2026-10-14','0','1','0','','0','0','0','0','0','350','350','350','350','350','0','0','0','0','.','0','0','0','350','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','350','350','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','350','0','0','0','0','0','0','','','0','0','0','0'); -- id=2035
UPDATE product SET productName = 'موديل 201 يورو', productDescription = '', productCatId = '166', productBuyPrice = '350', productSellAllPrice = '350', productSellUnitPrice = '350', productSellHalfPrice = '350', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02035',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '350',meanbuyprice = '350',meanbuyprice_withDiscount = '350' , productbuypricereal = '350' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='350',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2035';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2035', '1.00', '2026-10-14', '1', '0','0203501','350','350','350','350','','0','0','0','0','0','0','0','0','0','0'); -- id=2035
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2035', '1', '0', '1', '2026-10-14'); -- id=3394
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2035', '1', '0', '0', '2035', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11183
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2035, 1,'2026-10-14 19:14:30',1)
                ON DUPLICATE KEY UPDATE productid = 2035, edited = 1, sysdate = '2026-10-14 19:14:30', userid = 1; -- id=2991
UPDATE product SET productName = 'موديل 201 يورو', productDescription = '', productCatId = '166', productBuyPrice = '350.00', productSellAllPrice = '350.00', productSellUnitPrice = '350.00', productSellHalfPrice = '350.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02035',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '350',meanbuyprice = '350',meanbuyprice_withDiscount = '350' , productbuypricereal = '350' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='350',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2035';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:44:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:14:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:14:31', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9719
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:44:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:14:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:14:33', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9720
INSERT INTO supplier (suppliername, supplieraddress, supplierphone, suppliercurrentDebt, supplierdetails, conditions, userid, supplierdate, dailyentryid, category_id, typesupplier_id,linkedClientId,inUse,suppliercode,goverareaid,namepayeecheck,suppliermobile,warrantyOfficer,warrantymobile,sellername,sellermobile,taxnumber,supplierTypeForTree,treeId,sullpierCurrencyid,suppliercurrentDebtInCurrency,webApiId,shippingDiscountPer) VALUES ('يورو', '', '', '', '', '0', '1', '2026-10-14 19:15:02', '0', '', '','0','0','','','','','','','','','','0','0','1','0','0','0'); -- id=176
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('176', '0', '', '0', 'إضافة مورد جديد', '176', '', '2026-10-14 19:15:02', '1', 'supplierController.php', '', '0','', '0','1','1','0','1','0','0','0','0',''); -- id=499
INSERT INTO accountstree (name, customName, customNameEn, nameEn, parent, accountNature, theValue, theOrder, layingOrder, reportid, listId, notes, itemfrom, itemtype, itemtype2, itemtype3, userid, del, sysdate) VALUES ('يورو', 'يورو', 'يورو', 'يورو', '81', '1', '0', '0', '', '1', '1', '', '0', '1', '1', '', '1', '0', '2026-10-14 19:15:02'); -- id=659
UPDATE supplier SET suppliername = 'يورو', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '0.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-10-14', dailyentryid = '0', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='659',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='0',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '176';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:48:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:18:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:18:29', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9721
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfaa691c994', '2026-10-14 19:14:33', '176', '0.00', '179510.4', '8', '1', '195120.00',  '179510.40', '0', '179510.4', '1', '2026-10-14 19:18:29', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=162
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02026', '162', '166', '2026', '36', '490', '17640.00', '0', '', '2026-10-14 19:18:29', '2026','','','0','0','0','0','0',null,'490','17640','0','0','0','0','0','0','0','0','1'); -- id=984
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:14:33', 1, 2026, 0, 0
                    , 450.8, 36, 0, 0, 1, '2026-10-14 19:18:29')
                ON DUPLICATE KEY UPDATE buyprice = 450.8,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:18:29' ; -- id=6016
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2026', '490', '36', '0', 'buyBillController.php', '984', '', '0', '0'); -- id=756
UPDATE product SET  productBuyPrice = "490" WHERE productId = 2026 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 984 ;
UPDATE product SET productName = 'موديل 111 يورو', productDescription = '', productCatId = '166', productBuyPrice = '490.00', productSellAllPrice = '490.00', productSellUnitPrice = '490.00', productSellHalfPrice = '490.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02026',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '490',lastbuyprice_withDiscount = '450.8',meanbuyprice = '490',meanbuyprice_withDiscount = '450.8' , productbuypricereal = '490.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='490',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='490',meanbuyprice_withTax='490',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450.8',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2026';
UPDATE buybilldetail SET  lastbuyprice = 490 , meanbuyprice = 490, lastbuyprice_withDiscount = 450.8, meanbuyprice_withDiscount = 450.8
        , lastbuyprice_withTax = 490, meanbuyprice_withTax = 490, lastbuyprice_withDiscountAndTax = 450.8
                where buybilldetailid = 984;
UPDATE productunit SET proUnitBuyPrice  = 490 * productnumber WHERE productid = 2026;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3385';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2026', '1', '36', '0', '162', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 19:14:33','0','0'); -- id=11184
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02027', '162', '166', '2027', '36', '400', '14400.00', '0', '', '2026-10-14 19:18:29', '2027','','','0','0','0','0','0',null,'400','14400','0','0','0','0','0','0','0','0','1'); -- id=985
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:14:33', 1, 2027, 0, 0
                    , 368, 36, 0, 0, 1, '2026-10-14 19:18:29')
                ON DUPLICATE KEY UPDATE buyprice = 368,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:18:29' ; -- id=6017
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2027', '400', '36', '0', 'buyBillController.php', '985', '', '0', '0'); -- id=757
UPDATE product SET  productBuyPrice = "400" WHERE productId = 2027 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 985 ;
UPDATE product SET productName = 'موديل 106 يورو', productDescription = '', productCatId = '166', productBuyPrice = '400.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02027',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '400',lastbuyprice_withDiscount = '368',meanbuyprice = '400',meanbuyprice_withDiscount = '368' , productbuypricereal = '400.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='400',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='400',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='368',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2027';
UPDATE buybilldetail SET  lastbuyprice = 400 , meanbuyprice = 400, lastbuyprice_withDiscount = 368, meanbuyprice_withDiscount = 368
        , lastbuyprice_withTax = 400, meanbuyprice_withTax = 400, lastbuyprice_withDiscountAndTax = 368
                where buybilldetailid = 985;
UPDATE productunit SET proUnitBuyPrice  = 400 * productnumber WHERE productid = 2027;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3386';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2027', '1', '36', '0', '162', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 19:14:33','0','0'); -- id=11185
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02028', '162', '166', '2028', '36', '320', '11520.00', '0', '', '2026-10-14 19:18:29', '2028','','','0','0','0','0','0',null,'320','11520','0','0','0','0','0','0','0','0','1'); -- id=986
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:14:33', 1, 2028, 0, 0
                    , 294.4, 36, 0, 0, 1, '2026-10-14 19:18:29')
                ON DUPLICATE KEY UPDATE buyprice = 294.4,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:18:29' ; -- id=6018
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2028', '320', '36', '0', 'buyBillController.php', '986', '', '0', '0'); -- id=758
UPDATE product SET  productBuyPrice = "320" WHERE productId = 2028 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 986 ;
UPDATE product SET productName = 'موديل 108 يورو', productDescription = '', productCatId = '166', productBuyPrice = '320.00', productSellAllPrice = '320.00', productSellUnitPrice = '320.00', productSellHalfPrice = '320.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02028',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '320',lastbuyprice_withDiscount = '294.4',meanbuyprice = '320',meanbuyprice_withDiscount = '294.4' , productbuypricereal = '320.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='320',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='320',meanbuyprice_withTax='320',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='294.4',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2028';
UPDATE buybilldetail SET  lastbuyprice = 320 , meanbuyprice = 320, lastbuyprice_withDiscount = 294.4, meanbuyprice_withDiscount = 294.4
        , lastbuyprice_withTax = 320, meanbuyprice_withTax = 320, lastbuyprice_withDiscountAndTax = 294.4
                where buybilldetailid = 986;
UPDATE productunit SET proUnitBuyPrice  = 320 * productnumber WHERE productid = 2028;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3387';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2028', '1', '36', '0', '162', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 19:14:33','0','0'); -- id=11186
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02029', '162', '166', '2029', '36', '430', '15480.00', '0', '', '2026-10-14 19:18:29', '2029','','','0','0','0','0','0',null,'430','15480','0','0','0','0','0','0','0','0','1'); -- id=987
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:14:33', 1, 2029, 0, 0
                    , 395.6, 36, 0, 0, 1, '2026-10-14 19:18:29')
                ON DUPLICATE KEY UPDATE buyprice = 395.6,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:18:29' ; -- id=6019
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2029', '430', '36', '0', 'buyBillController.php', '987', '', '0', '0'); -- id=759
UPDATE product SET  productBuyPrice = "430" WHERE productId = 2029 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 987 ;
UPDATE product SET productName = 'موديل 104&107  يورو', productDescription = '', productCatId = '166', productBuyPrice = '430.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02029',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '430',lastbuyprice_withDiscount = '395.6',meanbuyprice = '430',meanbuyprice_withDiscount = '395.6' , productbuypricereal = '430.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='395.6',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2029';
UPDATE buybilldetail SET  lastbuyprice = 430 , meanbuyprice = 430, lastbuyprice_withDiscount = 395.6, meanbuyprice_withDiscount = 395.6
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 395.6
                where buybilldetailid = 987;
UPDATE productunit SET proUnitBuyPrice  = 430 * productnumber WHERE productid = 2029;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3388';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2029', '1', '36', '0', '162', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 19:14:33','0','0'); -- id=11187
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02030', '162', '166', '2030', '36', '450', '16200.00', '0', '', '2026-10-14 19:18:29', '2030','','','0','0','0','0','0',null,'450','16200','0','0','0','0','0','0','0','0','1'); -- id=988
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:14:33', 1, 2030, 0, 0
                    , 414, 36, 0, 0, 1, '2026-10-14 19:18:29')
                ON DUPLICATE KEY UPDATE buyprice = 414,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:18:29' ; -- id=6020
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2030', '450', '36', '0', 'buyBillController.php', '988', '', '0', '0'); -- id=760
UPDATE product SET  productBuyPrice = "450" WHERE productId = 2030 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 988 ;
UPDATE product SET productName = 'موديل 102&110&114  يورو', productDescription = '', productCatId = '166', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02030',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '414',meanbuyprice = '450',meanbuyprice_withDiscount = '414' , productbuypricereal = '450.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='414',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2030';
UPDATE buybilldetail SET  lastbuyprice = 450 , meanbuyprice = 450, lastbuyprice_withDiscount = 414, meanbuyprice_withDiscount = 414
        , lastbuyprice_withTax = 450, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 414
                where buybilldetailid = 988;
UPDATE productunit SET proUnitBuyPrice  = 450 * productnumber WHERE productid = 2030;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3389';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2030', '1', '36', '0', '162', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 19:14:33','0','0'); -- id=11188
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02031', '162', '166', '2031', '24', '550', '13200.00', '0', '', '2026-10-14 19:18:29', '2031','','','0','0','0','0','0',null,'550','13200','0','0','0','0','0','0','0','0','1'); -- id=989
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:14:33', 1, 2031, 0, 0
                    , 506, 24, 0, 0, 1, '2026-10-14 19:18:29')
                ON DUPLICATE KEY UPDATE buyprice = 506,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:18:29' ; -- id=6021
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2031', '550', '24', '0', 'buyBillController.php', '989', '', '0', '0'); -- id=761
UPDATE product SET  productBuyPrice = "550" WHERE productId = 2031 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 989 ;
UPDATE product SET productName = 'موديل 100 يورو', productDescription = '', productCatId = '166', productBuyPrice = '550.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02031',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '506',meanbuyprice = '550',meanbuyprice_withDiscount = '506' , productbuypricereal = '550.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='506',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2031';
UPDATE buybilldetail SET  lastbuyprice = 550 , meanbuyprice = 550, lastbuyprice_withDiscount = 506, meanbuyprice_withDiscount = 506
        , lastbuyprice_withTax = 550, meanbuyprice_withTax = 550, lastbuyprice_withDiscountAndTax = 506
                where buybilldetailid = 989;
UPDATE productunit SET proUnitBuyPrice  = 550 * productnumber WHERE productid = 2031;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3390';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2031', '1', '24', '0', '162', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 19:14:33','0','0'); -- id=11189
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02032', '162', '166', '2032', '24', '500', '12000.00', '0', '', '2026-10-14 19:18:29', '2032','','','0','0','0','0','0',null,'500','12000','0','0','0','0','0','0','0','0','1'); -- id=990
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:14:33', 1, 2032, 0, 0
                    , 460, 24, 0, 0, 1, '2026-10-14 19:18:29')
                ON DUPLICATE KEY UPDATE buyprice = 460,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:18:29' ; -- id=6022
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2032', '500', '24', '0', 'buyBillController.php', '990', '', '0', '0'); -- id=762
UPDATE product SET  productBuyPrice = "500" WHERE productId = 2032 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 990 ;
UPDATE product SET productName = 'موديل 101 يورو', productDescription = '', productCatId = '166', productBuyPrice = '500.00', productSellAllPrice = '500.00', productSellUnitPrice = '500.00', productSellHalfPrice = '500.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02032',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '460',meanbuyprice = '500',meanbuyprice_withDiscount = '460' , productbuypricereal = '500.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2032';
UPDATE buybilldetail SET  lastbuyprice = 500 , meanbuyprice = 500, lastbuyprice_withDiscount = 460, meanbuyprice_withDiscount = 460
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 460
                where buybilldetailid = 990;
UPDATE productunit SET proUnitBuyPrice  = 500 * productnumber WHERE productid = 2032;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3391';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2032', '1', '24', '0', '162', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 19:14:33','0','0'); -- id=11190
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02030', '162', '166', '2030', '36', '450', '16200.00', '0', '', '2026-10-14 19:18:29', '2030','','','0','0','0','0','0',null,'450','16200','0','0','0','0','0','0','0','0','1'); -- id=991
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:14:33', 1, 2030, 0, 0
                    , 414, 36, 0, 0, 1, '2026-10-14 19:18:29')
                ON DUPLICATE KEY UPDATE buyprice = 414,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:18:29' ; -- id=6020
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2030', '450', '36', '0', 'buyBillController.php', '991', '', '0', '0'); -- id=763
UPDATE product SET  productBuyPrice = "450" WHERE productId = 2030 ;
UPDATE buybilldetail SET  quantitybefore = 36 WHERE buybilldetailid = 991 ;
UPDATE product SET productName = 'موديل 102&110&114  يورو', productDescription = '', productCatId = '166', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02030',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '414',meanbuyprice = '450',meanbuyprice_withDiscount = '414' , productbuypricereal = '450.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='414',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2030';
UPDATE buybilldetail SET  lastbuyprice = 450 , meanbuyprice = 450, lastbuyprice_withDiscount = 414, meanbuyprice_withDiscount = 414
        , lastbuyprice_withTax = 450, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 414
                where buybilldetailid = 991;
UPDATE productunit SET proUnitBuyPrice  = 450 * productnumber WHERE productid = 2030;
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3389';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2030', '1', '36', '0', '162', 'اضافة فاتورة مشتريات', 'buyBillController.php', '36', '72', '1', '2026-10-14 19:14:33','0','0'); -- id=11191
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02030', '162', '166', '2030', '36', '450', '16200.00', '0', '', '2026-10-14 19:18:29', '2030','','','0','0','0','0','0',null,'450','16200','0','0','0','0','0','0','0','0','1'); -- id=992
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:14:33', 1, 2030, 0, 0
                    , 414, 36, 0, 0, 1, '2026-10-14 19:18:29')
                ON DUPLICATE KEY UPDATE buyprice = 414,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:18:29' ; -- id=6020
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2030', '450', '36', '0', 'buyBillController.php', '992', '', '0', '0'); -- id=764
UPDATE product SET  productBuyPrice = "450" WHERE productId = 2030 ;
UPDATE buybilldetail SET  quantitybefore = 72 WHERE buybilldetailid = 992 ;
UPDATE product SET productName = 'موديل 102&110&114  يورو', productDescription = '', productCatId = '166', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02030',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '414',meanbuyprice = '450',meanbuyprice_withDiscount = '414' , productbuypricereal = '450.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='414',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2030';
UPDATE buybilldetail SET  lastbuyprice = 450 , meanbuyprice = 450, lastbuyprice_withDiscount = 414, meanbuyprice_withDiscount = 414
        , lastbuyprice_withTax = 450, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 414
                where buybilldetailid = 992;
UPDATE productunit SET proUnitBuyPrice  = 450 * productnumber WHERE productid = 2030;
UPDATE storedetail SET  productquantity = '108', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3389';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2030', '1', '36', '0', '162', 'اضافة فاتورة مشتريات', 'buyBillController.php', '72', '108', '1', '2026-10-14 19:14:33','0','0'); -- id=11192
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02033', '162', '166', '2033', '36', '560', '20160.00', '0', '', '2026-10-14 19:18:29', '2033','','','0','0','0','0','0',null,'560','20160','0','0','0','0','0','0','0','0','1'); -- id=993
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:14:33', 1, 2033, 0, 0
                    , 515.2, 36, 0, 0, 1, '2026-10-14 19:18:29')
                ON DUPLICATE KEY UPDATE buyprice = 515.2,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:18:29' ; -- id=6025
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2033', '560', '36', '0', 'buyBillController.php', '993', '', '0', '0'); -- id=765
UPDATE product SET  productBuyPrice = "560" WHERE productId = 2033 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 993 ;
UPDATE product SET productName = 'موديل 113 يورو', productDescription = '', productCatId = '166', productBuyPrice = '560.00', productSellAllPrice = '560.00', productSellUnitPrice = '560.00', productSellHalfPrice = '560.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02033',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '560',lastbuyprice_withDiscount = '515.2',meanbuyprice = '560',meanbuyprice_withDiscount = '515.2' , productbuypricereal = '560.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='560',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='560',meanbuyprice_withTax='560',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='515.2',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2033';
UPDATE buybilldetail SET  lastbuyprice = 560 , meanbuyprice = 560, lastbuyprice_withDiscount = 515.2, meanbuyprice_withDiscount = 515.2
        , lastbuyprice_withTax = 560, meanbuyprice_withTax = 560, lastbuyprice_withDiscountAndTax = 515.2
                where buybilldetailid = 993;
UPDATE productunit SET proUnitBuyPrice  = 560 * productnumber WHERE productid = 2033;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3392';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2033', '1', '36', '0', '162', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 19:14:33','0','0'); -- id=11193
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02034', '162', '166', '2034', '36', '390', '14040.00', '0', '', '2026-10-14 19:18:29', '2034','','','0','0','0','0','0',null,'390','14040','0','0','0','0','0','0','0','0','1'); -- id=994
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:14:33', 1, 2034, 0, 0
                    , 358.8, 36, 0, 0, 1, '2026-10-14 19:18:29')
                ON DUPLICATE KEY UPDATE buyprice = 358.8,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:18:29' ; -- id=6026
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2034', '390', '36', '0', 'buyBillController.php', '994', '', '0', '0'); -- id=766
UPDATE product SET  productBuyPrice = "390" WHERE productId = 2034 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 994 ;
UPDATE product SET productName = 'موديل 112 يورو', productDescription = '', productCatId = '166', productBuyPrice = '390.00', productSellAllPrice = '390.00', productSellUnitPrice = '390.00', productSellHalfPrice = '390.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02034',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '390',lastbuyprice_withDiscount = '358.8',meanbuyprice = '390',meanbuyprice_withDiscount = '358.8' , productbuypricereal = '390.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='390',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='390',meanbuyprice_withTax='390',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='358.8',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2034';
UPDATE buybilldetail SET  lastbuyprice = 390 , meanbuyprice = 390, lastbuyprice_withDiscount = 358.8, meanbuyprice_withDiscount = 358.8
        , lastbuyprice_withTax = 390, meanbuyprice_withTax = 390, lastbuyprice_withDiscountAndTax = 358.8
                where buybilldetailid = 994;
UPDATE productunit SET proUnitBuyPrice  = 390 * productnumber WHERE productid = 2034;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3393';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2034', '1', '36', '0', '162', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 19:14:33','0','0'); -- id=11194
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02029', '162', '166', '2029', '36', '430', '15480.00', '0', '', '2026-10-14 19:18:29', '2029','','','0','0','0','0','0',null,'430','15480','0','0','0','0','0','0','0','0','1'); -- id=995
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:14:33', 1, 2029, 0, 0
                    , 395.6, 36, 0, 0, 1, '2026-10-14 19:18:29')
                ON DUPLICATE KEY UPDATE buyprice = 395.6,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:18:29' ; -- id=6019
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2029', '430', '36', '0', 'buyBillController.php', '995', '', '0', '0'); -- id=767
UPDATE product SET  productBuyPrice = "430" WHERE productId = 2029 ;
UPDATE buybilldetail SET  quantitybefore = 36 WHERE buybilldetailid = 995 ;
UPDATE product SET productName = 'موديل 104&107  يورو', productDescription = '', productCatId = '166', productBuyPrice = '430.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02029',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '430',lastbuyprice_withDiscount = '395.6',meanbuyprice = '430',meanbuyprice_withDiscount = '395.6' , productbuypricereal = '430.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='395.6',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2029';
UPDATE buybilldetail SET  lastbuyprice = 430 , meanbuyprice = 430, lastbuyprice_withDiscount = 395.6, meanbuyprice_withDiscount = 395.6
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 395.6
                where buybilldetailid = 995;
UPDATE productunit SET proUnitBuyPrice  = 430 * productnumber WHERE productid = 2029;
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3388';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2029', '1', '36', '0', '162', 'اضافة فاتورة مشتريات', 'buyBillController.php', '36', '72', '1', '2026-10-14 19:14:33','0','0'); -- id=11195
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02035', '162', '166', '2035', '36', '350', '12600.00', '0', '', '2026-10-14 19:18:29', '2035','','','0','0','0','0','0',null,'350','12600','0','0','0','0','0','0','0','0','1'); -- id=996
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 19:14:33', 1, 2035, 0, 0
                    , 322, 36, 0, 0, 1, '2026-10-14 19:18:29')
                ON DUPLICATE KEY UPDATE buyprice = 322,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:18:29' ; -- id=6028
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2035', '350', '36', '0', 'buyBillController.php', '996', '', '0', '0'); -- id=768
UPDATE product SET  productBuyPrice = "350" WHERE productId = 2035 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 996 ;
UPDATE product SET productName = 'موديل 201 يورو', productDescription = '', productCatId = '166', productBuyPrice = '350.00', productSellAllPrice = '350.00', productSellUnitPrice = '350.00', productSellHalfPrice = '350.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02035',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '322',meanbuyprice = '350',meanbuyprice_withDiscount = '322' , productbuypricereal = '350.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='322',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2035';
UPDATE buybilldetail SET  lastbuyprice = 350 , meanbuyprice = 350, lastbuyprice_withDiscount = 322, meanbuyprice_withDiscount = 322
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 322
                where buybilldetailid = 996;
UPDATE productunit SET proUnitBuyPrice  = 350 * productnumber WHERE productid = 2035;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3394';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2035', '1', '36', '0', '162', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 19:14:33','0','0'); -- id=11196
UPDATE supplier SET  suppliercurrentDebt = '179510.4',suppliercurrentDebtInCurrency= '179510.4' , userid = '1', supplierdate = '2026-10-14 19:18:29'   WHERE supplierid = '176';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('176', '0.00', '179510.4', '0', 'اضافة فاتورة مشتريات', '162', '179510.4', '2026-10-14 19:14:33', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','179510.4','1','0','179510.4','179510.4','0',''); -- id=500
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '179510.4', '179510.4', '2026-10-14', '1', '0', '0', '2026-10-14 19:18:29','اضافة فاتورة مشتريات رقم 162','1','0',null,'0','162','buyBillController.php?do=details&id=162'); -- id=2454
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2454', '382', '179510.4', '','0'); -- id=2510
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23177687.73', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2454', '659', '179510.4', '','0'); -- id=2456
UPDATE accountstree SET name = 'يورو', customName = 'يورو', customNameEn = 'يورو', nameEn = 'يورو', parent = '81', accountNature = '1', theValue = '179510.4', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-14 19:15:02' WHERE id = '659';
update buybill set dailyentryid='2454,0' where buybillid=162;
COMMIT;
UPDATE product SET overAllAveragePrice = 450.8 WHERE productId = 2026;UPDATE product SET overAllAveragePrice = 368 WHERE productId = 2027;UPDATE product SET overAllAveragePrice = 294.4 WHERE productId = 2028;UPDATE product SET overAllAveragePrice = 395.6 WHERE productId = 2029;UPDATE product SET overAllAveragePrice = 414 WHERE productId = 2030;UPDATE product SET overAllAveragePrice = 506 WHERE productId = 2031;UPDATE product SET overAllAveragePrice = 460 WHERE productId = 2032;UPDATE product SET overAllAveragePrice = 515.2 WHERE productId = 2033;UPDATE product SET overAllAveragePrice = 358.8 WHERE productId = 2034;UPDATE product SET overAllAveragePrice = 322 WHERE productId = 2035;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:48:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:18:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:18:29', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=162'); -- id=9722
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:48:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:18:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:18:37', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=162&type=2'); -- id=9723
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:51:40";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:21:40", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 19:21:40', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9724
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:58:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:28:37", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 19:28:37', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9725
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 15:58:38";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 19:28:38', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9726
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:58:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:28:44", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 19:28:44', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9727
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:58:53";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:28:53", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 19:28:53', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9728

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acfac146d35b
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 19:28:53', '06acfac146d35b', '1', '0.00', '0', '0', '1', '9840.00', '9840', '9840', '0', '1', '2026-10-14 19:28:53', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '24' ,'0','','','','','-1','0','0','0','0','0','9840','0','','0','0','9840','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=540
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','540', '0', '2026-10-14 19:28:53', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '9840', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 19:28:53','0','0','',''); -- id=688
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+16 where id = 688;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('276','01467', '540', '104', '1467', '16', '340', '5440', '0', '', '0', '2026-10-14 19:28:53', '1467', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','688-16,','1','1','0','0','340','5440','0','','0','0.00','0','0','0','0'); -- id=1964
UPDATE sellbilldetail SET  lastbuyprice = 276.00 , meanbuyprice = 276.00, lastbuyprice_withDiscount = 276.00, meanbuyprice_withDiscount = 276.00
        , lastbuyprice_withTax = 276, meanbuyprice_withTax = 276, lastbuyprice_withDiscountAndTax = 276
                where sellbilldetailid = 1964;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1467, '2026-10-14', 5440, 4416, 4416
                    , 4416, 4416, 4416, 4416
                    , 0, 0, 0, 0
                    , 0, 0, 0, 16, 0, 4416, 4416, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5440, sellCostBuyPrice =sellCostBuyPrice+4416
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4416, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4416
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4416, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4416
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4416
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4416
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4416
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+16
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5440, 4416, 4416
                    , 4416, 4416, 4416, 4416
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4416, 4416, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5440, sellCostBuyPrice =sellCostBuyPrice+4416
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4416, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4416
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4416, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4416
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4416
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4416
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4416
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '484', userid = '3', storedetaildate = '2026-10-14 19:28:53' WHERE storedetailid = '1492';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1467', '1', '16', '1', '540', 'اضافة فاتورة مبيعات', 'sellbillController.php', '500', '484', '3', '2026-10-14 19:28:53','0','0'); -- id=11197
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+8 where id = 824;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('495','01822', '540', '140', '1822', '8', '550', '4400', '0', '', '0', '2026-10-14 19:28:53', '1822', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','824-8,','1','1','0','0','550','4400','0','','0','0.00','0','0','0','0'); -- id=1965
UPDATE sellbilldetail SET  lastbuyprice = 550.00 , meanbuyprice = 550.00, lastbuyprice_withDiscount = 495.00, meanbuyprice_withDiscount = 522.50
        , lastbuyprice_withTax = 550, meanbuyprice_withTax = 275, lastbuyprice_withDiscountAndTax = 495
                where sellbilldetailid = 1965;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1822, '2026-10-14', 4400, 4400, 4400
                    , 4400, 3960, 4180, 3960
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8, 0, 4400, 2200, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4400, sellCostBuyPrice =sellCostBuyPrice+4400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3960, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4180
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3960
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2200
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+8
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4400, 4400, 4400
                    , 4400, 3960, 4180, 3960
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4400, 2200, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4400, sellCostBuyPrice =sellCostBuyPrice+4400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3960, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4180
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3960
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2200
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '16', userid = '3', storedetaildate = '2026-10-14 19:28:53' WHERE storedetailid = '2836';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1822', '1', '8', '1', '540', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '16', '3', '2026-10-14 19:28:53','0','0'); -- id=11198
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3672445',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3662605','9840', '0', '2', 'اضافة فاتورة مبيعات', '540', '3672445', '2026-10-14 19:28:53', '3',  'sellbillController.php','1','','0'); -- id=680
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '9840', '9840', '2026-10-14', '3', '0', '0', '2026-10-14 19:28:53','اضافة فاتورة مبيعات رقم 540','1','0',null,'0','540','sellbillController.php?do=showDetail&sellbillid=540'); -- id=2455
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2455', '419', '9840', '','0'); -- id=2511
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3672445', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2455', '143', '9840', '','0'); -- id=2457
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5920055', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '8376', '8376', '2026-10-14', '3', '0', '0', '2026-10-14 19:28:53','اضافة فاتورة مبيعات رقم 540 - صرف البضاعة من المخزن','1','0',null,'0','540','sellbillController.php?do=showDetail&sellbillid=540'); -- id=2456
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2456', '402', '8376', '','0'); -- id=2512
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5521074.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2456', '382', '8376', '','0'); -- id=2458
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23169311.73', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2455,0,2456' where sellbillid=540;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 9840, 8816, 8816
                    , 8816, 8376, 8596, 8376
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,8816, 6616, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+9840, sellCostBuyPrice =sellCostBuyPrice+8816
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8816, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8816
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+8376, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+8596
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+8376
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8816
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6616
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 9840, 8816, 8816
                    , 8816, 8376, 8596, 8376
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,8816, 6616, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+9840, sellCostBuyPrice =sellCostBuyPrice+8816
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8816, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8816
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+8376, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+8596
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+8376
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8816
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+6616
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 9840, 8816, 8816
                    , 8816, 8376, 8596, 8376, 8816, 6616)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+9840, netSellCostBuyPrice = netSellCostBuyPrice+8816
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+8816
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+8816
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+8376
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+8596
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+8376
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+8816
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+6616;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acfac146d35b and sellbillId = 540 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:58:53";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:28:53", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 19:28:53', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9729
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:59:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:29:28", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 19:29:28', '4', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9730

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acfa9824bc94
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 19:29:28', '06acfa9824bc94', '1', '0.00', '0', '0', '1', '1650.00', '1650', '1650', '0', '2', '2026-10-14 19:29:28', '', '4', '0', 'نقدي', '3', '0', '3', '0', 'نقدي', '3' ,'0','','','','','-1','0','0','0','0','0','1650','0','','0','0','1650','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=541
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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','541', '0', '2026-10-14 19:29:28', '4', 'sellbillController.php', 'اضافة فاتورة مبيعات', '1650', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 19:29:28','0','0','',''); -- id=689
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 621;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('495','01722', '541', '49', '1722', '3', '550', '1650', '0', '', '0', '2026-10-14 19:29:28', '1722', '0.00', '0', '2','0.00','','','0','0','0','0','0','0','0','0','','621-3,','1','1','0','0','550','1650','0','','0','0.00','0','0','0','0'); -- id=1966
UPDATE sellbilldetail SET  lastbuyprice = 550.00 , meanbuyprice = 550.00, lastbuyprice_withDiscount = 495.00, meanbuyprice_withDiscount = 495.00
        , lastbuyprice_withTax = 550, meanbuyprice_withTax = 550, lastbuyprice_withDiscountAndTax = 495
                where sellbilldetailid = 1966;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1722, '2026-10-14', 1650, 1650, 1650
                    , 1650, 1485, 1485, 1485
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1650, 1650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1650, sellCostBuyPrice =sellCostBuyPrice+1650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1485, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1485
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1485
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (2, '2026-10-14', 1650, 1650, 1650
                    , 1650, 1485, 1485, 1485
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1650, 1650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1650, sellCostBuyPrice =sellCostBuyPrice+1650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1485, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1485
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1485
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '21', userid = '4', storedetaildate = '2026-10-14 19:29:28' WHERE storedetailid = '2735';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1722', '2', '3', '1', '541', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '21', '4', '2026-10-14 19:29:28','0','0'); -- id=11199
CALL saveInUse(3,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '571950',  userid = '4' WHERE saveid = '3';
UPDATE save SET  inUse = 0 where saveid = 3;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('570300','1650', '0', '3', 'اضافة فاتورة مبيعات', '541', '571950', '2026-10-14 19:29:28', '4',  'sellbillController.php','1','','0'); -- id=681
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '1650', '1650', '2026-10-14', '4', '0', '0', '2026-10-14 19:29:28','اضافة فاتورة مبيعات رقم 541','1','0',null,'0','541','sellbillController.php?do=showDetail&sellbillid=541'); -- id=2457
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2457', '501', '1650', '','0'); -- id=2513
UPDATE accountstree SET name = 'خزينه المحل الارضي', customName = 'خزينه المحل الارضي', customNameEn = 'خزينه المحل الارضي', nameEn = 'خزينه المحل الارضي', parent = '40', accountNature = '0', theValue = '571950', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-30 21:35:47' WHERE id = '501';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2457', '143', '1650', '','0'); -- id=2459
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5921705', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '1485', '1485', '2026-10-14', '4', '0', '0', '2026-10-14 19:29:28','اضافة فاتورة مبيعات رقم 541 - صرف البضاعة من المخزن','1','0',null,'0','541','sellbillController.php?do=showDetail&sellbillid=541'); -- id=2458
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2458', '402', '1485', '','0'); -- id=2514
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5522559.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2458', '492', '1485', '','0'); -- id=2460
UPDATE accountstree SET name = 'مخزن المحل', customName = 'مخزن المحل', customNameEn = 'مخزن المحل', nameEn = 'مخزن المحل', parent = '49', accountNature = '0', theValue = '1312615', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 19:38:59' WHERE id = '492';
update sellbill set dailyentryid='2457,0,2458' where sellbillid=541;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 1650, 1650, 1650
                    , 1650, 1485, 1485, 1485
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,1650, 1650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1650, sellCostBuyPrice =sellCostBuyPrice+1650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1485, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1485
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1485
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1650, 1650, 1650
                    , 1650, 1485, 1485, 1485
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,1650, 1650, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1650, sellCostBuyPrice =sellCostBuyPrice+1650
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1650
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1485, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1485
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1485
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1650
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1650
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 1650, 1650, 1650
                    , 1650, 1485, 1485, 1485, 1650, 1650)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+1650, netSellCostBuyPrice = netSellCostBuyPrice+1650
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+1650
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+1650
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+1485
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+1485
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+1485
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+1650
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+1650;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acfa9824bc94 and sellbillId = 541 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 15:59:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:29:28", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 19:29:28', '4', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9731
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:08:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:38:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:38:35', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=162&type=2'); -- id=9732
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:08:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:38:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:38:41', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=show'); -- id=9733
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:08:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:38:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:38:56', '1', 'editbill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editbill&id=155'); -- id=9734
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:09:40";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:39:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:39:40', '1', 'update', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=update'); -- id=9735
BEGIN;
UPDATE costcenterdetail SET del = 1 WHERE type in( 3) and  modelid = 155;
UPDATE buybill SET  buybillsysdate = '2026-10-14 19:39:40', userid = '1',delbyuserid = '1', conditions = '1' WHERE buybillid = '155';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2000, 0, 0
                    , 515, 24, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5966
UPDATE buybilldetail SET  lastbuyprice = 515.00 , meanbuyprice = 515.00, lastbuyprice_withDiscount = 515.00, meanbuyprice_withDiscount = 515.00
        , lastbuyprice_withTax = 515.00, meanbuyprice_withTax = 515.00, lastbuyprice_withDiscountAndTax = 515.00
                where buybilldetailid = 947;
UPDATE product SET productName = 'شيرت 501 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '515.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02000',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '515',lastbuyprice_withDiscount = '0',meanbuyprice = '515.00',meanbuyprice_withDiscount = '515' , productbuypricereal = '515.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.80' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='515',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='515',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2000';
UPDATE productunit SET proUnitBuyPrice  = 515 * productnumber WHERE productid = 2000;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3358';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2000', '1', '24', '1', '155', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '24', '0', '1', '2026-10-14 18:15:59','0','0'); -- id=11200
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2007, 0, 0
                    , 700, 15, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5967
UPDATE buybilldetail SET  lastbuyprice = 700.00 , meanbuyprice = 700.00, lastbuyprice_withDiscount = 700.00, meanbuyprice_withDiscount = 700.00
        , lastbuyprice_withTax = 700.00, meanbuyprice_withTax = 700.00, lastbuyprice_withDiscountAndTax = 700.00
                where buybilldetailid = 948;
UPDATE product SET productName = 'جاكيت 502 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '700.00', productSellAllPrice = '750.00', productSellUnitPrice = '750.00', productSellHalfPrice = '750.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02007',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '700',lastbuyprice_withDiscount = '0',meanbuyprice = '700.00',meanbuyprice_withDiscount = '700' , productbuypricereal = '700.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '7.14' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='700',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='700',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2007';
UPDATE productunit SET proUnitBuyPrice  = 700 * productnumber WHERE productid = 2007;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3365';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2007', '1', '15', '1', '155', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '15', '0', '1', '2026-10-14 18:15:59','0','0'); -- id=11201
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2008, 0, 0
                    , 900, 18, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5968
UPDATE buybilldetail SET  lastbuyprice = 900.00 , meanbuyprice = 900.00, lastbuyprice_withDiscount = 900.00, meanbuyprice_withDiscount = 900.00
        , lastbuyprice_withTax = 900.00, meanbuyprice_withTax = 900.00, lastbuyprice_withDiscountAndTax = 900.00
                where buybilldetailid = 949;
UPDATE product SET productName = 'جاكيت 503 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '900.00', productSellAllPrice = '950.00', productSellUnitPrice = '950.00', productSellHalfPrice = '950.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02008',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '900',lastbuyprice_withDiscount = '0',meanbuyprice = '900.00',meanbuyprice_withDiscount = '900' , productbuypricereal = '900.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.56' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='900',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='900',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2008';
UPDATE productunit SET proUnitBuyPrice  = 900 * productnumber WHERE productid = 2008;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3366';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2008', '1', '18', '1', '155', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '18', '0', '1', '2026-10-14 18:15:59','0','0'); -- id=11202
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2009, 0, 0
                    , 900, 18, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5969
UPDATE buybilldetail SET  lastbuyprice = 900.00 , meanbuyprice = 900.00, lastbuyprice_withDiscount = 900.00, meanbuyprice_withDiscount = 900.00
        , lastbuyprice_withTax = 900.00, meanbuyprice_withTax = 900.00, lastbuyprice_withDiscountAndTax = 900.00
                where buybilldetailid = 950;
UPDATE product SET productName = 'جاكيت 504 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '900.00', productSellAllPrice = '950.00', productSellUnitPrice = '950.00', productSellHalfPrice = '950.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02009',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '900',lastbuyprice_withDiscount = '0',meanbuyprice = '900.00',meanbuyprice_withDiscount = '900' , productbuypricereal = '900.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.56' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='900',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='900',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2009';
UPDATE productunit SET proUnitBuyPrice  = 900 * productnumber WHERE productid = 2009;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3367';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2009', '1', '18', '1', '155', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '18', '0', '1', '2026-10-14 18:15:59','0','0'); -- id=11203
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2010, 0, 0
                    , 800, 18, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5970
UPDATE buybilldetail SET  lastbuyprice = 800.00 , meanbuyprice = 800.00, lastbuyprice_withDiscount = 800.00, meanbuyprice_withDiscount = 800.00
        , lastbuyprice_withTax = 800.00, meanbuyprice_withTax = 800.00, lastbuyprice_withDiscountAndTax = 800.00
                where buybilldetailid = 951;
UPDATE product SET productName = 'جاكيت 505 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02010',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '0',meanbuyprice = '800.00',meanbuyprice_withDiscount = '800' , productbuypricereal = '800.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.25' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2010';
UPDATE productunit SET proUnitBuyPrice  = 800 * productnumber WHERE productid = 2010;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3368';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2010', '1', '18', '1', '155', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '18', '0', '1', '2026-10-14 18:15:59','0','0'); -- id=11204
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2002, 0, 0
                    , 515, 15, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5971
UPDATE buybilldetail SET  lastbuyprice = 515.00 , meanbuyprice = 515.00, lastbuyprice_withDiscount = 515.00, meanbuyprice_withDiscount = 515.00
        , lastbuyprice_withTax = 515.00, meanbuyprice_withTax = 515.00, lastbuyprice_withDiscountAndTax = 515.00
                where buybilldetailid = 952;
UPDATE product SET productName = 'شيرت 506 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '515.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02002',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '515',lastbuyprice_withDiscount = '0',meanbuyprice = '515.00',meanbuyprice_withDiscount = '515' , productbuypricereal = '515.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.80' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='515',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='515',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2002';
UPDATE productunit SET proUnitBuyPrice  = 515 * productnumber WHERE productid = 2002;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3360';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2002', '1', '15', '1', '155', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '15', '0', '1', '2026-10-14 18:15:59','0','0'); -- id=11205
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2001, 0, 0
                    , 435, 15, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5972
UPDATE buybilldetail SET  lastbuyprice = 435.00 , meanbuyprice = 435.00, lastbuyprice_withDiscount = 435.00, meanbuyprice_withDiscount = 435.00
        , lastbuyprice_withTax = 435.00, meanbuyprice_withTax = 435.00, lastbuyprice_withDiscountAndTax = 435.00
                where buybilldetailid = 953;
UPDATE product SET productName = 'شيرت 507 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '435.00', productSellAllPrice = '470.00', productSellUnitPrice = '470.00', productSellHalfPrice = '470.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02001',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '435',lastbuyprice_withDiscount = '0',meanbuyprice = '435.00',meanbuyprice_withDiscount = '435' , productbuypricereal = '435.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.05' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='435',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='435',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2001';
UPDATE productunit SET proUnitBuyPrice  = 435 * productnumber WHERE productid = 2001;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3359';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2001', '1', '15', '1', '155', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '15', '0', '1', '2026-10-14 18:15:59','0','0'); -- id=11206
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2003, 0, 0
                    , 435, 15, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-15, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5973
UPDATE buybilldetail SET  lastbuyprice = 435.00 , meanbuyprice = 435.00, lastbuyprice_withDiscount = 435.00, meanbuyprice_withDiscount = 435.00
        , lastbuyprice_withTax = 435.00, meanbuyprice_withTax = 435.00, lastbuyprice_withDiscountAndTax = 435.00
                where buybilldetailid = 954;
UPDATE product SET productName = 'شيرت 508 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '435.00', productSellAllPrice = '470.00', productSellUnitPrice = '470.00', productSellHalfPrice = '470.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02003',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '435',lastbuyprice_withDiscount = '0',meanbuyprice = '435.00',meanbuyprice_withDiscount = '435' , productbuypricereal = '435.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.05' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='435',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='435',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2003';
UPDATE productunit SET proUnitBuyPrice  = 435 * productnumber WHERE productid = 2003;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3361';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2003', '1', '15', '1', '155', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '15', '0', '1', '2026-10-14 18:15:59','0','0'); -- id=11207
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2004, 0, 0
                    , 515, 18, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5974
UPDATE buybilldetail SET  lastbuyprice = 515.00 , meanbuyprice = 515.00, lastbuyprice_withDiscount = 515.00, meanbuyprice_withDiscount = 515.00
        , lastbuyprice_withTax = 515.00, meanbuyprice_withTax = 515.00, lastbuyprice_withDiscountAndTax = 515.00
                where buybilldetailid = 955;
UPDATE product SET productName = 'شيرت 509 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '515.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02004',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '515',lastbuyprice_withDiscount = '0',meanbuyprice = '515.00',meanbuyprice_withDiscount = '515' , productbuypricereal = '515.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.80' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='515',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='515',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2004';
UPDATE productunit SET proUnitBuyPrice  = 515 * productnumber WHERE productid = 2004;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3362';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2004', '1', '18', '1', '155', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '18', '0', '1', '2026-10-14 18:15:59','0','0'); -- id=11208
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2011, 0, 0
                    , 730, 18, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-18, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5975
UPDATE buybilldetail SET  lastbuyprice = 730.00 , meanbuyprice = 730.00, lastbuyprice_withDiscount = 730.00, meanbuyprice_withDiscount = 730.00
        , lastbuyprice_withTax = 730.00, meanbuyprice_withTax = 730.00, lastbuyprice_withDiscountAndTax = 730.00
                where buybilldetailid = 956;
UPDATE product SET productName = 'جاكيت 511 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '730.00', productSellAllPrice = '780.00', productSellUnitPrice = '780.00', productSellHalfPrice = '780.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02011',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '730',lastbuyprice_withDiscount = '0',meanbuyprice = '730.00',meanbuyprice_withDiscount = '730' , productbuypricereal = '730.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.85' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='730',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='730',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2011';
UPDATE productunit SET proUnitBuyPrice  = 730 * productnumber WHERE productid = 2011;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3369';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2011', '1', '18', '1', '155', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '18', '0', '1', '2026-10-14 18:15:59','0','0'); -- id=11209
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2012, 0, 0
                    , 800, 12, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5976
UPDATE buybilldetail SET  lastbuyprice = 800.00 , meanbuyprice = 800.00, lastbuyprice_withDiscount = 800.00, meanbuyprice_withDiscount = 800.00
        , lastbuyprice_withTax = 800.00, meanbuyprice_withTax = 800.00, lastbuyprice_withDiscountAndTax = 800.00
                where buybilldetailid = 957;
UPDATE product SET productName = 'جاكيت 512 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02012',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '0',meanbuyprice = '800.00',meanbuyprice_withDiscount = '800' , productbuypricereal = '800.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.25' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2012';
UPDATE productunit SET proUnitBuyPrice  = 800 * productnumber WHERE productid = 2012;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3370';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2012', '1', '12', '1', '155', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '12', '0', '1', '2026-10-14 18:15:59','0','0'); -- id=11210
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2013, 0, 0
                    , 1100, 12, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5977
UPDATE buybilldetail SET  lastbuyprice = 1100.00 , meanbuyprice = 1100.00, lastbuyprice_withDiscount = 1100.00, meanbuyprice_withDiscount = 1100.00
        , lastbuyprice_withTax = 1100.00, meanbuyprice_withTax = 1100.00, lastbuyprice_withDiscountAndTax = 1100.00
                where buybilldetailid = 958;
UPDATE product SET productName = 'ترينج 514 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '1100.00', productSellAllPrice = '1150.00', productSellUnitPrice = '1150.00', productSellHalfPrice = '1150.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02013',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '1100',lastbuyprice_withDiscount = '0',meanbuyprice = '1100.00',meanbuyprice_withDiscount = '1100' , productbuypricereal = '1100.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.55' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='1100',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='1100',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2013';
UPDATE productunit SET proUnitBuyPrice  = 1100 * productnumber WHERE productid = 2013;
UPDATE storedetail SET  productquantity = '-12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3371';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2013', '1', '12', '1', '155', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '0', '-12', '1', '2026-10-14 18:15:59','0','0'); -- id=11211
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2005, 0, 0
                    , 365, 24, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5978
UPDATE buybilldetail SET  lastbuyprice = 365.00 , meanbuyprice = 365.00, lastbuyprice_withDiscount = 365.00, meanbuyprice_withDiscount = 365.00
        , lastbuyprice_withTax = 365.00, meanbuyprice_withTax = 365.00, lastbuyprice_withDiscountAndTax = 365.00
                where buybilldetailid = 959;
UPDATE product SET productName = 'شيرت 515 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '365.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02005',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '365',lastbuyprice_withDiscount = '0',meanbuyprice = '365.00',meanbuyprice_withDiscount = '365' , productbuypricereal = '365.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '9.59' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2005';
UPDATE productunit SET proUnitBuyPrice  = 365 * productnumber WHERE productid = 2005;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3363';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2005', '1', '24', '1', '155', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '24', '0', '1', '2026-10-14 18:15:59','0','0'); -- id=11212
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2006, 0, 0
                    , 365, 24, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5979
UPDATE buybilldetail SET  lastbuyprice = 365.00 , meanbuyprice = 365.00, lastbuyprice_withDiscount = 365.00, meanbuyprice_withDiscount = 365.00
        , lastbuyprice_withTax = 365.00, meanbuyprice_withTax = 365.00, lastbuyprice_withDiscountAndTax = 365.00
                where buybilldetailid = 960;
UPDATE product SET productName = 'شيرت 516 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '365.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02006',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '365',lastbuyprice_withDiscount = '0',meanbuyprice = '365.00',meanbuyprice_withDiscount = '365' , productbuypricereal = '365.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '9.59' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2006';
UPDATE productunit SET proUnitBuyPrice  = 365 * productnumber WHERE productid = 2006;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3364';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2006', '1', '24', '1', '155', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '24', '0', '1', '2026-10-14 18:15:59','0','0'); -- id=11213
UPDATE supplier SET  suppliercurrentDebt = '-50000',suppliercurrentDebtInCurrency= '-50000' , userid = '1', supplierdate = '2026-10-14 19:39:40'   WHERE supplierid = '145';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('145', '103165.00', '153165.00', '1', 'حذف فاتورة مشتريات - للتعديل', '155', '-50000', '2026-10-14 18:15:59', '1', 'buyBillController.php', 'حذف فاتورة مشتريات - للتعديل', '0','', '0','1','1','153165','1','103165','153165','-50000','0',''); -- id=501
UPDATE productserial SET del = 1
		 WHERE billid = 155;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,deletedbuyid,controlname,payedtax,costcenterid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf9cafc78a7', '2026-10-14 18:15:59', '145', '-50000.00', '98785', '0', '0', '148785.00', '148785.00', '0.00', '148785', '1', '2026-10-14 19:39:40', '', '1', '0', '', '1', '1','1','155','buyBillController.php','0.00','-1','1','0','0','.','0','0','0','0','0','0'); -- id=163
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02000', '163', '162', '2000', '24.00', '515', '12360.00', '0.00', '', '2026-10-14 19:39:40', '2000','','','0','0','0','0','0',null,'515','12360','0','0','0','0','0','0','0','0','1'); -- id=997
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2000, 0, 0
                    , 515, 24, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyprice = 515,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5966
UPDATE product SET  productBuyPrice = "515" WHERE productId = 2000 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 997 ;
UPDATE product SET productName = 'شيرت 501 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '515.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02000',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '515',lastbuyprice_withDiscount = '515',meanbuyprice = '515',meanbuyprice_withDiscount = '515' , productbuypricereal = '515.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.80' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='515',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='515',meanbuyprice_withTax='257.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='515',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2000';
UPDATE buybilldetail SET  lastbuyprice = 515 , meanbuyprice = 515, lastbuyprice_withDiscount = 515, meanbuyprice_withDiscount = 515
        , lastbuyprice_withTax = 515, meanbuyprice_withTax = 257.5, lastbuyprice_withDiscountAndTax = 515
                where buybilldetailid = 997;
UPDATE productunit SET proUnitBuyPrice  = 515 * productnumber WHERE productid = 2000;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3358';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2000', '1', '24', '0', '163', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 18:15:59','0','0'); -- id=11214
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02007', '163', '163', '2007', '15.00', '700', '10500.00', '0.00', '', '2026-10-14 19:39:40', '2007','','','0','0','0','0','0',null,'700','10500','0','0','0','0','0','0','0','0','1'); -- id=998
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2007, 0, 0
                    , 700, 15, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyprice = 700,
                        buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5967
UPDATE product SET  productBuyPrice = "700" WHERE productId = 2007 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 998 ;
UPDATE product SET productName = 'جاكيت 502 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '700.00', productSellAllPrice = '750.00', productSellUnitPrice = '750.00', productSellHalfPrice = '750.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02007',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '700',lastbuyprice_withDiscount = '700',meanbuyprice = '700',meanbuyprice_withDiscount = '700' , productbuypricereal = '700.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '7.14' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='700',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='700',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='700',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2007';
UPDATE buybilldetail SET  lastbuyprice = 700 , meanbuyprice = 700, lastbuyprice_withDiscount = 700, meanbuyprice_withDiscount = 700
        , lastbuyprice_withTax = 700, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 700
                where buybilldetailid = 998;
UPDATE productunit SET proUnitBuyPrice  = 700 * productnumber WHERE productid = 2007;
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3365';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2007', '1', '15', '0', '163', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '15', '1', '2026-10-14 18:15:59','0','0'); -- id=11215
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02008', '163', '163', '2008', '18.00', '900', '16200.00', '0.00', '', '2026-10-14 19:39:40', '2008','','','0','0','0','0','0',null,'900','16200','0','0','0','0','0','0','0','0','1'); -- id=999
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2008, 0, 0
                    , 900, 18, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyprice = 900,
                        buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5968
UPDATE product SET  productBuyPrice = "900" WHERE productId = 2008 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 999 ;
UPDATE product SET productName = 'جاكيت 503 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '900.00', productSellAllPrice = '950.00', productSellUnitPrice = '950.00', productSellHalfPrice = '950.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02008',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '900',lastbuyprice_withDiscount = '900',meanbuyprice = '900',meanbuyprice_withDiscount = '900' , productbuypricereal = '900.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.56' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='900',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='900',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='900',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2008';
UPDATE buybilldetail SET  lastbuyprice = 900 , meanbuyprice = 900, lastbuyprice_withDiscount = 900, meanbuyprice_withDiscount = 900
        , lastbuyprice_withTax = 900, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 900
                where buybilldetailid = 999;
UPDATE productunit SET proUnitBuyPrice  = 900 * productnumber WHERE productid = 2008;
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3366';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2008', '1', '18', '0', '163', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '18', '1', '2026-10-14 18:15:59','0','0'); -- id=11216
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02009', '163', '163', '2009', '18.00', '900', '16200.00', '0.00', '', '2026-10-14 19:39:40', '2009','','','0','0','0','0','0',null,'900','16200','0','0','0','0','0','0','0','0','1'); -- id=1000
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2009, 0, 0
                    , 900, 18, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyprice = 900,
                        buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5969
UPDATE product SET  productBuyPrice = "900" WHERE productId = 2009 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1000 ;
UPDATE product SET productName = 'جاكيت 504 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '900.00', productSellAllPrice = '950.00', productSellUnitPrice = '950.00', productSellHalfPrice = '950.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02009',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '900',lastbuyprice_withDiscount = '900',meanbuyprice = '900',meanbuyprice_withDiscount = '900' , productbuypricereal = '900.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.56' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='900',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='900',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='900',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2009';
UPDATE buybilldetail SET  lastbuyprice = 900 , meanbuyprice = 900, lastbuyprice_withDiscount = 900, meanbuyprice_withDiscount = 900
        , lastbuyprice_withTax = 900, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 900
                where buybilldetailid = 1000;
UPDATE productunit SET proUnitBuyPrice  = 900 * productnumber WHERE productid = 2009;
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3367';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2009', '1', '18', '0', '163', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '18', '1', '2026-10-14 18:15:59','0','0'); -- id=11217
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02010', '163', '163', '2010', '18.00', '800', '14400.00', '0.00', '', '2026-10-14 19:39:40', '2010','','','0','0','0','0','0',null,'800','14400','0','0','0','0','0','0','0','0','1'); -- id=1001
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2010, 0, 0
                    , 800, 18, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyprice = 800,
                        buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5970
UPDATE product SET  productBuyPrice = "800" WHERE productId = 2010 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1001 ;
UPDATE product SET productName = 'جاكيت 505 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02010',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.25' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2010';
UPDATE buybilldetail SET  lastbuyprice = 800 , meanbuyprice = 800, lastbuyprice_withDiscount = 800, meanbuyprice_withDiscount = 800
        , lastbuyprice_withTax = 800, meanbuyprice_withTax = 400, lastbuyprice_withDiscountAndTax = 800
                where buybilldetailid = 1001;
UPDATE productunit SET proUnitBuyPrice  = 800 * productnumber WHERE productid = 2010;
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3368';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2010', '1', '18', '0', '163', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '18', '1', '2026-10-14 18:15:59','0','0'); -- id=11218
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02002', '163', '162', '2002', '15.00', '515', '7725.00', '0.00', '', '2026-10-14 19:39:40', '2002','','','0','0','0','0','0',null,'515','7725','0','0','0','0','0','0','0','0','1'); -- id=1002
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2002, 0, 0
                    , 515, 15, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyprice = 515,
                        buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5971
UPDATE product SET  productBuyPrice = "515" WHERE productId = 2002 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1002 ;
UPDATE product SET productName = 'شيرت 506 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '515.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02002',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '515',lastbuyprice_withDiscount = '515',meanbuyprice = '515',meanbuyprice_withDiscount = '515' , productbuypricereal = '515.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.80' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='515',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='515',meanbuyprice_withTax='257.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='515',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2002';
UPDATE buybilldetail SET  lastbuyprice = 515 , meanbuyprice = 515, lastbuyprice_withDiscount = 515, meanbuyprice_withDiscount = 515
        , lastbuyprice_withTax = 515, meanbuyprice_withTax = 257.5, lastbuyprice_withDiscountAndTax = 515
                where buybilldetailid = 1002;
UPDATE productunit SET proUnitBuyPrice  = 515 * productnumber WHERE productid = 2002;
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3360';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2002', '1', '15', '0', '163', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '15', '1', '2026-10-14 18:15:59','0','0'); -- id=11219
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02001', '163', '162', '2001', '15.00', '435', '6525.00', '0.00', '', '2026-10-14 19:39:40', '2001','','','0','0','0','0','0',null,'435','6525','0','0','0','0','0','0','0','0','1'); -- id=1003
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2001, 0, 0
                    , 435, 15, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyprice = 435,
                        buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5972
UPDATE product SET  productBuyPrice = "435" WHERE productId = 2001 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1003 ;
UPDATE product SET productName = 'شيرت 507 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '435.00', productSellAllPrice = '470.00', productSellUnitPrice = '470.00', productSellHalfPrice = '470.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02001',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '435',lastbuyprice_withDiscount = '435',meanbuyprice = '435',meanbuyprice_withDiscount = '435' , productbuypricereal = '435.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.05' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='435',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='435',meanbuyprice_withTax='217.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='435',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2001';
UPDATE buybilldetail SET  lastbuyprice = 435 , meanbuyprice = 435, lastbuyprice_withDiscount = 435, meanbuyprice_withDiscount = 435
        , lastbuyprice_withTax = 435, meanbuyprice_withTax = 217.5, lastbuyprice_withDiscountAndTax = 435
                where buybilldetailid = 1003;
UPDATE productunit SET proUnitBuyPrice  = 435 * productnumber WHERE productid = 2001;
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3359';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2001', '1', '15', '0', '163', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '15', '1', '2026-10-14 18:15:59','0','0'); -- id=11220
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02003', '163', '162', '2003', '15.00', '435', '6525.00', '0.00', '', '2026-10-14 19:39:40', '2003','','','0','0','0','0','0',null,'435','6525','0','0','0','0','0','0','0','0','1'); -- id=1004
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2003, 0, 0
                    , 435, 15, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyprice = 435,
                        buyQuantity =buyQuantity+15, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5973
UPDATE product SET  productBuyPrice = "435" WHERE productId = 2003 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1004 ;
UPDATE product SET productName = 'شيرت 508 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '435.00', productSellAllPrice = '470.00', productSellUnitPrice = '470.00', productSellHalfPrice = '470.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02003',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '435',lastbuyprice_withDiscount = '435',meanbuyprice = '435',meanbuyprice_withDiscount = '435' , productbuypricereal = '435.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.05' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='435',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='435',meanbuyprice_withTax='217.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='435',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2003';
UPDATE buybilldetail SET  lastbuyprice = 435 , meanbuyprice = 435, lastbuyprice_withDiscount = 435, meanbuyprice_withDiscount = 435
        , lastbuyprice_withTax = 435, meanbuyprice_withTax = 217.5, lastbuyprice_withDiscountAndTax = 435
                where buybilldetailid = 1004;
UPDATE productunit SET proUnitBuyPrice  = 435 * productnumber WHERE productid = 2003;
UPDATE storedetail SET  productquantity = '15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3361';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2003', '1', '15', '0', '163', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '15', '1', '2026-10-14 18:15:59','0','0'); -- id=11221
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02004', '163', '162', '2004', '18.00', '515', '9270.00', '0.00', '', '2026-10-14 19:39:40', '2004','','','0','0','0','0','0',null,'515','9270','0','0','0','0','0','0','0','0','1'); -- id=1005
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2004, 0, 0
                    , 515, 18, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyprice = 515,
                        buyQuantity =buyQuantity+18, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5974
UPDATE product SET  productBuyPrice = "515" WHERE productId = 2004 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1005 ;
UPDATE product SET productName = 'شيرت 509 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '515.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02004',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '515',lastbuyprice_withDiscount = '515',meanbuyprice = '515',meanbuyprice_withDiscount = '515' , productbuypricereal = '515.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.80' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='515',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='515',meanbuyprice_withTax='257.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='515',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2004';
UPDATE buybilldetail SET  lastbuyprice = 515 , meanbuyprice = 515, lastbuyprice_withDiscount = 515, meanbuyprice_withDiscount = 515
        , lastbuyprice_withTax = 515, meanbuyprice_withTax = 257.5, lastbuyprice_withDiscountAndTax = 515
                where buybilldetailid = 1005;
UPDATE productunit SET proUnitBuyPrice  = 515 * productnumber WHERE productid = 2004;
UPDATE storedetail SET  productquantity = '18', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3362';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2004', '1', '18', '0', '163', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '18', '1', '2026-10-14 18:15:59','0','0'); -- id=11222
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02011', '163', '163', '2011', '12', '730', '8760.00', '0.00', '', '2026-10-14 19:39:40', '2011','','','0','0','0','0','0',null,'730','8760','0','0','0','0','0','0','0','0','1'); -- id=1006
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2011, 0, 0
                    , 730, 12, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyprice = 730,
                        buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5975
UPDATE product SET  productBuyPrice = "730" WHERE productId = 2011 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1006 ;
UPDATE product SET productName = 'جاكيت 511 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '730.00', productSellAllPrice = '780.00', productSellUnitPrice = '780.00', productSellHalfPrice = '780.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02011',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '730',lastbuyprice_withDiscount = '730',meanbuyprice = '730',meanbuyprice_withDiscount = '730' , productbuypricereal = '730.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.85' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='730',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='730',meanbuyprice_withTax='292',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='730',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2011';
UPDATE buybilldetail SET  lastbuyprice = 730 , meanbuyprice = 730, lastbuyprice_withDiscount = 730, meanbuyprice_withDiscount = 730
        , lastbuyprice_withTax = 730, meanbuyprice_withTax = 292, lastbuyprice_withDiscountAndTax = 730
                where buybilldetailid = 1006;
UPDATE productunit SET proUnitBuyPrice  = 730 * productnumber WHERE productid = 2011;
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3369';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2011', '1', '12', '0', '163', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '12', '1', '2026-10-14 18:15:59','0','0'); -- id=11223
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02012', '163', '163', '2012', '12.00', '800', '9600.00', '0.00', '', '2026-10-14 19:39:40', '2012','','','0','0','0','0','0',null,'800','9600','0','0','0','0','0','0','0','0','1'); -- id=1007
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2012, 0, 0
                    , 800, 12, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyprice = 800,
                        buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5976
UPDATE product SET  productBuyPrice = "800" WHERE productId = 2012 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1007 ;
UPDATE product SET productName = 'جاكيت 512 يوني شيرت', productDescription = '', productCatId = '163', productBuyPrice = '800.00', productSellAllPrice = '850.00', productSellUnitPrice = '850.00', productSellHalfPrice = '850.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02012',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '800',lastbuyprice_withDiscount = '800',meanbuyprice = '800',meanbuyprice_withDiscount = '800' , productbuypricereal = '800.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.25' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='800',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='800',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='800',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2012';
UPDATE buybilldetail SET  lastbuyprice = 800 , meanbuyprice = 800, lastbuyprice_withDiscount = 800, meanbuyprice_withDiscount = 800
        , lastbuyprice_withTax = 800, meanbuyprice_withTax = 400, lastbuyprice_withDiscountAndTax = 800
                where buybilldetailid = 1007;
UPDATE productunit SET proUnitBuyPrice  = 800 * productnumber WHERE productid = 2012;
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3370';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2012', '1', '12', '0', '163', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '12', '1', '2026-10-14 18:15:59','0','0'); -- id=11224
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02013', '163', '162', '2013', '12.00', '1100', '13200.00', '0.00', '', '2026-10-14 19:39:40', '2013','','','0','0','0','0','0',null,'1100','13200','0','0','0','0','0','0','0','0','1'); -- id=1008
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2013, 0, 0
                    , 1100, 12, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyprice = 1100,
                        buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5977
UPDATE product SET  productBuyPrice = "1100" WHERE productId = 2013 ;
UPDATE buybilldetail SET  quantitybefore = -12 WHERE buybilldetailid = 1008 ;
UPDATE product SET productName = 'ترينج 514 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '1100.00', productSellAllPrice = '1150.00', productSellUnitPrice = '1150.00', productSellHalfPrice = '1150.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02013',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '1100',lastbuyprice_withDiscount = '1100',meanbuyprice = '1100',meanbuyprice_withDiscount = '1100' , productbuypricereal = '1100.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.55' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='1100',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='1100',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='1100',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2013';
UPDATE buybilldetail SET  lastbuyprice = 1100 , meanbuyprice = 1100, lastbuyprice_withDiscount = 1100, meanbuyprice_withDiscount = 1100
        , lastbuyprice_withTax = 1100, meanbuyprice_withTax = 550, lastbuyprice_withDiscountAndTax = 1100
                where buybilldetailid = 1008;
UPDATE productunit SET proUnitBuyPrice  = 1100 * productnumber WHERE productid = 2013;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3371';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2013', '1', '12', '0', '163', 'اضافة فاتورة مشتريات', 'buyBillController.php', '-12', '0', '1', '2026-10-14 18:15:59','0','0'); -- id=11225
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02005', '163', '162', '2005', '24.00', '365', '8760.00', '0.00', '', '2026-10-14 19:39:40', '2005','','','0','0','0','0','0',null,'365','8760','0','0','0','0','0','0','0','0','1'); -- id=1009
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2005, 0, 0
                    , 365, 24, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyprice = 365,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5978
UPDATE product SET  productBuyPrice = "365" WHERE productId = 2005 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1009 ;
UPDATE product SET productName = 'شيرت 515 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '365.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02005',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '365',lastbuyprice_withDiscount = '365',meanbuyprice = '365',meanbuyprice_withDiscount = '365' , productbuypricereal = '365.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '9.59' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='182.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2005';
UPDATE buybilldetail SET  lastbuyprice = 365 , meanbuyprice = 365, lastbuyprice_withDiscount = 365, meanbuyprice_withDiscount = 365
        , lastbuyprice_withTax = 365, meanbuyprice_withTax = 182.5, lastbuyprice_withDiscountAndTax = 365
                where buybilldetailid = 1009;
UPDATE productunit SET proUnitBuyPrice  = 365 * productnumber WHERE productid = 2005;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3363';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2005', '1', '24', '0', '163', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 18:15:59','0','0'); -- id=11226
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02006', '163', '162', '2006', '24.00', '365', '8760.00', '0.00', '', '2026-10-14 19:39:40', '2006','','','0','0','0','0','0',null,'365','8760','0','0','0','0','0','0','0','0','1'); -- id=1010
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 18:15:59', 1, 2006, 0, 0
                    , 365, 24, 0, 0, 1, '2026-10-14 19:39:40')
                ON DUPLICATE KEY UPDATE buyprice = 365,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 19:39:40' ; -- id=5979
UPDATE product SET  productBuyPrice = "365" WHERE productId = 2006 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1010 ;
UPDATE product SET productName = 'شيرت 516 يوني شيرت', productDescription = '', productCatId = '162', productBuyPrice = '365.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02006',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '365',lastbuyprice_withDiscount = '365',meanbuyprice = '365',meanbuyprice_withDiscount = '365' , productbuypricereal = '365.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '9.59' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='182.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2006';
UPDATE buybilldetail SET  lastbuyprice = 365 , meanbuyprice = 365, lastbuyprice_withDiscount = 365, meanbuyprice_withDiscount = 365
        , lastbuyprice_withTax = 365, meanbuyprice_withTax = 182.5, lastbuyprice_withDiscountAndTax = 365
                where buybilldetailid = 1010;
UPDATE productunit SET proUnitBuyPrice  = 365 * productnumber WHERE productid = 2006;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3364';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2006', '1', '24', '0', '163', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 18:15:59','0','0'); -- id=11227
DELETE FROM productserial WHERE billid = 155
		and type =0 
		;
UPDATE supplier SET  suppliercurrentDebt = '98785',suppliercurrentDebtInCurrency= '98785' , userid = '1', supplierdate = '2026-10-14 19:39:40'   WHERE supplierid = '145';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('145', '-50000.00', '148785', '0', 'اضافة فاتورة مشتريات', '163', '98785', '2026-10-14 19:39:40', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','153165','1','-50000','148785','98785','0',''); -- id=502
UPDATE dailyentry SET totalcreditor = '153165.00', totaldebtor = '153165.00', thedate = '2026-10-14', userid = '1', `condition` = '0', reverseofid = '-10', dDateTime = '2026-10-14 18:31:36', entryComment = 'اضافة فاتورة مشتريات رقم 155', fromFlag = '1',related='0',isopeningentry='0',operationId='155',operationDetailLink='buyBillController.php?do=details&id=155' WHERE id = '2439';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '153165.00', '153165.00', '2026-10-14', '1', '0', '2439', '2026-10-14 19:39:40','تم عكس القيد رقم 2439 ','1','0','0','0','0',''); -- id=2459
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2459', '382', '153165.00', '','0'); -- id=2461
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23016146.73', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2459', '628', '153165.00', '','0'); -- id=2515
UPDATE accountstree SET name = 'يوني شيرت', customName = 'يوني شيرت', customNameEn = 'يوني شيرت', nameEn = 'يوني شيرت', parent = '81', accountNature = '1', theValue = '-50000', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-09 21:25:49' WHERE id = '628';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '148785', '148785', '2026-10-14', '1', '0', '0', '2026-10-14 19:39:40','اضافة فاتورة مشتريات رقم 163','1','0',null,'0','163','buyBillController.php?do=details&id=163'); -- id=2460
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2460', '382', '148785', '','0'); -- id=2516
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23164931.73', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2460', '628', '148785', '','0'); -- id=2462
UPDATE accountstree SET name = 'يوني شيرت', customName = 'يوني شيرت', customNameEn = 'يوني شيرت', nameEn = 'يوني شيرت', parent = '81', accountNature = '1', theValue = '98785', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-09 21:25:49' WHERE id = '628';
update buybill set dailyentryid='2460,0' where buybillid=163;
UPDATE product SET overAllAveragePrice = 515 WHERE productId = 2000;UPDATE product SET overAllAveragePrice = 435 WHERE productId = 2001;UPDATE product SET overAllAveragePrice = 515 WHERE productId = 2002;UPDATE product SET overAllAveragePrice = 435 WHERE productId = 2003;UPDATE product SET overAllAveragePrice = 515 WHERE productId = 2004;UPDATE product SET overAllAveragePrice = 365 WHERE productId = 2005;UPDATE product SET overAllAveragePrice = 365 WHERE productId = 2006;UPDATE product SET overAllAveragePrice = 700 WHERE productId = 2007;UPDATE product SET overAllAveragePrice = 900 WHERE productId = 2008;UPDATE product SET overAllAveragePrice = 900 WHERE productId = 2009;UPDATE product SET overAllAveragePrice = 800 WHERE productId = 2010;UPDATE product SET overAllAveragePrice = 730 WHERE productId = 2011;UPDATE product SET overAllAveragePrice = 800 WHERE productId = 2012;UPDATE product SET overAllAveragePrice = 1100 WHERE productId = 2013;;
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:09:40";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:39:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:39:40', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=163'); -- id=9736
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:12:06";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:42:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 19:42:06', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9737
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:12:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:42:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 19:42:16', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9738
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:12:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:42:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('returnBuyBillController.php', '2026-10-14 19:42:37', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/returnBuyBillController.php?do=show'); -- id=9739
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:12:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:42:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 19:42:58', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=161&type=2'); -- id=9740
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:13:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:43:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('returnBuyBillController.php', '2026-10-14 19:43:04', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/returnBuyBillController.php?do=show'); -- id=9741
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:13:08";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:43:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('returnBuyBillController.php', '2026-10-14 19:43:08', '1', 'details', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/returnBuyBillController.php?do=details&id=20'); -- id=9742
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:15:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:45:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 19:45:37', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9743
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:15:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:45:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 19:45:44', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9744
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:22:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:52:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('returnBuyBillController.php', '2026-10-14 19:52:39', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/returnBuyBillController.php?do=show'); -- id=9745
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:22:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:52:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:52:45', '1', 'editreturn', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editreturn&id=20'); -- id=9746
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:24:25";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:54:25", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 19:54:25', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9747
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 16:24:25";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 19:54:25', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9748
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:24:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:54:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 19:54:28', '1', 'update', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=update'); -- id=9749
BEGIN;
UPDATE costcenterdetail SET del = 1 WHERE type in( 4) and  modelid = 20;
UPDATE returnbuybill SET  returnbuybillsysdate = '2026-10-14 19:54:28', userid = null,delbyuserid = '1', conditions = '1' WHERE returnbuybillid = '20';
UPDATE returnbuybilldetail SET  lastbuyprice = 360.00 , meanbuyprice = 267.50, lastbuyprice_withDiscount = 360.00, meanbuyprice_withDiscount = 267.50
        , lastbuyprice_withTax = 360.00, meanbuyprice_withTax = 267.50, lastbuyprice_withDiscountAndTax = 360.00
                where returnbuybilldetailid = 76;
UPDATE product SET productName = 'الصخره 900', productDescription = '', productCatId = '10', productBuyPrice = '360.00', productSellAllPrice = '375.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09107',type ='0', expireDate = '0' , dailyentryId = '122',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '360',meanbuyprice = '355',meanbuyprice_withDiscount = '355' , productbuypricereal = '355.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='355',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9107',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='355',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '767';
UPDATE productunit SET proUnitBuyPrice  = 360 * productnumber WHERE productid = 767;
UPDATE storedetail SET  productquantity = '37', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '767';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('767', '1', '35', '0', '20', 'حذف فاتورة مردودات مشتريات', 'returnBuyBillController.php', '2', '37', '1', '2026-10-14 09:10:28','0','0'); -- id=11228
UPDATE returnbuybilldetail SET  lastbuyprice = 380.00 , meanbuyprice = 380.00, lastbuyprice_withDiscount = 380.00, meanbuyprice_withDiscount = 380.00
        , lastbuyprice_withTax = 380.00, meanbuyprice_withTax = 0.00, lastbuyprice_withDiscountAndTax = 380.00
                where returnbuybilldetailid = 77;
UPDATE product SET productName = 'جينز 1565 الصخره', productDescription = '', productCatId = '10', productBuyPrice = '380.00', productSellAllPrice = '395.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '05207',type ='0', expireDate = '0' , dailyentryId = '119',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '380',meanbuyprice = '380',meanbuyprice_withDiscount = '380' , productbuypricereal = '375.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='375',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='5207',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='380',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '764';
UPDATE productunit SET proUnitBuyPrice  = 380 * productnumber WHERE productid = 764;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '764';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('764', '1', '60', '0', '20', 'حذف فاتورة مردودات مشتريات', 'returnBuyBillController.php', '0', '60', '1', '2026-10-14 09:10:28','0','0'); -- id=11229
UPDATE returnbuybilldetail SET  lastbuyprice = 480.00 , meanbuyprice = 825.00, lastbuyprice_withDiscount = 480.00, meanbuyprice_withDiscount = 825.00
        , lastbuyprice_withTax = 480.00, meanbuyprice_withTax = 825.00, lastbuyprice_withDiscountAndTax = 480.00
                where returnbuybilldetailid = 78;
UPDATE product SET productName = 'موديل 1564 الصخره', productDescription = '', productCatId = '10', productBuyPrice = '480.00', productSellAllPrice = '495.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09603',type ='0', expireDate = '0' , dailyentryId = '124',isService = '0',isOptic = '0',lastbuyprice = '480',lastbuyprice_withDiscount = '480',meanbuyprice = '475',meanbuyprice_withDiscount = '475' , productbuypricereal = '475.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='475',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9603',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='480',meanbuyprice_withTax='475',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='480',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '769';
UPDATE productunit SET proUnitBuyPrice  = 480 * productnumber WHERE productid = 769;
UPDATE storedetail SET  productquantity = '69', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '769';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('769', '1', '70', '0', '20', 'حذف فاتورة مردودات مشتريات', 'returnBuyBillController.php', '-1', '69', '1', '2026-10-14 09:10:28','0','0'); -- id=11230
UPDATE returnbuybilldetail SET  lastbuyprice = 410.00 , meanbuyprice = 381.67, lastbuyprice_withDiscount = 410.00, meanbuyprice_withDiscount = 381.67
        , lastbuyprice_withTax = 410.00, meanbuyprice_withTax = 381.67, lastbuyprice_withDiscountAndTax = 410.00
                where returnbuybilldetailid = 79;
UPDATE product SET productName = 'الصخره 1556', productDescription = '', productCatId = '10', productBuyPrice = '410.00', productSellAllPrice = '425.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09106',type ='0', expireDate = '0' , dailyentryId = '121',isService = '0',isOptic = '0',lastbuyprice = '410',lastbuyprice_withDiscount = '410',meanbuyprice = '405',meanbuyprice_withDiscount = '405' , productbuypricereal = '405.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='405',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9106',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='405',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '766';
UPDATE productunit SET proUnitBuyPrice  = 410 * productnumber WHERE productid = 766;
UPDATE storedetail SET  productquantity = '85', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '766';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('766', '1', '70', '0', '20', 'حذف فاتورة مردودات مشتريات', 'returnBuyBillController.php', '15', '85', '1', '2026-10-14 09:10:28','0','0'); -- id=11231
UPDATE returnbuybilldetail SET  lastbuyprice = 360.00 , meanbuyprice = 730.00, lastbuyprice_withDiscount = 360.00, meanbuyprice_withDiscount = 730.00
        , lastbuyprice_withTax = 360.00, meanbuyprice_withTax = 730.00, lastbuyprice_withDiscountAndTax = 360.00
                where returnbuybilldetailid = 80;
UPDATE product SET productName = 'الصخره 1517', productDescription = '', productCatId = '10', productBuyPrice = '360.00', productSellAllPrice = '375.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09108',type ='0', expireDate = '0' , dailyentryId = '123',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '360',meanbuyprice = '355',meanbuyprice_withDiscount = '355' , productbuypricereal = '355.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='355',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9108',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='355',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '768';
UPDATE productunit SET proUnitBuyPrice  = 360 * productnumber WHERE productid = 768;
UPDATE storedetail SET  productquantity = '74', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '768';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('768', '1', '75', '0', '20', 'حذف فاتورة مردودات مشتريات', 'returnBuyBillController.php', '-1', '74', '1', '2026-10-14 09:10:28','0','0'); -- id=11232
UPDATE returnbuybilldetail SET  lastbuyprice = 390.00 , meanbuyprice = 372.67, lastbuyprice_withDiscount = 390.00, meanbuyprice_withDiscount = 372.67
        , lastbuyprice_withTax = 390.00, meanbuyprice_withTax = 372.67, lastbuyprice_withDiscountAndTax = 390.00
                where returnbuybilldetailid = 81;
UPDATE product SET productName = 'الصخره 1552', productDescription = '', productCatId = '10', productBuyPrice = '395.00', productSellAllPrice = '410.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09105',type ='0', expireDate = '0' , dailyentryId = '120',isService = '0',isOptic = '0',lastbuyprice = '395',lastbuyprice_withDiscount = '395',meanbuyprice = '402.44',meanbuyprice_withDiscount = '402.44' , productbuypricereal = '390.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='390',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9105',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='402.44',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='395',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '765';
UPDATE productunit SET proUnitBuyPrice  = 395 * productnumber WHERE productid = 765;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '765';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('765', '1', '80', '0', '20', 'حذف فاتورة مردودات مشتريات', 'returnBuyBillController.php', '-20', '60', '1', '2026-10-14 09:10:28','0','0'); -- id=11233
UPDATE returnbuybilldetail SET  lastbuyprice = 395.00 , meanbuyprice = 402.44, lastbuyprice_withDiscount = 395.00, meanbuyprice_withDiscount = 402.44
        , lastbuyprice_withTax = 395.00, meanbuyprice_withTax = 402.44, lastbuyprice_withDiscountAndTax = 395.00
                where returnbuybilldetailid = 82;
UPDATE product SET productName = 'الصخره 1552', productDescription = '', productCatId = '10', productBuyPrice = '395.00', productSellAllPrice = '410.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09105',type ='0', expireDate = '0' , dailyentryId = '120',isService = '0',isOptic = '0',lastbuyprice = '390',lastbuyprice_withDiscount = '390',meanbuyprice = '385.02',meanbuyprice_withDiscount = '385.02' , productbuypricereal = '390.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='390',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9105',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='390',meanbuyprice_withTax='385.02',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='390',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '765';
UPDATE productunit SET proUnitBuyPrice  = 390 * productnumber WHERE productid = 765;
UPDATE storedetail SET  productquantity = '130', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '765';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('765', '1', '70', '0', '20', 'حذف فاتورة مردودات مشتريات', 'returnBuyBillController.php', '60', '130', '1', '2026-10-14 09:10:28','0','0'); -- id=11234
UPDATE returnbuybilldetail SET  lastbuyprice = 400.00 , meanbuyprice = 400.00, lastbuyprice_withDiscount = 400.00, meanbuyprice_withDiscount = 400.00
        , lastbuyprice_withTax = 400.00, meanbuyprice_withTax = 0.00, lastbuyprice_withDiscountAndTax = 400.00
                where returnbuybilldetailid = 83;
UPDATE product SET productName = 'الصخره كود 1567', productDescription = '', productCatId = '10', productBuyPrice = '400.00', productSellAllPrice = '415.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '05101',type ='0', expireDate = '0' , dailyentryId = '118',isService = '0',isOptic = '0',lastbuyprice = '400',lastbuyprice_withDiscount = '400',meanbuyprice = '400',meanbuyprice_withDiscount = '400' , productbuypricereal = '395.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='5101',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='400',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='400',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '763';
UPDATE productunit SET proUnitBuyPrice  = 400 * productnumber WHERE productid = 763;
UPDATE storedetail SET  productquantity = '70', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '763';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('763', '1', '70', '0', '20', 'حذف فاتورة مردودات مشتريات', 'returnBuyBillController.php', '0', '70', '1', '2026-10-14 09:10:28','0','0'); -- id=11235
UPDATE supplier SET  suppliercurrentDebt = '246190',suppliercurrentDebtInCurrency= '546030' , userid = '1', supplierdate = '2026-10-14 19:54:28'   WHERE supplierid = '37';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('37', '34590.00', '211600', '0', 'حذف فاتورة مردودات مشتريات', '20', '246190', '2026-10-14 09:10:28', '1', 'returnBuyBillController.php', 'حذف فاتورة مردودات مشتريات', '0','', '0','1','1','211600','1','334430','-211600','546030','0',''); -- id=503
UPDATE save SET  savecurrentvalue = '-34826297.8',  userid = '1' WHERE saveid = '1';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('-34826297.80','0', '1', '1', 'حذف فاتورة مردودات مشتريات', '20', '-34826297.8', '2026-10-14 09:10:28', '1',  'returnBuyBillController.php','0','','0'); -- id=682
INSERT INTO returnbuybill (returnbuybillSerial, returnbuybilldate, returnbuybillsupplierid, returnbuybilltotaldeptbefor, returnbuybilltotaldeptafter, returnbuybilldiscount, returnbuybilldiscountrype, returnbuybilltotalbill, returnbuybillaftertotalbill, returnbuybilltotalpayed, returnbuybillfinalbill, returnbuybillstoreid, returnbuybillsysdate,comment, userid, conditions, returnbuybillclientname, returnbuybillsaveid, billnameid, returnbuybilldirectpayment,deletedbuyid,controlname,payedtax,costcenterid,currencyId,taxOfDiscountPer,taxOfDiscountVal,client,returnbuybilladdition,returnbuybilladditiontrype) VALUES ('06acf1cd429093', '2026-10-14 09:10:28', '37', '546030.00', '335200', '0', '0', '-210830.00', '-210830.00', '0.00', '-210830', '1', '2026-10-14 19:54:28', '', '1', '0', '', '1', '6' ,'1' ,'20','returnBuyBillController.php','0.00','-1','1','0','0','0','0','0'); -- id=23
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09107', '23', '10', '767', '35.00', '360', '12600', '0.00', '', '767','','','0','0','0','0','0','360','12600','0','0','0','0','0','0','0','1'); -- id=106
UPDATE product SET productName = 'الصخره 900', productDescription = '', productCatId = '10', productBuyPrice = '360.00', productSellAllPrice = '375.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09107',type ='0', expireDate = '0' , dailyentryId = '122',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '360',meanbuyprice = '360.3',meanbuyprice_withDiscount = '360.3' , productbuypricereal = '355.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='355',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9107',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360.3',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '767';
UPDATE returnbuybilldetail SET  lastbuyprice = 360 , meanbuyprice = 360.3, lastbuyprice_withDiscount = 360, meanbuyprice_withDiscount = 360.3
        , lastbuyprice_withTax = 360, meanbuyprice_withTax = 360.3, lastbuyprice_withDiscountAndTax = 360
                where returnbuybilldetailid = 106;
UPDATE productunit SET proUnitBuyPrice  = 360 * productnumber WHERE productid = 767;
UPDATE storedetail SET  productquantity = '2', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '767';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('767', '1', '35', '1', '23', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '37', '2', '1', '2026-10-14 09:10:28','0','0'); -- id=11236
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('05207', '23', '10', '764', '60.00', '380', '22800', '0.00', '', '764','','','0','0','0','0','0','380','22800','0','0','0','0','0','0','0','1'); -- id=107
UPDATE product SET productName = 'جينز 1565 الصخره', productDescription = '', productCatId = '10', productBuyPrice = '380.00', productSellAllPrice = '395.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '05207',type ='0', expireDate = '0' , dailyentryId = '119',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '380',meanbuyprice = '380',meanbuyprice_withDiscount = '380' , productbuypricereal = '375.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='375',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='5207',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='380',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '764';
UPDATE returnbuybilldetail SET  lastbuyprice = 380 , meanbuyprice = 380, lastbuyprice_withDiscount = 380, meanbuyprice_withDiscount = 380
        , lastbuyprice_withTax = 380, meanbuyprice_withTax = 380, lastbuyprice_withDiscountAndTax = 380
                where returnbuybilldetailid = 107;
UPDATE productunit SET proUnitBuyPrice  = 380 * productnumber WHERE productid = 764;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '764';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('764', '1', '60', '1', '23', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '60', '0', '1', '2026-10-14 09:10:28','0','0'); -- id=11237
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09603', '23', '10', '769', '70.00', '480', '33600', '0.00', '', '769','','','0','0','0','0','0','480','33600','0','0','0','0','0','0','0','1'); -- id=108
UPDATE product SET productName = 'موديل 1564 الصخره', productDescription = '', productCatId = '10', productBuyPrice = '480.00', productSellAllPrice = '495.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09603',type ='0', expireDate = '0' , dailyentryId = '124',isService = '0',isOptic = '0',lastbuyprice = '480',lastbuyprice_withDiscount = '480',meanbuyprice = '479.93',meanbuyprice_withDiscount = '479.93' , productbuypricereal = '475.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='475',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9603',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='480',meanbuyprice_withTax='479.93',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='480',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '769';
UPDATE returnbuybilldetail SET  lastbuyprice = 480 , meanbuyprice = 479.93, lastbuyprice_withDiscount = 480, meanbuyprice_withDiscount = 479.93
        , lastbuyprice_withTax = 480, meanbuyprice_withTax = 479.93, lastbuyprice_withDiscountAndTax = 480
                where returnbuybilldetailid = 108;
UPDATE productunit SET proUnitBuyPrice  = 480 * productnumber WHERE productid = 769;
UPDATE storedetail SET  productquantity = '-1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '769';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('769', '1', '70', '1', '23', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '69', '-1', '1', '2026-10-14 09:10:28','0','0'); -- id=11238
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09106', '23', '10', '766', '69.00', '410', '28290', '0.00', '', '766','','','0','0','0','0','0','410','28290','0','0','0','0','0','0','0','1'); -- id=109
UPDATE product SET productName = 'الصخره 1556', productDescription = '', productCatId = '10', productBuyPrice = '410.00', productSellAllPrice = '425.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09106',type ='0', expireDate = '0' , dailyentryId = '121',isService = '0',isOptic = '0',lastbuyprice = '410',lastbuyprice_withDiscount = '410',meanbuyprice = '411.39',meanbuyprice_withDiscount = '411.39' , productbuypricereal = '405.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='405',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9106',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='411.39',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '766';
UPDATE returnbuybilldetail SET  lastbuyprice = 410 , meanbuyprice = 411.39, lastbuyprice_withDiscount = 410, meanbuyprice_withDiscount = 411.39
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 411.39, lastbuyprice_withDiscountAndTax = 410
                where returnbuybilldetailid = 109;
UPDATE productunit SET proUnitBuyPrice  = 410 * productnumber WHERE productid = 766;
UPDATE storedetail SET  productquantity = '16', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '766';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('766', '1', '69', '1', '23', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '85', '16', '1', '2026-10-14 09:10:28','0','0'); -- id=11239
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09108', '23', '10', '768', '74.00', '360', '26640', '0.00', '', '768','','','0','0','0','0','0','360','26640','0','0','0','0','0','0','0','1'); -- id=110
UPDATE product SET productName = 'الصخره 1517', productDescription = '', productCatId = '10', productBuyPrice = '360.00', productSellAllPrice = '375.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09108',type ='0', expireDate = '0' , dailyentryId = '123',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '360',meanbuyprice = '359.93',meanbuyprice_withDiscount = '359.93' , productbuypricereal = '355.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='355',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9108',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='359.93',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '768';
UPDATE returnbuybilldetail SET  lastbuyprice = 360 , meanbuyprice = 359.93, lastbuyprice_withDiscount = 360, meanbuyprice_withDiscount = 359.93
        , lastbuyprice_withTax = 360, meanbuyprice_withTax = 359.93, lastbuyprice_withDiscountAndTax = 360
                where returnbuybilldetailid = 110;
UPDATE productunit SET proUnitBuyPrice  = 360 * productnumber WHERE productid = 768;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '768';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('768', '1', '74', '1', '23', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '74', '0', '1', '2026-10-14 09:10:28','0','0'); -- id=11240
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09105', '23', '10', '765', '80.00', '395', '31600', '0.00', '', '765','','','0','0','0','0','0','395','31600','0','0','0','0','0','0','0','1'); -- id=111
UPDATE product SET productName = 'الصخره 1552', productDescription = '', productCatId = '10', productBuyPrice = '395.00', productSellAllPrice = '410.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09105',type ='0', expireDate = '0' , dailyentryId = '120',isService = '0',isOptic = '0',lastbuyprice = '395',lastbuyprice_withDiscount = '395',meanbuyprice = '393',meanbuyprice_withDiscount = '393' , productbuypricereal = '390.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='390',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9105',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='393',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='395',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '765';
UPDATE returnbuybilldetail SET  lastbuyprice = 395 , meanbuyprice = 393, lastbuyprice_withDiscount = 395, meanbuyprice_withDiscount = 393
        , lastbuyprice_withTax = 395, meanbuyprice_withTax = 393, lastbuyprice_withDiscountAndTax = 395
                where returnbuybilldetailid = 111;
UPDATE productunit SET proUnitBuyPrice  = 395 * productnumber WHERE productid = 765;
UPDATE storedetail SET  productquantity = '50', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '765';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('765', '1', '80', '1', '23', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '130', '50', '1', '2026-10-14 09:10:28','0','0'); -- id=11241
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09105', '23', '10', '765', '70.00', '390', '27300', '0.00', '', '765','','','0','0','0','0','0','390','27300','0','0','0','0','0','0','0','1'); -- id=112
UPDATE product SET productName = 'الصخره 1552', productDescription = '', productCatId = '10', productBuyPrice = '395.00', productSellAllPrice = '410.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09105',type ='0', expireDate = '0' , dailyentryId = '120',isService = '0',isOptic = '0',lastbuyprice = '390',lastbuyprice_withDiscount = '390',meanbuyprice = '390.67',meanbuyprice_withDiscount = '390.67' , productbuypricereal = '390.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='390',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9105',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='390',meanbuyprice_withTax='390.67',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='390',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '765';
UPDATE returnbuybilldetail SET  lastbuyprice = 390 , meanbuyprice = 390.67, lastbuyprice_withDiscount = 390, meanbuyprice_withDiscount = 390.67
        , lastbuyprice_withTax = 390, meanbuyprice_withTax = 390.67, lastbuyprice_withDiscountAndTax = 390
                where returnbuybilldetailid = 112;
UPDATE productunit SET proUnitBuyPrice  = 390 * productnumber WHERE productid = 765;
UPDATE storedetail SET  productquantity = '-20', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '765';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('765', '1', '70', '1', '23', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '50', '-20', '1', '2026-10-14 09:10:28','0','0'); -- id=11242
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('05101', '23', '10', '763', '70.00', '400', '28000', '0.00', '', '763','','','0','0','0','0','0','400','28000','0','0','0','0','0','0','0','1'); -- id=113
UPDATE product SET productName = 'الصخره كود 1567', productDescription = '', productCatId = '10', productBuyPrice = '400.00', productSellAllPrice = '415.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '05101',type ='0', expireDate = '0' , dailyentryId = '118',isService = '0',isOptic = '0',lastbuyprice = '400',lastbuyprice_withDiscount = '400',meanbuyprice = '400',meanbuyprice_withDiscount = '400' , productbuypricereal = '395.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='5101',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='400',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='400',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '763';
UPDATE returnbuybilldetail SET  lastbuyprice = 400 , meanbuyprice = 400, lastbuyprice_withDiscount = 400, meanbuyprice_withDiscount = 400
        , lastbuyprice_withTax = 400, meanbuyprice_withTax = 400, lastbuyprice_withDiscountAndTax = 400
                where returnbuybilldetailid = 113;
UPDATE productunit SET proUnitBuyPrice  = 400 * productnumber WHERE productid = 763;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '763';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('763', '1', '70', '1', '23', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '70', '0', '1', '2026-10-14 09:10:28','0','0'); -- id=11243
UPDATE supplier SET  suppliercurrentDebt = '35360',suppliercurrentDebtInCurrency= '335200' , userid = '1', supplierdate = '2026-10-14 19:54:28'   WHERE supplierid = '37';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('37', '246190.00', '210830', '1', 'اضافة فاتورة مردوات مشتريات', '23', '35360', '2026-10-14 09:10:28', '1', 'returnBuyBillController.php', 'اضافة فاتورة مردوات مشتريات', '0','', '0','1','1','211600','1','546030','210830','335200','0',''); -- id=504
UPDATE save SET  savecurrentvalue = '-34826297.8',  userid = '1' WHERE saveid = '1';
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('-34826297.80','0', '0', '1', 'اضافة فاتورة مردوات مشتريات', '23', '-34826297.8', '2026-10-14 09:10:28', '1',  'returnBuyBillController.php','0','','0'); -- id=683
UPDATE dailyentry SET totalcreditor = '211600.00', totaldebtor = '211600.00', thedate = '2026-10-14', userid = '1', `condition` = '0', reverseofid = '-10', dDateTime = '2026-10-14 09:21:10', entryComment = 'اضافة فاتورة مردود مشتريات رقم 20', fromFlag = '1',related='0',isopeningentry='0',operationId='20',operationDetailLink='returnBuyBillController.php?do=details&id=20' WHERE id = '2319';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '211600.00', '211600.00', '2026-10-14', '1', '0', '2319', '2026-10-14 19:54:28','تم عكس القيد رقم 2319 ','1','0','0','0','0',''); -- id=2461
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2461', '456', '211600.00', '','0'); -- id=2463
UPDATE accountstree SET name = 'الصخرة - مورد', customName = 'الصخرة - مورد', customNameEn = 'الصخرة - مورد', nameEn = 'الصخرة - مورد', parent = '81', accountNature = '1', theValue = '0', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '456';
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2461', '382', '211600.00', '','0'); -- id=2517
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23376531.73', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '210830', '210830', '2026-10-14', '1', '0', '0', '2026-10-14 19:54:28','اضافة فاتورة مردود مشتريات رقم 23','1','0',null,'0','23','returnBuyBillController.php?do=details&id=23'); -- id=2462
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2462', '456', '210830', '','0'); -- id=2518
UPDATE accountstree SET name = 'الصخرة - مورد', customName = 'الصخرة - مورد', customNameEn = 'الصخرة - مورد', nameEn = 'الصخرة - مورد', parent = '81', accountNature = '1', theValue = '-210830', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '456';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2462', '382', '210830', '','0'); -- id=2464
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23165701.73', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update returnbuybill set dailyentryid='2462,0' where returnbuybillid=23;
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:24:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:54:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('returnBuyBillController.php', '2026-10-14 19:54:28', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/returnBuyBillController.php?do=editprint&id=23'); -- id=9750
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:24:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:54:32", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 19:54:32', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9751

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acfadc5b4324
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 19:54:32', '06acfadc5b4324', '1', '0.00', '0', '0', '1', '8220.00', '8220', '8220', '0', '1', '2026-10-14 19:54:32', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '24' ,'0','','','','','-1','0','0','0','0','0','8220','0','','0','0','8220','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=542
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','542', '0', '2026-10-14 19:54:32', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '8220', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 19:54:32','0','0','',''); -- id=690
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 73;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('260','01381', '542', '94', '1381', '12', '295', '3540', '0', '', '0', '2026-10-14 19:54:32', '1381', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','73-12,','1','1','0','0','295','3540','0','','0','0.00','0','0','0','0'); -- id=1967
UPDATE sellbilldetail SET  lastbuyprice = 260.00 , meanbuyprice = 260.00, lastbuyprice_withDiscount = 260.00, meanbuyprice_withDiscount = 260.00
        , lastbuyprice_withTax = 260, meanbuyprice_withTax = 260, lastbuyprice_withDiscountAndTax = 260
                where sellbilldetailid = 1967;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1381, '2026-10-14', 3540, 3120, 3120
                    , 3120, 3120, 3120, 3120
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 3120, 3120, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3540, sellCostBuyPrice =sellCostBuyPrice+3120
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3120, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3120
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3120, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3120
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3120
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3120
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3120
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3540, 3120, 3120
                    , 3120, 3120, 3120, 3120
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3120, 3120, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3540, sellCostBuyPrice =sellCostBuyPrice+3120
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3120, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3120
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3120, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3120
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3120
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3120
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3120
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '222', userid = '3', storedetaildate = '2026-10-14 19:54:32' WHERE storedetailid = '1381';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1381', '1', '12', '1', '542', 'اضافة فاتورة مبيعات', 'sellbillController.php', '234', '222', '3', '2026-10-14 19:54:32','0','0'); -- id=11244
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 75;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('300','01383', '542', '94', '1383', '6', '330', '1980', '0', '', '0', '2026-10-14 19:54:32', '1383', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','75-6,','1','1','0','0','330','1980','0','','0','0.00','0','0','0','0'); -- id=1968
UPDATE sellbilldetail SET  lastbuyprice = 300.00 , meanbuyprice = 300.00, lastbuyprice_withDiscount = 300.00, meanbuyprice_withDiscount = 300.00
        , lastbuyprice_withTax = 300, meanbuyprice_withTax = 300, lastbuyprice_withDiscountAndTax = 300
                where sellbilldetailid = 1968;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1383, '2026-10-14', 1980, 1800, 1800
                    , 1800, 1800, 1800, 1800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1800, 1800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1980, sellCostBuyPrice =sellCostBuyPrice+1800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1980, 1800, 1800
                    , 1800, 1800, 1800, 1800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1800, 1800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1980, sellCostBuyPrice =sellCostBuyPrice+1800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '345', userid = '3', storedetaildate = '2026-10-14 19:54:32' WHERE storedetailid = '1383';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1383', '1', '6', '1', '542', 'اضافة فاتورة مبيعات', 'sellbillController.php', '351', '345', '3', '2026-10-14 19:54:32','0','0'); -- id=11245
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 1080;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('425','01919', '542', '153', '1919', '6', '450', '2700', '0', '', '0', '2026-10-14 19:54:32', '1919', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1080-6,','1','1','0','0','450','2700','0','','0','0.00','0','0','0','0'); -- id=1969
UPDATE sellbilldetail SET  lastbuyprice = 425.00 , meanbuyprice = 425.00, lastbuyprice_withDiscount = 425.00, meanbuyprice_withDiscount = 425.00
        , lastbuyprice_withTax = 425, meanbuyprice_withTax = 425, lastbuyprice_withDiscountAndTax = 425
                where sellbilldetailid = 1969;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1919, '2026-10-14', 2700, 2550, 2550
                    , 2550, 2550, 2550, 2550
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2550, 2550, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2550, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2550
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2550
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2550
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2550, 2550
                    , 2550, 2550, 2550, 2550
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2550, 2550, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2550, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2550
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2550
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2550
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '246', userid = '3', storedetaildate = '2026-10-14 19:54:32' WHERE storedetailid = '2936';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '1', '6', '1', '542', 'اضافة فاتورة مبيعات', 'sellbillController.php', '252', '246', '3', '2026-10-14 19:54:32','0','0'); -- id=11246
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3680665',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3672445','8220', '0', '2', 'اضافة فاتورة مبيعات', '542', '3680665', '2026-10-14 19:54:32', '3',  'sellbillController.php','1','','0'); -- id=684
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '8220', '8220', '2026-10-14', '3', '0', '0', '2026-10-14 19:54:32','اضافة فاتورة مبيعات رقم 542','1','0',null,'0','542','sellbillController.php?do=showDetail&sellbillid=542'); -- id=2463
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2463', '419', '8220', '','0'); -- id=2519
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3680665', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2463', '143', '8220', '','0'); -- id=2465
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5929925', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '7470', '7470', '2026-10-14', '3', '0', '0', '2026-10-14 19:54:32','اضافة فاتورة مبيعات رقم 542 - صرف البضاعة من المخزن','1','0',null,'0','542','sellbillController.php?do=showDetail&sellbillid=542'); -- id=2464
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2464', '402', '7470', '','0'); -- id=2520
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5530029.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2464', '382', '7470', '','0'); -- id=2466
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23158231.73', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2463,0,2464' where sellbillid=542;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 8220, 7470, 7470
                    , 7470, 7470, 7470, 7470
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,7470, 7470, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8220, sellCostBuyPrice =sellCostBuyPrice+7470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7470, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7470
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7470
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7470
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 8220, 7470, 7470
                    , 7470, 7470, 7470, 7470
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,7470, 7470, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8220, sellCostBuyPrice =sellCostBuyPrice+7470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7470, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7470
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7470
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7470
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 8220, 7470, 7470
                    , 7470, 7470, 7470, 7470, 7470, 7470)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+8220, netSellCostBuyPrice = netSellCostBuyPrice+7470
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+7470
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+7470
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+7470
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+7470
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+7470
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+7470
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+7470;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acfadc5b4324 and sellbillId = 542 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:24:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 19:54:32", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 19:54:32', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9752
UPDATE user SET loginip = "" WHERE userid = 4;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:31:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:01:41", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 20:01:41', '6', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9753

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acf9165952f6
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 20:01:41', '06acf9165952f6', '1', '0.00', '0', '0', '1', '2550.00', '2550', '2550', '0', '1', '2026-10-14 20:01:41', '', '6', '0', 'نقدي', '4', '0', '3', '0', 'نقدي', '3' ,'0','','','','','-1','0','0','0','0','0','2550','0','','0','0','2550','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=543
UPDATE client SET  clientdebt = '0', userid = '6' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','543', '0', '2026-10-14 20:01:41', '6', 'sellbillController.php', 'اضافة فاتورة مبيعات', '2550', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 20:01:41','0','0','',''); -- id=691
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 1209;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('800','01990', '543', '161', '1990', '3', '850', '2550', '0', '', '0', '2026-10-14 20:01:41', '1990', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1209-3,','1','1','0','0','850','2550','0','','0','0.00','0','0','0','0'); -- id=1970
UPDATE sellbilldetail SET  lastbuyprice = 800.00 , meanbuyprice = 800.00, lastbuyprice_withDiscount = 800.00, meanbuyprice_withDiscount = 800.00
        , lastbuyprice_withTax = 800, meanbuyprice_withTax = 800, lastbuyprice_withDiscountAndTax = 800
                where sellbilldetailid = 1970;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1990, '2026-10-14', 2550, 2400, 2400
                    , 2400, 2400, 2400, 2400
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 2400, 2400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2550, sellCostBuyPrice =sellCostBuyPrice+2400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2400, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2400
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2400
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2550, 2400, 2400
                    , 2400, 2400, 2400, 2400
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2400, 2400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2550, sellCostBuyPrice =sellCostBuyPrice+2400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2400, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2400
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2400
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '207', userid = '6', storedetaildate = '2026-10-14 20:01:41' WHERE storedetailid = '3007';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1990', '1', '3', '1', '543', 'اضافة فاتورة مبيعات', 'sellbillController.php', '210', '207', '6', '2026-10-14 20:01:41','0','0'); -- id=11247
CALL saveInUse(4,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '334340',  userid = '6' WHERE saveid = '4';
UPDATE save SET  inUse = 0 where saveid = 4;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('331790','2550', '0', '4', 'اضافة فاتورة مبيعات', '543', '334340', '2026-10-14 20:01:41', '6',  'sellbillController.php','1','','0'); -- id=685
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '2550', '2550', '2026-10-14', '6', '0', '0', '2026-10-14 20:01:41','اضافة فاتورة مبيعات رقم 543','1','0',null,'0','543','sellbillController.php?do=showDetail&sellbillid=543'); -- id=2465
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2465', '568', '2550', '','0'); -- id=2521
UPDATE accountstree SET name = 'خزنة شروال', customName = 'خزنة شروال', customNameEn = 'خزنة شروال', nameEn = 'خزنة شروال', parent = '40', accountNature = '0', theValue = '334340', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-06 13:37:54' WHERE id = '568';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2465', '143', '2550', '','0'); -- id=2467
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5932475', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '2400', '2400', '2026-10-14', '6', '0', '0', '2026-10-14 20:01:41','اضافة فاتورة مبيعات رقم 543 - صرف البضاعة من المخزن','1','0',null,'0','543','sellbillController.php?do=showDetail&sellbillid=543'); -- id=2466
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2466', '402', '2400', '','0'); -- id=2522
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5532429.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2466', '382', '2400', '','0'); -- id=2468
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23155831.73', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2465,0,2466' where sellbillid=543;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 2550, 2400, 2400
                    , 2400, 2400, 2400, 2400
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,2400, 2400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2550, sellCostBuyPrice =sellCostBuyPrice+2400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2400, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2400
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2400
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2550, 2400, 2400
                    , 2400, 2400, 2400, 2400
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,2400, 2400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2550, sellCostBuyPrice =sellCostBuyPrice+2400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2400, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2400
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2400
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 2550, 2400, 2400
                    , 2400, 2400, 2400, 2400, 2400, 2400)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+2550, netSellCostBuyPrice = netSellCostBuyPrice+2400
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+2400
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+2400
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+2400
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+2400
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+2400
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+2400
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+2400;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acf9165952f6 and sellbillId = 543 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:31:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:01:41", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 20:01:41', '6', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9754
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:32:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:02:12", deviceType = "DESKTOP" WHERE userid = 6;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-10-14 20:02:12', '6', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/savedailyController.php'); -- id=9755
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:45:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:15:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:15:23', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=show'); -- id=9756
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:45:48";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:15:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:15:48', '1', 'editbill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editbill&id=139'); -- id=9757
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:46:08";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:16:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:16:08', '1', 'update', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=update'); -- id=9758
BEGIN;
UPDATE costcenterdetail SET del = 1 WHERE type in( 3) and  modelid = 139;
UPDATE buybill SET  buybillsysdate = '2026-10-14 20:16:08', userid = '1',delbyuserid = '1', conditions = '1' WHERE buybillid = '139';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:37:29', 1, 1921, 0, 0
                    , 460, 42, 0, 0, 1, '2026-10-14 20:16:08')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-42, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:16:08' ; -- id=1121
UPDATE product SET productName = 'سويت شيرت 485', productDescription = '', productCatId = '153', productBuyPrice = '460.00', productSellAllPrice = '485.00', productSellUnitPrice = '485.00', productSellHalfPrice = '485.00', productDate = '2026-10-13', conditions = '0', userId = '1', limitamount = '0', parcode = '01921',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.43' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1921';
UPDATE productunit SET proUnitBuyPrice  = 460 * productnumber WHERE productid = 1921;
UPDATE storedetail SET  productquantity = '-15', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '42', '1', '139', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '27', '-15', '1', '2026-10-14 12:37:29','0','0'); -- id=11248
UPDATE supplier SET  suppliercurrentDebt = '0',suppliercurrentDebtInCurrency= '0' , userid = '1', supplierdate = '2026-10-14 20:16:08'   WHERE supplierid = '1';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('1', '19320.00', '19320.00', '1', 'حذف فاتورة مشتريات - للتعديل', '139', '0', '2026-10-14 12:37:29', '1', 'buyBillController.php', 'حذف فاتورة مشتريات - للتعديل', '0','', '0','1','1','19320','1','19320','19320','0','0',''); -- id=505
UPDATE productserial SET del = 1
		 WHERE billid = 139;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,deletedbuyid,controlname,payedtax,costcenterid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf4d5976a36', '2026-10-14 12:37:29', '162', '247600.00', '266920', '0', '0', '19320.00', '19320.00', '0.00', '19320', '1', '2026-10-14 20:16:08', '', '1', '0', '', '1', '1','1','139','buyBillController.php','0.00','-1','1','0','0','.','0','0','0','0','0','0'); -- id=164
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01921', '164', '153', '1921', '42.00', '460', '19320.00', '0.00', '', '2026-10-14 20:16:08', '1921','','','0','0','0','0','0',null,'460','19320','0','0','0','0','0','0','0','0','1'); -- id=1011
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:37:29', 1, 1921, 0, 0
                    , 460, 42, 0, 0, 1, '2026-10-14 20:16:08')
                ON DUPLICATE KEY UPDATE buyprice = 460,
                        buyQuantity =buyQuantity+42, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:16:08' ; -- id=1121
UPDATE product SET  productBuyPrice = "460" WHERE productId = 1921 ;
UPDATE buybilldetail SET  quantitybefore = -15 WHERE buybilldetailid = 1011 ;
UPDATE product SET productName = 'سويت شيرت 485', productDescription = '', productCatId = '153', productBuyPrice = '460.00', productSellAllPrice = '485.00', productSellUnitPrice = '485.00', productSellHalfPrice = '485.00', productDate = '2026-10-13', conditions = '0', userId = '1', limitamount = '0', parcode = '01921',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.43' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1921';
UPDATE buybilldetail SET  lastbuyprice = 460 , meanbuyprice = 460, lastbuyprice_withDiscount = 460, meanbuyprice_withDiscount = 460
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where buybilldetailid = 1011;
UPDATE productunit SET proUnitBuyPrice  = 460 * productnumber WHERE productid = 1921;
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2938';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1921', '1', '42', '0', '164', 'اضافة فاتورة مشتريات', 'buyBillController.php', '-15', '27', '1', '2026-10-14 12:37:29','0','0'); -- id=11249
DELETE FROM productserial WHERE billid = 139
		and type =0 
		;
UPDATE supplier SET  suppliercurrentDebt = '266920',suppliercurrentDebtInCurrency= '266920' , userid = '1', supplierdate = '2026-10-14 20:16:08'   WHERE supplierid = '162';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('162', '247600.00', '19320', '0', 'اضافة فاتورة مشتريات', '164', '266920', '2026-10-14 20:16:08', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','19320','1','247600','19320','266920','0',''); -- id=506
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '19320', '19320', '2026-10-14', '1', '0', '0', '2026-10-14 20:16:08','اضافة فاتورة مشتريات رقم 164','1','0',null,'0','164','buyBillController.php?do=details&id=164'); -- id=2467
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2467', '382', '19320', '','0'); -- id=2523
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23175151.73', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2467', '645', '19320', '','0'); -- id=2469
UPDATE accountstree SET name = 'مصطفي زورو', customName = 'مصطفي زورو', customNameEn = 'مصطفي زورو', nameEn = 'مصطفي زورو', parent = '81', accountNature = '1', theValue = '266920', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-12 20:29:34' WHERE id = '645';
update buybill set dailyentryid='2467,0' where buybillid=164;
UPDATE product SET overAllAveragePrice = 460 WHERE productId = 1921;;
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:46:08";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:16:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:16:08', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=164'); -- id=9759
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:46:48";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:16:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:16:48', '1', 'editbill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editbill&id=137'); -- id=9760
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:47:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:17:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:17:00', '1', 'update', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=update'); -- id=9761
BEGIN;
UPDATE costcenterdetail SET del = 1 WHERE type in( 3) and  modelid = 137;
UPDATE buybill SET  buybillsysdate = '2026-10-14 20:17:00', userid = '1',delbyuserid = '1', conditions = '1' WHERE buybillid = '137';
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:11:29', 1, 1928, 0, 0
                    , 850, 12, 0, 0, 1, '2026-10-14 20:17:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-12, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:17:00' ; -- id=1115
UPDATE buybilldetail SET  lastbuyprice = 850.00 , meanbuyprice = 850.00, lastbuyprice_withDiscount = 850.00, meanbuyprice_withDiscount = 850.00
        , lastbuyprice_withTax = 850.00, meanbuyprice_withTax = 850.00, lastbuyprice_withDiscountAndTax = 850.00
                where buybilldetailid = 838;
UPDATE product SET productName = 'ترنج ملتون خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '850.00', productSellAllPrice = '900.00', productSellUnitPrice = '900.00', productSellHalfPrice = '900.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01928',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '0',meanbuyprice = '850.00',meanbuyprice_withDiscount = '850' , productbuypricereal = '850.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.88' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1928';
UPDATE productunit SET proUnitBuyPrice  = 850 * productnumber WHERE productid = 1928;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2945';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1928', '1', '12', '1', '137', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '12', '0', '1', '2026-10-14 12:11:29','0','0'); -- id=11250
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:11:29', 1, 1929, 0, 0
                    , 425, 24, 0, 0, 1, '2026-10-14 20:17:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:17:00' ; -- id=1116
UPDATE buybilldetail SET  lastbuyprice = 425.00 , meanbuyprice = 425.00, lastbuyprice_withDiscount = 425.00, meanbuyprice_withDiscount = 425.00
        , lastbuyprice_withTax = 425.00, meanbuyprice_withTax = 425.00, lastbuyprice_withDiscountAndTax = 425.00
                where buybilldetailid = 839;
UPDATE product SET productName = 'سوسته هودي براند خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '425.00', productSellAllPrice = '445.00', productSellUnitPrice = '445.00', productSellHalfPrice = '445.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01929',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '425',lastbuyprice_withDiscount = '0',meanbuyprice = '425.00',meanbuyprice_withDiscount = '425' , productbuypricereal = '425.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.71' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='425',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='425',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1929';
UPDATE productunit SET proUnitBuyPrice  = 425 * productnumber WHERE productid = 1929;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2946';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1929', '1', '24', '1', '137', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '24', '0', '1', '2026-10-14 12:11:29','0','0'); -- id=11251
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:11:29', 1, 1930, 0, 0
                    , 395, 24, 0, 0, 1, '2026-10-14 20:17:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-24, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:17:00' ; -- id=1117
UPDATE buybilldetail SET  lastbuyprice = 395.00 , meanbuyprice = 395.00, lastbuyprice_withDiscount = 395.00, meanbuyprice_withDiscount = 395.00
        , lastbuyprice_withTax = 395.00, meanbuyprice_withTax = 395.00, lastbuyprice_withDiscountAndTax = 395.00
                where buybilldetailid = 840;
UPDATE product SET productName = 'هودي طباعه خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '395.00', productSellAllPrice = '415.00', productSellUnitPrice = '415.00', productSellHalfPrice = '415.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01930',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '395',lastbuyprice_withDiscount = '0',meanbuyprice = '395.00',meanbuyprice_withDiscount = '395' , productbuypricereal = '395.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.06' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1930';
UPDATE productunit SET proUnitBuyPrice  = 395 * productnumber WHERE productid = 1930;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2947';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1930', '1', '24', '1', '137', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '24', '0', '1', '2026-10-14 12:11:29','0','0'); -- id=11252
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:11:29', 1, 1931, 0, 0
                    , 350, 54, 0, 0, 1, '2026-10-14 20:17:00')
                ON DUPLICATE KEY UPDATE buyQuantity =buyQuantity-54, sellQuantity = sellQuantity-0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:17:00' ; -- id=1118
UPDATE buybilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 350.00, meanbuyprice_withDiscount = 350.00
        , lastbuyprice_withTax = 350.00, meanbuyprice_withTax = 350.00, lastbuyprice_withDiscountAndTax = 350.00
                where buybilldetailid = 841;
UPDATE product SET productName = 'تيشرت راوند خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '350.00', productSellAllPrice = '370.00', productSellUnitPrice = '370.00', productSellHalfPrice = '370.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01931',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '0',meanbuyprice = '350.00',meanbuyprice_withDiscount = '350' , productbuypricereal = '350.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.71' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='0',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='0',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1931';
UPDATE productunit SET proUnitBuyPrice  = 350 * productnumber WHERE productid = 1931;
UPDATE storedetail SET  productquantity = '0', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '2948';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1931', '1', '54', '1', '137', 'حذف فاتورة مشتريات - للتعديل', 'buyBillController.php', '54', '0', '1', '2026-10-14 12:11:29','0','0'); -- id=11253
UPDATE supplier SET  suppliercurrentDebt = '188965',suppliercurrentDebtInCurrency= '188965' , userid = '1', supplierdate = '2026-10-14 20:17:00'   WHERE supplierid = '7';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('7', '237745.00', '48780.00', '1', 'حذف فاتورة مشتريات - للتعديل', '137', '188965', '2026-10-14 12:11:29', '1', 'buyBillController.php', 'حذف فاتورة مشتريات - للتعديل', '0','', '0','1','1','48780','1','237745','48780','188965','0',''); -- id=507
UPDATE productserial SET del = 1
		 WHERE billid = 137;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,deletedbuyid,controlname,payedtax,costcenterid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acf474115f23', '2026-10-14 12:11:29', '7', '188965.00', '237745', '0', '0', '48780.00', '48780.00', '0.00', '48780', '2', '2026-10-14 20:17:00', '', '1', '0', '', '1', '1','1','137','buyBillController.php','0.00','-1','1','0','0','.','0','0','0','0','0','0'); -- id=165
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01928', '165', '155', '1928', '12.00', '850', '10200.00', '0.00', '', '2026-10-14 20:17:00', '1928','','','0','0','0','0','0',null,'850','10200','0','0','0','0','0','0','0','0','2'); -- id=1012
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:11:29', 2, 1928, 0, 0
                    , 850, 12, 0, 0, 1, '2026-10-14 20:17:00')
                ON DUPLICATE KEY UPDATE buyprice = 850,
                        buyQuantity =buyQuantity+12, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:17:00' ; -- id=1369
UPDATE product SET  productBuyPrice = "850" WHERE productId = 1928 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1012 ;
UPDATE product SET productName = 'ترنج ملتون خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '850.00', productSellAllPrice = '900.00', productSellUnitPrice = '900.00', productSellHalfPrice = '900.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01928',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '850',lastbuyprice_withDiscount = '850',meanbuyprice = '850',meanbuyprice_withDiscount = '850' , productbuypricereal = '850.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.88' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='850',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='850',meanbuyprice_withTax='425',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='850',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1928';
UPDATE buybilldetail SET  lastbuyprice = 850 , meanbuyprice = 850, lastbuyprice_withDiscount = 850, meanbuyprice_withDiscount = 850
        , lastbuyprice_withTax = 850, meanbuyprice_withTax = 425, lastbuyprice_withDiscountAndTax = 850
                where buybilldetailid = 1012;
UPDATE productunit SET proUnitBuyPrice  = 850 * productnumber WHERE productid = 1928;
UPDATE storedetail SET  productquantity = '12', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3088';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1928', '2', '12', '0', '165', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '12', '1', '2026-10-14 12:11:29','0','0'); -- id=11254
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01929', '165', '155', '1929', '24.00', '425', '10200.00', '0.00', '', '2026-10-14 20:17:00', '1929','','','0','0','0','0','0',null,'425','10200','0','0','0','0','0','0','0','0','2'); -- id=1013
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:11:29', 2, 1929, 0, 0
                    , 425, 24, 0, 0, 1, '2026-10-14 20:17:00')
                ON DUPLICATE KEY UPDATE buyprice = 425,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:17:00' ; -- id=1367
UPDATE product SET  productBuyPrice = "425" WHERE productId = 1929 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1013 ;
UPDATE product SET productName = 'سوسته هودي براند خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '425.00', productSellAllPrice = '445.00', productSellUnitPrice = '445.00', productSellHalfPrice = '445.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01929',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '425',lastbuyprice_withDiscount = '425',meanbuyprice = '425',meanbuyprice_withDiscount = '425' , productbuypricereal = '425.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.71' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='425',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='425',meanbuyprice_withTax='212.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='425',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1929';
UPDATE buybilldetail SET  lastbuyprice = 425 , meanbuyprice = 425, lastbuyprice_withDiscount = 425, meanbuyprice_withDiscount = 425
        , lastbuyprice_withTax = 425, meanbuyprice_withTax = 212.5, lastbuyprice_withDiscountAndTax = 425
                where buybilldetailid = 1013;
UPDATE productunit SET proUnitBuyPrice  = 425 * productnumber WHERE productid = 1929;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3087';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1929', '2', '24', '0', '165', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 12:11:29','0','0'); -- id=11255
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01930', '165', '155', '1930', '24.00', '395', '9480.00', '0.00', '', '2026-10-14 20:17:00', '1930','','','0','0','0','0','0',null,'395','9480','0','0','0','0','0','0','0','0','2'); -- id=1014
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:11:29', 2, 1930, 0, 0
                    , 395, 24, 0, 0, 1, '2026-10-14 20:17:00')
                ON DUPLICATE KEY UPDATE buyprice = 395,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:17:00' ; -- id=1365
UPDATE product SET  productBuyPrice = "395" WHERE productId = 1930 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1014 ;
UPDATE product SET productName = 'هودي طباعه خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '395.00', productSellAllPrice = '415.00', productSellUnitPrice = '415.00', productSellHalfPrice = '415.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01930',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '395',lastbuyprice_withDiscount = '395',meanbuyprice = '395',meanbuyprice_withDiscount = '395' , productbuypricereal = '395.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.06' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='395',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='395',meanbuyprice_withTax='197.5',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='395',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1930';
UPDATE buybilldetail SET  lastbuyprice = 395 , meanbuyprice = 395, lastbuyprice_withDiscount = 395, meanbuyprice_withDiscount = 395
        , lastbuyprice_withTax = 395, meanbuyprice_withTax = 197.5, lastbuyprice_withDiscountAndTax = 395
                where buybilldetailid = 1014;
UPDATE productunit SET proUnitBuyPrice  = 395 * productnumber WHERE productid = 1930;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3086';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1930', '2', '24', '0', '165', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 12:11:29','0','0'); -- id=11256
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01931', '165', '155', '1931', '54.00', '350', '18900.00', '0.00', '', '2026-10-14 20:17:00', '1931','','','0','0','0','0','0',null,'350','18900','0','0','0','0','0','0','0','0','2'); -- id=1015
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 12:11:29', 2, 1931, 0, 0
                    , 350, 54, 0, 0, 1, '2026-10-14 20:17:00')
                ON DUPLICATE KEY UPDATE buyprice = 350,
                        buyQuantity =buyQuantity+54, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:17:00' ; -- id=1363
UPDATE product SET  productBuyPrice = "350" WHERE productId = 1931 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1015 ;
UPDATE product SET productName = 'تيشرت راوند خالد الدولي', productDescription = '', productCatId = '155', productBuyPrice = '350.00', productSellAllPrice = '370.00', productSellUnitPrice = '370.00', productSellHalfPrice = '370.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '01931',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '350',meanbuyprice = '350',meanbuyprice_withDiscount = '350' , productbuypricereal = '350.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '5.71' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='175',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='350',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1931';
UPDATE buybilldetail SET  lastbuyprice = 350 , meanbuyprice = 350, lastbuyprice_withDiscount = 350, meanbuyprice_withDiscount = 350
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 175, lastbuyprice_withDiscountAndTax = 350
                where buybilldetailid = 1015;
UPDATE productunit SET proUnitBuyPrice  = 350 * productnumber WHERE productid = 1931;
UPDATE storedetail SET  productquantity = '54', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3085';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1931', '2', '54', '0', '165', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '54', '1', '2026-10-14 12:11:29','0','0'); -- id=11257
DELETE FROM productserial WHERE billid = 137
		and type =0 
		;
UPDATE supplier SET  suppliercurrentDebt = '237745',suppliercurrentDebtInCurrency= '237745' , userid = '1', supplierdate = '2026-10-14 20:17:00'   WHERE supplierid = '7';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('7', '188965.00', '48780', '0', 'اضافة فاتورة مشتريات', '165', '237745', '2026-10-14 20:17:00', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','48780','1','188965','48780','237745','0',''); -- id=508
UPDATE dailyentry SET totalcreditor = '48780.00', totaldebtor = '48780.00', thedate = '2026-10-14', userid = '1', `condition` = '0', reverseofid = '-10', dDateTime = '2026-10-14 12:13:47', entryComment = 'اضافة فاتورة مشتريات رقم 137', fromFlag = '1',related='0',isopeningentry='0',operationId='137',operationDetailLink='buyBillController.php?do=details&id=137' WHERE id = '2345';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '48780.00', '48780.00', '2026-10-14', '1', '0', '2345', '2026-10-14 20:17:00','تم عكس القيد رقم 2345 ','1','0','0','0','0',''); -- id=2468
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2468', '382', '48780.00', '','0'); -- id=2470
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23126371.73', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2468', '426', '48780.00', '','0'); -- id=2524
UPDATE accountstree SET name = 'خالد الدولي - مورد', customName = 'خالد الدولي - مورد', customNameEn = 'خالد الدولي - مورد', nameEn = 'خالد الدولي - مورد', parent = '81', accountNature = '1', theValue = '320', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '426';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '48780', '48780', '2026-10-14', '1', '0', '0', '2026-10-14 20:17:00','اضافة فاتورة مشتريات رقم 165','1','0',null,'0','165','buyBillController.php?do=details&id=165'); -- id=2469
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2469', '492', '48780', '','0'); -- id=2525
UPDATE accountstree SET name = 'مخزن المحل', customName = 'مخزن المحل', customNameEn = 'مخزن المحل', nameEn = 'مخزن المحل', parent = '49', accountNature = '0', theValue = '1361395', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 19:38:59' WHERE id = '492';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2469', '426', '48780', '','0'); -- id=2471
UPDATE accountstree SET name = 'خالد الدولي - مورد', customName = 'خالد الدولي - مورد', customNameEn = 'خالد الدولي - مورد', nameEn = 'خالد الدولي - مورد', parent = '81', accountNature = '1', theValue = '49100', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '426';
update buybill set dailyentryid='2469,0' where buybillid=165;
UPDATE product SET overAllAveragePrice = 850 WHERE productId = 1928;UPDATE product SET overAllAveragePrice = 425 WHERE productId = 1929;UPDATE product SET overAllAveragePrice = 395 WHERE productId = 1930;UPDATE product SET overAllAveragePrice = 350 WHERE productId = 1931;;
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:47:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:17:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:17:00', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=165'); -- id=9762
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:47:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:17:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 20:17:03', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9763
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:47:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:17:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:17:10', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=show'); -- id=9764
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:47:13";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:17:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('supplierReportsController.php', '2026-10-14 20:17:13', '1', 'oneSupplier', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/supplierReportsController.php?do=oneSupplier'); -- id=9765
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:47:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:17:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:17:32', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9766
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:47:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:17:42", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 20:17:42', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9767
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 16:47:42";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 20:17:43', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9768
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:47:46";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:17:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 20:17:46', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9769
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 16:47:46";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 20:17:46', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9770
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:47:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:17:49", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 20:17:49', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9771

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acfb3c8b92ab
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 20:17:49', '06acfb3c8b92ab', '1', '0.00', '0', '0', '1', '31575.00', '31575', '31575', '0', '1', '2026-10-14 20:17:49', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '76' ,'0','','','','','-1','0','0','0','0','0','31575','0','','0','0','31575','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=544
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','544', '0', '2026-10-14 20:17:49', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '31575', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 20:17:49','0','0','',''); -- id=692
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 824;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('495','01822', '544', '140', '1822', '12', '550', '6600', '0', '', '0', '2026-10-14 20:17:49', '1822', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','824-12,','1','1','0','0','550','6600','0','','0','0.00','0','0','0','0'); -- id=1971
UPDATE sellbilldetail SET  lastbuyprice = 550.00 , meanbuyprice = 550.00, lastbuyprice_withDiscount = 495.00, meanbuyprice_withDiscount = 522.50
        , lastbuyprice_withTax = 550, meanbuyprice_withTax = 275, lastbuyprice_withDiscountAndTax = 495
                where sellbilldetailid = 1971;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1822, '2026-10-14', 6600, 6600, 6600
                    , 6600, 5940, 6270, 5940
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 6600, 3300, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6600, sellCostBuyPrice =sellCostBuyPrice+6600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5940, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6270
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5940
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3300
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 6600, 6600, 6600
                    , 6600, 5940, 6270, 5940
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6600, 3300, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6600, sellCostBuyPrice =sellCostBuyPrice+6600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5940, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6270
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5940
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3300
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '4', userid = '3', storedetaildate = '2026-10-14 20:17:49' WHERE storedetailid = '2836';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1822', '1', '12', '1', '544', 'اضافة فاتورة مبيعات', 'sellbillController.php', '16', '4', '3', '2026-10-14 20:17:49','0','0'); -- id=11258
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('355','09632', '544', '24', '885', '25', '375', '9375', '0', '', '0', '2026-10-14 20:17:49', '885', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','375','9375','0','','0','0.00','0','0','0','0'); -- id=1972
UPDATE sellbilldetail SET  lastbuyprice = 355.00 , meanbuyprice = 355.00, lastbuyprice_withDiscount = 355.00, meanbuyprice_withDiscount = 355.00
        , lastbuyprice_withTax = 355, meanbuyprice_withTax = 355, lastbuyprice_withDiscountAndTax = 355
                where sellbilldetailid = 1972;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (885, '2026-10-14', 9375, 8875, 8875
                    , 8875, 8875, 8875, 8875
                    , 0, 0, 0, 0
                    , 0, 0, 0, 25, 0, 8875, 8875, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+9375, sellCostBuyPrice =sellCostBuyPrice+8875
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8875, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8875
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+8875, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+8875
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+8875
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8875
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+8875
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+25
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 9375, 8875, 8875
                    , 8875, 8875, 8875, 8875
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8875, 8875, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+9375, sellCostBuyPrice =sellCostBuyPrice+8875
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8875, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8875
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+8875, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+8875
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+8875
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8875
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+8875
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 20:17:49' WHERE storedetailid = '885';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('885', '1', '25', '1', '544', 'اضافة فاتورة مبيعات', 'sellbillController.php', '25', '0', '3', '2026-10-14 20:17:49','0','0'); -- id=11259
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+15 where id = 537;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('303.6','01635', '544', '120', '1635', '15', '330', '4950', '0', '', '0', '2026-10-14 20:17:49', '1635', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','537-15,','1','1','0','0','330','4950','0','','0','0.00','0','0','0','0'); -- id=1973
UPDATE sellbilldetail SET  lastbuyprice = 330.00 , meanbuyprice = 330.00, lastbuyprice_withDiscount = 303.60, meanbuyprice_withDiscount = 303.60
        , lastbuyprice_withTax = 330, meanbuyprice_withTax = 330, lastbuyprice_withDiscountAndTax = 303.6
                where sellbilldetailid = 1973;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1635, '2026-10-14', 4950, 4950, 4950
                    , 4950, 4554, 4554, 4554
                    , 0, 0, 0, 0
                    , 0, 0, 0, 15, 0, 4950, 4950, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4950, sellCostBuyPrice =sellCostBuyPrice+4950
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4950, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4950
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4554, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4554
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4554
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4950
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4950
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+15
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4950, 4950, 4950
                    , 4950, 4554, 4554, 4554
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4950, 4950, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4950, sellCostBuyPrice =sellCostBuyPrice+4950
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4950, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4950
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4554, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4554
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4554
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4950
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4950
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '6', userid = '3', storedetaildate = '2026-10-14 20:17:49' WHERE storedetailid = '1660';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1635', '1', '15', '1', '544', 'اضافة فاتورة مبيعات', 'sellbillController.php', '21', '6', '3', '2026-10-14 20:17:49','0','0'); -- id=11260
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 998;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('322','01904', '544', '149', '1904', '6', '350', '2100', '0', '', '0', '2026-10-14 20:17:49', '1904', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','998-6,','1','1','0','0','350','2100','0','','0','0.00','0','0','0','0'); -- id=1974
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 322.00, meanbuyprice_withDiscount = 336.00
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 175, lastbuyprice_withDiscountAndTax = 322
                where sellbilldetailid = 1974;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1904, '2026-10-14', 2100, 2100, 2100
                    , 2100, 1932, 2016, 1932
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2100, 1050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2100, sellCostBuyPrice =sellCostBuyPrice+2100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1932, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2016
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1932
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1050
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2100, 2100, 2100
                    , 2100, 1932, 2016, 1932
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2100, 1050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2100, sellCostBuyPrice =sellCostBuyPrice+2100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1932, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2016
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1932
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1050
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '6', userid = '3', storedetaildate = '2026-10-14 20:17:49' WHERE storedetailid = '2921';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1904', '1', '6', '1', '544', 'اضافة فاتورة مبيعات', 'sellbillController.php', '12', '6', '3', '2026-10-14 20:17:49','0','0'); -- id=11261
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+18 where id = 578;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('437','01715', '544', '128', '1715', '18', '475', '8550', '0', '', '0', '2026-10-14 20:17:49', '1715', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','578-18,','1','1','0','0','475','8550','0','','0','0.00','0','0','0','0'); -- id=1975
UPDATE sellbilldetail SET  lastbuyprice = 475.00 , meanbuyprice = 475.00, lastbuyprice_withDiscount = 437.00, meanbuyprice_withDiscount = 456.00
        , lastbuyprice_withTax = 475, meanbuyprice_withTax = 237.5, lastbuyprice_withDiscountAndTax = 437
                where sellbilldetailid = 1975;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1715, '2026-10-14', 8550, 8550, 8550
                    , 8550, 7866, 8208, 7866
                    , 0, 0, 0, 0
                    , 0, 0, 0, 18, 0, 8550, 4275, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8550, sellCostBuyPrice =sellCostBuyPrice+8550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7866, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+8208
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7866
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4275
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+18
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 8550, 8550, 8550
                    , 8550, 7866, 8208, 7866
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8550, 4275, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8550, sellCostBuyPrice =sellCostBuyPrice+8550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+8550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+8550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7866, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+8208
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7866
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+8550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4275
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '9', userid = '3', storedetaildate = '2026-10-14 20:17:49' WHERE storedetailid = '2727';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1715', '1', '18', '1', '544', 'اضافة فاتورة مبيعات', 'sellbillController.php', '27', '9', '3', '2026-10-14 20:17:49','0','0'); -- id=11262
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3712240',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3680665','31575', '0', '2', 'اضافة فاتورة مبيعات', '544', '3712240', '2026-10-14 20:17:49', '3',  'sellbillController.php','1','','0'); -- id=686
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '31575', '31575', '2026-10-14', '3', '0', '0', '2026-10-14 20:17:49','اضافة فاتورة مبيعات رقم 544','1','0',null,'0','544','sellbillController.php?do=showDetail&sellbillid=544'); -- id=2470
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2470', '419', '31575', '','0'); -- id=2526
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3712240', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2470', '143', '31575', '','0'); -- id=2472
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5964050', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '29167', '29167', '2026-10-14', '3', '0', '0', '2026-10-14 20:17:49','اضافة فاتورة مبيعات رقم 544 - صرف البضاعة من المخزن','1','0',null,'0','544','sellbillController.php?do=showDetail&sellbillid=544'); -- id=2471
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2471', '402', '29167', '','0'); -- id=2527
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5561596.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2471', '382', '29167', '','0'); -- id=2473
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23097204.73', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2470,0,2471' where sellbillid=544;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 31575, 31075, 31075
                    , 31075, 29167, 29923, 29167
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,31075, 22450, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+31575, sellCostBuyPrice =sellCostBuyPrice+31075
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+31075, sellCostMeanBuyPrice = sellCostMeanBuyPrice+31075
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+29167, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+29923
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+29167
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+31075
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+22450
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 31575, 31075, 31075
                    , 31075, 29167, 29923, 29167
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,31075, 22450, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+31575, sellCostBuyPrice =sellCostBuyPrice+31075
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+31075, sellCostMeanBuyPrice = sellCostMeanBuyPrice+31075
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+29167, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+29923
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+29167
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+31075
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+22450
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 31575, 31075, 31075
                    , 31075, 29167, 29923, 29167, 31075, 22450)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+31575, netSellCostBuyPrice = netSellCostBuyPrice+31075
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+31075
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+31075
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+29167
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+29923
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+29167
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+31075
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+22450;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acfb3c8b92ab and sellbillId = 544 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:47:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:17:49", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 20:17:49', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9772
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:47:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:17:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:17:50', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9773
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:48:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:18:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:18:00', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9774
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:48:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:18:33", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 20:18:33', '3', 'showDetail', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=showDetail&sellbillid=544'); -- id=9775
UPDATE product SET productName = 'جينز 666 كافاني', productDescription = '', productCatId = '2', productBuyPrice = '365.00', productSellAllPrice = '385.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09226',type ='0', expireDate = '0' , dailyentryId = '356',isService = '0',isOptic = '0',lastbuyprice = '365.00',lastbuyprice_withDiscount = '365',meanbuyprice = '365.00',meanbuyprice_withDiscount = '365' , productbuypricereal = '365.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9226',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='365',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1001';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1001, 1,'2026-10-14 20:19:12',1)
                ON DUPLICATE KEY UPDATE productid = 1001, edited = 1, sysdate = '2026-10-14 20:19:12', userid = 1; -- id=1646
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:49:19";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:19:19", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 20:19:19', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9776
UPDATE product SET productName = 'جينز 666 كافاني', productDescription = '', productCatId = '2', productBuyPrice = '365.00', productSellAllPrice = '385.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09226',type ='0', expireDate = '0' , dailyentryId = '356',isService = '0',isOptic = '0',lastbuyprice = '365.00',lastbuyprice_withDiscount = '365',meanbuyprice = '365.00',meanbuyprice_withDiscount = '365' , productbuypricereal = '365.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9226',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='365',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1001';
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (1001, 1,'2026-10-14 20:20:09',1)
                ON DUPLICATE KEY UPDATE productid = 1001, edited = 1, sysdate = '2026-10-14 20:20:09', userid = 1; -- id=1646
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:51:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:21:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:21:42', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9777
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:52:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:22:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:22:32', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9778
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('وايد ليج كاتينج كافاني','','2','415','430','430','430','2026-10-14','0','1','0','','0','0','0','0','0','415','415','415','415','415','0','3.61','0','0','.','0','0','0','415','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','415','415','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','415','0','0','0','0','0','0','','','0','0','0','0'); -- id=2036
UPDATE product SET productName = 'وايد ليج كاتينج كافاني', productDescription = '', productCatId = '2', productBuyPrice = '415', productSellAllPrice = '430', productSellUnitPrice = '430', productSellHalfPrice = '430', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02036',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '415',lastbuyprice_withDiscount = '415',meanbuyprice = '415',meanbuyprice_withDiscount = '415' , productbuypricereal = '415' , buypricereal_precentage = '0' , buytotal_precentage = '3.61' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='415',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='415',meanbuyprice_withTax='415',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='415',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2036';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2036', '1', '2026-10-14', '1', '0','0203601','430','430','430','415','','0','0','0','0','0','0','0','0','0','0'); -- id=2036
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2036', '1', '0', '1', '2026-10-14'); -- id=3395
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2036', '1', '0', '0', '2036', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11263
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2036, 1,'2026-10-14 20:22:32',1)
                ON DUPLICATE KEY UPDATE productid = 2036, edited = 1, sysdate = '2026-10-14 20:22:32', userid = 1; -- id=2994
UPDATE product SET productName = 'وايد ليج كاتينج كافاني', productDescription = '', productCatId = '2', productBuyPrice = '415.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02036',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '415',lastbuyprice_withDiscount = '415',meanbuyprice = '415',meanbuyprice_withDiscount = '415' , productbuypricereal = '415' , buypricereal_precentage = '0' , buytotal_precentage = '3.61' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='415',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='415',meanbuyprice_withTax='415',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='415',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2036';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('مستورد لامبورجيني كافاني','','2','505','520','520','520','2026-10-14','0','1','0','','0','0','0','0','0','505','505','505','505','505','0','2.97','0','0','.','0','0','0','505','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','505','505','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','505','0','0','0','0','0','0','','','0','0','0','0'); -- id=2037
UPDATE product SET productName = 'مستورد لامبورجيني كافاني', productDescription = '', productCatId = '2', productBuyPrice = '505', productSellAllPrice = '520', productSellUnitPrice = '520', productSellHalfPrice = '520', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02037',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '505',lastbuyprice_withDiscount = '505',meanbuyprice = '505',meanbuyprice_withDiscount = '505' , productbuypricereal = '505' , buypricereal_precentage = '0' , buytotal_precentage = '2.97' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='505',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='505',meanbuyprice_withTax='505',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='505',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2037';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2037', '1', '2026-10-14', '1', '0','0203701','520','520','520','505','','0','0','0','0','0','0','0','0','0','0'); -- id=2037
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2037', '1', '0', '1', '2026-10-14'); -- id=3396
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2037', '1', '0', '0', '2037', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11264
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2037, 1,'2026-10-14 20:22:32',1)
                ON DUPLICATE KEY UPDATE productid = 2037, edited = 1, sysdate = '2026-10-14 20:22:32', userid = 1; -- id=2995
UPDATE product SET productName = 'مستورد لامبورجيني كافاني', productDescription = '', productCatId = '2', productBuyPrice = '505.00', productSellAllPrice = '520.00', productSellUnitPrice = '520.00', productSellHalfPrice = '520.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02037',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '505',lastbuyprice_withDiscount = '505',meanbuyprice = '505',meanbuyprice_withDiscount = '505' , productbuypricereal = '505' , buypricereal_precentage = '0' , buytotal_precentage = '2.97' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='505',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='505',meanbuyprice_withTax='505',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='505',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2037';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:52:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:22:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:22:33', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9779
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:52:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:22:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:22:34', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9780
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:53:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:23:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:23:16', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9781
UPDATE productunit SET unitid = '1', productid = '1001', productnumber = '1.00', productunitdate = '2026-09-27', userid = '1', conditions = '0',proUnitParcode='',proUnitSellAllPrice='385',proUnitSellHalfPrice='0',proUnitSellUnitPrice ='0',proUnitBuyPrice='365',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '1001';
UPDATE product SET productName = 'جينز 666 كافاني', productDescription = '', productCatId = '2', productBuyPrice = '370', productSellAllPrice = '385', productSellUnitPrice = '0', productSellHalfPrice = '0', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09226',type ='0', expireDate = '0' , dailyentryId = '356',isService = '0',isOptic = '0',lastbuyprice = '365.00',lastbuyprice_withDiscount = '365',meanbuyprice = '365.00',meanbuyprice_withDiscount = '365' , productbuypricereal = '365' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9226',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='365',meanbuyprice_withTax='365',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='365',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1001';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:54:58";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:24:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:24:58', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9782
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfba5ad5f85', '2026-10-14 20:22:34', '50', '489410.00', '566705', '0', '0', '77295.00',  '77295.00', '0', '77295', '1', '2026-10-14 20:24:58', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=166
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('09226', '166', '2', '1001', '72', '370', '26640.00', '0', '', '2026-10-14 20:24:58', '1001','','','0','0','0','0','0',null,'370','26640','0','0','0','0','0','0','0','0','1'); -- id=1016
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:22:34', 1, 1001, 0, 0
                    , 370, 72, 0, 0, 1, '2026-10-14 20:24:58')
                ON DUPLICATE KEY UPDATE buyprice = 370,
                        buyQuantity =buyQuantity+72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:24:58' ; -- id=2920
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1001', '370', '72', '0', 'buyBillController.php', '1016', '', '0', '0'); -- id=769
UPDATE product SET  productBuyPrice = "370" WHERE productId = 1001 ;
UPDATE buybilldetail SET  quantitybefore = 23 WHERE buybilldetailid = 1016 ;
UPDATE product SET productName = 'جينز 666 كافاني', productDescription = '', productCatId = '2', productBuyPrice = '370.00', productSellAllPrice = '385.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '09226',type ='0', expireDate = '0' , dailyentryId = '356',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '368.79',meanbuyprice_withDiscount = '368.79' , productbuypricereal = '365.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='365',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='9226',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='368.79',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1001';
UPDATE buybilldetail SET  lastbuyprice = 370 , meanbuyprice = 368.79, lastbuyprice_withDiscount = 370, meanbuyprice_withDiscount = 368.79
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 368.79, lastbuyprice_withDiscountAndTax = 370
                where buybilldetailid = 1016;
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 1001;
UPDATE storedetail SET  productquantity = '95', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1001';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1001', '1', '72', '0', '166', 'اضافة فاتورة مشتريات', 'buyBillController.php', '23', '95', '1', '2026-10-14 20:22:34','0','0'); -- id=11265
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02036', '166', '2', '2036', '60', '415', '24900.00', '0', '', '2026-10-14 20:24:58', '2036','','','0','0','0','0','0',null,'415','24900','0','0','0','0','0','0','0','0','1'); -- id=1017
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:22:34', 1, 2036, 0, 0
                    , 415, 60, 0, 0, 1, '2026-10-14 20:24:58')
                ON DUPLICATE KEY UPDATE buyprice = 415,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:24:58' ; -- id=6068
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2036', '415', '60', '0', 'buyBillController.php', '1017', '', '0', '0'); -- id=770
UPDATE product SET  productBuyPrice = "415" WHERE productId = 2036 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1017 ;
UPDATE product SET productName = 'وايد ليج كاتينج كافاني', productDescription = '', productCatId = '2', productBuyPrice = '415.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02036',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '415',lastbuyprice_withDiscount = '415',meanbuyprice = '415',meanbuyprice_withDiscount = '415' , productbuypricereal = '415.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.61' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='415',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='415',meanbuyprice_withTax='415',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='415',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2036';
UPDATE buybilldetail SET  lastbuyprice = 415 , meanbuyprice = 415, lastbuyprice_withDiscount = 415, meanbuyprice_withDiscount = 415
        , lastbuyprice_withTax = 415, meanbuyprice_withTax = 415, lastbuyprice_withDiscountAndTax = 415
                where buybilldetailid = 1017;
UPDATE productunit SET proUnitBuyPrice  = 415 * productnumber WHERE productid = 2036;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3395';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2036', '1', '60', '0', '166', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '60', '1', '2026-10-14 20:22:34','0','0'); -- id=11266
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02037', '166', '2', '2037', '51', '505', '25755.00', '0', '', '2026-10-14 20:24:58', '2037','','','0','0','0','0','0',null,'505','25755','0','0','0','0','0','0','0','0','1'); -- id=1018
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:22:34', 1, 2037, 0, 0
                    , 505, 51, 0, 0, 1, '2026-10-14 20:24:58')
                ON DUPLICATE KEY UPDATE buyprice = 505,
                        buyQuantity =buyQuantity+51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:24:58' ; -- id=6069
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2037', '505', '51', '0', 'buyBillController.php', '1018', '', '0', '0'); -- id=771
UPDATE product SET  productBuyPrice = "505" WHERE productId = 2037 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1018 ;
UPDATE product SET productName = 'مستورد لامبورجيني كافاني', productDescription = '', productCatId = '2', productBuyPrice = '505.00', productSellAllPrice = '520.00', productSellUnitPrice = '520.00', productSellHalfPrice = '520.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02037',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '505',lastbuyprice_withDiscount = '505',meanbuyprice = '505',meanbuyprice_withDiscount = '505' , productbuypricereal = '505.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '2.97' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='505',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='505',meanbuyprice_withTax='505',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='505',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2037';
UPDATE buybilldetail SET  lastbuyprice = 505 , meanbuyprice = 505, lastbuyprice_withDiscount = 505, meanbuyprice_withDiscount = 505
        , lastbuyprice_withTax = 505, meanbuyprice_withTax = 505, lastbuyprice_withDiscountAndTax = 505
                where buybilldetailid = 1018;
UPDATE productunit SET proUnitBuyPrice  = 505 * productnumber WHERE productid = 2037;
UPDATE storedetail SET  productquantity = '51', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3396';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2037', '1', '51', '0', '166', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '51', '1', '2026-10-14 20:22:34','0','0'); -- id=11267
UPDATE supplier SET  suppliercurrentDebt = '566705',suppliercurrentDebtInCurrency= '566705' , userid = '1', supplierdate = '2026-10-14 20:24:58'   WHERE supplierid = '50';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('50', '489410.00', '77295', '0', 'اضافة فاتورة مشتريات', '166', '566705', '2026-10-14 20:22:34', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','77295','1','489410','77295','566705','0',''); -- id=509
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '77295', '77295', '2026-10-14', '1', '0', '0', '2026-10-14 20:24:58','اضافة فاتورة مشتريات رقم 166','1','0',null,'0','166','buyBillController.php?do=details&id=166'); -- id=2472
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2472', '382', '77295', '','0'); -- id=2528
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23174499.73', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2472', '469', '77295', '','0'); -- id=2474
UPDATE accountstree SET name = 'كافاني - مورد', customName = 'كافاني - مورد', customNameEn = 'كافاني - مورد', nameEn = 'كافاني - مورد', parent = '81', accountNature = '1', theValue = '91255', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '469';
update buybill set dailyentryid='2472,0' where buybillid=166;
COMMIT;
UPDATE product SET overAllAveragePrice = 370 WHERE productId = 1001;UPDATE product SET overAllAveragePrice = 415 WHERE productId = 2036;UPDATE product SET overAllAveragePrice = 505 WHERE productId = 2037;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:54:58";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:24:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:24:58', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=166'); -- id=9783
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:55:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:25:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:25:09', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=166&type=2'); -- id=9784
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:55:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:25:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:25:49', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9785
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:56:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:26:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:26:50', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9786
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جبردين فاشون','','54','350','350','350','350','2026-10-14','0','1','0','','0','0','0','0','0','350','350','350','350','350','0','0','0','0','.','0','0','0','350','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','350','350','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','350','0','0','0','0','0','0','','','0','0','0','0'); -- id=2038
UPDATE product SET productName = 'جبردين فاشون', productDescription = '', productCatId = '54', productBuyPrice = '350', productSellAllPrice = '350', productSellUnitPrice = '350', productSellHalfPrice = '350', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02038',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '350',meanbuyprice = '350',meanbuyprice_withDiscount = '350' , productbuypricereal = '350' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='350',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2038';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2038', '1', '2026-10-14', '1', '0','0203801','350','350','350','350','','0','0','0','0','0','0','0','0','0','0'); -- id=2038
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2038', '1', '0', '1', '2026-10-14'); -- id=3397
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2038', '1', '0', '0', '2038', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11268
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2038, 1,'2026-10-14 20:26:50',1)
                ON DUPLICATE KEY UPDATE productid = 2038, edited = 1, sysdate = '2026-10-14 20:26:50', userid = 1; -- id=2996
UPDATE product SET productName = 'جبردين فاشون', productDescription = '', productCatId = '54', productBuyPrice = '350.00', productSellAllPrice = '350.00', productSellUnitPrice = '350.00', productSellHalfPrice = '350.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02038',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '350',meanbuyprice = '350',meanbuyprice_withDiscount = '350' , productbuypricereal = '350' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='350',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2038';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جلد فاشون المعلم','','54','280','280','280','280','2026-10-14','0','1','0','','0','0','0','0','0','280','280','280','280','280','0','0','0','0','.','0','0','0','280','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','280','280','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','280','0','0','0','0','0','0','','','0','0','0','0'); -- id=2039
UPDATE product SET productName = 'جلد فاشون المعلم', productDescription = '', productCatId = '54', productBuyPrice = '280', productSellAllPrice = '280', productSellUnitPrice = '280', productSellHalfPrice = '280', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02039',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '280',lastbuyprice_withDiscount = '280',meanbuyprice = '280',meanbuyprice_withDiscount = '280' , productbuypricereal = '280' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='280',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='280',meanbuyprice_withTax='280',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='280',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2039';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2039', '1', '2026-10-14', '1', '0','0203901','280','280','280','280','','0','0','0','0','0','0','0','0','0','0'); -- id=2039
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2039', '1', '0', '1', '2026-10-14'); -- id=3398
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2039', '1', '0', '0', '2039', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11269
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2039, 1,'2026-10-14 20:26:50',1)
                ON DUPLICATE KEY UPDATE productid = 2039, edited = 1, sysdate = '2026-10-14 20:26:50', userid = 1; -- id=2997
UPDATE product SET productName = 'جلد فاشون المعلم', productDescription = '', productCatId = '54', productBuyPrice = '280.00', productSellAllPrice = '280.00', productSellUnitPrice = '280.00', productSellHalfPrice = '280.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02039',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '280',lastbuyprice_withDiscount = '280',meanbuyprice = '280',meanbuyprice_withDiscount = '280' , productbuypricereal = '280' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='280',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='280',meanbuyprice_withTax='280',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='280',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2039';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكت المعلم','','54','450','450','450','450','2026-10-14','0','1','0','','0','0','0','0','0','450','450','450','450','450','0','0','0','0','.','0','0','0','450','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','450','450','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','450','0','0','0','0','0','0','','','0','0','0','0'); -- id=2040
UPDATE product SET productName = 'جاكت المعلم', productDescription = '', productCatId = '54', productBuyPrice = '450', productSellAllPrice = '450', productSellUnitPrice = '450', productSellHalfPrice = '450', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02040',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2040';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2040', '1', '2026-10-14', '1', '0','0204001','450','450','450','450','','0','0','0','0','0','0','0','0','0','0'); -- id=2040
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2040', '1', '0', '1', '2026-10-14'); -- id=3399
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2040', '1', '0', '0', '2040', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11270
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2040, 1,'2026-10-14 20:26:50',1)
                ON DUPLICATE KEY UPDATE productid = 2040, edited = 1, sysdate = '2026-10-14 20:26:50', userid = 1; -- id=2998
UPDATE product SET productName = 'جاكت المعلم', productDescription = '', productCatId = '54', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02040',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2040';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:56:51";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:26:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:26:51', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9787
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:57:01";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:27:01", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:27:01', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php'); -- id=9788
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:57:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:27:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:27:03', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9789
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:58:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:28:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:28:23', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9790
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfbb675e42e', '2026-10-14 20:27:03', '17', '546030.00', '625275', '10', '1', '88050.00',  '79245.00', '0', '79245', '1', '2026-10-14 20:28:23', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=167
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02038', '167', '54', '2038', '150', '350', '52500.00', '0', '', '2026-10-14 20:28:23', '2038','','','0','0','0','0','0',null,'350','52500','0','0','0','0','0','0','0','0','1'); -- id=1019
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:27:03', 1, 2038, 0, 0
                    , 315, 150, 0, 0, 1, '2026-10-14 20:28:23')
                ON DUPLICATE KEY UPDATE buyprice = 315,
                        buyQuantity =buyQuantity+150, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:28:23' ; -- id=6070
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2038', '350', '150', '0', 'buyBillController.php', '1019', '', '0', '0'); -- id=772
UPDATE product SET  productBuyPrice = "350" WHERE productId = 2038 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1019 ;
UPDATE product SET productName = 'جبردين فاشون', productDescription = '', productCatId = '54', productBuyPrice = '350.00', productSellAllPrice = '350.00', productSellUnitPrice = '350.00', productSellHalfPrice = '350.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02038',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '315',meanbuyprice = '350',meanbuyprice_withDiscount = '315' , productbuypricereal = '350.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='315',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2038';
UPDATE buybilldetail SET  lastbuyprice = 350 , meanbuyprice = 350, lastbuyprice_withDiscount = 315, meanbuyprice_withDiscount = 315
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 315
                where buybilldetailid = 1019;
UPDATE productunit SET proUnitBuyPrice  = 350 * productnumber WHERE productid = 2038;
UPDATE storedetail SET  productquantity = '150', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3397';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2038', '1', '150', '0', '167', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '150', '1', '2026-10-14 20:27:03','0','0'); -- id=11271
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02039', '167', '54', '2039', '45', '280', '12600.00', '0', '', '2026-10-14 20:28:23', '2039','','','0','0','0','0','0',null,'280','12600','0','0','0','0','0','0','0','0','1'); -- id=1020
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:27:03', 1, 2039, 0, 0
                    , 252, 45, 0, 0, 1, '2026-10-14 20:28:23')
                ON DUPLICATE KEY UPDATE buyprice = 252,
                        buyQuantity =buyQuantity+45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:28:23' ; -- id=6071
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2039', '280', '45', '0', 'buyBillController.php', '1020', '', '0', '0'); -- id=773
UPDATE product SET  productBuyPrice = "280" WHERE productId = 2039 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1020 ;
UPDATE product SET productName = 'جلد فاشون المعلم', productDescription = '', productCatId = '54', productBuyPrice = '280.00', productSellAllPrice = '280.00', productSellUnitPrice = '280.00', productSellHalfPrice = '280.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02039',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '280',lastbuyprice_withDiscount = '252',meanbuyprice = '280',meanbuyprice_withDiscount = '252' , productbuypricereal = '280.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='280',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='280',meanbuyprice_withTax='280',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='252',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2039';
UPDATE buybilldetail SET  lastbuyprice = 280 , meanbuyprice = 280, lastbuyprice_withDiscount = 252, meanbuyprice_withDiscount = 252
        , lastbuyprice_withTax = 280, meanbuyprice_withTax = 280, lastbuyprice_withDiscountAndTax = 252
                where buybilldetailid = 1020;
UPDATE productunit SET proUnitBuyPrice  = 280 * productnumber WHERE productid = 2039;
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3398';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2039', '1', '45', '0', '167', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '45', '1', '2026-10-14 20:27:03','0','0'); -- id=11272
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02040', '167', '54', '2040', '51', '450', '22950.00', '0', '', '2026-10-14 20:28:23', '2040','','','0','0','0','0','0',null,'450','22950','0','0','0','0','0','0','0','0','1'); -- id=1021
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:27:03', 1, 2040, 0, 0
                    , 405, 51, 0, 0, 1, '2026-10-14 20:28:23')
                ON DUPLICATE KEY UPDATE buyprice = 405,
                        buyQuantity =buyQuantity+51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:28:23' ; -- id=6072
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2040', '450', '51', '0', 'buyBillController.php', '1021', '', '0', '0'); -- id=774
UPDATE product SET  productBuyPrice = "450" WHERE productId = 2040 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1021 ;
UPDATE product SET productName = 'جاكت المعلم', productDescription = '', productCatId = '54', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02040',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '405',meanbuyprice = '450',meanbuyprice_withDiscount = '405' , productbuypricereal = '450.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='405',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2040';
UPDATE buybilldetail SET  lastbuyprice = 450 , meanbuyprice = 450, lastbuyprice_withDiscount = 405, meanbuyprice_withDiscount = 405
        , lastbuyprice_withTax = 450, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 405
                where buybilldetailid = 1021;
UPDATE productunit SET proUnitBuyPrice  = 450 * productnumber WHERE productid = 2040;
UPDATE storedetail SET  productquantity = '51', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3399';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2040', '1', '51', '0', '167', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '51', '1', '2026-10-14 20:27:03','0','0'); -- id=11273
UPDATE supplier SET  suppliercurrentDebt = '91088',suppliercurrentDebtInCurrency= '625275' , userid = '1', supplierdate = '2026-10-14 20:28:23'   WHERE supplierid = '17';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('17', '11843.00', '79245', '0', 'اضافة فاتورة مشتريات', '167', '91088', '2026-10-14 20:27:03', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','79245','1','546030','79245','625275','0',''); -- id=510
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '79245', '79245', '2026-10-14', '1', '0', '0', '2026-10-14 20:28:23','اضافة فاتورة مشتريات رقم 167','1','0',null,'0','167','buyBillController.php?do=details&id=167'); -- id=2473
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2473', '382', '79245', '','0'); -- id=2529
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23253744.73', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2473', '436', '79245', '','0'); -- id=2475
UPDATE accountstree SET name = 'المعلم - مورد', customName = 'المعلم - مورد', customNameEn = 'المعلم - مورد', nameEn = 'المعلم - مورد', parent = '81', accountNature = '1', theValue = '79245', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '436';
update buybill set dailyentryid='2473,0' where buybillid=167;
COMMIT;
UPDATE product SET overAllAveragePrice = 315 WHERE productId = 2038;UPDATE product SET overAllAveragePrice = 252 WHERE productId = 2039;UPDATE product SET overAllAveragePrice = 405 WHERE productId = 2040;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:58:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:28:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:28:23', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=167'); -- id=9791
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:58:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:28:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:28:30', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=167&type=2'); -- id=9792
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 16:58:38";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:28:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 20:28:38', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9793
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:00:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:30:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 20:30:14', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9794
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('جاكو','2026-10-14','','93', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=167
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (167, 1,'2026-10-14 20:30:14',1)
                ON DUPLICATE KEY UPDATE catid = 167, edited = 1, sysdate = '2026-10-14 20:30:14', userid = 1; -- id=179
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '167', '1', '2026-10-14', '1', '0'); -- id=72
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:00:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:30:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 20:30:14', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9795
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:00:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:30:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 20:30:16', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9796
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:00:20";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:30:20", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:30:20', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=167&type=2'); -- id=9797
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:00:27";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:30:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:30:27', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9798
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:02:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:32:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:32:12', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9799
UPDATE user SET loginip = "" WHERE userid = 6;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:02:55";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:32:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:32:55', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9800
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:04:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:34:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:34:02', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9801
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:04:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:34:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:34:29', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9802
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كابيشو جاكو','','167','310','350','350','350','2026-10-14','0','1','0','','0','0','0','0','0','310','310','310','310','310','0','12.9','0','0','.','0','0','0','310','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','310','310','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','310','0','0','0','0','0','0','','','0','0','0','0'); -- id=2041
UPDATE product SET productName = 'كابيشو جاكو', productDescription = '', productCatId = '167', productBuyPrice = '310', productSellAllPrice = '350', productSellUnitPrice = '350', productSellHalfPrice = '350', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02041',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310',lastbuyprice_withDiscount = '310',meanbuyprice = '310',meanbuyprice_withDiscount = '310' , productbuypricereal = '310' , buypricereal_precentage = '0' , buytotal_precentage = '12.9' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2041';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2041', '1.00', '2026-10-14', '1', '0','0204101','350','350','350','310','','0','0','0','0','0','0','0','0','0','0'); -- id=2041
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2041', '1', '0', '1', '2026-10-14'); -- id=3400
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2041', '1', '0', '0', '2041', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11274
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2041, 1,'2026-10-14 20:34:29',1)
                ON DUPLICATE KEY UPDATE productid = 2041, edited = 1, sysdate = '2026-10-14 20:34:29', userid = 1; -- id=2999
UPDATE product SET productName = 'كابيشو جاكو', productDescription = '', productCatId = '167', productBuyPrice = '310.00', productSellAllPrice = '350.00', productSellUnitPrice = '350.00', productSellHalfPrice = '350.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02041',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310',lastbuyprice_withDiscount = '310',meanbuyprice = '310',meanbuyprice_withDiscount = '310' , productbuypricereal = '310' , buypricereal_precentage = '0' , buytotal_precentage = '12.9' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2041';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('بوكس فيت جاكو','','167','250','280','280','280','2026-10-14','0','1','0','','0','0','0','0','0','250','250','250','250','250','0','12','0','0','.','0','0','0','250','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','250','250','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','250','0','0','0','0','0','0','','','0','0','0','0'); -- id=2042
UPDATE product SET productName = 'بوكس فيت جاكو', productDescription = '', productCatId = '167', productBuyPrice = '250', productSellAllPrice = '280', productSellUnitPrice = '280', productSellHalfPrice = '280', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02042',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '250',lastbuyprice_withDiscount = '250',meanbuyprice = '250',meanbuyprice_withDiscount = '250' , productbuypricereal = '250' , buypricereal_precentage = '0' , buytotal_precentage = '12' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='250',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='250',meanbuyprice_withTax='250',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='250',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2042';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2042', '1.00', '2026-10-14', '1', '0','0204201','280','280','280','250','','0','0','0','0','0','0','0','0','0','0'); -- id=2042
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2042', '1', '0', '1', '2026-10-14'); -- id=3401
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2042', '1', '0', '0', '2042', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11275
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2042, 1,'2026-10-14 20:34:29',1)
                ON DUPLICATE KEY UPDATE productid = 2042, edited = 1, sysdate = '2026-10-14 20:34:29', userid = 1; -- id=3000
UPDATE product SET productName = 'بوكس فيت جاكو', productDescription = '', productCatId = '167', productBuyPrice = '250.00', productSellAllPrice = '280.00', productSellUnitPrice = '280.00', productSellHalfPrice = '280.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02042',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '250',lastbuyprice_withDiscount = '250',meanbuyprice = '250',meanbuyprice_withDiscount = '250' , productbuypricereal = '250' , buypricereal_precentage = '0' , buytotal_precentage = '12' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='250',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='250',meanbuyprice_withTax='250',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='250',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2042';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل ابو لياقه جاكو','','167','340','380','380','380','2026-10-14','0','1','0','','0','0','0','0','0','340','340','340','340','340','0','11.76','0','0','.','0','0','0','340','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','340','340','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','340','0','0','0','0','0','0','','','0','0','0','0'); -- id=2043
UPDATE product SET productName = 'موديل ابو لياقه جاكو', productDescription = '', productCatId = '167', productBuyPrice = '340', productSellAllPrice = '380', productSellUnitPrice = '380', productSellHalfPrice = '380', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02043',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '340',lastbuyprice_withDiscount = '340',meanbuyprice = '340',meanbuyprice_withDiscount = '340' , productbuypricereal = '340' , buypricereal_precentage = '0' , buytotal_precentage = '11.76' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='340',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='340',meanbuyprice_withTax='340',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='340',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2043';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2043', '1.00', '2026-10-14', '1', '0','0204301','380','380','380','340','','0','0','0','0','0','0','0','0','0','0'); -- id=2043
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2043', '1', '0', '1', '2026-10-14'); -- id=3402
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2043', '1', '0', '0', '2043', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11276
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2043, 1,'2026-10-14 20:34:29',1)
                ON DUPLICATE KEY UPDATE productid = 2043, edited = 1, sysdate = '2026-10-14 20:34:29', userid = 1; -- id=3001
UPDATE product SET productName = 'موديل ابو لياقه جاكو', productDescription = '', productCatId = '167', productBuyPrice = '340.00', productSellAllPrice = '380.00', productSellUnitPrice = '380.00', productSellHalfPrice = '380.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02043',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '340',lastbuyprice_withDiscount = '340',meanbuyprice = '340',meanbuyprice_withDiscount = '340' , productbuypricereal = '340' , buypricereal_precentage = '0' , buytotal_precentage = '11.76' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='340',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='340',meanbuyprice_withTax='340',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='340',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2043';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('مطبوع مستورد جاكو','','167','340','380','380','380','2026-10-14','0','1','0','','0','0','0','0','0','340','340','340','340','340','0','11.76','0','0','.','0','0','0','340','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','340','340','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','340','0','0','0','0','0','0','','','0','0','0','0'); -- id=2044
UPDATE product SET productName = 'مطبوع مستورد جاكو', productDescription = '', productCatId = '167', productBuyPrice = '340', productSellAllPrice = '380', productSellUnitPrice = '380', productSellHalfPrice = '380', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02044',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '340',lastbuyprice_withDiscount = '340',meanbuyprice = '340',meanbuyprice_withDiscount = '340' , productbuypricereal = '340' , buypricereal_precentage = '0' , buytotal_precentage = '11.76' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='340',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='340',meanbuyprice_withTax='340',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='340',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2044';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2044', '1.00', '2026-10-14', '1', '0','0204401','380','380','380','340','','0','0','0','0','0','0','0','0','0','0'); -- id=2044
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2044', '1', '0', '1', '2026-10-14'); -- id=3403
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2044', '1', '0', '0', '2044', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11277
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2044, 1,'2026-10-14 20:34:29',1)
                ON DUPLICATE KEY UPDATE productid = 2044, edited = 1, sysdate = '2026-10-14 20:34:29', userid = 1; -- id=3002
UPDATE product SET productName = 'مطبوع مستورد جاكو', productDescription = '', productCatId = '167', productBuyPrice = '340.00', productSellAllPrice = '380.00', productSellUnitPrice = '380.00', productSellHalfPrice = '380.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02044',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '340',lastbuyprice_withDiscount = '340',meanbuyprice = '340',meanbuyprice_withDiscount = '340' , productbuypricereal = '340' , buypricereal_precentage = '0' , buytotal_precentage = '11.76' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='340',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='340',meanbuyprice_withTax='340',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='340',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2044';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:04:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:34:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:34:31', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9803
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:04:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:34:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:34:33', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9804
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:05:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:35:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:35:49', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9805
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfbd293bab5', '2026-10-14 20:34:33', '97', '-66262.00', '260098', '0', '0', '326360.00',  '326360.00', '0', '326360', '1', '2026-10-14 20:35:50', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=168
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02041', '168', '167', '2041', '360', '310', '111600.00', '0', '', '2026-10-14 20:35:50', '2041','','','0','0','0','0','0',null,'310','111600','0','0','0','0','0','0','0','0','1'); -- id=1022
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:34:33', 1, 2041, 0, 0
                    , 310, 360, 0, 0, 1, '2026-10-14 20:35:50')
                ON DUPLICATE KEY UPDATE buyprice = 310,
                        buyQuantity =buyQuantity+360, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:35:50' ; -- id=6073
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2041', '310', '360', '0', 'buyBillController.php', '1022', '', '0', '0'); -- id=775
UPDATE product SET  productBuyPrice = "310" WHERE productId = 2041 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1022 ;
UPDATE product SET productName = 'كابيشو جاكو', productDescription = '', productCatId = '167', productBuyPrice = '310.00', productSellAllPrice = '350.00', productSellUnitPrice = '350.00', productSellHalfPrice = '350.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02041',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310',lastbuyprice_withDiscount = '310',meanbuyprice = '310',meanbuyprice_withDiscount = '310' , productbuypricereal = '310.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '12.90' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2041';
UPDATE buybilldetail SET  lastbuyprice = 310 , meanbuyprice = 310, lastbuyprice_withDiscount = 310, meanbuyprice_withDiscount = 310
        , lastbuyprice_withTax = 310, meanbuyprice_withTax = 310, lastbuyprice_withDiscountAndTax = 310
                where buybilldetailid = 1022;
UPDATE productunit SET proUnitBuyPrice  = 310 * productnumber WHERE productid = 2041;
UPDATE storedetail SET  productquantity = '360', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3400';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2041', '1', '360', '0', '168', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '360', '1', '2026-10-14 20:34:33','0','0'); -- id=11278
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02042', '168', '167', '2042', '500', '250', '125000.00', '0', '', '2026-10-14 20:35:50', '2042','','','0','0','0','0','0',null,'250','125000','0','0','0','0','0','0','0','0','1'); -- id=1023
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:34:33', 1, 2042, 0, 0
                    , 250, 500, 0, 0, 1, '2026-10-14 20:35:50')
                ON DUPLICATE KEY UPDATE buyprice = 250,
                        buyQuantity =buyQuantity+500, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:35:50' ; -- id=6074
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2042', '250', '500', '0', 'buyBillController.php', '1023', '', '0', '0'); -- id=776
UPDATE product SET  productBuyPrice = "250" WHERE productId = 2042 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1023 ;
UPDATE product SET productName = 'بوكس فيت جاكو', productDescription = '', productCatId = '167', productBuyPrice = '250.00', productSellAllPrice = '280.00', productSellUnitPrice = '280.00', productSellHalfPrice = '280.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02042',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '250',lastbuyprice_withDiscount = '250',meanbuyprice = '250',meanbuyprice_withDiscount = '250' , productbuypricereal = '250.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '12.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='250',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='250',meanbuyprice_withTax='250',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='250',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2042';
UPDATE buybilldetail SET  lastbuyprice = 250 , meanbuyprice = 250, lastbuyprice_withDiscount = 250, meanbuyprice_withDiscount = 250
        , lastbuyprice_withTax = 250, meanbuyprice_withTax = 250, lastbuyprice_withDiscountAndTax = 250
                where buybilldetailid = 1023;
UPDATE productunit SET proUnitBuyPrice  = 250 * productnumber WHERE productid = 2042;
UPDATE storedetail SET  productquantity = '500', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3401';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2042', '1', '500', '0', '168', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '500', '1', '2026-10-14 20:34:33','0','0'); -- id=11279
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02043', '168', '167', '2043', '40', '340', '13600.00', '0', '', '2026-10-14 20:35:50', '2043','','','0','0','0','0','0',null,'340','13600','0','0','0','0','0','0','0','0','1'); -- id=1024
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:34:33', 1, 2043, 0, 0
                    , 340, 40, 0, 0, 1, '2026-10-14 20:35:50')
                ON DUPLICATE KEY UPDATE buyprice = 340,
                        buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:35:50' ; -- id=6075
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2043', '340', '40', '0', 'buyBillController.php', '1024', '', '0', '0'); -- id=777
UPDATE product SET  productBuyPrice = "340" WHERE productId = 2043 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1024 ;
UPDATE product SET productName = 'موديل ابو لياقه جاكو', productDescription = '', productCatId = '167', productBuyPrice = '340.00', productSellAllPrice = '380.00', productSellUnitPrice = '380.00', productSellHalfPrice = '380.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02043',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '340',lastbuyprice_withDiscount = '340',meanbuyprice = '340',meanbuyprice_withDiscount = '340' , productbuypricereal = '340.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '11.76' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='340',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='340',meanbuyprice_withTax='340',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='340',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2043';
UPDATE buybilldetail SET  lastbuyprice = 340 , meanbuyprice = 340, lastbuyprice_withDiscount = 340, meanbuyprice_withDiscount = 340
        , lastbuyprice_withTax = 340, meanbuyprice_withTax = 340, lastbuyprice_withDiscountAndTax = 340
                where buybilldetailid = 1024;
UPDATE productunit SET proUnitBuyPrice  = 340 * productnumber WHERE productid = 2043;
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3402';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2043', '1', '40', '0', '168', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '40', '1', '2026-10-14 20:34:33','0','0'); -- id=11280
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02044', '168', '167', '2044', '224', '340', '76160.00', '0', '', '2026-10-14 20:35:50', '2044','','','0','0','0','0','0',null,'340','76160','0','0','0','0','0','0','0','0','1'); -- id=1025
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:34:33', 1, 2044, 0, 0
                    , 340, 224, 0, 0, 1, '2026-10-14 20:35:50')
                ON DUPLICATE KEY UPDATE buyprice = 340,
                        buyQuantity =buyQuantity+224, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:35:50' ; -- id=6076
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2044', '340', '224', '0', 'buyBillController.php', '1025', '', '0', '0'); -- id=778
UPDATE product SET  productBuyPrice = "340" WHERE productId = 2044 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1025 ;
UPDATE product SET productName = 'مطبوع مستورد جاكو', productDescription = '', productCatId = '167', productBuyPrice = '340.00', productSellAllPrice = '380.00', productSellUnitPrice = '380.00', productSellHalfPrice = '380.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02044',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '340',lastbuyprice_withDiscount = '340',meanbuyprice = '340',meanbuyprice_withDiscount = '340' , productbuypricereal = '340.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '11.76' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='340',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='340',meanbuyprice_withTax='340',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='340',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2044';
UPDATE buybilldetail SET  lastbuyprice = 340 , meanbuyprice = 340, lastbuyprice_withDiscount = 340, meanbuyprice_withDiscount = 340
        , lastbuyprice_withTax = 340, meanbuyprice_withTax = 340, lastbuyprice_withDiscountAndTax = 340
                where buybilldetailid = 1025;
UPDATE productunit SET proUnitBuyPrice  = 340 * productnumber WHERE productid = 2044;
UPDATE storedetail SET  productquantity = '224', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3403';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2044', '1', '224', '0', '168', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '224', '1', '2026-10-14 20:34:33','0','0'); -- id=11281
UPDATE supplier SET  suppliercurrentDebt = '-125449',suppliercurrentDebtInCurrency= '260098' , userid = '1', supplierdate = '2026-10-14 20:35:50'   WHERE supplierid = '97';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('97', '-451809.00', '326360', '0', 'اضافة فاتورة مشتريات', '168', '-125449', '2026-10-14 20:34:33', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','326360','1','-66262','326360','260098','0',''); -- id=511
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '326360', '326360', '2026-10-14', '1', '0', '0', '2026-10-14 20:35:50','اضافة فاتورة مشتريات رقم 168','1','0',null,'0','168','buyBillController.php?do=details&id=168'); -- id=2474
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2474', '382', '326360', '','0'); -- id=2530
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23580104.73', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2474', '580', '326360', '','0'); -- id=2476
UPDATE accountstree SET name = 'جاكو - مورد', customName = 'جاكو - مورد', customNameEn = 'جاكو - مورد', nameEn = 'جاكو - مورد', parent = '81', accountNature = '1', theValue = '326360', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-06 19:55:21' WHERE id = '580';
update buybill set dailyentryid='2474,0' where buybillid=168;
COMMIT;
UPDATE product SET overAllAveragePrice = 310 WHERE productId = 2041;UPDATE product SET overAllAveragePrice = 250 WHERE productId = 2042;UPDATE product SET overAllAveragePrice = 340 WHERE productId = 2043;UPDATE product SET overAllAveragePrice = 340 WHERE productId = 2044;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:05:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:35:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:35:50', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=168'); -- id=9806
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:05:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:35:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:35:54', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=168&type=2'); -- id=9807
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:06:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:36:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:36:14', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9808
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('اسفنجي اباتشي','','42','370','385','385','385','2026-10-14','0','1','0','','0','0','0','0','0','370','370','370','370','370','0','4.05','0','0','.','0','0','0','370','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','370','370','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','370','0','0','0','0','0','0','','','0','0','0','0'); -- id=2045
UPDATE product SET productName = 'اسفنجي اباتشي', productDescription = '', productCatId = '42', productBuyPrice = '370', productSellAllPrice = '385', productSellUnitPrice = '385', productSellHalfPrice = '385', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02045',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 = '4.05' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2045';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2045', '1', '2026-10-14', '1', '0','0204501','385','385','385','370','','0','0','0','0','0','0','0','0','0','0'); -- id=2045
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2045', '1', '0', '1', '2026-10-14'); -- id=3404
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2045', '1', '0', '0', '2045', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11282
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2045, 1,'2026-10-14 20:36:14',1)
                ON DUPLICATE KEY UPDATE productid = 2045, edited = 1, sysdate = '2026-10-14 20:36:14', userid = 1; -- id=3003
UPDATE product SET productName = 'اسفنجي اباتشي', productDescription = '', productCatId = '42', productBuyPrice = '370.00', productSellAllPrice = '385.00', productSellUnitPrice = '385.00', productSellHalfPrice = '385.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02045',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 = '4.05' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2045';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جبردين سوسته اباتشي','','42','410','425','425','425','2026-10-14','0','1','0','','0','0','0','0','0','410','410','410','410','410','0','3.66','0','0','.','0','0','0','410','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','410','410','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','410','0','0','0','0','0','0','','','0','0','0','0'); -- id=2046
UPDATE product SET productName = 'جبردين سوسته اباتشي', productDescription = '', productCatId = '42', productBuyPrice = '410', productSellAllPrice = '425', productSellUnitPrice = '425', productSellHalfPrice = '425', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02046',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 = '3.66' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2046';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2046', '1', '2026-10-14', '1', '0','0204601','425','425','425','410','','0','0','0','0','0','0','0','0','0','0'); -- id=2046
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2046', '1', '0', '1', '2026-10-14'); -- id=3405
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2046', '1', '0', '0', '2046', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11283
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2046, 1,'2026-10-14 20:36:14',1)
                ON DUPLICATE KEY UPDATE productid = 2046, edited = 1, sysdate = '2026-10-14 20:36:14', userid = 1; -- id=3004
UPDATE product SET productName = 'جبردين سوسته اباتشي', productDescription = '', productCatId = '42', productBuyPrice = '410.00', productSellAllPrice = '425.00', productSellUnitPrice = '425.00', productSellHalfPrice = '425.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02046',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 = '3.66' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2046';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جينز * وتربوف اباتشي','','42','535','550','550','550','2026-10-14','0','1','0','','0','0','0','0','0','535','535','535','535','535','0','2.8','0','0','.','0','0','0','535','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','535','535','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','535','0','0','0','0','0','0','','','0','0','0','0'); -- id=2047
UPDATE product SET productName = 'جينز * وتربوف اباتشي', productDescription = '', productCatId = '42', productBuyPrice = '535', productSellAllPrice = '550', productSellUnitPrice = '550', productSellHalfPrice = '550', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02047',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '535',lastbuyprice_withDiscount = '535',meanbuyprice = '535',meanbuyprice_withDiscount = '535' , productbuypricereal = '535' , buypricereal_precentage = '0' , buytotal_precentage = '2.8' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='535',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='535',meanbuyprice_withTax='535',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='535',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2047';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2047', '1', '2026-10-14', '1', '0','0204701','550','550','550','535','','0','0','0','0','0','0','0','0','0','0'); -- id=2047
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2047', '1', '0', '1', '2026-10-14'); -- id=3406
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2047', '1', '0', '0', '2047', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11284
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2047, 1,'2026-10-14 20:36:14',1)
                ON DUPLICATE KEY UPDATE productid = 2047, edited = 1, sysdate = '2026-10-14 20:36:14', userid = 1; -- id=3005
UPDATE product SET productName = 'جينز * وتربوف اباتشي', productDescription = '', productCatId = '42', productBuyPrice = '535.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02047',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '535',lastbuyprice_withDiscount = '535',meanbuyprice = '535',meanbuyprice_withDiscount = '535' , productbuypricereal = '535' , buypricereal_precentage = '0' , buytotal_precentage = '2.8' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='535',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='535',meanbuyprice_withTax='535',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='535',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2047';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جبردين جينز','','42','410','425','425','425','2026-10-14','0','1','0','','0','0','0','0','0','410','410','410','410','410','0','3.66','0','0','.','0','0','0','410','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','410','410','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','410','0','0','0','0','0','0','','','0','0','0','0'); -- id=2048
UPDATE product SET productName = 'جبردين جينز', productDescription = '', productCatId = '42', productBuyPrice = '410', productSellAllPrice = '425', productSellUnitPrice = '425', productSellHalfPrice = '425', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02048',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 = '3.66' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2048';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2048', '1', '2026-10-14', '1', '0','0204801','425','425','425','410','','0','0','0','0','0','0','0','0','0','0'); -- id=2048
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2048', '1', '0', '1', '2026-10-14'); -- id=3407
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2048', '1', '0', '0', '2048', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11285
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2048, 1,'2026-10-14 20:36:14',1)
                ON DUPLICATE KEY UPDATE productid = 2048, edited = 1, sysdate = '2026-10-14 20:36:14', userid = 1; -- id=3006
UPDATE product SET productName = 'جبردين جينز', productDescription = '', productCatId = '42', productBuyPrice = '410.00', productSellAllPrice = '425.00', productSellUnitPrice = '425.00', productSellHalfPrice = '425.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02048',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 = '3.66' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2048';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:06:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:36:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:36:15', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9809
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:06:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:36:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:36:30', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php'); -- id=9810
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:06:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:36:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:36:43', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php'); -- id=9811
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:06:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:36:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:36:45', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=6'); -- id=9812
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:06:51";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:36:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:36:51', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9813
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:08:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:38:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:38:10', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9814
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfbdb323860', '2026-10-14 20:36:51', '15', '0.00', '106140', '0', '0', '106140.00',  '106140.00', '0', '106140', '1', '2026-10-14 20:38:10', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=169
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02045', '169', '42', '2045', '60', '370', '22200.00', '0', '', '2026-10-14 20:38:10', '2045','','','0','0','0','0','0',null,'370','22200','0','0','0','0','0','0','0','0','1'); -- id=1026
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:36:51', 1, 2045, 0, 0
                    , 370, 60, 0, 0, 1, '2026-10-14 20:38:10')
                ON DUPLICATE KEY UPDATE buyprice = 370,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:38:10' ; -- id=6077
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2045', '370', '60', '0', 'buyBillController.php', '1026', '', '0', '0'); -- id=779
UPDATE product SET  productBuyPrice = "370" WHERE productId = 2045 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1026 ;
UPDATE product SET productName = 'اسفنجي اباتشي', productDescription = '', productCatId = '42', productBuyPrice = '370.00', productSellAllPrice = '385.00', productSellUnitPrice = '385.00', productSellHalfPrice = '385.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02045',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.05' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2045';
UPDATE buybilldetail SET  lastbuyprice = 370 , meanbuyprice = 370, lastbuyprice_withDiscount = 370, meanbuyprice_withDiscount = 370
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 370
                where buybilldetailid = 1026;
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 2045;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3404';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2045', '1', '60', '0', '169', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '60', '1', '2026-10-14 20:36:51','0','0'); -- id=11286
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02046', '169', '42', '2046', '56', '410', '22960.00', '0', '', '2026-10-14 20:38:10', '2046','','','0','0','0','0','0',null,'410','22960','0','0','0','0','0','0','0','0','1'); -- id=1027
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:36:51', 1, 2046, 0, 0
                    , 410, 56, 0, 0, 1, '2026-10-14 20:38:10')
                ON DUPLICATE KEY UPDATE buyprice = 410,
                        buyQuantity =buyQuantity+56, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:38:10' ; -- id=6078
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2046', '410', '56', '0', 'buyBillController.php', '1027', '', '0', '0'); -- id=780
UPDATE product SET  productBuyPrice = "410" WHERE productId = 2046 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1027 ;
UPDATE product SET productName = 'جبردين سوسته اباتشي', productDescription = '', productCatId = '42', productBuyPrice = '410.00', productSellAllPrice = '425.00', productSellUnitPrice = '425.00', productSellHalfPrice = '425.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02046',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '410',lastbuyprice_withDiscount = '410',meanbuyprice = '410',meanbuyprice_withDiscount = '410' , productbuypricereal = '410.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.66' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2046';
UPDATE buybilldetail SET  lastbuyprice = 410 , meanbuyprice = 410, lastbuyprice_withDiscount = 410, meanbuyprice_withDiscount = 410
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 410, lastbuyprice_withDiscountAndTax = 410
                where buybilldetailid = 1027;
UPDATE productunit SET proUnitBuyPrice  = 410 * productnumber WHERE productid = 2046;
UPDATE storedetail SET  productquantity = '56', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3405';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2046', '1', '56', '0', '169', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '56', '1', '2026-10-14 20:36:51','0','0'); -- id=11287
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02047', '169', '42', '2047', '68', '535', '36380.00', '0', '', '2026-10-14 20:38:10', '2047','','','0','0','0','0','0',null,'535','36380','0','0','0','0','0','0','0','0','1'); -- id=1028
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:36:51', 1, 2047, 0, 0
                    , 535, 68, 0, 0, 1, '2026-10-14 20:38:10')
                ON DUPLICATE KEY UPDATE buyprice = 535,
                        buyQuantity =buyQuantity+68, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:38:10' ; -- id=6079
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2047', '535', '68', '0', 'buyBillController.php', '1028', '', '0', '0'); -- id=781
UPDATE product SET  productBuyPrice = "535" WHERE productId = 2047 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1028 ;
UPDATE product SET productName = 'جينز * وتربوف اباتشي', productDescription = '', productCatId = '42', productBuyPrice = '535.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02047',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '535',lastbuyprice_withDiscount = '535',meanbuyprice = '535',meanbuyprice_withDiscount = '535' , productbuypricereal = '535.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '2.80' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='535',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='535',meanbuyprice_withTax='535',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='535',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2047';
UPDATE buybilldetail SET  lastbuyprice = 535 , meanbuyprice = 535, lastbuyprice_withDiscount = 535, meanbuyprice_withDiscount = 535
        , lastbuyprice_withTax = 535, meanbuyprice_withTax = 535, lastbuyprice_withDiscountAndTax = 535
                where buybilldetailid = 1028;
UPDATE productunit SET proUnitBuyPrice  = 535 * productnumber WHERE productid = 2047;
UPDATE storedetail SET  productquantity = '68', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3406';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2047', '1', '68', '0', '169', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '68', '1', '2026-10-14 20:36:51','0','0'); -- id=11288
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02048', '169', '42', '2048', '60', '410', '24600.00', '0', '', '2026-10-14 20:38:10', '2048','','','0','0','0','0','0',null,'410','24600','0','0','0','0','0','0','0','0','1'); -- id=1029
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:36:51', 1, 2048, 0, 0
                    , 410, 60, 0, 0, 1, '2026-10-14 20:38:10')
                ON DUPLICATE KEY UPDATE buyprice = 410,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:38:10' ; -- id=6080
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2048', '410', '60', '0', 'buyBillController.php', '1029', '', '0', '0'); -- id=782
UPDATE product SET  productBuyPrice = "410" WHERE productId = 2048 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1029 ;
UPDATE product SET productName = 'جبردين جينز', productDescription = '', productCatId = '42', productBuyPrice = '410.00', productSellAllPrice = '425.00', productSellUnitPrice = '425.00', productSellHalfPrice = '425.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02048',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '410',lastbuyprice_withDiscount = '410',meanbuyprice = '410',meanbuyprice_withDiscount = '410' , productbuypricereal = '410.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.66' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2048';
UPDATE buybilldetail SET  lastbuyprice = 410 , meanbuyprice = 410, lastbuyprice_withDiscount = 410, meanbuyprice_withDiscount = 410
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 410, lastbuyprice_withDiscountAndTax = 410
                where buybilldetailid = 1029;
UPDATE productunit SET proUnitBuyPrice  = 410 * productnumber WHERE productid = 2048;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3407';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2048', '1', '60', '0', '169', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '60', '1', '2026-10-14 20:36:51','0','0'); -- id=11289
UPDATE supplier SET  suppliercurrentDebt = '106140',suppliercurrentDebtInCurrency= '106140' , userid = '1', supplierdate = '2026-10-14 20:38:10'   WHERE supplierid = '15';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('15', '0.00', '106140', '0', 'اضافة فاتورة مشتريات', '169', '106140', '2026-10-14 20:36:51', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','106140','1','0','106140','106140','0',''); -- id=512
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '106140', '106140', '2026-10-14', '1', '0', '0', '2026-10-14 20:38:10','اضافة فاتورة مشتريات رقم 169','1','0',null,'0','169','buyBillController.php?do=details&id=169'); -- id=2475
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2475', '382', '106140', '','0'); -- id=2531
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23686244.73', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2475', '434', '106140', '','0'); -- id=2477
UPDATE accountstree SET name = 'اباتشي - مورد', customName = 'اباتشي - مورد', customNameEn = 'اباتشي - مورد', nameEn = 'اباتشي - مورد', parent = '81', accountNature = '1', theValue = '-83775', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '434';
update buybill set dailyentryid='2475,0' where buybillid=169;
COMMIT;
UPDATE product SET overAllAveragePrice = 370 WHERE productId = 2045;UPDATE product SET overAllAveragePrice = 410 WHERE productId = 2046;UPDATE product SET overAllAveragePrice = 535 WHERE productId = 2047;UPDATE product SET overAllAveragePrice = 410 WHERE productId = 2048;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:08:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:38:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:38:10', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=169'); -- id=9815
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:08:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:38:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:38:14', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=169&type=2'); -- id=9816
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:10:36";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:40:36", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:40:36', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=169&type=2'); -- id=9817
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:11:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:41:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:41:14', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9818
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:11:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:41:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 20:41:22', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9819
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:12:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:42:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 20:42:04', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9820
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('تيشيرت النونو','2026-10-14','','93', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=168
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (168, 1,'2026-10-14 20:42:04',1)
                ON DUPLICATE KEY UPDATE catid = 168, edited = 1, sysdate = '2026-10-14 20:42:04', userid = 1; -- id=180
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '168', '1', '2026-10-14', '1', '0'); -- id=73
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:12:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:42:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 20:42:04', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9821
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:12:06";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:42:06", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 20:42:06', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9822
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:12:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:42:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:42:10', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9823
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:13:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:43:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:43:15', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9824
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 108 النونو','','168','460','460','460','460','2026-10-14','0','1','0','','0','0','0','0','0','460','460','460','460','460','0','0','0','0','.','0','0','0','460','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','460','460','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','460','0','0','0','0','0','0','','','0','0','0','0'); -- id=2049
UPDATE product SET productName = 'كود 108 النونو', productDescription = '', productCatId = '168', productBuyPrice = '460', productSellAllPrice = '460', productSellUnitPrice = '460', productSellHalfPrice = '460', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02049',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2049';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2049', '1.00', '2026-10-14', '1', '0','0204901','460','460','460','460','','0','0','0','0','0','0','0','0','0','0'); -- id=2049
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2049', '1', '0', '1', '2026-10-14'); -- id=3408
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2049', '1', '0', '0', '2049', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11290
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2049, 1,'2026-10-14 20:43:15',1)
                ON DUPLICATE KEY UPDATE productid = 2049, edited = 1, sysdate = '2026-10-14 20:43:15', userid = 1; -- id=3007
UPDATE product SET productName = 'كود 108 النونو', productDescription = '', productCatId = '168', productBuyPrice = '460.00', productSellAllPrice = '460.00', productSellUnitPrice = '460.00', productSellHalfPrice = '460.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02049',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2049';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 109 النونو','','168','440','440','440','440','2026-10-14','0','1','0','','0','0','0','0','0','440','440','440','440','440','0','0','0','0','.','0','0','0','440','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','440','440','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','440','0','0','0','0','0','0','','','0','0','0','0'); -- id=2050
UPDATE product SET productName = 'كود 109 النونو', productDescription = '', productCatId = '168', productBuyPrice = '440', productSellAllPrice = '440', productSellUnitPrice = '440', productSellHalfPrice = '440', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02050',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='440',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='440',meanbuyprice_withTax='440',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='440',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2050';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2050', '1.00', '2026-10-14', '1', '0','0205001','440','440','440','440','','0','0','0','0','0','0','0','0','0','0'); -- id=2050
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2050', '1', '0', '1', '2026-10-14'); -- id=3409
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2050', '1', '0', '0', '2050', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11291
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2050, 1,'2026-10-14 20:43:15',1)
                ON DUPLICATE KEY UPDATE productid = 2050, edited = 1, sysdate = '2026-10-14 20:43:15', userid = 1; -- id=3008
UPDATE product SET productName = 'كود 109 النونو', productDescription = '', productCatId = '168', productBuyPrice = '440.00', productSellAllPrice = '440.00', productSellUnitPrice = '440.00', productSellHalfPrice = '440.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02050',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='440',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='440',meanbuyprice_withTax='440',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='440',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2050';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 110 النونو','','168','450','450','450','450','2026-10-14','0','1','0','','0','0','0','0','0','450','450','450','450','450','0','0','0','0','.','0','0','0','450','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','450','450','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','450','0','0','0','0','0','0','','','0','0','0','0'); -- id=2051
UPDATE product SET productName = 'كود 110 النونو', productDescription = '', productCatId = '168', productBuyPrice = '450', productSellAllPrice = '450', productSellUnitPrice = '450', productSellHalfPrice = '450', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02051',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2051';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2051', '1.00', '2026-10-14', '1', '0','0205101','450','450','450','450','','0','0','0','0','0','0','0','0','0','0'); -- id=2051
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2051', '1', '0', '1', '2026-10-14'); -- id=3410
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2051', '1', '0', '0', '2051', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11292
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2051, 1,'2026-10-14 20:43:15',1)
                ON DUPLICATE KEY UPDATE productid = 2051, edited = 1, sysdate = '2026-10-14 20:43:15', userid = 1; -- id=3009
UPDATE product SET productName = 'كود 110 النونو', productDescription = '', productCatId = '168', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02051',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2051';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:13:17";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:43:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:43:17', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9825
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:13:19";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:43:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:43:19', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9826
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:14:51";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:44:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:44:51', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9827
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfbf37d335f', '2026-10-14 20:43:19', '122', '101623.20', '128974.8', '8', '1', '29730.00',  '27351.60', '0', '27351.6', '1', '2026-10-14 20:44:51', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=170
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02049', '170', '168', '2049', '24', '460', '11040.00', '0', '', '2026-10-14 20:44:51', '2049','','','0','0','0','0','0',null,'460','11040','0','0','0','0','0','0','0','0','1'); -- id=1030
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:43:19', 1, 2049, 0, 0
                    , 423.2, 24, 0, 0, 1, '2026-10-14 20:44:51')
                ON DUPLICATE KEY UPDATE buyprice = 423.2,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:44:51' ; -- id=6081
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2049', '460', '24', '0', 'buyBillController.php', '1030', '', '0', '0'); -- id=783
UPDATE product SET  productBuyPrice = "460" WHERE productId = 2049 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1030 ;
UPDATE product SET productName = 'كود 108 النونو', productDescription = '', productCatId = '168', productBuyPrice = '460.00', productSellAllPrice = '460.00', productSellUnitPrice = '460.00', productSellHalfPrice = '460.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02049',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '423.2',meanbuyprice = '460',meanbuyprice_withDiscount = '423.2' , productbuypricereal = '460.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='423.2',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2049';
UPDATE buybilldetail SET  lastbuyprice = 460 , meanbuyprice = 460, lastbuyprice_withDiscount = 423.2, meanbuyprice_withDiscount = 423.2
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 423.2
                where buybilldetailid = 1030;
UPDATE productunit SET proUnitBuyPrice  = 460 * productnumber WHERE productid = 2049;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3408';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2049', '1', '24', '0', '170', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 20:43:19','0','0'); -- id=11293
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02050', '170', '168', '2050', '21', '440', '9240.00', '0', '', '2026-10-14 20:44:51', '2050','','','0','0','0','0','0',null,'440','9240','0','0','0','0','0','0','0','0','1'); -- id=1031
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:43:19', 1, 2050, 0, 0
                    , 404.8, 21, 0, 0, 1, '2026-10-14 20:44:51')
                ON DUPLICATE KEY UPDATE buyprice = 404.8,
                        buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:44:51' ; -- id=6082
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2050', '440', '21', '0', 'buyBillController.php', '1031', '', '0', '0'); -- id=784
UPDATE product SET  productBuyPrice = "440" WHERE productId = 2050 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1031 ;
UPDATE product SET productName = 'كود 109 النونو', productDescription = '', productCatId = '168', productBuyPrice = '440.00', productSellAllPrice = '440.00', productSellUnitPrice = '440.00', productSellHalfPrice = '440.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02050',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '440',lastbuyprice_withDiscount = '404.8',meanbuyprice = '440',meanbuyprice_withDiscount = '404.8' , productbuypricereal = '440.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='440',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='440',meanbuyprice_withTax='440',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='404.8',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2050';
UPDATE buybilldetail SET  lastbuyprice = 440 , meanbuyprice = 440, lastbuyprice_withDiscount = 404.8, meanbuyprice_withDiscount = 404.8
        , lastbuyprice_withTax = 440, meanbuyprice_withTax = 440, lastbuyprice_withDiscountAndTax = 404.8
                where buybilldetailid = 1031;
UPDATE productunit SET proUnitBuyPrice  = 440 * productnumber WHERE productid = 2050;
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3409';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2050', '1', '21', '0', '170', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '21', '1', '2026-10-14 20:43:19','0','0'); -- id=11294
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02051', '170', '168', '2051', '21', '450', '9450.00', '0', '', '2026-10-14 20:44:51', '2051','','','0','0','0','0','0',null,'450','9450','0','0','0','0','0','0','0','0','1'); -- id=1032
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:43:19', 1, 2051, 0, 0
                    , 414, 21, 0, 0, 1, '2026-10-14 20:44:51')
                ON DUPLICATE KEY UPDATE buyprice = 414,
                        buyQuantity =buyQuantity+21, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:44:51' ; -- id=6083
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2051', '450', '21', '0', 'buyBillController.php', '1032', '', '0', '0'); -- id=785
UPDATE product SET  productBuyPrice = "450" WHERE productId = 2051 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1032 ;
UPDATE product SET productName = 'كود 110 النونو', productDescription = '', productCatId = '168', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02051',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '414',meanbuyprice = '450',meanbuyprice_withDiscount = '414' , productbuypricereal = '450.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='414',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2051';
UPDATE buybilldetail SET  lastbuyprice = 450 , meanbuyprice = 450, lastbuyprice_withDiscount = 414, meanbuyprice_withDiscount = 414
        , lastbuyprice_withTax = 450, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 414
                where buybilldetailid = 1032;
UPDATE productunit SET proUnitBuyPrice  = 450 * productnumber WHERE productid = 2051;
UPDATE storedetail SET  productquantity = '21', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3410';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2051', '1', '21', '0', '170', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '21', '1', '2026-10-14 20:43:19','0','0'); -- id=11295
UPDATE supplier SET  suppliercurrentDebt = '128974.8',suppliercurrentDebtInCurrency= '128974.8' , userid = '1', supplierdate = '2026-10-14 20:44:51'   WHERE supplierid = '122';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('122', '101623.20', '27351.6', '0', 'اضافة فاتورة مشتريات', '170', '128974.8', '2026-10-14 20:43:19', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','27351.6','1','101623.2','27351.6','128974.8','0',''); -- id=513
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '27351.6', '27351.6', '2026-10-14', '1', '0', '0', '2026-10-14 20:44:51','اضافة فاتورة مشتريات رقم 170','1','0',null,'0','170','buyBillController.php?do=details&id=170'); -- id=2476
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2476', '382', '27351.6', '','0'); -- id=2532
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23713596.33', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2476', '605', '27351.6', '','0'); -- id=2478
UPDATE accountstree SET name = 'النونو', customName = 'النونو', customNameEn = 'النونو', nameEn = 'النونو', parent = '81', accountNature = '1', theValue = '128974.8', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-08 11:42:01' WHERE id = '605';
update buybill set dailyentryid='2476,0' where buybillid=170;
COMMIT;
UPDATE product SET overAllAveragePrice = 423.2 WHERE productId = 2049;UPDATE product SET overAllAveragePrice = 404.8 WHERE productId = 2050;UPDATE product SET overAllAveragePrice = 414 WHERE productId = 2051;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:14:51";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:44:51", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:44:51', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=170'); -- id=9828
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:14:55";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:44:55", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:44:55', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=170&type=2'); -- id=9829
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:14:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:44:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:44:59', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9830
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:23:05";
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:23:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:53:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 20:53:10', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9831
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 17:23:10";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 20:53:10', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9832
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:23:20";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:53:20", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:53:20', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9833
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:24:19";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:54:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 20:54:19', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php?do=show'); -- id=9834
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:24:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:54:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 20:54:28', '1', 'editshowstyle2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php?do=editshowstyle2&operationnum=12'); -- id=9835
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:24:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:54:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storemovementController.php', '2026-10-14 20:54:37', '1', 'editshowstyle2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storemovementController.php?do=editshowstyle2&operationnum=11'); -- id=9836
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:26:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:56:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:56:16', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9837
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:26:19";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:56:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 20:56:19', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9838
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:26:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:56:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:56:23', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9839
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 2403 توب سيكرت','','19','600','625','625','625','2026-10-14','0','1','0','','0','0','0','0','0','600','600','600','600','600','0','4.17','0','0','.','0','0','0','600','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','600','600','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','600','0','0','0','0','0','0','','','0','0','0','0'); -- id=2052
UPDATE product SET productName = 'كود 2403 توب سيكرت', productDescription = '', productCatId = '19', productBuyPrice = '600', productSellAllPrice = '625', productSellUnitPrice = '625', productSellHalfPrice = '625', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02052',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '600',meanbuyprice = '600',meanbuyprice_withDiscount = '600' , productbuypricereal = '600' , buypricereal_precentage = '0' , buytotal_precentage = '4.17' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='600',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2052';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2052', '1', '2026-10-14', '1', '0','0205201','625','625','625','600','','0','0','0','0','0','0','0','0','0','0'); -- id=2052
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2052', '1', '0', '1', '2026-10-14'); -- id=3411
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2052', '1', '0', '0', '2052', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11296
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2052, 1,'2026-10-14 20:56:23',1)
                ON DUPLICATE KEY UPDATE productid = 2052, edited = 1, sysdate = '2026-10-14 20:56:23', userid = 1; -- id=3010
UPDATE product SET productName = 'كود 2403 توب سيكرت', productDescription = '', productCatId = '19', productBuyPrice = '600.00', productSellAllPrice = '625.00', productSellUnitPrice = '625.00', productSellHalfPrice = '625.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02052',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '600',meanbuyprice = '600',meanbuyprice_withDiscount = '600' , productbuypricereal = '600' , buypricereal_precentage = '0' , buytotal_precentage = '4.17' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='600',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2052';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 752 توب سيكرت','','19','430','450','450','450','2026-10-14','0','1','0','','0','0','0','0','0','430','430','430','430','430','0','4.65','0','0','.','0','0','0','430','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','430','430','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','430','0','0','0','0','0','0','','','0','0','0','0'); -- id=2053
UPDATE product SET productName = 'كود 752 توب سيكرت', productDescription = '', productCatId = '19', productBuyPrice = '430', productSellAllPrice = '450', productSellUnitPrice = '450', productSellHalfPrice = '450', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02053',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 = '4.65' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='430',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2053';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2053', '1', '2026-10-14', '1', '0','0205301','450','450','450','430','','0','0','0','0','0','0','0','0','0','0'); -- id=2053
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2053', '1', '0', '1', '2026-10-14'); -- id=3412
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2053', '1', '0', '0', '2053', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11297
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2053, 1,'2026-10-14 20:56:23',1)
                ON DUPLICATE KEY UPDATE productid = 2053, edited = 1, sysdate = '2026-10-14 20:56:23', userid = 1; -- id=3011
UPDATE product SET productName = 'كود 752 توب سيكرت', productDescription = '', productCatId = '19', productBuyPrice = '430.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02053',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 = '4.65' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='430',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2053';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 2364 توب سيكرت','','19','510','535','535','535','2026-10-14','0','1','0','','0','0','0','0','0','510','510','510','510','510','0','4.9','0','0','.','0','0','0','510','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','510','510','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','510','0','0','0','0','0','0','','','0','0','0','0'); -- id=2054
UPDATE product SET productName = 'كود 2364 توب سيكرت', productDescription = '', productCatId = '19', productBuyPrice = '510', productSellAllPrice = '535', productSellUnitPrice = '535', productSellHalfPrice = '535', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02054',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '510',lastbuyprice_withDiscount = '510',meanbuyprice = '510',meanbuyprice_withDiscount = '510' , productbuypricereal = '510' , buypricereal_precentage = '0' , buytotal_precentage = '4.9' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='510',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='510',meanbuyprice_withTax='510',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='510',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2054';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2054', '1', '2026-10-14', '1', '0','0205401','535','535','535','510','','0','0','0','0','0','0','0','0','0','0'); -- id=2054
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2054', '1', '0', '1', '2026-10-14'); -- id=3413
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2054', '1', '0', '0', '2054', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11298
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2054, 1,'2026-10-14 20:56:23',1)
                ON DUPLICATE KEY UPDATE productid = 2054, edited = 1, sysdate = '2026-10-14 20:56:23', userid = 1; -- id=3012
UPDATE product SET productName = 'كود 2364 توب سيكرت', productDescription = '', productCatId = '19', productBuyPrice = '510.00', productSellAllPrice = '535.00', productSellUnitPrice = '535.00', productSellHalfPrice = '535.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02054',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '510',lastbuyprice_withDiscount = '510',meanbuyprice = '510',meanbuyprice_withDiscount = '510' , productbuypricereal = '510' , buypricereal_precentage = '0' , buytotal_precentage = '4.9' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='510',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='510',meanbuyprice_withTax='510',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='510',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2054';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:26:25";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:56:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:56:25', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9840
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:26:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:56:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:56:26', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9841
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:29:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:59:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:59:50', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9842
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfc24aabd85', '2026-10-14 20:56:26', '65', '544460.00', '603110', '0', '0', '58650.00',  '58650.00', '0', '58650', '1', '2026-10-14 20:59:50', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=171
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02052', '171', '19', '2052', '40', '600', '24000.00', '0', '', '2026-10-14 20:59:50', '2052','','','0','0','0','0','0',null,'600','24000','0','0','0','0','0','0','0','0','1'); -- id=1033
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:56:26', 1, 2052, 0, 0
                    , 600, 40, 0, 0, 1, '2026-10-14 20:59:50')
                ON DUPLICATE KEY UPDATE buyprice = 600,
                        buyQuantity =buyQuantity+40, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:59:50' ; -- id=6084
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2052', '600', '40', '0', 'buyBillController.php', '1033', '', '0', '0'); -- id=786
UPDATE product SET  productBuyPrice = "600" WHERE productId = 2052 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1033 ;
UPDATE product SET productName = 'كود 2403 توب سيكرت', productDescription = '', productCatId = '19', productBuyPrice = '600.00', productSellAllPrice = '625.00', productSellUnitPrice = '625.00', productSellHalfPrice = '625.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02052',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '600',meanbuyprice = '600',meanbuyprice_withDiscount = '600' , productbuypricereal = '600.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.17' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='600',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2052';
UPDATE buybilldetail SET  lastbuyprice = 600 , meanbuyprice = 600, lastbuyprice_withDiscount = 600, meanbuyprice_withDiscount = 600
        , lastbuyprice_withTax = 600, meanbuyprice_withTax = 600, lastbuyprice_withDiscountAndTax = 600
                where buybilldetailid = 1033;
UPDATE productunit SET proUnitBuyPrice  = 600 * productnumber WHERE productid = 2052;
UPDATE storedetail SET  productquantity = '40', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3411';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2052', '1', '40', '0', '171', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '40', '1', '2026-10-14 20:56:26','0','0'); -- id=11299
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02053', '171', '19', '2053', '45', '430', '19350.00', '0', '', '2026-10-14 20:59:50', '2053','','','0','0','0','0','0',null,'430','19350','0','0','0','0','0','0','0','0','1'); -- id=1034
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:56:26', 1, 2053, 0, 0
                    , 430, 45, 0, 0, 1, '2026-10-14 20:59:50')
                ON DUPLICATE KEY UPDATE buyprice = 430,
                        buyQuantity =buyQuantity+45, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:59:50' ; -- id=6085
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2053', '430', '45', '0', 'buyBillController.php', '1034', '', '0', '0'); -- id=787
UPDATE product SET  productBuyPrice = "430" WHERE productId = 2053 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1034 ;
UPDATE product SET productName = 'كود 752 توب سيكرت', productDescription = '', productCatId = '19', productBuyPrice = '430.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02053',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '430',lastbuyprice_withDiscount = '430',meanbuyprice = '430',meanbuyprice_withDiscount = '430' , productbuypricereal = '430.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.65' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='430',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2053';
UPDATE buybilldetail SET  lastbuyprice = 430 , meanbuyprice = 430, lastbuyprice_withDiscount = 430, meanbuyprice_withDiscount = 430
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 430
                where buybilldetailid = 1034;
UPDATE productunit SET proUnitBuyPrice  = 430 * productnumber WHERE productid = 2053;
UPDATE storedetail SET  productquantity = '45', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3412';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2053', '1', '45', '0', '171', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '45', '1', '2026-10-14 20:56:26','0','0'); -- id=11300
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02054', '171', '19', '2054', '30', '510', '15300.00', '0', '', '2026-10-14 20:59:50', '2054','','','0','0','0','0','0',null,'510','15300','0','0','0','0','0','0','0','0','1'); -- id=1035
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 20:56:26', 1, 2054, 0, 0
                    , 510, 30, 0, 0, 1, '2026-10-14 20:59:50')
                ON DUPLICATE KEY UPDATE buyprice = 510,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 20:59:50' ; -- id=6086
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2054', '510', '30', '0', 'buyBillController.php', '1035', '', '0', '0'); -- id=788
UPDATE product SET  productBuyPrice = "510" WHERE productId = 2054 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1035 ;
UPDATE product SET productName = 'كود 2364 توب سيكرت', productDescription = '', productCatId = '19', productBuyPrice = '510.00', productSellAllPrice = '535.00', productSellUnitPrice = '535.00', productSellHalfPrice = '535.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02054',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '510',lastbuyprice_withDiscount = '510',meanbuyprice = '510',meanbuyprice_withDiscount = '510' , productbuypricereal = '510.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.90' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='510',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='510',meanbuyprice_withTax='510',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='510',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2054';
UPDATE buybilldetail SET  lastbuyprice = 510 , meanbuyprice = 510, lastbuyprice_withDiscount = 510, meanbuyprice_withDiscount = 510
        , lastbuyprice_withTax = 510, meanbuyprice_withTax = 510, lastbuyprice_withDiscountAndTax = 510
                where buybilldetailid = 1035;
UPDATE productunit SET proUnitBuyPrice  = 510 * productnumber WHERE productid = 2054;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3413';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2054', '1', '30', '0', '171', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 20:56:26','0','0'); -- id=11301
UPDATE supplier SET  suppliercurrentDebt = '603110',suppliercurrentDebtInCurrency= '603110' , userid = '1', supplierdate = '2026-10-14 20:59:50'   WHERE supplierid = '65';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('65', '544460.00', '58650', '0', 'اضافة فاتورة مشتريات', '171', '603110', '2026-10-14 20:56:26', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','58650','1','544460','58650','603110','0',''); -- id=514
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '58650', '58650', '2026-10-14', '1', '0', '0', '2026-10-14 20:59:50','اضافة فاتورة مشتريات رقم 171','1','0',null,'0','171','buyBillController.php?do=details&id=171'); -- id=2477
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2477', '382', '58650', '','0'); -- id=2533
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23772246.33', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2477', '484', '58650', '','0'); -- id=2479
UPDATE accountstree SET name = 'توب سيكرت - مورد', customName = 'توب سيكرت - مورد', customNameEn = 'توب سيكرت - مورد', nameEn = 'توب سيكرت - مورد', parent = '81', accountNature = '1', theValue = '-271790', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '484';
update buybill set dailyentryid='2477,0' where buybillid=171;
COMMIT;
UPDATE product SET overAllAveragePrice = 600 WHERE productId = 2052;UPDATE product SET overAllAveragePrice = 430 WHERE productId = 2053;UPDATE product SET overAllAveragePrice = 510 WHERE productId = 2054;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:29:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:59:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 20:59:50', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=171'); -- id=9843
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:29:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 20:59:54", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 20:59:54', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=171&type=2'); -- id=9844
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:34:20";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:04:21", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 21:04:21', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9845
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 17:34:21";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 21:04:21', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9846
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:34:38";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:04:38", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 21:04:38', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9847

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acfb997e70fb
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 21:04:38', '06acfb997e70fb', '1', '0.00', '0', '0', '1', '3400.00', '3400', '3400', '0', '1', '2026-10-14 21:04:38', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '5' ,'0','','','','','-1','0','0','0','0','0','3400','0','','0','0','3400','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=545
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','545', '0', '2026-10-14 21:04:38', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '3400', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 21:04:38','0','0','',''); -- id=693
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+5 where id = 1125;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('652','01937', '545', '8', '1937', '5', '680', '3400', '0', '', '0', '2026-10-14 21:04:38', '1937', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1125-5,','1','1','0','0','680','3400','0','','0','0.00','0','0','0','0'); -- id=1976
UPDATE sellbilldetail SET  lastbuyprice = 652.00 , meanbuyprice = 652.00, lastbuyprice_withDiscount = 652.00, meanbuyprice_withDiscount = 652.00
        , lastbuyprice_withTax = 652, meanbuyprice_withTax = 652, lastbuyprice_withDiscountAndTax = 652
                where sellbilldetailid = 1976;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1937, '2026-10-14', 3400, 3260, 3260
                    , 3260, 3260, 3260, 3260
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 3260, 3260, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3400, sellCostBuyPrice =sellCostBuyPrice+3260
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3260, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3260
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3260, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3260
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3260
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3260
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3260
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3400, 3260, 3260
                    , 3260, 3260, 3260, 3260
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3260, 3260, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3400, sellCostBuyPrice =sellCostBuyPrice+3260
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3260, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3260
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3260, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3260
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3260
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3260
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3260
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 21:04:38' WHERE storedetailid = '2954';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1937', '1', '5', '1', '545', 'اضافة فاتورة مبيعات', 'sellbillController.php', '5', '0', '3', '2026-10-14 21:04:38','0','0'); -- id=11302
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3715640',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3712240','3400', '0', '2', 'اضافة فاتورة مبيعات', '545', '3715640', '2026-10-14 21:04:38', '3',  'sellbillController.php','1','','0'); -- id=687
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '3400', '3400', '2026-10-14', '3', '0', '0', '2026-10-14 21:04:38','اضافة فاتورة مبيعات رقم 545','1','0',null,'0','545','sellbillController.php?do=showDetail&sellbillid=545'); -- id=2478
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2478', '419', '3400', '','0'); -- id=2534
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3715640', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2478', '143', '3400', '','0'); -- id=2480
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '5967450', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '3260', '3260', '2026-10-14', '3', '0', '0', '2026-10-14 21:04:38','اضافة فاتورة مبيعات رقم 545 - صرف البضاعة من المخزن','1','0',null,'0','545','sellbillController.php?do=showDetail&sellbillid=545'); -- id=2479
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2479', '402', '3260', '','0'); -- id=2535
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5564856.47', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2479', '382', '3260', '','0'); -- id=2481
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23768986.33', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2478,0,2479' where sellbillid=545;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 3400, 3260, 3260
                    , 3260, 3260, 3260, 3260
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,3260, 3260, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3400, sellCostBuyPrice =sellCostBuyPrice+3260
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3260, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3260
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3260, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3260
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3260
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3260
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3260
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3400, 3260, 3260
                    , 3260, 3260, 3260, 3260
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,3260, 3260, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3400, sellCostBuyPrice =sellCostBuyPrice+3260
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3260, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3260
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3260, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3260
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3260
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3260
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3260
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 3400, 3260, 3260
                    , 3260, 3260, 3260, 3260, 3260, 3260)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+3400, netSellCostBuyPrice = netSellCostBuyPrice+3260
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+3260
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+3260
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+3260
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+3260
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+3260
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+3260
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+3260;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acfb997e70fb and sellbillId = 545 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:34:38";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:04:38", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 21:04:38', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9848
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:35:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:05:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:05:39', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=171&type=2'); -- id=9849
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:35:46";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:05:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:05:46', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9850
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:36:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:06:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:06:24', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9851
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('فيوتشر الشيخ محمود السلام','2026-10-14','','93', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=169
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (169, 1,'2026-10-14 21:06:24',1)
                ON DUPLICATE KEY UPDATE catid = 169, edited = 1, sysdate = '2026-10-14 21:06:24', userid = 1; -- id=181
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '169', '1', '2026-10-14', '1', '0'); -- id=74
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:36:24";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:06:24", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:06:24', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9852
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:36:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:06:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:06:26', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9853
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:36:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:06:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:06:26', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9854
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:36:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:06:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 21:06:31', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9855
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 17:36:32";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 21:06:32', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9856
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:36:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:06:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 21:06:32', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9857
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 17:36:32";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 21:06:33', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9858
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:36:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:06:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:06:49', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9859
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:37:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:07:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:07:10', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9860
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:38:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:08:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:08:35', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9861
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('ميلتون فيوتشر السلام','','169','250','270','270','270','2026-10-14','0','1','0','','0','0','0','0','0','250','250','250','250','250','0','8','0','0','.','0','0','0','250','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','250','250','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','250','0','0','0','0','0','0','','','0','0','0','0'); -- id=2055
UPDATE product SET productName = 'ميلتون فيوتشر السلام', productDescription = '', productCatId = '169', productBuyPrice = '250', productSellAllPrice = '270', productSellUnitPrice = '270', productSellHalfPrice = '270', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02055',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '250',lastbuyprice_withDiscount = '250',meanbuyprice = '250',meanbuyprice_withDiscount = '250' , productbuypricereal = '250' , buypricereal_precentage = '0' , buytotal_precentage = '8' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='250',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='250',meanbuyprice_withTax='250',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='250',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2055';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2055', '1.00', '2026-10-14', '1', '0','0205501','270','270','270','250','','0','0','0','0','0','0','0','0','0','0'); -- id=2055
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2055', '1', '0', '1', '2026-10-14'); -- id=3414
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2055', '1', '0', '0', '2055', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11303
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2055, 1,'2026-10-14 21:08:35',1)
                ON DUPLICATE KEY UPDATE productid = 2055, edited = 1, sysdate = '2026-10-14 21:08:35', userid = 1; -- id=3013
UPDATE product SET productName = 'ميلتون فيوتشر السلام', productDescription = '', productCatId = '169', productBuyPrice = '250.00', productSellAllPrice = '270.00', productSellUnitPrice = '270.00', productSellHalfPrice = '270.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02055',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '250',lastbuyprice_withDiscount = '250',meanbuyprice = '250',meanbuyprice_withDiscount = '250' , productbuypricereal = '250' , buypricereal_precentage = '0' , buytotal_precentage = '8' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='250',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='250',meanbuyprice_withTax='250',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='250',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2055';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('ميلتون خاص فيوتشر السلام','','169','290','310','310','310','2026-10-14','0','1','0','','0','0','0','0','0','290','290','290','290','290','0','6.9','0','0','.','0','0','0','290','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','290','290','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','290','0','0','0','0','0','0','','','0','0','0','0'); -- id=2056
UPDATE product SET productName = 'ميلتون خاص فيوتشر السلام', productDescription = '', productCatId = '169', productBuyPrice = '290', productSellAllPrice = '310', productSellUnitPrice = '310', productSellHalfPrice = '310', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02056',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '290',lastbuyprice_withDiscount = '290',meanbuyprice = '290',meanbuyprice_withDiscount = '290' , productbuypricereal = '290' , buypricereal_precentage = '0' , buytotal_precentage = '6.9' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='290',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='290',meanbuyprice_withTax='290',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='290',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2056';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2056', '1.00', '2026-10-14', '1', '0','0205601','310','310','310','290','','0','0','0','0','0','0','0','0','0','0'); -- id=2056
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2056', '1', '0', '1', '2026-10-14'); -- id=3415
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2056', '1', '0', '0', '2056', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11304
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2056, 1,'2026-10-14 21:08:35',1)
                ON DUPLICATE KEY UPDATE productid = 2056, edited = 1, sysdate = '2026-10-14 21:08:35', userid = 1; -- id=3014
UPDATE product SET productName = 'ميلتون خاص فيوتشر السلام', productDescription = '', productCatId = '169', productBuyPrice = '290.00', productSellAllPrice = '310.00', productSellUnitPrice = '310.00', productSellHalfPrice = '310.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02056',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '290',lastbuyprice_withDiscount = '290',meanbuyprice = '290',meanbuyprice_withDiscount = '290' , productbuypricereal = '290' , buypricereal_precentage = '0' , buytotal_precentage = '6.9' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='290',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='290',meanbuyprice_withTax='290',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='290',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2056';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('بدي قطن دريب فيوتشر السلام','','169','120','150','150','150','2026-10-14','0','1','0','','0','0','0','0','0','120','120','120','120','120','0','25','0','0','.','0','0','0','120','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','120','120','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','120','0','0','0','0','0','0','','','0','0','0','0'); -- id=2057
UPDATE product SET productName = 'بدي قطن دريب فيوتشر السلام', productDescription = '', productCatId = '169', productBuyPrice = '120', productSellAllPrice = '150', productSellUnitPrice = '150', productSellHalfPrice = '150', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02057',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '120',lastbuyprice_withDiscount = '120',meanbuyprice = '120',meanbuyprice_withDiscount = '120' , productbuypricereal = '120' , buypricereal_precentage = '0' , buytotal_precentage = '25' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='120',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='120',meanbuyprice_withTax='120',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='120',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2057';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2057', '1.00', '2026-10-14', '1', '0','0205701','150','150','150','120','','0','0','0','0','0','0','0','0','0','0'); -- id=2057
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2057', '1', '0', '1', '2026-10-14'); -- id=3416
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2057', '1', '0', '0', '2057', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11305
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2057, 1,'2026-10-14 21:08:35',1)
                ON DUPLICATE KEY UPDATE productid = 2057, edited = 1, sysdate = '2026-10-14 21:08:35', userid = 1; -- id=3015
UPDATE product SET productName = 'بدي قطن دريب فيوتشر السلام', productDescription = '', productCatId = '169', productBuyPrice = '120.00', productSellAllPrice = '150.00', productSellUnitPrice = '150.00', productSellHalfPrice = '150.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02057',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '120',lastbuyprice_withDiscount = '120',meanbuyprice = '120',meanbuyprice_withDiscount = '120' , productbuypricereal = '120' , buypricereal_precentage = '0' , buytotal_precentage = '25' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='120',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='120',meanbuyprice_withTax='120',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='120',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2057';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:38:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:08:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:08:37', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9862
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:38:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:08:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:08:41', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9863
INSERT INTO supplier (suppliername, supplieraddress, supplierphone, suppliercurrentDebt, supplierdetails, conditions, userid, supplierdate, dailyentryid, category_id, typesupplier_id,linkedClientId,inUse,suppliercode,goverareaid,namepayeecheck,suppliermobile,warrantyOfficer,warrantymobile,sellername,sellermobile,taxnumber,supplierTypeForTree,treeId,sullpierCurrencyid,suppliercurrentDebtInCurrency,webApiId,shippingDiscountPer) VALUES ('فيوتشر الشيخ السلام', '', '', '', '', '0', '1', '2026-10-14 21:09:02', '0', '', '','0','0','','','','','','','','','','0','0','1','0','0','0'); -- id=177
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('177', '0', '', '0', 'إضافة مورد جديد', '177', '', '2026-10-14 21:09:02', '1', 'supplierController.php', '', '0','', '0','1','1','0','1','0','0','0','0',''); -- id=515
INSERT INTO accountstree (name, customName, customNameEn, nameEn, parent, accountNature, theValue, theOrder, layingOrder, reportid, listId, notes, itemfrom, itemtype, itemtype2, itemtype3, userid, del, sysdate) VALUES ('فيوتشر الشيخ السلام', 'فيوتشر الشيخ السلام', 'فيوتشر الشيخ السلام', 'فيوتشر الشيخ السلام', '81', '1', '0', '0', '', '1', '1', '', '0', '1', '1', '', '1', '0', '2026-10-14 21:09:02'); -- id=660
UPDATE supplier SET suppliername = 'فيوتشر الشيخ السلام', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '0.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-10-14', dailyentryid = '0', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='660',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='0',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '177';
UPDATE productunit SET unitid = '1', productid = '2057', productnumber = '1.00', productunitdate = '2026-10-14', userid = '1', conditions = '0',proUnitParcode='0205701',proUnitSellAllPrice='150',proUnitSellHalfPrice='150',proUnitSellUnitPrice ='150',proUnitBuyPrice='120',unitInTax='',proUnitPrice4='0',proUnitPrice5='0',proUnitPrice6='0',proUnitPrice7='0',proUnitPrice8='0',proUnitPrice9='0',proUnitPrice10='0',proUnitPrice11='0',proUnitPrice12='0',proUnitPrice13='0' WHERE productunitid = '2057';
UPDATE product SET productName = 'بدي قطن دريب فيوتشر السلام', productDescription = '', productCatId = '169', productBuyPrice = '140', productSellAllPrice = '150', productSellUnitPrice = '150', productSellHalfPrice = '150', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02057',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '120.00',lastbuyprice_withDiscount = '120',meanbuyprice = '120.00',meanbuyprice_withDiscount = '120' , productbuypricereal = '120' , buypricereal_precentage = '0' , buytotal_precentage = '25' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='120',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='120',meanbuyprice_withTax='120',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='120',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2057';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:40:07";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:10:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:10:07', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9864
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfc529cb224', '2026-10-14 21:08:41', '177', '0.00', '82680', '0', '0', '82680.00',  '82680.00', '0', '82680', '1', '2026-10-14 21:10:07', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=172
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02055', '172', '169', '2055', '180', '250', '45000.00', '0', '', '2026-10-14 21:10:07', '2055','','','0','0','0','0','0',null,'250','45000','0','0','0','0','0','0','0','0','1'); -- id=1036
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:08:41', 1, 2055, 0, 0
                    , 250, 180, 0, 0, 1, '2026-10-14 21:10:07')
                ON DUPLICATE KEY UPDATE buyprice = 250,
                        buyQuantity =buyQuantity+180, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:10:07' ; -- id=6087
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2055', '250', '180', '0', 'buyBillController.php', '1036', '', '0', '0'); -- id=789
UPDATE product SET  productBuyPrice = "250" WHERE productId = 2055 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1036 ;
UPDATE product SET productName = 'ميلتون فيوتشر السلام', productDescription = '', productCatId = '169', productBuyPrice = '250.00', productSellAllPrice = '270.00', productSellUnitPrice = '270.00', productSellHalfPrice = '270.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02055',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '250',lastbuyprice_withDiscount = '250',meanbuyprice = '250',meanbuyprice_withDiscount = '250' , productbuypricereal = '250.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='250',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='250',meanbuyprice_withTax='250',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='250',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2055';
UPDATE buybilldetail SET  lastbuyprice = 250 , meanbuyprice = 250, lastbuyprice_withDiscount = 250, meanbuyprice_withDiscount = 250
        , lastbuyprice_withTax = 250, meanbuyprice_withTax = 250, lastbuyprice_withDiscountAndTax = 250
                where buybilldetailid = 1036;
UPDATE productunit SET proUnitBuyPrice  = 250 * productnumber WHERE productid = 2055;
UPDATE storedetail SET  productquantity = '180', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3414';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2055', '1', '180', '0', '172', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '180', '1', '2026-10-14 21:08:41','0','0'); -- id=11306
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02056', '172', '169', '2056', '72', '290', '20880.00', '0', '', '2026-10-14 21:10:07', '2056','','','0','0','0','0','0',null,'290','20880','0','0','0','0','0','0','0','0','1'); -- id=1037
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:08:41', 1, 2056, 0, 0
                    , 290, 72, 0, 0, 1, '2026-10-14 21:10:07')
                ON DUPLICATE KEY UPDATE buyprice = 290,
                        buyQuantity =buyQuantity+72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:10:07' ; -- id=6088
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2056', '290', '72', '0', 'buyBillController.php', '1037', '', '0', '0'); -- id=790
UPDATE product SET  productBuyPrice = "290" WHERE productId = 2056 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1037 ;
UPDATE product SET productName = 'ميلتون خاص فيوتشر السلام', productDescription = '', productCatId = '169', productBuyPrice = '290.00', productSellAllPrice = '310.00', productSellUnitPrice = '310.00', productSellHalfPrice = '310.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02056',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '290',lastbuyprice_withDiscount = '290',meanbuyprice = '290',meanbuyprice_withDiscount = '290' , productbuypricereal = '290.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.90' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='290',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='290',meanbuyprice_withTax='290',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='290',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2056';
UPDATE buybilldetail SET  lastbuyprice = 290 , meanbuyprice = 290, lastbuyprice_withDiscount = 290, meanbuyprice_withDiscount = 290
        , lastbuyprice_withTax = 290, meanbuyprice_withTax = 290, lastbuyprice_withDiscountAndTax = 290
                where buybilldetailid = 1037;
UPDATE productunit SET proUnitBuyPrice  = 290 * productnumber WHERE productid = 2056;
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3415';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2056', '1', '72', '0', '172', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '72', '1', '2026-10-14 21:08:41','0','0'); -- id=11307
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02057', '172', '169', '2057', '120', '140', '16800.00', '0', '', '2026-10-14 21:10:07', '2057','','','0','0','0','0','0',null,'140','16800','0','0','0','0','0','0','0','0','1'); -- id=1038
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:08:41', 1, 2057, 0, 0
                    , 140, 120, 0, 0, 1, '2026-10-14 21:10:07')
                ON DUPLICATE KEY UPDATE buyprice = 140,
                        buyQuantity =buyQuantity+120, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:10:07' ; -- id=6089
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2057', '140', '120', '0', 'buyBillController.php', '1038', '', '0', '0'); -- id=791
UPDATE product SET  productBuyPrice = "140" WHERE productId = 2057 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1038 ;
UPDATE product SET productName = 'بدي قطن دريب فيوتشر السلام', productDescription = '', productCatId = '169', productBuyPrice = '140.00', productSellAllPrice = '150.00', productSellUnitPrice = '150.00', productSellHalfPrice = '150.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02057',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '140',lastbuyprice_withDiscount = '140',meanbuyprice = '140',meanbuyprice_withDiscount = '140' , productbuypricereal = '120.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '25.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='120',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='140',meanbuyprice_withTax='140',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='140',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2057';
UPDATE buybilldetail SET  lastbuyprice = 140 , meanbuyprice = 140, lastbuyprice_withDiscount = 140, meanbuyprice_withDiscount = 140
        , lastbuyprice_withTax = 140, meanbuyprice_withTax = 140, lastbuyprice_withDiscountAndTax = 140
                where buybilldetailid = 1038;
UPDATE productunit SET proUnitBuyPrice  = 140 * productnumber WHERE productid = 2057;
UPDATE storedetail SET  productquantity = '120', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3416';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2057', '1', '120', '0', '172', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '120', '1', '2026-10-14 21:08:41','0','0'); -- id=11308
UPDATE supplier SET  suppliercurrentDebt = '82680',suppliercurrentDebtInCurrency= '82680' , userid = '1', supplierdate = '2026-10-14 21:10:07'   WHERE supplierid = '177';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('177', '0.00', '82680', '0', 'اضافة فاتورة مشتريات', '172', '82680', '2026-10-14 21:08:41', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','82680','1','0','82680','82680','0',''); -- id=516
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '82680', '82680', '2026-10-14', '1', '0', '0', '2026-10-14 21:10:07','اضافة فاتورة مشتريات رقم 172','1','0',null,'0','172','buyBillController.php?do=details&id=172'); -- id=2480
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2480', '382', '82680', '','0'); -- id=2536
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23851666.33', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2480', '660', '82680', '','0'); -- id=2482
UPDATE accountstree SET name = 'فيوتشر الشيخ السلام', customName = 'فيوتشر الشيخ السلام', customNameEn = 'فيوتشر الشيخ السلام', nameEn = 'فيوتشر الشيخ السلام', parent = '81', accountNature = '1', theValue = '82680', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-14 21:09:02' WHERE id = '660';
update buybill set dailyentryid='2480,0' where buybillid=172;
COMMIT;
UPDATE product SET overAllAveragePrice = 250 WHERE productId = 2055;UPDATE product SET overAllAveragePrice = 290 WHERE productId = 2056;UPDATE product SET overAllAveragePrice = 140 WHERE productId = 2057;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:40:07";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:10:07", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:10:07', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=172'); -- id=9865
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:40:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:10:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:10:14', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=172&type=2'); -- id=9866
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:41:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:11:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:11:42', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9867
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكت 4921 تمبو','','108','675','700','700','700','2026-10-14','0','1','0','','0','0','0','0','0','675','675','675','675','675','0','3.7','0','0','.','0','0','0','675','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','675','675','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','675','0','0','0','0','0','0','','','0','0','0','0'); -- id=2058
UPDATE product SET productName = 'جاكت 4921 تمبو', productDescription = '', productCatId = '108', productBuyPrice = '675', productSellAllPrice = '700', productSellUnitPrice = '700', productSellHalfPrice = '700', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02058',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '675',lastbuyprice_withDiscount = '675',meanbuyprice = '675',meanbuyprice_withDiscount = '675' , productbuypricereal = '675' , buypricereal_precentage = '0' , buytotal_precentage = '3.7' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='675',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='675',meanbuyprice_withTax='675',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='675',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2058';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2058', '1.00', '2026-10-14', '1', '0','0205801','700','700','700','675','','0','0','0','0','0','0','0','0','0','0'); -- id=2058
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2058', '1', '0', '1', '2026-10-14'); -- id=3417
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2058', '1', '0', '0', '2058', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11309
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2058, 1,'2026-10-14 21:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2058, edited = 1, sysdate = '2026-10-14 21:11:42', userid = 1; -- id=3016
UPDATE product SET productName = 'جاكت 4921 تمبو', productDescription = '', productCatId = '108', productBuyPrice = '675.00', productSellAllPrice = '700.00', productSellUnitPrice = '700.00', productSellHalfPrice = '700.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02058',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '675',lastbuyprice_withDiscount = '675',meanbuyprice = '675',meanbuyprice_withDiscount = '675' , productbuypricereal = '675' , buypricereal_precentage = '0' , buytotal_precentage = '3.7' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='675',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='675',meanbuyprice_withTax='675',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='675',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2058';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تيشيرت كود 4018','','108','410','430','430','430','2026-10-14','0','1','0','','0','0','0','0','0','410','410','410','410','410','0','4.88','0','0','.','0','0','0','410','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','410','410','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','410','0','0','0','0','0','0','','','0','0','0','0'); -- id=2059
UPDATE product SET productName = 'تيشيرت كود 4018', productDescription = '', productCatId = '108', productBuyPrice = '410', productSellAllPrice = '430', productSellUnitPrice = '430', productSellHalfPrice = '430', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02059',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 = '4.88' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2059';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2059', '1.00', '2026-10-14', '1', '0','0205901','430','430','430','410','','0','0','0','0','0','0','0','0','0','0'); -- id=2059
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2059', '1', '0', '1', '2026-10-14'); -- id=3418
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2059', '1', '0', '0', '2059', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11310
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2059, 1,'2026-10-14 21:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2059, edited = 1, sysdate = '2026-10-14 21:11:42', userid = 1; -- id=3017
UPDATE product SET productName = 'تيشيرت كود 4018', productDescription = '', productCatId = '108', productBuyPrice = '410.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02059',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 = '4.88' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2059';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تيشيرت 4021','','108','460','480','480','480','2026-10-14','0','1','0','','0','0','0','0','0','460','460','460','460','460','0','4.35','0','0','.','0','0','0','460','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','460','460','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','460','0','0','0','0','0','0','','','0','0','0','0'); -- id=2060
UPDATE product SET productName = 'تيشيرت 4021', productDescription = '', productCatId = '108', productBuyPrice = '460', productSellAllPrice = '480', productSellUnitPrice = '480', productSellHalfPrice = '480', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02060',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460' , buypricereal_precentage = '0' , buytotal_precentage = '4.35' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2060';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2060', '1.00', '2026-10-14', '1', '0','0206001','480','480','480','460','','0','0','0','0','0','0','0','0','0','0'); -- id=2060
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2060', '1', '0', '1', '2026-10-14'); -- id=3419
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2060', '1', '0', '0', '2060', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11311
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2060, 1,'2026-10-14 21:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2060, edited = 1, sysdate = '2026-10-14 21:11:42', userid = 1; -- id=3018
UPDATE product SET productName = 'تيشيرت 4021', productDescription = '', productCatId = '108', productBuyPrice = '460.00', productSellAllPrice = '480.00', productSellUnitPrice = '480.00', productSellHalfPrice = '480.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02060',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460' , buypricereal_precentage = '0' , buytotal_precentage = '4.35' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2060';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تيشيرت 4022','','108','320','340','340','340','2026-10-14','0','1','0','','0','0','0','0','0','320','320','320','320','320','0','6.25','0','0','.','0','0','0','320','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','320','320','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','320','0','0','0','0','0','0','','','0','0','0','0'); -- id=2061
UPDATE product SET productName = 'تيشيرت 4022', productDescription = '', productCatId = '108', productBuyPrice = '320', productSellAllPrice = '340', productSellUnitPrice = '340', productSellHalfPrice = '340', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '48157',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '320',lastbuyprice_withDiscount = '320',meanbuyprice = '320',meanbuyprice_withDiscount = '320' , productbuypricereal = '320' , buypricereal_precentage = '0' , buytotal_precentage = '6.25' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='320',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='320',meanbuyprice_withTax='320',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='320',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2061';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2061', '1.00', '2026-10-14', '1', '0','0206101','340','340','340','320','','0','0','0','0','0','0','0','0','0','0'); -- id=2061
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2061', '1', '0', '1', '2026-10-14'); -- id=3420
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2061', '1', '0', '0', '2061', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11312
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2061, 1,'2026-10-14 21:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2061, edited = 1, sysdate = '2026-10-14 21:11:42', userid = 1; -- id=3019
UPDATE product SET productName = 'تيشيرت 4022', productDescription = '', productCatId = '108', productBuyPrice = '320.00', productSellAllPrice = '340.00', productSellUnitPrice = '340.00', productSellHalfPrice = '340.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '48157',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '320',lastbuyprice_withDiscount = '320',meanbuyprice = '320',meanbuyprice_withDiscount = '320' , productbuypricereal = '320' , buypricereal_precentage = '0' , buytotal_precentage = '6.25' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='320',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='320',meanbuyprice_withTax='320',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='320',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2061';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تيشيرت 4107','','108','460','480','480','480','2026-10-14','0','1','0','','0','0','0','0','0','460','460','460','460','460','0','4.35','0','0','.','0','0','0','460','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','460','460','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','460','0','0','0','0','0','0','','','0','0','0','0'); -- id=2062
UPDATE product SET productName = 'تيشيرت 4107', productDescription = '', productCatId = '108', productBuyPrice = '460', productSellAllPrice = '480', productSellUnitPrice = '480', productSellHalfPrice = '480', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02062',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460' , buypricereal_precentage = '0' , buytotal_precentage = '4.35' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2062';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2062', '1.00', '2026-10-14', '1', '0','0206201','480','480','480','460','','0','0','0','0','0','0','0','0','0','0'); -- id=2062
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2062', '1', '0', '1', '2026-10-14'); -- id=3421
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2062', '1', '0', '0', '2062', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11313
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2062, 1,'2026-10-14 21:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2062, edited = 1, sysdate = '2026-10-14 21:11:42', userid = 1; -- id=3020
UPDATE product SET productName = 'تيشيرت 4107', productDescription = '', productCatId = '108', productBuyPrice = '460.00', productSellAllPrice = '480.00', productSellUnitPrice = '480.00', productSellHalfPrice = '480.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02062',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460' , buypricereal_precentage = '0' , buytotal_precentage = '4.35' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2062';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تيشيرت 4307','','108','460','480','480','480','2026-10-14','0','1','0','','0','0','0','0','0','460','460','460','460','460','0','4.35','0','0','.','0','0','0','460','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','460','460','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','460','0','0','0','0','0','0','','','0','0','0','0'); -- id=2063
UPDATE product SET productName = 'تيشيرت 4307', productDescription = '', productCatId = '108', productBuyPrice = '460', productSellAllPrice = '480', productSellUnitPrice = '480', productSellHalfPrice = '480', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '21857',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460' , buypricereal_precentage = '0' , buytotal_precentage = '4.35' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2063';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2063', '1.00', '2026-10-14', '1', '0','0206301','480','480','480','460','','0','0','0','0','0','0','0','0','0','0'); -- id=2063
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2063', '1', '0', '1', '2026-10-14'); -- id=3422
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2063', '1', '0', '0', '2063', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11314
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2063, 1,'2026-10-14 21:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2063, edited = 1, sysdate = '2026-10-14 21:11:42', userid = 1; -- id=3021
UPDATE product SET productName = 'تيشيرت 4307', productDescription = '', productCatId = '108', productBuyPrice = '460.00', productSellAllPrice = '480.00', productSellUnitPrice = '480.00', productSellHalfPrice = '480.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '21857',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460' , buypricereal_precentage = '0' , buytotal_precentage = '4.35' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2063';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تيشيرت 4006','','108','410','430','430','430','2026-10-14','0','1','0','','0','0','0','0','0','410','410','410','410','410','0','4.88','0','0','.','0','0','0','410','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','410','410','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','410','0','0','0','0','0','0','','','0','0','0','0'); -- id=2064
UPDATE product SET productName = 'تيشيرت 4006', productDescription = '', productCatId = '108', productBuyPrice = '410', productSellAllPrice = '430', productSellUnitPrice = '430', productSellHalfPrice = '430', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '38131',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 = '4.88' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2064';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2064', '1.00', '2026-10-14', '1', '0','0206401','430','430','430','410','','0','0','0','0','0','0','0','0','0','0'); -- id=2064
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2064', '1', '0', '1', '2026-10-14'); -- id=3423
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2064', '1', '0', '0', '2064', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11315
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2064, 1,'2026-10-14 21:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2064, edited = 1, sysdate = '2026-10-14 21:11:42', userid = 1; -- id=3022
UPDATE product SET productName = 'تيشيرت 4006', productDescription = '', productCatId = '108', productBuyPrice = '410.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '38131',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 = '4.88' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2064';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تيشيرت 4016','','108','310','330','330','330','2026-10-14','0','1','0','','0','0','0','0','0','310','310','310','310','310','0','6.45','0','0','.','0','0','0','310','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','310','310','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','310','0','0','0','0','0','0','','','0','0','0','0'); -- id=2065
UPDATE product SET productName = 'تيشيرت 4016', productDescription = '', productCatId = '108', productBuyPrice = '310', productSellAllPrice = '330', productSellUnitPrice = '330', productSellHalfPrice = '330', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02065',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310',lastbuyprice_withDiscount = '310',meanbuyprice = '310',meanbuyprice_withDiscount = '310' , productbuypricereal = '310' , buypricereal_precentage = '0' , buytotal_precentage = '6.45' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2065';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2065', '1.00', '2026-10-14', '1', '0','0206501','330','330','330','310','','0','0','0','0','0','0','0','0','0','0'); -- id=2065
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2065', '1', '0', '1', '2026-10-14'); -- id=3424
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2065', '1', '0', '0', '2065', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11316
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2065, 1,'2026-10-14 21:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2065, edited = 1, sysdate = '2026-10-14 21:11:42', userid = 1; -- id=3023
UPDATE product SET productName = 'تيشيرت 4016', productDescription = '', productCatId = '108', productBuyPrice = '310.00', productSellAllPrice = '330.00', productSellUnitPrice = '330.00', productSellHalfPrice = '330.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02065',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310',lastbuyprice_withDiscount = '310',meanbuyprice = '310',meanbuyprice_withDiscount = '310' , productbuypricereal = '310' , buypricereal_precentage = '0' , buytotal_precentage = '6.45' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2065';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تيشيرت 4103','','108','300','320','320','320','2026-10-14','0','1','0','','0','0','0','0','0','300','300','300','300','300','0','6.67','0','0','.','0','0','0','300','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','300','300','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','300','0','0','0','0','0','0','','','0','0','0','0'); -- id=2066
UPDATE product SET productName = 'تيشيرت 4103', productDescription = '', productCatId = '108', productBuyPrice = '300', productSellAllPrice = '320', productSellUnitPrice = '320', productSellHalfPrice = '320', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02066',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '300',lastbuyprice_withDiscount = '300',meanbuyprice = '300',meanbuyprice_withDiscount = '300' , productbuypricereal = '300' , buypricereal_precentage = '0' , buytotal_precentage = '6.67' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='300',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='300',meanbuyprice_withTax='300',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='300',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2066';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2066', '1.00', '2026-10-14', '1', '0','0206601','320','320','320','300','','0','0','0','0','0','0','0','0','0','0'); -- id=2066
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2066', '1', '0', '1', '2026-10-14'); -- id=3425
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2066', '1', '0', '0', '2066', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11317
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2066, 1,'2026-10-14 21:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2066, edited = 1, sysdate = '2026-10-14 21:11:42', userid = 1; -- id=3024
UPDATE product SET productName = 'تيشيرت 4103', productDescription = '', productCatId = '108', productBuyPrice = '300.00', productSellAllPrice = '320.00', productSellUnitPrice = '320.00', productSellHalfPrice = '320.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02066',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '300',lastbuyprice_withDiscount = '300',meanbuyprice = '300',meanbuyprice_withDiscount = '300' , productbuypricereal = '300' , buypricereal_precentage = '0' , buytotal_precentage = '6.67' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='300',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='300',meanbuyprice_withTax='300',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='300',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2066';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تيشيرت 4012','','108','410','430','430','430','2026-10-14','0','1','0','','0','0','0','0','0','410','410','410','410','410','0','4.88','0','0','.','0','0','0','410','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','410','410','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','410','0','0','0','0','0','0','','','0','0','0','0'); -- id=2067
UPDATE product SET productName = 'تيشيرت 4012', productDescription = '', productCatId = '108', productBuyPrice = '410', productSellAllPrice = '430', productSellUnitPrice = '430', productSellHalfPrice = '430', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02067',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 = '4.88' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2067';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2067', '1.00', '2026-10-14', '1', '0','0206701','430','430','430','410','','0','0','0','0','0','0','0','0','0','0'); -- id=2067
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2067', '1', '0', '1', '2026-10-14'); -- id=3426
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2067', '1', '0', '0', '2067', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11318
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2067, 1,'2026-10-14 21:11:42',1)
                ON DUPLICATE KEY UPDATE productid = 2067, edited = 1, sysdate = '2026-10-14 21:11:42', userid = 1; -- id=3025
UPDATE product SET productName = 'تيشيرت 4012', productDescription = '', productCatId = '108', productBuyPrice = '410.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02067',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 = '4.88' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2067';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:41:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:11:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:11:44', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9868
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:41:48";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:11:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:11:48', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9869
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:43:46";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:13:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:13:46', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9870
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfc5e489fac', '2026-10-14 21:11:48', '106', '-1188890.00', '-1026200', '0', '0', '162690.00',  '162690.00', '0', '162690', '1', '2026-10-14 21:13:46', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=173
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02058', '173', '108', '2058', '30', '675', '20250.00', '0', '', '2026-10-14 21:13:46', '2058','','','0','0','0','0','0',null,'675','20250','0','0','0','0','0','0','0','0','1'); -- id=1039
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:11:48', 1, 2058, 0, 0
                    , 675, 30, 0, 0, 1, '2026-10-14 21:13:47')
                ON DUPLICATE KEY UPDATE buyprice = 675,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:13:47' ; -- id=6090
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2058', '675', '30', '0', 'buyBillController.php', '1039', '', '0', '0'); -- id=792
UPDATE product SET  productBuyPrice = "675" WHERE productId = 2058 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1039 ;
UPDATE product SET productName = 'جاكت 4921 تمبو', productDescription = '', productCatId = '108', productBuyPrice = '675.00', productSellAllPrice = '700.00', productSellUnitPrice = '700.00', productSellHalfPrice = '700.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02058',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '675',lastbuyprice_withDiscount = '675',meanbuyprice = '675',meanbuyprice_withDiscount = '675' , productbuypricereal = '675.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.70' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='675',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='675',meanbuyprice_withTax='675',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='675',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2058';
UPDATE buybilldetail SET  lastbuyprice = 675 , meanbuyprice = 675, lastbuyprice_withDiscount = 675, meanbuyprice_withDiscount = 675
        , lastbuyprice_withTax = 675, meanbuyprice_withTax = 675, lastbuyprice_withDiscountAndTax = 675
                where buybilldetailid = 1039;
UPDATE productunit SET proUnitBuyPrice  = 675 * productnumber WHERE productid = 2058;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3417';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2058', '1', '30', '0', '173', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 21:11:48','0','0'); -- id=11319
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01493', '173', '108', '1493', '25', '600', '15000.00', '0', '', '2026-10-14 21:13:46', '1493','','','0','0','0','0','0',null,'600','15000','0','0','0','0','0','0','0','0','1'); -- id=1040
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:11:48', 1, 1493, 0, 0
                    , 600, 25, 0, 0, 1, '2026-10-14 21:13:47')
                ON DUPLICATE KEY UPDATE buyprice = 600,
                        buyQuantity =buyQuantity+25, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:13:47' ; -- id=6091
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1493', '600', '25', '0', 'buyBillController.php', '1040', '', '0', '0'); -- id=793
UPDATE product SET  productBuyPrice = "600" WHERE productId = 1493 ;
UPDATE buybilldetail SET  quantitybefore = 3 WHERE buybilldetailid = 1040 ;
UPDATE product SET productName = 'جاكت 4300 تمبو', productDescription = '', productCatId = '108', productBuyPrice = '600.00', productSellAllPrice = '625.00', productSellUnitPrice = '625.00', productSellHalfPrice = '625.00', productDate = '2026-10-06', conditions = '0', userId = '1', limitamount = '0', parcode = '01493',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '600',lastbuyprice_withDiscount = '600',meanbuyprice = '600',meanbuyprice_withDiscount = '600' , productbuypricereal = '600.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.17' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='600',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='600',meanbuyprice_withTax='600',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='600',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1493';
UPDATE buybilldetail SET  lastbuyprice = 600 , meanbuyprice = 600, lastbuyprice_withDiscount = 600, meanbuyprice_withDiscount = 600
        , lastbuyprice_withTax = 600, meanbuyprice_withTax = 600, lastbuyprice_withDiscountAndTax = 600
                where buybilldetailid = 1040;
UPDATE productunit SET proUnitBuyPrice  = 600 * productnumber WHERE productid = 1493;
UPDATE storedetail SET  productquantity = '28', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1518';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1493', '1', '25', '0', '173', 'اضافة فاتورة مشتريات', 'buyBillController.php', '3', '28', '1', '2026-10-14 21:11:48','0','0'); -- id=11320
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02059', '173', '108', '2059', '36', '410', '14760.00', '0', '', '2026-10-14 21:13:46', '2059','','','0','0','0','0','0',null,'410','14760','0','0','0','0','0','0','0','0','1'); -- id=1041
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:11:48', 1, 2059, 0, 0
                    , 410, 36, 0, 0, 1, '2026-10-14 21:13:47')
                ON DUPLICATE KEY UPDATE buyprice = 410,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:13:47' ; -- id=6092
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2059', '410', '36', '0', 'buyBillController.php', '1041', '', '0', '0'); -- id=794
UPDATE product SET  productBuyPrice = "410" WHERE productId = 2059 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1041 ;
UPDATE product SET productName = 'تيشيرت كود 4018', productDescription = '', productCatId = '108', productBuyPrice = '410.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02059',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '410',lastbuyprice_withDiscount = '410',meanbuyprice = '410',meanbuyprice_withDiscount = '410' , productbuypricereal = '410.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.88' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2059';
UPDATE buybilldetail SET  lastbuyprice = 410 , meanbuyprice = 410, lastbuyprice_withDiscount = 410, meanbuyprice_withDiscount = 410
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 410, lastbuyprice_withDiscountAndTax = 410
                where buybilldetailid = 1041;
UPDATE productunit SET proUnitBuyPrice  = 410 * productnumber WHERE productid = 2059;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3418';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2059', '1', '36', '0', '173', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 21:11:48','0','0'); -- id=11321
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02060', '173', '108', '2060', '36', '460', '16560.00', '0', '', '2026-10-14 21:13:46', '2060','','','0','0','0','0','0',null,'460','16560','0','0','0','0','0','0','0','0','1'); -- id=1042
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:11:48', 1, 2060, 0, 0
                    , 460, 36, 0, 0, 1, '2026-10-14 21:13:47')
                ON DUPLICATE KEY UPDATE buyprice = 460,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:13:47' ; -- id=6093
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2060', '460', '36', '0', 'buyBillController.php', '1042', '', '0', '0'); -- id=795
UPDATE product SET  productBuyPrice = "460" WHERE productId = 2060 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1042 ;
UPDATE product SET productName = 'تيشيرت 4021', productDescription = '', productCatId = '108', productBuyPrice = '460.00', productSellAllPrice = '480.00', productSellUnitPrice = '480.00', productSellHalfPrice = '480.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02060',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.35' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2060';
UPDATE buybilldetail SET  lastbuyprice = 460 , meanbuyprice = 460, lastbuyprice_withDiscount = 460, meanbuyprice_withDiscount = 460
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where buybilldetailid = 1042;
UPDATE productunit SET proUnitBuyPrice  = 460 * productnumber WHERE productid = 2060;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3419';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2060', '1', '36', '0', '173', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 21:11:48','0','0'); -- id=11322
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('48157', '173', '108', '2061', '36', '320', '11520.00', '0', '', '2026-10-14 21:13:46', '2061','','','0','0','0','0','0',null,'320','11520','0','0','0','0','0','0','0','0','1'); -- id=1043
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:11:48', 1, 2061, 0, 0
                    , 320, 36, 0, 0, 1, '2026-10-14 21:13:47')
                ON DUPLICATE KEY UPDATE buyprice = 320,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:13:47' ; -- id=6094
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2061', '320', '36', '0', 'buyBillController.php', '1043', '', '0', '0'); -- id=796
UPDATE product SET  productBuyPrice = "320" WHERE productId = 2061 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1043 ;
UPDATE product SET productName = 'تيشيرت 4022', productDescription = '', productCatId = '108', productBuyPrice = '320.00', productSellAllPrice = '340.00', productSellUnitPrice = '340.00', productSellHalfPrice = '340.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '48157',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '320',lastbuyprice_withDiscount = '320',meanbuyprice = '320',meanbuyprice_withDiscount = '320' , productbuypricereal = '320.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.25' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='320',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='320',meanbuyprice_withTax='320',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='320',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2061';
UPDATE buybilldetail SET  lastbuyprice = 320 , meanbuyprice = 320, lastbuyprice_withDiscount = 320, meanbuyprice_withDiscount = 320
        , lastbuyprice_withTax = 320, meanbuyprice_withTax = 320, lastbuyprice_withDiscountAndTax = 320
                where buybilldetailid = 1043;
UPDATE productunit SET proUnitBuyPrice  = 320 * productnumber WHERE productid = 2061;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3420';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2061', '1', '36', '0', '173', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 21:11:48','0','0'); -- id=11323
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02062', '173', '108', '2062', '36', '460', '16560.00', '0', '', '2026-10-14 21:13:46', '2062','','','0','0','0','0','0',null,'460','16560','0','0','0','0','0','0','0','0','1'); -- id=1044
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:11:48', 1, 2062, 0, 0
                    , 460, 36, 0, 0, 1, '2026-10-14 21:13:47')
                ON DUPLICATE KEY UPDATE buyprice = 460,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:13:47' ; -- id=6095
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2062', '460', '36', '0', 'buyBillController.php', '1044', '', '0', '0'); -- id=797
UPDATE product SET  productBuyPrice = "460" WHERE productId = 2062 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1044 ;
UPDATE product SET productName = 'تيشيرت 4107', productDescription = '', productCatId = '108', productBuyPrice = '460.00', productSellAllPrice = '480.00', productSellUnitPrice = '480.00', productSellHalfPrice = '480.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02062',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.35' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2062';
UPDATE buybilldetail SET  lastbuyprice = 460 , meanbuyprice = 460, lastbuyprice_withDiscount = 460, meanbuyprice_withDiscount = 460
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where buybilldetailid = 1044;
UPDATE productunit SET proUnitBuyPrice  = 460 * productnumber WHERE productid = 2062;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3421';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2062', '1', '36', '0', '173', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 21:11:48','0','0'); -- id=11324
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('21857', '173', '108', '2063', '36', '460', '16560.00', '0', '', '2026-10-14 21:13:46', '2063','','','0','0','0','0','0',null,'460','16560','0','0','0','0','0','0','0','0','1'); -- id=1045
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:11:48', 1, 2063, 0, 0
                    , 460, 36, 0, 0, 1, '2026-10-14 21:13:47')
                ON DUPLICATE KEY UPDATE buyprice = 460,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:13:47' ; -- id=6096
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2063', '460', '36', '0', 'buyBillController.php', '1045', '', '0', '0'); -- id=798
UPDATE product SET  productBuyPrice = "460" WHERE productId = 2063 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1045 ;
UPDATE product SET productName = 'تيشيرت 4307', productDescription = '', productCatId = '108', productBuyPrice = '460.00', productSellAllPrice = '480.00', productSellUnitPrice = '480.00', productSellHalfPrice = '480.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '21857',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.35' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2063';
UPDATE buybilldetail SET  lastbuyprice = 460 , meanbuyprice = 460, lastbuyprice_withDiscount = 460, meanbuyprice_withDiscount = 460
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 460
                where buybilldetailid = 1045;
UPDATE productunit SET proUnitBuyPrice  = 460 * productnumber WHERE productid = 2063;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3422';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2063', '1', '36', '0', '173', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 21:11:48','0','0'); -- id=11325
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('38131', '173', '108', '2064', '36', '410', '14760.00', '0', '', '2026-10-14 21:13:46', '2064','','','0','0','0','0','0',null,'410','14760','0','0','0','0','0','0','0','0','1'); -- id=1046
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:11:48', 1, 2064, 0, 0
                    , 410, 36, 0, 0, 1, '2026-10-14 21:13:47')
                ON DUPLICATE KEY UPDATE buyprice = 410,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:13:47' ; -- id=6097
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2064', '410', '36', '0', 'buyBillController.php', '1046', '', '0', '0'); -- id=799
UPDATE product SET  productBuyPrice = "410" WHERE productId = 2064 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1046 ;
UPDATE product SET productName = 'تيشيرت 4006', productDescription = '', productCatId = '108', productBuyPrice = '410.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '38131',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '410',lastbuyprice_withDiscount = '410',meanbuyprice = '410',meanbuyprice_withDiscount = '410' , productbuypricereal = '410.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.88' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2064';
UPDATE buybilldetail SET  lastbuyprice = 410 , meanbuyprice = 410, lastbuyprice_withDiscount = 410, meanbuyprice_withDiscount = 410
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 410, lastbuyprice_withDiscountAndTax = 410
                where buybilldetailid = 1046;
UPDATE productunit SET proUnitBuyPrice  = 410 * productnumber WHERE productid = 2064;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3423';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2064', '1', '36', '0', '173', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 21:11:48','0','0'); -- id=11326
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02065', '173', '108', '2065', '36', '310', '11160.00', '0', '', '2026-10-14 21:13:46', '2065','','','0','0','0','0','0',null,'310','11160','0','0','0','0','0','0','0','0','1'); -- id=1047
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:11:48', 1, 2065, 0, 0
                    , 310, 36, 0, 0, 1, '2026-10-14 21:13:47')
                ON DUPLICATE KEY UPDATE buyprice = 310,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:13:47' ; -- id=6098
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2065', '310', '36', '0', 'buyBillController.php', '1047', '', '0', '0'); -- id=800
UPDATE product SET  productBuyPrice = "310" WHERE productId = 2065 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1047 ;
UPDATE product SET productName = 'تيشيرت 4016', productDescription = '', productCatId = '108', productBuyPrice = '310.00', productSellAllPrice = '330.00', productSellUnitPrice = '330.00', productSellHalfPrice = '330.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02065',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '310',lastbuyprice_withDiscount = '310',meanbuyprice = '310',meanbuyprice_withDiscount = '310' , productbuypricereal = '310.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.45' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='310',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='310',meanbuyprice_withTax='310',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='310',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2065';
UPDATE buybilldetail SET  lastbuyprice = 310 , meanbuyprice = 310, lastbuyprice_withDiscount = 310, meanbuyprice_withDiscount = 310
        , lastbuyprice_withTax = 310, meanbuyprice_withTax = 310, lastbuyprice_withDiscountAndTax = 310
                where buybilldetailid = 1047;
UPDATE productunit SET proUnitBuyPrice  = 310 * productnumber WHERE productid = 2065;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3424';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2065', '1', '36', '0', '173', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 21:11:48','0','0'); -- id=11327
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02066', '173', '108', '2066', '36', '300', '10800.00', '0', '', '2026-10-14 21:13:46', '2066','','','0','0','0','0','0',null,'300','10800','0','0','0','0','0','0','0','0','1'); -- id=1048
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:11:48', 1, 2066, 0, 0
                    , 300, 36, 0, 0, 1, '2026-10-14 21:13:47')
                ON DUPLICATE KEY UPDATE buyprice = 300,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:13:47' ; -- id=6099
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2066', '300', '36', '0', 'buyBillController.php', '1048', '', '0', '0'); -- id=801
UPDATE product SET  productBuyPrice = "300" WHERE productId = 2066 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1048 ;
UPDATE product SET productName = 'تيشيرت 4103', productDescription = '', productCatId = '108', productBuyPrice = '300.00', productSellAllPrice = '320.00', productSellUnitPrice = '320.00', productSellHalfPrice = '320.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02066',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '300',lastbuyprice_withDiscount = '300',meanbuyprice = '300',meanbuyprice_withDiscount = '300' , productbuypricereal = '300.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '6.67' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='300',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='300',meanbuyprice_withTax='300',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='300',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2066';
UPDATE buybilldetail SET  lastbuyprice = 300 , meanbuyprice = 300, lastbuyprice_withDiscount = 300, meanbuyprice_withDiscount = 300
        , lastbuyprice_withTax = 300, meanbuyprice_withTax = 300, lastbuyprice_withDiscountAndTax = 300
                where buybilldetailid = 1048;
UPDATE productunit SET proUnitBuyPrice  = 300 * productnumber WHERE productid = 2066;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3425';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2066', '1', '36', '0', '173', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 21:11:48','0','0'); -- id=11328
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02067', '173', '108', '2067', '36', '410', '14760.00', '0', '', '2026-10-14 21:13:46', '2067','','','0','0','0','0','0',null,'410','14760','0','0','0','0','0','0','0','0','1'); -- id=1049
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:11:48', 1, 2067, 0, 0
                    , 410, 36, 0, 0, 1, '2026-10-14 21:13:47')
                ON DUPLICATE KEY UPDATE buyprice = 410,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:13:47' ; -- id=6100
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2067', '410', '36', '0', 'buyBillController.php', '1049', '', '0', '0'); -- id=802
UPDATE product SET  productBuyPrice = "410" WHERE productId = 2067 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1049 ;
UPDATE product SET productName = 'تيشيرت 4012', productDescription = '', productCatId = '108', productBuyPrice = '410.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02067',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '410',lastbuyprice_withDiscount = '410',meanbuyprice = '410',meanbuyprice_withDiscount = '410' , productbuypricereal = '410.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '4.88' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='410',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='410',meanbuyprice_withTax='410',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='410',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2067';
UPDATE buybilldetail SET  lastbuyprice = 410 , meanbuyprice = 410, lastbuyprice_withDiscount = 410, meanbuyprice_withDiscount = 410
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 410, lastbuyprice_withDiscountAndTax = 410
                where buybilldetailid = 1049;
UPDATE productunit SET proUnitBuyPrice  = 410 * productnumber WHERE productid = 2067;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3426';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2067', '1', '36', '0', '173', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 21:11:48','0','0'); -- id=11329
UPDATE supplier SET  suppliercurrentDebt = '-1026200',suppliercurrentDebtInCurrency= '-1026200' , userid = '1', supplierdate = '2026-10-14 21:13:46'   WHERE supplierid = '106';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('106', '-1188890.00', '162690', '0', 'اضافة فاتورة مشتريات', '173', '-1026200', '2026-10-14 21:11:48', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','162690','1','-1188890','162690','-1026200','0',''); -- id=517
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '162690', '162690', '2026-10-14', '1', '0', '0', '2026-10-14 21:13:47','اضافة فاتورة مشتريات رقم 173','1','0',null,'0','173','buyBillController.php?do=details&id=173'); -- id=2481
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2481', '382', '162690', '','0'); -- id=2537
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '24014356.33', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2481', '589', '162690', '','0'); -- id=2483
UPDATE accountstree SET name = 'تمبو', customName = 'تمبو', customNameEn = 'تمبو', nameEn = 'تمبو', parent = '81', accountNature = '1', theValue = '-1026200', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-07 09:33:15' WHERE id = '589';
update buybill set dailyentryid='2481,0' where buybillid=173;
COMMIT;
UPDATE product SET overAllAveragePrice = 600 WHERE productId = 1493;UPDATE product SET overAllAveragePrice = 675 WHERE productId = 2058;UPDATE product SET overAllAveragePrice = 410 WHERE productId = 2059;UPDATE product SET overAllAveragePrice = 460 WHERE productId = 2060;UPDATE product SET overAllAveragePrice = 320 WHERE productId = 2061;UPDATE product SET overAllAveragePrice = 460 WHERE productId = 2062;UPDATE product SET overAllAveragePrice = 460 WHERE productId = 2063;UPDATE product SET overAllAveragePrice = 410 WHERE productId = 2064;UPDATE product SET overAllAveragePrice = 310 WHERE productId = 2065;UPDATE product SET overAllAveragePrice = 300 WHERE productId = 2066;UPDATE product SET overAllAveragePrice = 410 WHERE productId = 2067;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:43:47";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:13:47", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:13:47', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=173'); -- id=9871
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:43:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:13:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:13:52', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=173&type=2'); -- id=9872
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:44:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:14:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:14:23', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=172&type=2'); -- id=9873
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:44:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:14:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:14:34', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9874
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:45:21";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:15:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:15:21', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9875
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:45:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:15:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:15:32', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9876
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:45:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:15:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:15:41', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9877
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:47:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:17:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:17:44', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9878
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:47:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:17:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:17:52', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=173&type=2'); -- id=9879
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:47:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:17:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:17:52', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9880
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:47:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:17:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 21:17:56', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9881
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:48:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:18:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 21:18:03', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9882
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:48:53";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:18:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:18:53', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=6'); -- id=9883
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:49:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:19:02", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:19:02', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9884
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:49:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:19:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 21:19:43', '1', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9885
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:50:19";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:20:19", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:20:19', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9886
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:50:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:20:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:20:35', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9887
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:51:27";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:21:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:21:27', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9888
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديلات 400 ولف وان','','81','370','400','400','400','2026-10-14','0','1','0','','0','0','0','0','0','370','370','370','370','370','0','8.11','0','0','.','0','0','0','370','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','370','370','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','370','0','0','0','0','0','0','','','0','0','0','0'); -- id=2068
UPDATE product SET productName = 'موديلات 400 ولف وان', productDescription = '', productCatId = '81', productBuyPrice = '370', productSellAllPrice = '400', productSellUnitPrice = '400', productSellHalfPrice = '400', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02068',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 = '8.11' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2068';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2068', '1', '2026-10-14', '1', '0','0206801','400','400','400','370','','0','0','0','0','0','0','0','0','0','0'); -- id=2068
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2068', '1', '0', '1', '2026-10-14'); -- id=3427
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2068', '1', '0', '0', '2068', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11330
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2068, 1,'2026-10-14 21:21:27',1)
                ON DUPLICATE KEY UPDATE productid = 2068, edited = 1, sysdate = '2026-10-14 21:21:27', userid = 1; -- id=3026
UPDATE product SET productName = 'موديلات 400 ولف وان', productDescription = '', productCatId = '81', productBuyPrice = '370.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02068',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 = '8.11' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2068';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديلات 410 ولف وان','','81','380','410','410','410','2026-10-14','0','1','0','','0','0','0','0','0','380','380','380','380','380','0','7.89','0','0','.','0','0','0','380','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','380','380','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','380','0','0','0','0','0','0','','','0','0','0','0'); -- id=2069
UPDATE product SET productName = 'موديلات 410 ولف وان', productDescription = '', productCatId = '81', productBuyPrice = '380', productSellAllPrice = '410', productSellUnitPrice = '410', productSellHalfPrice = '410', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02069',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '380',meanbuyprice = '380',meanbuyprice_withDiscount = '380' , productbuypricereal = '380' , buypricereal_precentage = '0' , buytotal_precentage = '7.89' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='380',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2069';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2069', '1', '2026-10-14', '1', '0','0206901','410','410','410','380','','0','0','0','0','0','0','0','0','0','0'); -- id=2069
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2069', '1', '0', '1', '2026-10-14'); -- id=3428
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2069', '1', '0', '0', '2069', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11331
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2069, 1,'2026-10-14 21:21:27',1)
                ON DUPLICATE KEY UPDATE productid = 2069, edited = 1, sysdate = '2026-10-14 21:21:27', userid = 1; -- id=3027
UPDATE product SET productName = 'موديلات 410 ولف وان', productDescription = '', productCatId = '81', productBuyPrice = '380.00', productSellAllPrice = '410.00', productSellUnitPrice = '410.00', productSellHalfPrice = '410.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02069',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '380',meanbuyprice = '380',meanbuyprice_withDiscount = '380' , productbuypricereal = '380' , buypricereal_precentage = '0' , buytotal_precentage = '7.89' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='380',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2069';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:51:28";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:21:28", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:21:28', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9889
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:51:30";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:21:30", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:21:30', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9890
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:52:58";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:22:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:22:58', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9891
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfc82aa71c2', '2026-10-14 21:21:30', '60', '49990.00', '171580', '0', '0', '121590.00',  '121590.00', '0', '121590', '1', '2026-10-14 21:22:58', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=174
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02068', '174', '81', '2068', '30', '370', '11100.00', '0', '', '2026-10-14 21:22:58', '2068','','','0','0','0','0','0',null,'370','11100','0','0','0','0','0','0','0','0','1'); -- id=1050
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:21:30', 1, 2068, 0, 0
                    , 370, 30, 0, 0, 1, '2026-10-14 21:22:58')
                ON DUPLICATE KEY UPDATE buyprice = 370,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:22:58' ; -- id=6101
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2068', '370', '30', '0', 'buyBillController.php', '1050', '', '0', '0'); -- id=803
UPDATE product SET  productBuyPrice = "370" WHERE productId = 2068 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1050 ;
UPDATE product SET productName = 'موديلات 400 ولف وان', productDescription = '', productCatId = '81', productBuyPrice = '370.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02068',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.11' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2068';
UPDATE buybilldetail SET  lastbuyprice = 370 , meanbuyprice = 370, lastbuyprice_withDiscount = 370, meanbuyprice_withDiscount = 370
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 370
                where buybilldetailid = 1050;
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 2068;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3427';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2068', '1', '30', '0', '174', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 21:21:30','0','0'); -- id=11332
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02068', '174', '81', '2068', '30', '370', '11100.00', '0', '', '2026-10-14 21:22:58', '2068','','','0','0','0','0','0',null,'370','11100','0','0','0','0','0','0','0','0','1'); -- id=1051
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:21:30', 1, 2068, 0, 0
                    , 370, 30, 0, 0, 1, '2026-10-14 21:22:58')
                ON DUPLICATE KEY UPDATE buyprice = 370,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:22:58' ; -- id=6101
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2068', '370', '30', '0', 'buyBillController.php', '1051', '', '0', '0'); -- id=804
UPDATE product SET  productBuyPrice = "370" WHERE productId = 2068 ;
UPDATE buybilldetail SET  quantitybefore = 30 WHERE buybilldetailid = 1051 ;
UPDATE product SET productName = 'موديلات 400 ولف وان', productDescription = '', productCatId = '81', productBuyPrice = '370.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02068',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.11' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2068';
UPDATE buybilldetail SET  lastbuyprice = 370 , meanbuyprice = 370, lastbuyprice_withDiscount = 370, meanbuyprice_withDiscount = 370
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 370
                where buybilldetailid = 1051;
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 2068;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3427';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2068', '1', '30', '0', '174', 'اضافة فاتورة مشتريات', 'buyBillController.php', '30', '60', '1', '2026-10-14 21:21:30','0','0'); -- id=11333
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02068', '174', '81', '2068', '27', '370', '9990.00', '0', '', '2026-10-14 21:22:58', '2068','','','0','0','0','0','0',null,'370','9990','0','0','0','0','0','0','0','0','1'); -- id=1052
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:21:30', 1, 2068, 0, 0
                    , 370, 27, 0, 0, 1, '2026-10-14 21:22:58')
                ON DUPLICATE KEY UPDATE buyprice = 370,
                        buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:22:58' ; -- id=6101
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2068', '370', '27', '0', 'buyBillController.php', '1052', '', '0', '0'); -- id=805
UPDATE product SET  productBuyPrice = "370" WHERE productId = 2068 ;
UPDATE buybilldetail SET  quantitybefore = 60 WHERE buybilldetailid = 1052 ;
UPDATE product SET productName = 'موديلات 400 ولف وان', productDescription = '', productCatId = '81', productBuyPrice = '370.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02068',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.11' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2068';
UPDATE buybilldetail SET  lastbuyprice = 370 , meanbuyprice = 370, lastbuyprice_withDiscount = 370, meanbuyprice_withDiscount = 370
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 370
                where buybilldetailid = 1052;
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 2068;
UPDATE storedetail SET  productquantity = '87', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3427';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2068', '1', '27', '0', '174', 'اضافة فاتورة مشتريات', 'buyBillController.php', '60', '87', '1', '2026-10-14 21:21:30','0','0'); -- id=11334
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02068', '174', '81', '2068', '30', '370', '11100.00', '0', '', '2026-10-14 21:22:58', '2068','','','0','0','0','0','0',null,'370','11100','0','0','0','0','0','0','0','0','1'); -- id=1053
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:21:30', 1, 2068, 0, 0
                    , 370, 30, 0, 0, 1, '2026-10-14 21:22:58')
                ON DUPLICATE KEY UPDATE buyprice = 370,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:22:58' ; -- id=6101
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2068', '370', '30', '0', 'buyBillController.php', '1053', '', '0', '0'); -- id=806
UPDATE product SET  productBuyPrice = "370" WHERE productId = 2068 ;
UPDATE buybilldetail SET  quantitybefore = 87 WHERE buybilldetailid = 1053 ;
UPDATE product SET productName = 'موديلات 400 ولف وان', productDescription = '', productCatId = '81', productBuyPrice = '370.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02068',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.11' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2068';
UPDATE buybilldetail SET  lastbuyprice = 370 , meanbuyprice = 370, lastbuyprice_withDiscount = 370, meanbuyprice_withDiscount = 370
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 370
                where buybilldetailid = 1053;
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 2068;
UPDATE storedetail SET  productquantity = '117', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3427';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2068', '1', '30', '0', '174', 'اضافة فاتورة مشتريات', 'buyBillController.php', '87', '117', '1', '2026-10-14 21:21:30','0','0'); -- id=11335
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02068', '174', '81', '2068', '30', '370', '11100.00', '0', '', '2026-10-14 21:22:58', '2068','','','0','0','0','0','0',null,'370','11100','0','0','0','0','0','0','0','0','1'); -- id=1054
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:21:30', 1, 2068, 0, 0
                    , 370, 30, 0, 0, 1, '2026-10-14 21:22:58')
                ON DUPLICATE KEY UPDATE buyprice = 370,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:22:58' ; -- id=6101
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2068', '370', '30', '0', 'buyBillController.php', '1054', '', '0', '0'); -- id=807
UPDATE product SET  productBuyPrice = "370" WHERE productId = 2068 ;
UPDATE buybilldetail SET  quantitybefore = 117 WHERE buybilldetailid = 1054 ;
UPDATE product SET productName = 'موديلات 400 ولف وان', productDescription = '', productCatId = '81', productBuyPrice = '370.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02068',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.11' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2068';
UPDATE buybilldetail SET  lastbuyprice = 370 , meanbuyprice = 370, lastbuyprice_withDiscount = 370, meanbuyprice_withDiscount = 370
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 370
                where buybilldetailid = 1054;
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 2068;
UPDATE storedetail SET  productquantity = '147', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3427';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2068', '1', '30', '0', '174', 'اضافة فاتورة مشتريات', 'buyBillController.php', '117', '147', '1', '2026-10-14 21:21:30','0','0'); -- id=11336
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02068', '174', '81', '2068', '30', '370', '11100.00', '0', '', '2026-10-14 21:22:58', '2068','','','0','0','0','0','0',null,'370','11100','0','0','0','0','0','0','0','0','1'); -- id=1055
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:21:30', 1, 2068, 0, 0
                    , 370, 30, 0, 0, 1, '2026-10-14 21:22:58')
                ON DUPLICATE KEY UPDATE buyprice = 370,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:22:58' ; -- id=6101
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2068', '370', '30', '0', 'buyBillController.php', '1055', '', '0', '0'); -- id=808
UPDATE product SET  productBuyPrice = "370" WHERE productId = 2068 ;
UPDATE buybilldetail SET  quantitybefore = 147 WHERE buybilldetailid = 1055 ;
UPDATE product SET productName = 'موديلات 400 ولف وان', productDescription = '', productCatId = '81', productBuyPrice = '370.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02068',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.11' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2068';
UPDATE buybilldetail SET  lastbuyprice = 370 , meanbuyprice = 370, lastbuyprice_withDiscount = 370, meanbuyprice_withDiscount = 370
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 370
                where buybilldetailid = 1055;
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 2068;
UPDATE storedetail SET  productquantity = '177', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3427';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2068', '1', '30', '0', '174', 'اضافة فاتورة مشتريات', 'buyBillController.php', '147', '177', '1', '2026-10-14 21:21:30','0','0'); -- id=11337
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02068', '174', '81', '2068', '30', '370', '11100.00', '0', '', '2026-10-14 21:22:58', '2068','','','0','0','0','0','0',null,'370','11100','0','0','0','0','0','0','0','0','1'); -- id=1056
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:21:30', 1, 2068, 0, 0
                    , 370, 30, 0, 0, 1, '2026-10-14 21:22:58')
                ON DUPLICATE KEY UPDATE buyprice = 370,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:22:58' ; -- id=6101
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2068', '370', '30', '0', 'buyBillController.php', '1056', '', '0', '0'); -- id=809
UPDATE product SET  productBuyPrice = "370" WHERE productId = 2068 ;
UPDATE buybilldetail SET  quantitybefore = 177 WHERE buybilldetailid = 1056 ;
UPDATE product SET productName = 'موديلات 400 ولف وان', productDescription = '', productCatId = '81', productBuyPrice = '370.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02068',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.11' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2068';
UPDATE buybilldetail SET  lastbuyprice = 370 , meanbuyprice = 370, lastbuyprice_withDiscount = 370, meanbuyprice_withDiscount = 370
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 370
                where buybilldetailid = 1056;
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 2068;
UPDATE storedetail SET  productquantity = '207', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3427';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2068', '1', '30', '0', '174', 'اضافة فاتورة مشتريات', 'buyBillController.php', '177', '207', '1', '2026-10-14 21:21:30','0','0'); -- id=11338
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02068', '174', '81', '2068', '30', '370', '11100.00', '0', '', '2026-10-14 21:22:58', '2068','','','0','0','0','0','0',null,'370','11100','0','0','0','0','0','0','0','0','1'); -- id=1057
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:21:30', 1, 2068, 0, 0
                    , 370, 30, 0, 0, 1, '2026-10-14 21:22:58')
                ON DUPLICATE KEY UPDATE buyprice = 370,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:22:58' ; -- id=6101
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2068', '370', '30', '0', 'buyBillController.php', '1057', '', '0', '0'); -- id=810
UPDATE product SET  productBuyPrice = "370" WHERE productId = 2068 ;
UPDATE buybilldetail SET  quantitybefore = 207 WHERE buybilldetailid = 1057 ;
UPDATE product SET productName = 'موديلات 400 ولف وان', productDescription = '', productCatId = '81', productBuyPrice = '370.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02068',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.11' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2068';
UPDATE buybilldetail SET  lastbuyprice = 370 , meanbuyprice = 370, lastbuyprice_withDiscount = 370, meanbuyprice_withDiscount = 370
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 370
                where buybilldetailid = 1057;
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 2068;
UPDATE storedetail SET  productquantity = '237', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3427';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2068', '1', '30', '0', '174', 'اضافة فاتورة مشتريات', 'buyBillController.php', '207', '237', '1', '2026-10-14 21:21:30','0','0'); -- id=11339
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02069', '174', '81', '2069', '30', '380', '11400.00', '0', '', '2026-10-14 21:22:58', '2069','','','0','0','0','0','0',null,'380','11400','0','0','0','0','0','0','0','0','1'); -- id=1058
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:21:30', 1, 2069, 0, 0
                    , 380, 30, 0, 0, 1, '2026-10-14 21:22:58')
                ON DUPLICATE KEY UPDATE buyprice = 380,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:22:58' ; -- id=6109
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2069', '380', '30', '0', 'buyBillController.php', '1058', '', '0', '0'); -- id=811
UPDATE product SET  productBuyPrice = "380" WHERE productId = 2069 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1058 ;
UPDATE product SET productName = 'موديلات 410 ولف وان', productDescription = '', productCatId = '81', productBuyPrice = '380.00', productSellAllPrice = '410.00', productSellUnitPrice = '410.00', productSellHalfPrice = '410.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02069',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '380',meanbuyprice = '380',meanbuyprice_withDiscount = '380' , productbuypricereal = '380.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '7.89' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='380',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2069';
UPDATE buybilldetail SET  lastbuyprice = 380 , meanbuyprice = 380, lastbuyprice_withDiscount = 380, meanbuyprice_withDiscount = 380
        , lastbuyprice_withTax = 380, meanbuyprice_withTax = 380, lastbuyprice_withDiscountAndTax = 380
                where buybilldetailid = 1058;
UPDATE productunit SET proUnitBuyPrice  = 380 * productnumber WHERE productid = 2069;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3428';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2069', '1', '30', '0', '174', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 21:21:30','0','0'); -- id=11340
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02069', '174', '81', '2069', '30', '380', '11400.00', '0', '', '2026-10-14 21:22:58', '2069','','','0','0','0','0','0',null,'380','11400','0','0','0','0','0','0','0','0','1'); -- id=1059
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:21:30', 1, 2069, 0, 0
                    , 380, 30, 0, 0, 1, '2026-10-14 21:22:58')
                ON DUPLICATE KEY UPDATE buyprice = 380,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:22:58' ; -- id=6109
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2069', '380', '30', '0', 'buyBillController.php', '1059', '', '0', '0'); -- id=812
UPDATE product SET  productBuyPrice = "380" WHERE productId = 2069 ;
UPDATE buybilldetail SET  quantitybefore = 30 WHERE buybilldetailid = 1059 ;
UPDATE product SET productName = 'موديلات 410 ولف وان', productDescription = '', productCatId = '81', productBuyPrice = '380.00', productSellAllPrice = '410.00', productSellUnitPrice = '410.00', productSellHalfPrice = '410.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02069',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '380',lastbuyprice_withDiscount = '380',meanbuyprice = '380',meanbuyprice_withDiscount = '380' , productbuypricereal = '380.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '7.89' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='380',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='380',meanbuyprice_withTax='380',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='380',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2069';
UPDATE buybilldetail SET  lastbuyprice = 380 , meanbuyprice = 380, lastbuyprice_withDiscount = 380, meanbuyprice_withDiscount = 380
        , lastbuyprice_withTax = 380, meanbuyprice_withTax = 380, lastbuyprice_withDiscountAndTax = 380
                where buybilldetailid = 1059;
UPDATE productunit SET proUnitBuyPrice  = 380 * productnumber WHERE productid = 2069;
UPDATE storedetail SET  productquantity = '60', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3428';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2069', '1', '30', '0', '174', 'اضافة فاتورة مشتريات', 'buyBillController.php', '30', '60', '1', '2026-10-14 21:21:30','0','0'); -- id=11341
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02068', '174', '81', '2068', '30', '370', '11100.00', '0', '', '2026-10-14 21:22:58', '2068','','','0','0','0','0','0',null,'370','11100','0','0','0','0','0','0','0','0','1'); -- id=1060
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:21:30', 1, 2068, 0, 0
                    , 370, 30, 0, 0, 1, '2026-10-14 21:22:58')
                ON DUPLICATE KEY UPDATE buyprice = 370,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:22:58' ; -- id=6101
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2068', '370', '30', '0', 'buyBillController.php', '1060', '', '0', '0'); -- id=813
UPDATE product SET  productBuyPrice = "370" WHERE productId = 2068 ;
UPDATE buybilldetail SET  quantitybefore = 237 WHERE buybilldetailid = 1060 ;
UPDATE product SET productName = 'موديلات 400 ولف وان', productDescription = '', productCatId = '81', productBuyPrice = '370.00', productSellAllPrice = '400.00', productSellUnitPrice = '400.00', productSellHalfPrice = '400.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02068',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '370',meanbuyprice = '370',meanbuyprice_withDiscount = '370' , productbuypricereal = '370.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '8.11' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2068';
UPDATE buybilldetail SET  lastbuyprice = 370 , meanbuyprice = 370, lastbuyprice_withDiscount = 370, meanbuyprice_withDiscount = 370
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 370
                where buybilldetailid = 1060;
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 2068;
UPDATE storedetail SET  productquantity = '267', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3427';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2068', '1', '30', '0', '174', 'اضافة فاتورة مشتريات', 'buyBillController.php', '237', '267', '1', '2026-10-14 21:21:30','0','0'); -- id=11342
UPDATE supplier SET  suppliercurrentDebt = '171580',suppliercurrentDebtInCurrency= '171580' , userid = '1', supplierdate = '2026-10-14 21:22:58'   WHERE supplierid = '60';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('60', '49990.00', '121590', '0', 'اضافة فاتورة مشتريات', '174', '171580', '2026-10-14 21:21:30', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','121590','1','49990','121590','171580','0',''); -- id=518
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '121590', '121590', '2026-10-14', '1', '0', '0', '2026-10-14 21:22:58','اضافة فاتورة مشتريات رقم 174','1','0',null,'0','174','buyBillController.php?do=details&id=174'); -- id=2482
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2482', '382', '121590', '','0'); -- id=2538
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '24135946.33', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2482', '479', '121590', '','0'); -- id=2484
UPDATE accountstree SET name = 'ولف وان - مورد', customName = 'ولف وان - مورد', customNameEn = 'ولف وان - مورد', nameEn = 'ولف وان - مورد', parent = '81', accountNature = '1', theValue = '64960', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '479';
update buybill set dailyentryid='2482,0' where buybillid=174;
COMMIT;
UPDATE product SET overAllAveragePrice = 370 WHERE productId = 2068;UPDATE product SET overAllAveragePrice = 380 WHERE productId = 2069;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:52:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:22:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:22:59', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=174'); -- id=9892
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:53:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:23:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:23:03', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=174&type=2'); -- id=9893
update user set blockedByLimits = 0;
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:55:54";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:25:55", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 21:25:55', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9894
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 17:55:55";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 21:25:55', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9895
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:56:02";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:26:02", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 21:26:02', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9896

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acfc436dc623
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 21:26:02', '06acfc436dc623', '1', '0.00', '0', '0', '1', '35695.00', '35695', '35695', '0', '1', '2026-10-14 21:26:02', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '79' ,'0','','','','','-1','0','0','0','0','0','35695','0','','0','0','35695','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=546
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','546', '0', '2026-10-14 21:26:02', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '35695', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 21:26:02','0','0','',''); -- id=694
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 788;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('441','01805', '546', '122', '1805', '3', '490', '1470', '0', '', '0', '2026-10-14 21:26:02', '1805', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','788-3,','1','1','0','0','490','1470','0','','0','0.00','0','0','0','0'); -- id=1977
UPDATE sellbilldetail SET  lastbuyprice = 490.00 , meanbuyprice = 490.00, lastbuyprice_withDiscount = 441.00, meanbuyprice_withDiscount = 441.00
        , lastbuyprice_withTax = 490, meanbuyprice_withTax = 490, lastbuyprice_withDiscountAndTax = 441
                where sellbilldetailid = 1977;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1805, '2026-10-14', 1470, 1470, 1470
                    , 1470, 1323, 1323, 1323
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1470, 1470, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1470, sellCostBuyPrice =sellCostBuyPrice+1470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1323, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1323
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1323
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1470
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1470, 1470, 1470
                    , 1470, 1323, 1323, 1323
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1470, 1470, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1470, sellCostBuyPrice =sellCostBuyPrice+1470
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1470, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1470
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1323, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1323
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1323
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1470
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1470
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '15', userid = '3', storedetaildate = '2026-10-14 21:26:02' WHERE storedetailid = '2819';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1805', '1', '3', '1', '546', 'اضافة فاتورة مبيعات', 'sellbillController.php', '18', '15', '3', '2026-10-14 21:26:02','0','0'); -- id=11343
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 575;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('427.8','01712', '546', '128', '1712', '3', '465', '1395', '0', '', '0', '2026-10-14 21:26:02', '1712', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','575-3,','1','1','0','0','465','1395','0','','0','0.00','0','0','0','0'); -- id=1978
UPDATE sellbilldetail SET  lastbuyprice = 465.00 , meanbuyprice = 465.00, lastbuyprice_withDiscount = 427.80, meanbuyprice_withDiscount = 446.40
        , lastbuyprice_withTax = 465, meanbuyprice_withTax = 232.5, lastbuyprice_withDiscountAndTax = 427.8
                where sellbilldetailid = 1978;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1712, '2026-10-14', 1395, 1395, 1395
                    , 1395, 1283.4, 1339.2, 1283.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1395, 697.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1395, sellCostBuyPrice =sellCostBuyPrice+1395
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1395, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1395
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1283.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1339.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1283.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1395
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+697.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1395, 1395, 1395
                    , 1395, 1283.4, 1339.2, 1283.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1395, 697.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1395, sellCostBuyPrice =sellCostBuyPrice+1395
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1395, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1395
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1283.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1339.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1283.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1395
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+697.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '15', userid = '3', storedetaildate = '2026-10-14 21:26:02' WHERE storedetailid = '2724';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1712', '1', '3', '1', '546', 'اضافة فاتورة مبيعات', 'sellbillController.php', '18', '15', '3', '2026-10-14 21:26:02','0','0'); -- id=11344
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 332;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('410','01462', '546', '103', '1462', '6', '430', '2580', '0', '', '0', '2026-10-14 21:26:02', '1462', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','332-6,','1','1','0','0','430','2580','0','','0','0.00','0','0','0','0'); -- id=1979
UPDATE sellbilldetail SET  lastbuyprice = 410.00 , meanbuyprice = 410.00, lastbuyprice_withDiscount = 410.00, meanbuyprice_withDiscount = 410.00
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 410, lastbuyprice_withDiscountAndTax = 410
                where sellbilldetailid = 1979;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1462, '2026-10-14', 2580, 2460, 2460
                    , 2460, 2460, 2460, 2460
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2460, 2460, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2580, sellCostBuyPrice =sellCostBuyPrice+2460
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2460, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2460
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2460, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2460
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2460
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2460
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2460
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2580, 2460, 2460
                    , 2460, 2460, 2460, 2460
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2460, 2460, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2580, sellCostBuyPrice =sellCostBuyPrice+2460
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2460, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2460
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2460, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2460
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2460
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2460
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2460
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '201', userid = '3', storedetaildate = '2026-10-14 21:26:02' WHERE storedetailid = '1487';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1462', '1', '6', '1', '546', 'اضافة فاتورة مبيعات', 'sellbillController.php', '207', '201', '3', '2026-10-14 21:26:02','0','0'); -- id=11345
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 6016;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('450.8','02026', '546', '166', '2026', '6', '490', '2940', '0', '', '0', '2026-10-14 21:26:02', '2026', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','6016-6,','1','1','0','0','490','2940','0','','0','0.00','0','0','0','0'); -- id=1980
UPDATE sellbilldetail SET  lastbuyprice = 490.00 , meanbuyprice = 490.00, lastbuyprice_withDiscount = 450.80, meanbuyprice_withDiscount = 450.80
        , lastbuyprice_withTax = 490, meanbuyprice_withTax = 490, lastbuyprice_withDiscountAndTax = 450.8
                where sellbilldetailid = 1980;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (2026, '2026-10-14', 2940, 2940, 2940
                    , 2940, 2704.8, 2704.8, 2704.8
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2940, 2940, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2940, sellCostBuyPrice =sellCostBuyPrice+2940
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2940, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2940
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2704.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2704.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2704.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2940
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2940
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2940, 2940, 2940
                    , 2940, 2704.8, 2704.8, 2704.8
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2940, 2940, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2940, sellCostBuyPrice =sellCostBuyPrice+2940
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2940, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2940
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2704.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2704.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2704.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2940
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2940
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '30', userid = '3', storedetaildate = '2026-10-14 21:26:02' WHERE storedetailid = '3385';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2026', '1', '6', '1', '546', 'اضافة فاتورة مبيعات', 'sellbillController.php', '36', '30', '3', '2026-10-14 21:26:02','0','0'); -- id=11346
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 6025;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('515.2','02033', '546', '166', '2033', '6', '560', '3360', '0', '', '0', '2026-10-14 21:26:02', '2033', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','6025-6,','1','1','0','0','560','3360','0','','0','0.00','0','0','0','0'); -- id=1981
UPDATE sellbilldetail SET  lastbuyprice = 560.00 , meanbuyprice = 560.00, lastbuyprice_withDiscount = 515.20, meanbuyprice_withDiscount = 515.20
        , lastbuyprice_withTax = 560, meanbuyprice_withTax = 560, lastbuyprice_withDiscountAndTax = 515.2
                where sellbilldetailid = 1981;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (2033, '2026-10-14', 3360, 3360, 3360
                    , 3360, 3091.2, 3091.2, 3091.2
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 3360, 3360, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3360, sellCostBuyPrice =sellCostBuyPrice+3360
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3360, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3360
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3091.2, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3091.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3091.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3360
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3360
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3360, 3360, 3360
                    , 3360, 3091.2, 3091.2, 3091.2
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3360, 3360, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3360, sellCostBuyPrice =sellCostBuyPrice+3360
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3360, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3360
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3091.2, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3091.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3091.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3360
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3360
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '30', userid = '3', storedetaildate = '2026-10-14 21:26:02' WHERE storedetailid = '3392';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2033', '1', '6', '1', '546', 'اضافة فاتورة مبيعات', 'sellbillController.php', '36', '30', '3', '2026-10-14 21:26:02','0','0'); -- id=11347
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 1135;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('540','01947', '546', '157', '1947', '4', '560', '2240', '0', '', '0', '2026-10-14 21:26:02', '1947', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1135-4,','1','1','0','0','560','2240','0','','0','0.00','0','0','0','0'); -- id=1982
UPDATE sellbilldetail SET  lastbuyprice = 540.00 , meanbuyprice = 540.00, lastbuyprice_withDiscount = 540.00, meanbuyprice_withDiscount = 540.00
        , lastbuyprice_withTax = 540, meanbuyprice_withTax = 540, lastbuyprice_withDiscountAndTax = 540
                where sellbilldetailid = 1982;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1947, '2026-10-14', 2240, 2160, 2160
                    , 2160, 2160, 2160, 2160
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 2160, 2160, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2240, sellCostBuyPrice =sellCostBuyPrice+2160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2160
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2160
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2160
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2160
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2240, 2160, 2160
                    , 2160, 2160, 2160, 2160
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2160, 2160, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2240, sellCostBuyPrice =sellCostBuyPrice+2160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2160
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2160
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2160
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2160
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '36', userid = '3', storedetaildate = '2026-10-14 21:26:02' WHERE storedetailid = '2964';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1947', '1', '4', '1', '546', 'اضافة فاتورة مبيعات', 'sellbillController.php', '40', '36', '3', '2026-10-14 21:26:02','0','0'); -- id=11348
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 980;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('289','01886', '546', '147', '1886', '3', '320', '960', '0', '', '0', '2026-10-14 21:26:02', '1886', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','980-3,','1','1','0','0','320','960','0','','0','0.00','0','0','0','0'); -- id=1983
UPDATE sellbilldetail SET  lastbuyprice = 289.00 , meanbuyprice = 289.00, lastbuyprice_withDiscount = 289.00, meanbuyprice_withDiscount = 289.00
        , lastbuyprice_withTax = 289, meanbuyprice_withTax = 289, lastbuyprice_withDiscountAndTax = 289
                where sellbilldetailid = 1983;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1886, '2026-10-14', 960, 867, 867
                    , 867, 867, 867, 867
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 867, 867, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+960, sellCostBuyPrice =sellCostBuyPrice+867
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+867, sellCostMeanBuyPrice = sellCostMeanBuyPrice+867
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+867, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+867
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+867
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+867
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+867
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 960, 867, 867
                    , 867, 867, 867, 867
                    , 0, 0, 0, 0
                    , 0, 0, 0, 867, 867, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+960, sellCostBuyPrice =sellCostBuyPrice+867
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+867, sellCostMeanBuyPrice = sellCostMeanBuyPrice+867
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+867, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+867
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+867
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+867
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+867
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '62', userid = '3', storedetaildate = '2026-10-14 21:26:02' WHERE storedetailid = '2903';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1886', '1', '3', '1', '546', 'اضافة فاتورة مبيعات', 'sellbillController.php', '65', '62', '3', '2026-10-14 21:26:02','0','0'); -- id=11349
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 5983;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('418.5','02016', '546', '115', '2016', '9', '450', '4050', '0', '', '0', '2026-10-14 21:26:02', '2016', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','5983-9,','1','1','0','0','450','4050','0','','0','0.00','0','0','0','0'); -- id=1984
UPDATE sellbilldetail SET  lastbuyprice = 450.00 , meanbuyprice = 450.00, lastbuyprice_withDiscount = 418.50, meanbuyprice_withDiscount = 418.50
        , lastbuyprice_withTax = 450, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 418.5
                where sellbilldetailid = 1984;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (2016, '2026-10-14', 4050, 4050, 4050
                    , 4050, 3766.5, 3766.5, 3766.5
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 4050, 4050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4050, sellCostBuyPrice =sellCostBuyPrice+4050
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4050, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4050
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3766.5, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3766.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3766.5
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4050
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4050
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4050, 4050, 4050
                    , 4050, 3766.5, 3766.5, 3766.5
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4050, 4050, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4050, sellCostBuyPrice =sellCostBuyPrice+4050
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4050, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4050
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3766.5, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3766.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3766.5
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4050
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4050
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '54', userid = '3', storedetaildate = '2026-10-14 21:26:02' WHERE storedetailid = '3375';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2016', '1', '9', '1', '546', 'اضافة فاتورة مبيعات', 'sellbillController.php', '63', '54', '3', '2026-10-14 21:26:02','0','0'); -- id=11350
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 5982;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('372','02015', '546', '115', '2015', '12', '400', '4800', '0', '', '0', '2026-10-14 21:26:02', '2015', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','5982-12,','1','1','0','0','400','4800','0','','0','0.00','0','0','0','0'); -- id=1985
UPDATE sellbilldetail SET  lastbuyprice = 400.00 , meanbuyprice = 400.00, lastbuyprice_withDiscount = 372.00, meanbuyprice_withDiscount = 372.00
        , lastbuyprice_withTax = 400, meanbuyprice_withTax = 400, lastbuyprice_withDiscountAndTax = 372
                where sellbilldetailid = 1985;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (2015, '2026-10-14', 4800, 4800, 4800
                    , 4800, 4464, 4464, 4464
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 4800, 4800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4800, sellCostBuyPrice =sellCostBuyPrice+4800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4464, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4464
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4464
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4800, 4800, 4800
                    , 4800, 4464, 4464, 4464
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4800, 4800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4800, sellCostBuyPrice =sellCostBuyPrice+4800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4464, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4464
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4464
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '96', userid = '3', storedetaildate = '2026-10-14 21:26:02' WHERE storedetailid = '3374';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2015', '1', '12', '1', '546', 'اضافة فاتورة مبيعات', 'sellbillController.php', '108', '96', '3', '2026-10-14 21:26:02','0','0'); -- id=11351
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 1119;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('310','01932', '546', '102', '1932', '9', '330', '2970', '0', '', '0', '2026-10-14 21:26:02', '1932', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1119-9,','1','1','0','0','330','2970','0','','0','0.00','0','0','0','0'); -- id=1986
UPDATE sellbilldetail SET  lastbuyprice = 310.00 , meanbuyprice = 310.00, lastbuyprice_withDiscount = 310.00, meanbuyprice_withDiscount = 310.00
        , lastbuyprice_withTax = 310, meanbuyprice_withTax = 310, lastbuyprice_withDiscountAndTax = 310
                where sellbilldetailid = 1986;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1932, '2026-10-14', 2970, 2790, 2790
                    , 2790, 2790, 2790, 2790
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2790, 2790, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2970, sellCostBuyPrice =sellCostBuyPrice+2790
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2790, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2790
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2790, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2790
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2790
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2790
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2790
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2970, 2790, 2790
                    , 2790, 2790, 2790, 2790
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2790, 2790, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2970, sellCostBuyPrice =sellCostBuyPrice+2790
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2790, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2790
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2790, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2790
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2790
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2790
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2790
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '165', userid = '3', storedetaildate = '2026-10-14 21:26:02' WHERE storedetailid = '2949';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1932', '1', '9', '1', '546', 'اضافة فاتورة مبيعات', 'sellbillController.php', '174', '165', '3', '2026-10-14 21:26:02','0','0'); -- id=11352
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 861;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('515.2','01836', '546', '124', '1836', '3', '560', '1680', '0', '', '0', '2026-10-14 21:26:02', '1836', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','861-3,','1','1','0','0','560','1680','0','','0','0.00','0','0','0','0'); -- id=1987
UPDATE sellbilldetail SET  lastbuyprice = 560.00 , meanbuyprice = 560.00, lastbuyprice_withDiscount = 515.20, meanbuyprice_withDiscount = 515.20
        , lastbuyprice_withTax = 560, meanbuyprice_withTax = 560, lastbuyprice_withDiscountAndTax = 515.2
                where sellbilldetailid = 1987;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1836, '2026-10-14', 1680, 1680, 1680
                    , 1680, 1545.6, 1545.6, 1545.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1680, 1680, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1680, sellCostBuyPrice =sellCostBuyPrice+1680
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1680, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1680
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1545.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1545.6
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1545.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1680
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1680
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1680, 1680, 1680
                    , 1680, 1545.6, 1545.6, 1545.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1680, 1680, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1680, sellCostBuyPrice =sellCostBuyPrice+1680
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1680, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1680
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1545.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1545.6
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1545.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1680
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1680
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '18', userid = '3', storedetaildate = '2026-10-14 21:26:02' WHERE storedetailid = '2851';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1836', '1', '3', '1', '546', 'اضافة فاتورة مبيعات', 'sellbillController.php', '21', '18', '3', '2026-10-14 21:26:02','0','0'); -- id=11353
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('430','09511', '546', '19', '841', '5', '450', '2250', '0', '', '0', '2026-10-14 21:26:02', '841', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','450','2250','0','','0','0.00','0','0','0','0'); -- id=1988
UPDATE sellbilldetail SET  lastbuyprice = 430.00 , meanbuyprice = 430.00, lastbuyprice_withDiscount = 430.00, meanbuyprice_withDiscount = 430.00
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 430
                where sellbilldetailid = 1988;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (841, '2026-10-14', 2250, 2150, 2150
                    , 2150, 2150, 2150, 2150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 2150, 2150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2250, sellCostBuyPrice =sellCostBuyPrice+2150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2250, 2150, 2150
                    , 2150, 2150, 2150, 2150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2150, 2150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2250, sellCostBuyPrice =sellCostBuyPrice+2150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '45', userid = '3', storedetaildate = '2026-10-14 21:26:02' WHERE storedetailid = '841';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('841', '1', '5', '1', '546', 'اضافة فاتورة مبيعات', 'sellbillController.php', '50', '45', '3', '2026-10-14 21:26:02','0','0'); -- id=11354
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+5 where id = 1123;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('522','01935', '546', '8', '1935', '5', '550', '2750', '0', '', '0', '2026-10-14 21:26:02', '1935', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1123-5,','1','1','0','0','550','2750','0','','0','0.00','0','0','0','0'); -- id=1989
UPDATE sellbilldetail SET  lastbuyprice = 522.00 , meanbuyprice = 522.00, lastbuyprice_withDiscount = 522.00, meanbuyprice_withDiscount = 522.00
        , lastbuyprice_withTax = 522, meanbuyprice_withTax = 522, lastbuyprice_withDiscountAndTax = 522
                where sellbilldetailid = 1989;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1935, '2026-10-14', 2750, 2610, 2610
                    , 2610, 2610, 2610, 2610
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 2610, 2610, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2750, sellCostBuyPrice =sellCostBuyPrice+2610
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2610, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2610
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2610, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2610
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2610
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2610
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2610
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2750, 2610, 2610
                    , 2610, 2610, 2610, 2610
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2610, 2610, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2750, sellCostBuyPrice =sellCostBuyPrice+2610
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2610, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2610
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2610, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2610
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2610
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2610
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2610
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '15', userid = '3', storedetaildate = '2026-10-14 21:26:02' WHERE storedetailid = '2952';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1935', '1', '5', '1', '546', 'اضافة فاتورة مبيعات', 'sellbillController.php', '20', '15', '3', '2026-10-14 21:26:02','0','0'); -- id=11355
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('430','08757', '546', '26', '902', '5', '450', '2250', '0', '', '0', '2026-10-14 21:26:02', '902', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','450','2250','0','','0','0.00','0','0','0','0'); -- id=1990
UPDATE sellbilldetail SET  lastbuyprice = 430.00 , meanbuyprice = 430.00, lastbuyprice_withDiscount = 430.00, meanbuyprice_withDiscount = 430.00
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 430
                where sellbilldetailid = 1990;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (902, '2026-10-14', 2250, 2150, 2150
                    , 2150, 2150, 2150, 2150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5, 0, 2150, 2150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2250, sellCostBuyPrice =sellCostBuyPrice+2150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+5
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2250, 2150, 2150
                    , 2150, 2150, 2150, 2150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2150, 2150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2250, sellCostBuyPrice =sellCostBuyPrice+2150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '85', userid = '3', storedetaildate = '2026-10-14 21:26:02' WHERE storedetailid = '902';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('902', '1', '5', '1', '546', 'اضافة فاتورة مبيعات', 'sellbillController.php', '90', '85', '3', '2026-10-14 21:26:02','0','0'); -- id=11356
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3751335',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3715640','35695', '0', '2', 'اضافة فاتورة مبيعات', '546', '3751335', '2026-10-14 21:26:02', '3',  'sellbillController.php','1','','0'); -- id=688
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '35695', '35695', '2026-10-14', '3', '0', '0', '2026-10-14 21:26:02','اضافة فاتورة مبيعات رقم 546','1','0',null,'0','546','sellbillController.php?do=showDetail&sellbillid=546'); -- id=2483
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2483', '419', '35695', '','0'); -- id=2539
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3751335', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2483', '143', '35695', '','0'); -- id=2485
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '6003145', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '33365.5', '33365.5', '2026-10-14', '3', '0', '0', '2026-10-14 21:26:02','اضافة فاتورة مبيعات رقم 546 - صرف البضاعة من المخزن','1','0',null,'0','546','sellbillController.php?do=showDetail&sellbillid=546'); -- id=2484
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2484', '402', '33365.5', '','0'); -- id=2540
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5598221.97', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2484', '382', '33365.5', '','0'); -- id=2486
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '24102580.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2483,0,2484' where sellbillid=546;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 35695, 34882, 34882
                    , 34882, 33365.5, 33421.3, 33365.5
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,34882, 34184.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+35695, sellCostBuyPrice =sellCostBuyPrice+34882
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+34882, sellCostMeanBuyPrice = sellCostMeanBuyPrice+34882
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+33365.5, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+33421.3
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+33365.5
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+34882
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+34184.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 35695, 34882, 34882
                    , 34882, 33365.5, 33421.3, 33365.5
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,34882, 34184.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+35695, sellCostBuyPrice =sellCostBuyPrice+34882
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+34882, sellCostMeanBuyPrice = sellCostMeanBuyPrice+34882
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+33365.5, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+33421.3
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+33365.5
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+34882
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+34184.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 35695, 34882, 34882
                    , 34882, 33365.5, 33421.3, 33365.5, 34882, 34184.5)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+35695, netSellCostBuyPrice = netSellCostBuyPrice+34882
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+34882
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+34882
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+33365.5
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+33421.3
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+33365.5
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+34882
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+34184.5;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acfc436dc623 and sellbillId = 546 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 17:56:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:26:03", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 21:26:03', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9897
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:01:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:31:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:31:22', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9898
BEGIN;
INSERT INTO returnbuybill (returnbuybillSerial, returnbuybilldate, returnbuybillsupplierid, returnbuybilltotaldeptbefor, returnbuybilltotaldeptafter, returnbuybilldiscount, returnbuybilldiscountrype, returnbuybilltotalbill, returnbuybillaftertotalbill, returnbuybilltotalpayed, returnbuybillfinalbill, returnbuybillstoreid, returnbuybillsysdate,comment, userid, conditions, returnbuybillclientname, returnbuybillsaveid, billnameid, returnbuybilldirectpayment,payedtax,costcenterid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,client,returnbuybilladdition,returnbuybilladditiontrype) VALUES ('06acfc78d6c655', '2026-10-14 21:18:53', '65', '603110.00', '533950', '0', '0', '-69160.00', '-69160.00', '0', '-69160', '1', '2026-10-14 21:31:22', '', '1', '0', '', '1', '6','1','0.00','-1','0','1','0','0','0','0','0'); -- id=24
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01367', '24', '19', '1367', '61', '520', '31720', '0', '', '1367','','','0','0','0','0','0','520','31720','0','0','0','0','0','0','0','1'); -- id=114
UPDATE product SET productName = '2398 توب سيكرت', productDescription = '', productCatId = '19', productBuyPrice = '520.00', productSellAllPrice = '540.00', productSellUnitPrice = '540.00', productSellHalfPrice = '540.00', productDate = '2026-10-01', conditions = '0', userId = '1', limitamount = '0', parcode = '01367',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '520',lastbuyprice_withDiscount = '520',meanbuyprice = '520',meanbuyprice_withDiscount = '520' , productbuypricereal = '520.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.85' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='520',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='520',meanbuyprice_withTax='520',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='520',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1367';
UPDATE returnbuybilldetail SET  lastbuyprice = 520 , meanbuyprice = 520, lastbuyprice_withDiscount = 520, meanbuyprice_withDiscount = 520
        , lastbuyprice_withTax = 520, meanbuyprice_withTax = 520, lastbuyprice_withDiscountAndTax = 520
                where returnbuybilldetailid = 114;
UPDATE productunit SET proUnitBuyPrice  = 520 * productnumber WHERE productid = 1367;
UPDATE storedetail SET  productquantity = '1', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1367';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1367', '1', '61', '1', '24', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '62', '1', '1', '2026-10-14 21:18:53','0','0'); -- id=11357
INSERT INTO returnbuybilldetail (Parcode, returnbuybillid, returnbuybilldetailcatid, returnbuybilldetailproductid, returnbuybilldetailquantity, returnbuybilldetailprice, returnbuybilldetailtotalprice, discountvalue, note, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid, returnbuybilldetailpriceC, returnbuybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,lastbuyprice_withDiscountAndTax,storeid) VALUES ('08315', '24', '19', '829', '72', '520', '37440', '0', '', '829','','','0','0','0','0','0','520','37440','0','0','0','0','0','0','0','1'); -- id=115
UPDATE product SET productName = 'موديل 2384 توب سيكرت 540', productDescription = '', productCatId = '19', productBuyPrice = '520.00', productSellAllPrice = '540.00', productSellUnitPrice = '0.00', productSellHalfPrice = '0.00', productDate = '2026-09-27', conditions = '0', userId = '1', limitamount = '0', parcode = '08315',type ='0', expireDate = '0' , dailyentryId = '184',isService = '0',isOptic = '0',lastbuyprice = '520',lastbuyprice_withDiscount = '520',meanbuyprice = '520',meanbuyprice_withDiscount = '520' , productbuypricereal = '520.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='520',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='8315',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='520',meanbuyprice_withTax='520',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='1',sellpercenttype='0',searchfiltersid='1',lastbuyprice_withDiscountAndTax='520',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='1',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '829';
UPDATE returnbuybilldetail SET  lastbuyprice = 520 , meanbuyprice = 520, lastbuyprice_withDiscount = 520, meanbuyprice_withDiscount = 520
        , lastbuyprice_withTax = 520, meanbuyprice_withTax = 520, lastbuyprice_withDiscountAndTax = 520
                where returnbuybilldetailid = 115;
UPDATE productunit SET proUnitBuyPrice  = 520 * productnumber WHERE productid = 829;
UPDATE storedetail SET  productquantity = '66', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '829';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('829', '1', '72', '1', '24', 'اضافة فاتورة مردودات مشتريات', 'returnBuyBillController.php', '138', '66', '1', '2026-10-14 21:18:53','0','0'); -- id=11358
UPDATE supplier SET  suppliercurrentDebt = '533950',suppliercurrentDebtInCurrency= '533950' , userid = '1', supplierdate = '2026-10-14 21:31:22'   WHERE supplierid = '65';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('65', '603110.00', '69160', '1', 'اضافة فاتورة مردوات مشتريات', '24', '533950', '2026-10-14 21:18:53', '1', 'returnBuyBillController.php', 'اضافة فاتورة مردوات مشتريات', '0','', '0','1','1','69160','1','603110','69160','533950','0',''); -- id=519
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '69160', '69160', '2026-10-14', '1', '0', '0', '2026-10-14 21:31:22','اضافة فاتورة مردود مشتريات رقم 24','1','0',null,'0','24','returnBuyBillController.php?do=details&id=24'); -- id=2485
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2485', '484', '69160', '','0'); -- id=2541
UPDATE accountstree SET name = 'توب سيكرت - مورد', customName = 'توب سيكرت - مورد', customNameEn = 'توب سيكرت - مورد', nameEn = 'توب سيكرت - مورد', parent = '81', accountNature = '1', theValue = '-340950', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '484';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2485', '382', '69160', '','0'); -- id=2487
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '24033420.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update returnbuybill set dailyentryid='2485,0' where returnbuybillid=24;
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:01:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:31:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('returnBuyBillController.php', '2026-10-14 21:31:22', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/returnBuyBillController.php?do=editprint&id=24'); -- id=9899
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:02:08";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:32:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:32:08', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9900
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:02:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:32:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:32:32', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9901
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('محمد سعدون','2026-10-14','','90', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=170
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (170, 1,'2026-10-14 21:32:32',1)
                ON DUPLICATE KEY UPDATE catid = 170, edited = 1, sysdate = '2026-10-14 21:32:32', userid = 1; -- id=182
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '170', '1', '2026-10-14', '1', '0'); -- id=75
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:02:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:32:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:32:33', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9902
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:02:34";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:32:34", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:32:34', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9903
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:02:40";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:32:40", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:32:40', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9904
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:03:20";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:33:20", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:33:20', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9905
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكت 450 موديل 500&501&502','','170','450','450','450','450','2026-10-14','0','1','0','','0','0','0','0','0','450','450','450','450','450','0','0','0','0','.','0','0','0','450','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','450','450','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','450','0','0','0','0','0','0','','','0','0','0','0'); -- id=2070
UPDATE product SET productName = 'جاكت 450 موديل 500&501&502', productDescription = '', productCatId = '170', productBuyPrice = '450', productSellAllPrice = '450', productSellUnitPrice = '450', productSellHalfPrice = '450', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02070',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2070';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2070', '1.00', '2026-10-14', '1', '0','0207001','450','450','450','450','','0','0','0','0','0','0','0','0','0','0'); -- id=2070
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2070', '1', '0', '1', '2026-10-14'); -- id=3429
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2070', '1', '0', '0', '2070', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11359
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2070, 1,'2026-10-14 21:33:20',1)
                ON DUPLICATE KEY UPDATE productid = 2070, edited = 1, sysdate = '2026-10-14 21:33:20', userid = 1; -- id=3028
UPDATE product SET productName = 'جاكت 450 موديل 500&501&502', productDescription = '', productCatId = '170', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02070',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='450',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2070';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:03:21";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:33:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:33:21', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9906
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:03:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:33:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:33:23', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9907
INSERT INTO supplier (suppliername, supplieraddress, supplierphone, suppliercurrentDebt, supplierdetails, conditions, userid, supplierdate, dailyentryid, category_id, typesupplier_id,linkedClientId,inUse,suppliercode,goverareaid,namepayeecheck,suppliermobile,warrantyOfficer,warrantymobile,sellername,sellermobile,taxnumber,supplierTypeForTree,treeId,sullpierCurrencyid,suppliercurrentDebtInCurrency,webApiId,shippingDiscountPer) VALUES ('محمد سعدون - مورد', '', '', '', '', '0', '1', '2026-10-14 21:34:05', '0', '', '','0','0','','','','','','','','','','0','0','1','0','0','0'); -- id=178
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('178', '0', '', '0', 'إضافة مورد جديد', '178', '', '2026-10-14 21:34:05', '1', 'supplierController.php', '', '0','', '0','1','1','0','1','0','0','0','0',''); -- id=520
INSERT INTO accountstree (name, customName, customNameEn, nameEn, parent, accountNature, theValue, theOrder, layingOrder, reportid, listId, notes, itemfrom, itemtype, itemtype2, itemtype3, userid, del, sysdate) VALUES ('محمد سعدون - مورد', 'محمد سعدون - مورد', 'محمد سعدون - مورد', 'محمد سعدون - مورد', '81', '1', '0', '0', '', '1', '1', '', '0', '1', '1', '', '1', '0', '2026-10-14 21:34:05'); -- id=661
UPDATE supplier SET suppliername = 'محمد سعدون - مورد', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '0.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-10-14', dailyentryid = '0', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='661',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='0',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '178';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:04:25";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:34:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:34:25', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9908
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfcaf3a826a', '2026-10-14 21:33:23', '178', '0.00', '36450', '10', '1', '40500.00',  '36450.00', '0', '36450', '1', '2026-10-14 21:34:25', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=175
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02070', '175', '170', '2070', '90', '450', '40500.00', '0', '', '2026-10-14 21:34:25', '2070','','','0','0','0','0','0',null,'450','40500','0','0','0','0','0','0','0','0','1'); -- id=1061
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:33:23', 1, 2070, 0, 0
                    , 405, 90, 0, 0, 1, '2026-10-14 21:34:25')
                ON DUPLICATE KEY UPDATE buyprice = 405,
                        buyQuantity =buyQuantity+90, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:34:25' ; -- id=6112
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2070', '450', '90', '0', 'buyBillController.php', '1061', '', '0', '0'); -- id=814
UPDATE product SET  productBuyPrice = "450" WHERE productId = 2070 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1061 ;
UPDATE product SET productName = 'جاكت 450 موديل 500&501&502', productDescription = '', productCatId = '170', productBuyPrice = '450.00', productSellAllPrice = '450.00', productSellUnitPrice = '450.00', productSellHalfPrice = '450.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02070',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '450',lastbuyprice_withDiscount = '405',meanbuyprice = '450',meanbuyprice_withDiscount = '405' , productbuypricereal = '450.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='450',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='450',meanbuyprice_withTax='450',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='405',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2070';
UPDATE buybilldetail SET  lastbuyprice = 450 , meanbuyprice = 450, lastbuyprice_withDiscount = 405, meanbuyprice_withDiscount = 405
        , lastbuyprice_withTax = 450, meanbuyprice_withTax = 450, lastbuyprice_withDiscountAndTax = 405
                where buybilldetailid = 1061;
UPDATE productunit SET proUnitBuyPrice  = 450 * productnumber WHERE productid = 2070;
UPDATE storedetail SET  productquantity = '90', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3429';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2070', '1', '90', '0', '175', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '90', '1', '2026-10-14 21:33:23','0','0'); -- id=11360
UPDATE supplier SET  suppliercurrentDebt = '36450',suppliercurrentDebtInCurrency= '36450' , userid = '1', supplierdate = '2026-10-14 21:34:25'   WHERE supplierid = '178';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('178', '0.00', '36450', '0', 'اضافة فاتورة مشتريات', '175', '36450', '2026-10-14 21:33:23', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','36450','1','0','36450','36450','0',''); -- id=521
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '36450', '36450', '2026-10-14', '1', '0', '0', '2026-10-14 21:34:25','اضافة فاتورة مشتريات رقم 175','1','0',null,'0','175','buyBillController.php?do=details&id=175'); -- id=2486
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2486', '382', '36450', '','0'); -- id=2542
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '24069870.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2486', '661', '36450', '','0'); -- id=2488
UPDATE accountstree SET name = 'محمد سعدون - مورد', customName = 'محمد سعدون - مورد', customNameEn = 'محمد سعدون - مورد', nameEn = 'محمد سعدون - مورد', parent = '81', accountNature = '1', theValue = '36450', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-14 21:34:05' WHERE id = '661';
update buybill set dailyentryid='2486,0' where buybillid=175;
COMMIT;
UPDATE product SET overAllAveragePrice = 405 WHERE productId = 2070;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:04:25";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:34:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:34:25', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=175'); -- id=9909
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:04:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:34:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:34:29', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=175&type=2'); -- id=9910
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:09:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:39:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:39:23', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9911
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:09:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:39:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:39:57', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9912
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('. ترند مان','2026-10-14','','1', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=171
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (171, 1,'2026-10-14 21:39:57',1)
                ON DUPLICATE KEY UPDATE catid = 171, edited = 1, sysdate = '2026-10-14 21:39:57', userid = 1; -- id=183
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '171', '1', '2026-10-14', '1', '0'); -- id=76
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:09:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:39:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:39:57', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9913
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:09:59";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:39:59", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:39:59', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9914
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:10:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:40:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:40:39', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9915
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:11:13";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:41:13", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 21:41:13', '3', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9916
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 18:11:13";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 21:41:14', '3', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9917
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:11:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:41:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:41:35', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9918
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 1932 ترند مان','','171','550','570','570','570','2026-10-14','0','1','0','','0','0','0','0','0','550','550','550','550','550','0','3.64','0','0','.','0','0','0','550','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','550','550','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','550','0','0','0','0','0','0','','','0','0','0','0'); -- id=2071
UPDATE product SET productName = 'كود 1932 ترند مان', productDescription = '', productCatId = '171', productBuyPrice = '550', productSellAllPrice = '570', productSellUnitPrice = '570', productSellHalfPrice = '570', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02071',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '550',meanbuyprice = '550',meanbuyprice_withDiscount = '550' , productbuypricereal = '550' , buypricereal_precentage = '0' , buytotal_precentage = '3.64' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='550',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2071';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2071', '1.00', '2026-10-14', '1', '0','0207101','570','570','570','550','','0','0','0','0','0','0','0','0','0','0'); -- id=2071
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2071', '1', '0', '1', '2026-10-14'); -- id=3430
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2071', '1', '0', '0', '2071', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11361
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2071, 1,'2026-10-14 21:41:35',1)
                ON DUPLICATE KEY UPDATE productid = 2071, edited = 1, sysdate = '2026-10-14 21:41:35', userid = 1; -- id=3029
UPDATE product SET productName = 'كود 1932 ترند مان', productDescription = '', productCatId = '171', productBuyPrice = '550.00', productSellAllPrice = '570.00', productSellUnitPrice = '570.00', productSellHalfPrice = '570.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02071',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '550',meanbuyprice = '550',meanbuyprice_withDiscount = '550' , productbuypricereal = '550' , buypricereal_precentage = '0' , buytotal_precentage = '3.64' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='550',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2071';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('كود 1926 ترند مان','','171','505','525','525','525','2026-10-14','0','1','0','','0','0','0','0','0','505','505','505','505','505','0','3.96','0','0','.','0','0','0','505','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','505','505','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','505','0','0','0','0','0','0','','','0','0','0','0'); -- id=2072
UPDATE product SET productName = 'كود 1926 ترند مان', productDescription = '', productCatId = '171', productBuyPrice = '505', productSellAllPrice = '525', productSellUnitPrice = '525', productSellHalfPrice = '525', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02072',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '505',lastbuyprice_withDiscount = '505',meanbuyprice = '505',meanbuyprice_withDiscount = '505' , productbuypricereal = '505' , buypricereal_precentage = '0' , buytotal_precentage = '3.96' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='505',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='505',meanbuyprice_withTax='505',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='505',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2072';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2072', '1.00', '2026-10-14', '1', '0','0207201','525','525','525','505','','0','0','0','0','0','0','0','0','0','0'); -- id=2072
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2072', '1', '0', '1', '2026-10-14'); -- id=3431
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2072', '1', '0', '0', '2072', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11362
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2072, 1,'2026-10-14 21:41:35',1)
                ON DUPLICATE KEY UPDATE productid = 2072, edited = 1, sysdate = '2026-10-14 21:41:35', userid = 1; -- id=3030
UPDATE product SET productName = 'كود 1926 ترند مان', productDescription = '', productCatId = '171', productBuyPrice = '505.00', productSellAllPrice = '525.00', productSellUnitPrice = '525.00', productSellHalfPrice = '525.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02072',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '505',lastbuyprice_withDiscount = '505',meanbuyprice = '505',meanbuyprice_withDiscount = '505' , productbuypricereal = '505' , buypricereal_precentage = '0' , buytotal_precentage = '3.96' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='505',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='505',meanbuyprice_withTax='505',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='505',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2072';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:11:37";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:41:37", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:41:37', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9919
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:11:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:41:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:41:44', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9920
INSERT INTO supplier (suppliername, supplieraddress, supplierphone, suppliercurrentDebt, supplierdetails, conditions, userid, supplierdate, dailyentryid, category_id, typesupplier_id,linkedClientId,inUse,suppliercode,goverareaid,namepayeecheck,suppliermobile,warrantyOfficer,warrantymobile,sellername,sellermobile,taxnumber,supplierTypeForTree,treeId,sullpierCurrencyid,suppliercurrentDebtInCurrency,webApiId,shippingDiscountPer) VALUES ('ترند مان', '', '', '', '', '0', '1', '2026-10-14 21:42:06', '0', '', '','0','0','','','','','','','','','','0','0','1','0','0','0'); -- id=179
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('179', '0', '', '0', 'إضافة مورد جديد', '179', '', '2026-10-14 21:42:06', '1', 'supplierController.php', '', '0','', '0','1','1','0','1','0','0','0','0',''); -- id=522
INSERT INTO accountstree (name, customName, customNameEn, nameEn, parent, accountNature, theValue, theOrder, layingOrder, reportid, listId, notes, itemfrom, itemtype, itemtype2, itemtype3, userid, del, sysdate) VALUES ('ترند مان', 'ترند مان', 'ترند مان', 'ترند مان', '81', '1', '0', '0', '', '1', '1', '', '0', '1', '1', '', '1', '0', '2026-10-14 21:42:06'); -- id=662
UPDATE supplier SET suppliername = 'ترند مان', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '0.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-10-14', dailyentryid = '0', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='662',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='0',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '179';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:12:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:42:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:42:32', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=174&type=2'); -- id=9921
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:12:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:42:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:42:39', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9922
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:12:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:42:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:42:44', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9923
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfcce836dc8', '2026-10-14 21:41:44', '179', '0.00', '31650', '0', '0', '31650.00',  '31650.00', '0', '31650', '1', '2026-10-14 21:42:44', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=176
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02071', '176', '171', '2071', '30', '550', '16500.00', '0', '', '2026-10-14 21:42:44', '2071','','','0','0','0','0','0',null,'550','16500','0','0','0','0','0','0','0','0','1'); -- id=1062
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:41:44', 1, 2071, 0, 0
                    , 550, 30, 0, 0, 1, '2026-10-14 21:42:44')
                ON DUPLICATE KEY UPDATE buyprice = 550,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:42:44' ; -- id=6113
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2071', '550', '30', '0', 'buyBillController.php', '1062', '', '0', '0'); -- id=815
UPDATE product SET  productBuyPrice = "550" WHERE productId = 2071 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1062 ;
UPDATE product SET productName = 'كود 1932 ترند مان', productDescription = '', productCatId = '171', productBuyPrice = '550.00', productSellAllPrice = '570.00', productSellUnitPrice = '570.00', productSellHalfPrice = '570.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02071',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '550',lastbuyprice_withDiscount = '550',meanbuyprice = '550',meanbuyprice_withDiscount = '550' , productbuypricereal = '550.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.64' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='550',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='550',meanbuyprice_withTax='550',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='550',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2071';
UPDATE buybilldetail SET  lastbuyprice = 550 , meanbuyprice = 550, lastbuyprice_withDiscount = 550, meanbuyprice_withDiscount = 550
        , lastbuyprice_withTax = 550, meanbuyprice_withTax = 550, lastbuyprice_withDiscountAndTax = 550
                where buybilldetailid = 1062;
UPDATE productunit SET proUnitBuyPrice  = 550 * productnumber WHERE productid = 2071;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3430';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2071', '1', '30', '0', '176', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 21:41:44','0','0'); -- id=11363
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02072', '176', '171', '2072', '30', '505', '15150.00', '0', '', '2026-10-14 21:42:44', '2072','','','0','0','0','0','0',null,'505','15150','0','0','0','0','0','0','0','0','1'); -- id=1063
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:41:44', 1, 2072, 0, 0
                    , 505, 30, 0, 0, 1, '2026-10-14 21:42:44')
                ON DUPLICATE KEY UPDATE buyprice = 505,
                        buyQuantity =buyQuantity+30, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:42:44' ; -- id=6114
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2072', '505', '30', '0', 'buyBillController.php', '1063', '', '0', '0'); -- id=816
UPDATE product SET  productBuyPrice = "505" WHERE productId = 2072 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1063 ;
UPDATE product SET productName = 'كود 1926 ترند مان', productDescription = '', productCatId = '171', productBuyPrice = '505.00', productSellAllPrice = '525.00', productSellUnitPrice = '525.00', productSellHalfPrice = '525.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02072',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '505',lastbuyprice_withDiscount = '505',meanbuyprice = '505',meanbuyprice_withDiscount = '505' , productbuypricereal = '505.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '3.96' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='505',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='505',meanbuyprice_withTax='505',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='505',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2072';
UPDATE buybilldetail SET  lastbuyprice = 505 , meanbuyprice = 505, lastbuyprice_withDiscount = 505, meanbuyprice_withDiscount = 505
        , lastbuyprice_withTax = 505, meanbuyprice_withTax = 505, lastbuyprice_withDiscountAndTax = 505
                where buybilldetailid = 1063;
UPDATE productunit SET proUnitBuyPrice  = 505 * productnumber WHERE productid = 2072;
UPDATE storedetail SET  productquantity = '30', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3431';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2072', '1', '30', '0', '176', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '30', '1', '2026-10-14 21:41:44','0','0'); -- id=11364
UPDATE supplier SET  suppliercurrentDebt = '31650',suppliercurrentDebtInCurrency= '31650' , userid = '1', supplierdate = '2026-10-14 21:42:44'   WHERE supplierid = '179';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('179', '0.00', '31650', '0', 'اضافة فاتورة مشتريات', '176', '31650', '2026-10-14 21:41:44', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','31650','1','0','31650','31650','0',''); -- id=523
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '31650', '31650', '2026-10-14', '1', '0', '0', '2026-10-14 21:42:44','اضافة فاتورة مشتريات رقم 176','1','0',null,'0','176','buyBillController.php?do=details&id=176'); -- id=2487
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2487', '382', '31650', '','0'); -- id=2543
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '24101520.83', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2487', '662', '31650', '','0'); -- id=2489
UPDATE accountstree SET name = 'ترند مان', customName = 'ترند مان', customNameEn = 'ترند مان', nameEn = 'ترند مان', parent = '81', accountNature = '1', theValue = '31650', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-14 21:42:06' WHERE id = '662';
update buybill set dailyentryid='2487,0' where buybillid=176;
COMMIT;
UPDATE product SET overAllAveragePrice = 550 WHERE productId = 2071;UPDATE product SET overAllAveragePrice = 505 WHERE productId = 2072;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:12:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:42:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:42:44', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=176'); -- id=9924
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:12:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:42:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:42:50', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=176&type=2'); -- id=9925
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:13:17";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:43:17", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 21:43:17', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9926

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acfa7d65a356
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 21:43:17', '06acfa7d65a356', '1', '0.00', '0', '0', '1', '178390.00', '178390', '178390', '0', '1', '2026-10-14 21:43:17', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '506' ,'0','','','','','-1','0','0','0','0','0','178390','0','','0','0','178390','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=547
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','547', '0', '2026-10-14 21:43:17', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '178390', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 21:43:17','0','0','',''); -- id=695
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 573;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('358.8','01710', '547', '128', '1710', '3', '390', '1170', '0', '', '0', '2026-10-14 21:43:17', '1710', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','573-3,','1','1','0','0','390','1170','0','','0','0.00','0','0','0','0'); -- id=1991
UPDATE sellbilldetail SET  lastbuyprice = 390.00 , meanbuyprice = 390.00, lastbuyprice_withDiscount = 358.80, meanbuyprice_withDiscount = 374.40
        , lastbuyprice_withTax = 390, meanbuyprice_withTax = 195, lastbuyprice_withDiscountAndTax = 358.8
                where sellbilldetailid = 1991;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1710, '2026-10-14', 1170, 1170, 1170
                    , 1170, 1076.4, 1123.2, 1076.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1170, 585, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1170
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1170, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1170
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1076.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1123.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1076.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1170
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+585
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1170, 1170, 1170
                    , 1170, 1076.4, 1123.2, 1076.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1170, 585, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1170, sellCostBuyPrice =sellCostBuyPrice+1170
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1170, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1170
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1076.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1123.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1076.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1170
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+585
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '9', userid = '3', storedetaildate = '2026-10-14 21:43:17' WHERE storedetailid = '2722';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1710', '1', '3', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '12', '9', '3', '2026-10-14 21:43:17','0','0'); -- id=11365
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+11 where id = 566;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('524.4','01703', '547', '128', '1703', '11', '570', '6270', '0', '', '0', '2026-10-14 21:43:17', '1703', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','566-11,','1','1','0','0','570','6270','0','','0','0.00','0','0','0','0'); -- id=1992
UPDATE sellbilldetail SET  lastbuyprice = 570.00 , meanbuyprice = 570.00, lastbuyprice_withDiscount = 524.40, meanbuyprice_withDiscount = 547.20
        , lastbuyprice_withTax = 570, meanbuyprice_withTax = 285, lastbuyprice_withDiscountAndTax = 524.4
                where sellbilldetailid = 1992;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1703, '2026-10-14', 6270, 6270, 6270
                    , 6270, 5768.4, 6019.2, 5768.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 11, 0, 6270, 3135, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6270, sellCostBuyPrice =sellCostBuyPrice+6270
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6270, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6270
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5768.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6019.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5768.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6270
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3135
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+11
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 6270, 6270, 6270
                    , 6270, 5768.4, 6019.2, 5768.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6270, 3135, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+6270, sellCostBuyPrice =sellCostBuyPrice+6270
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+6270, sellCostMeanBuyPrice = sellCostMeanBuyPrice+6270
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5768.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6019.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5768.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+6270
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3135
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '1', userid = '3', storedetaildate = '2026-10-14 21:43:17' WHERE storedetailid = '2715';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1703', '1', '11', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '12', '1', '3', '2026-10-14 21:43:17','0','0'); -- id=11366
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+7 where id = 329;
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+5 where id = 952;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('310','01459', '547', '103', '1459', '12', '330', '3960', '0', '', '0', '2026-10-14 21:43:17', '1459', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','329-7,952-5,','1','1','0','0','330','3960','0','','0','0.00','0','0','0','0'); -- id=1993
UPDATE sellbilldetail SET  lastbuyprice = 310.00 , meanbuyprice = 310.00, lastbuyprice_withDiscount = 310.00, meanbuyprice_withDiscount = 310.00
        , lastbuyprice_withTax = 310, meanbuyprice_withTax = 310, lastbuyprice_withDiscountAndTax = 310
                where sellbilldetailid = 1993;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1459, '2026-10-14', 3960, 3720, 3720
                    , 3720, 3720, 3720, 3720
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 3720, 3720, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3960, sellCostBuyPrice =sellCostBuyPrice+3720
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3720, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3720
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3720, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3720
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3720
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3720
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3720
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3960, 3720, 3720
                    , 3720, 3720, 3720, 3720
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3720, 3720, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3960, sellCostBuyPrice =sellCostBuyPrice+3720
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3720, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3720
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3720, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3720
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3720
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3720
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3720
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '67', userid = '3', storedetaildate = '2026-10-14 21:43:17' WHERE storedetailid = '1484';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1459', '1', '12', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '79', '67', '3', '2026-10-14 21:43:17','0','0'); -- id=11367
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 332;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('410','01462', '547', '103', '1462', '9', '430', '3870', '0', '', '0', '2026-10-14 21:43:17', '1462', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','332-9,','1','1','0','0','430','3870','0','','0','0.00','0','0','0','0'); -- id=1994
UPDATE sellbilldetail SET  lastbuyprice = 410.00 , meanbuyprice = 410.00, lastbuyprice_withDiscount = 410.00, meanbuyprice_withDiscount = 410.00
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 410, lastbuyprice_withDiscountAndTax = 410
                where sellbilldetailid = 1994;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1462, '2026-10-14', 3870, 3690, 3690
                    , 3690, 3690, 3690, 3690
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3690, 3690, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3870, sellCostBuyPrice =sellCostBuyPrice+3690
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3690, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3690
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3690, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3690
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3690
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3690
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3690
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3870, 3690, 3690
                    , 3690, 3690, 3690, 3690
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3690, 3690, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3870, sellCostBuyPrice =sellCostBuyPrice+3690
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3690, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3690
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3690, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3690
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3690
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3690
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3690
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '192', userid = '3', storedetaildate = '2026-10-14 21:43:17' WHERE storedetailid = '1487';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1462', '1', '9', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '201', '192', '3', '2026-10-14 21:43:17','0','0'); -- id=11368
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+14 where id = 643;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('496.8','01730', '547', '132', '1730', '14', '540', '7560', '0', '', '0', '2026-10-14 21:43:17', '1730', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','643-14,','1','1','0','0','540','7560','0','','0','0.00','0','0','0','0'); -- id=1995
UPDATE sellbilldetail SET  lastbuyprice = 540.00 , meanbuyprice = 540.00, lastbuyprice_withDiscount = 496.80, meanbuyprice_withDiscount = 496.80
        , lastbuyprice_withTax = 540, meanbuyprice_withTax = 540, lastbuyprice_withDiscountAndTax = 496.8
                where sellbilldetailid = 1995;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1730, '2026-10-14', 7560, 7560, 7560
                    , 7560, 6955.2, 6955.2, 6955.2
                    , 0, 0, 0, 0
                    , 0, 0, 0, 14, 0, 7560, 7560, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+7560, sellCostBuyPrice =sellCostBuyPrice+7560
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7560, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7560
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6955.2, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6955.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6955.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7560
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7560
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+14
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 7560, 7560, 7560
                    , 7560, 6955.2, 6955.2, 6955.2
                    , 0, 0, 0, 0
                    , 0, 0, 0, 7560, 7560, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+7560, sellCostBuyPrice =sellCostBuyPrice+7560
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7560, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7560
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+6955.2, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+6955.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+6955.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7560
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7560
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '1', userid = '3', storedetaildate = '2026-10-14 21:43:17' WHERE storedetailid = '2743';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1730', '1', '14', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '15', '1', '3', '2026-10-14 21:43:17','0','0'); -- id=11369
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 529;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('432.4','01627', '547', '120', '1627', '9', '470', '4230', '0', '', '0', '2026-10-14 21:43:17', '1627', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','529-9,','1','1','0','0','470','4230','0','','0','0.00','0','0','0','0'); -- id=1996
UPDATE sellbilldetail SET  lastbuyprice = 470.00 , meanbuyprice = 470.00, lastbuyprice_withDiscount = 432.40, meanbuyprice_withDiscount = 432.40
        , lastbuyprice_withTax = 470, meanbuyprice_withTax = 470, lastbuyprice_withDiscountAndTax = 432.4
                where sellbilldetailid = 1996;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1627, '2026-10-14', 4230, 4230, 4230
                    , 4230, 3891.6, 3891.6, 3891.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 4230, 4230, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4230, sellCostBuyPrice =sellCostBuyPrice+4230
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4230, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4230
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3891.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3891.6
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3891.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4230
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4230
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4230, 4230, 4230
                    , 4230, 3891.6, 3891.6, 3891.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4230, 4230, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4230, sellCostBuyPrice =sellCostBuyPrice+4230
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4230, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4230
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3891.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3891.6
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3891.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4230
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4230
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '6', userid = '3', storedetaildate = '2026-10-14 21:43:17' WHERE storedetailid = '1652';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1627', '1', '9', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '15', '6', '3', '2026-10-14 21:43:17','0','0'); -- id=11370
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 535;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('386.4','01633', '547', '120', '1633', '9', '420', '3780', '0', '', '0', '2026-10-14 21:43:17', '1633', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','535-9,','1','1','0','0','420','3780','0','','0','0.00','0','0','0','0'); -- id=1997
UPDATE sellbilldetail SET  lastbuyprice = 420.00 , meanbuyprice = 420.00, lastbuyprice_withDiscount = 386.40, meanbuyprice_withDiscount = 386.40
        , lastbuyprice_withTax = 420, meanbuyprice_withTax = 420, lastbuyprice_withDiscountAndTax = 386.4
                where sellbilldetailid = 1997;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1633, '2026-10-14', 3780, 3780, 3780
                    , 3780, 3477.6, 3477.6, 3477.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3780, 3780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3780, sellCostBuyPrice =sellCostBuyPrice+3780
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3780, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3780
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3477.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3477.6
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3477.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3780
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3780, 3780, 3780
                    , 3780, 3477.6, 3477.6, 3477.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3780, 3780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3780, sellCostBuyPrice =sellCostBuyPrice+3780
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3780, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3780
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3477.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3477.6
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3477.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3780
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 21:43:17' WHERE storedetailid = '1658';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1633', '1', '9', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '9', '0', '3', '2026-10-14 21:43:17','0','0'); -- id=11371
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 559;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('386.4','01695', '547', '127', '1695', '9', '420', '3780', '0', '', '0', '2026-10-14 21:43:17', '1695', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','559-9,','1','1','0','0','420','3780','0','','0','0.00','0','0','0','0'); -- id=1998
UPDATE sellbilldetail SET  lastbuyprice = 420.00 , meanbuyprice = 420.00, lastbuyprice_withDiscount = 386.40, meanbuyprice_withDiscount = 386.40
        , lastbuyprice_withTax = 420, meanbuyprice_withTax = 420, lastbuyprice_withDiscountAndTax = 386.4
                where sellbilldetailid = 1998;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1695, '2026-10-14', 3780, 3780, 3780
                    , 3780, 3477.6, 3477.6, 3477.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3780, 3780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3780, sellCostBuyPrice =sellCostBuyPrice+3780
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3780, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3780
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3477.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3477.6
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3477.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3780
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3780, 3780, 3780
                    , 3780, 3477.6, 3477.6, 3477.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3780, 3780, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3780, sellCostBuyPrice =sellCostBuyPrice+3780
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3780, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3780
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3477.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3477.6
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3477.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3780
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3780
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '84', userid = '3', storedetaildate = '2026-10-14 21:43:17' WHERE storedetailid = '2707';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1695', '1', '9', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '93', '84', '3', '2026-10-14 21:43:17','0','0'); -- id=11372
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 977;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('364','01883', '547', '147', '1883', '9', '395', '3555', '0', '', '0', '2026-10-14 21:43:17', '1883', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','977-9,','1','1','0','0','395','3555','0','','0','0.00','0','0','0','0'); -- id=1999
UPDATE sellbilldetail SET  lastbuyprice = 364.00 , meanbuyprice = 364.00, lastbuyprice_withDiscount = 364.00, meanbuyprice_withDiscount = 364.00
        , lastbuyprice_withTax = 364, meanbuyprice_withTax = 364, lastbuyprice_withDiscountAndTax = 364
                where sellbilldetailid = 1999;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1883, '2026-10-14', 3555, 3276, 3276
                    , 3276, 3276, 3276, 3276
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3276, 3276, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3555, sellCostBuyPrice =sellCostBuyPrice+3276
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3276, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3276
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3276, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3276
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3276
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3276
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3276
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3555, 3276, 3276
                    , 3276, 3276, 3276, 3276
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3276, 3276, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3555, sellCostBuyPrice =sellCostBuyPrice+3276
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3276, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3276
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3276, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3276
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3276
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3276
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3276
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '153', userid = '3', storedetaildate = '2026-10-14 21:43:17' WHERE storedetailid = '2900';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1883', '1', '9', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '162', '153', '3', '2026-10-14 21:43:17','0','0'); -- id=11373
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 989;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('358.8','01895', '547', '148', '1895', '12', '390', '4680', '0', '', '0', '2026-10-14 21:43:17', '1895', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','989-12,','1','1','0','0','390','4680','0','','0','0.00','0','0','0','0'); -- id=2000
UPDATE sellbilldetail SET  lastbuyprice = 390.00 , meanbuyprice = 390.00, lastbuyprice_withDiscount = 358.80, meanbuyprice_withDiscount = 360.64
        , lastbuyprice_withTax = 390, meanbuyprice_withTax = 390, lastbuyprice_withDiscountAndTax = 358.8
                where sellbilldetailid = 2000;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1895, '2026-10-14', 4680, 4680, 4680
                    , 4680, 4305.6, 4327.68, 4305.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 4680, 4680, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4680, sellCostBuyPrice =sellCostBuyPrice+4680
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4680, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4680
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4305.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4327.68
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4305.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4680
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4680
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4680, 4680, 4680
                    , 4680, 4305.6, 4327.68, 4305.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4680, 4680, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4680, sellCostBuyPrice =sellCostBuyPrice+4680
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4680, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4680
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4305.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4327.68
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4305.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4680
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4680
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '69', userid = '3', storedetaildate = '2026-10-14 21:43:17' WHERE storedetailid = '2912';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1895', '1', '12', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '81', '69', '3', '2026-10-14 21:43:17','0','0'); -- id=11374
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 1062;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('525','01911', '547', '143', '1911', '6', '585', '3510', '0', '', '0', '2026-10-14 21:43:17', '1911', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1062-6,','1','1','0','0','585','3510','0','','0','0.00','0','0','0','0'); -- id=2001
UPDATE sellbilldetail SET  lastbuyprice = 525.00 , meanbuyprice = 525.00, lastbuyprice_withDiscount = 525.00, meanbuyprice_withDiscount = 525.00
        , lastbuyprice_withTax = 525, meanbuyprice_withTax = 262.5, lastbuyprice_withDiscountAndTax = 525
                where sellbilldetailid = 2001;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1911, '2026-10-14', 3510, 3150, 3150
                    , 3150, 3150, 3150, 3150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 3150, 1575, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3510, sellCostBuyPrice =sellCostBuyPrice+3150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1575
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3510, 3150, 3150
                    , 3150, 3150, 3150, 3150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3150, 1575, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3510, sellCostBuyPrice =sellCostBuyPrice+3150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1575
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '24', userid = '3', storedetaildate = '2026-10-14 21:43:17' WHERE storedetailid = '2928';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1911', '1', '6', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '30', '24', '3', '2026-10-14 21:43:17','0','0'); -- id=11375
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+15 where id = 215;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('310','01434', '547', '100', '1434', '15', '340', '5100', '0', '', '0', '2026-10-14 21:43:18', '1434', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','215-15,','1','1','0','0','340','5100','0','','0','0.00','0','0','0','0'); -- id=2002
UPDATE sellbilldetail SET  lastbuyprice = 310.00 , meanbuyprice = 307.50, lastbuyprice_withDiscount = 310.00, meanbuyprice_withDiscount = 307.50
        , lastbuyprice_withTax = 307.5, meanbuyprice_withTax = 307.5, lastbuyprice_withDiscountAndTax = 310
                where sellbilldetailid = 2002;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1434, '2026-10-14', 5100, 4575, 4650
                    , 4612.5, 4650, 4612.5, 4650
                    , 0, 0, 0, 0
                    , 0, 0, 0, 15, 0, 4612.5, 4612.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5100, sellCostBuyPrice =sellCostBuyPrice+4575
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4612.5
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4650, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4612.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4650
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4612.5
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4612.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+15
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5100, 4575, 4650
                    , 4612.5, 4650, 4612.5, 4650
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4612.5, 4612.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5100, sellCostBuyPrice =sellCostBuyPrice+4575
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4650, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4612.5
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4650, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4612.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4650
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4612.5
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4612.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '12', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '1447';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1434', '1', '15', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '27', '12', '3', '2026-10-14 21:43:18','0','0'); -- id=11376
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 514;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('441.6','01665', '547', '124', '1665', '9', '480', '4320', '0', '', '0', '2026-10-14 21:43:18', '1665', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','514-9,','1','1','0','0','480','4320','0','','0','0.00','0','0','0','0'); -- id=2003
UPDATE sellbilldetail SET  lastbuyprice = 480.00 , meanbuyprice = 480.00, lastbuyprice_withDiscount = 441.60, meanbuyprice_withDiscount = 441.60
        , lastbuyprice_withTax = 480, meanbuyprice_withTax = 480, lastbuyprice_withDiscountAndTax = 441.6
                where sellbilldetailid = 2003;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1665, '2026-10-14', 4320, 4320, 4320
                    , 4320, 3974.4, 3974.4, 3974.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 4320, 4320, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4320, sellCostBuyPrice =sellCostBuyPrice+4320
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4320, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4320
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3974.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3974.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3974.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4320
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4320
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4320, 4320, 4320
                    , 4320, 3974.4, 3974.4, 3974.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4320, 4320, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4320, sellCostBuyPrice =sellCostBuyPrice+4320
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4320, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4320
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3974.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3974.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3974.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4320
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4320
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '6', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2677';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1665', '1', '9', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '15', '6', '3', '2026-10-14 21:43:18','0','0'); -- id=11377
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+4 where id = 1136;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('500','01948', '547', '157', '1948', '4', '520', '2080', '0', '', '0', '2026-10-14 21:43:18', '1948', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1136-4,','1','1','0','0','520','2080','0','','0','0.00','0','0','0','0'); -- id=2004
UPDATE sellbilldetail SET  lastbuyprice = 500.00 , meanbuyprice = 500.00, lastbuyprice_withDiscount = 500.00, meanbuyprice_withDiscount = 500.00
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 500
                where sellbilldetailid = 2004;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1948, '2026-10-14', 2080, 2000, 2000
                    , 2000, 2000, 2000, 2000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4, 0, 2000, 2000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2080, sellCostBuyPrice =sellCostBuyPrice+2000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+4
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2080, 2000, 2000
                    , 2000, 2000, 2000, 2000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2000, 2000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2080, sellCostBuyPrice =sellCostBuyPrice+2000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '188', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2965';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1948', '1', '4', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '192', '188', '3', '2026-10-14 21:43:18','0','0'); -- id=11378
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+8 where id = 252;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('550','01489', '547', '107', '1489', '8', '590', '4720', '0', '', '0', '2026-10-14 21:43:18', '1489', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','252-8,','1','1','0','0','590','4720','0','','0','0.00','0','0','0','0'); -- id=2005
UPDATE sellbilldetail SET  lastbuyprice = 550.00 , meanbuyprice = 550.00, lastbuyprice_withDiscount = 550.00, meanbuyprice_withDiscount = 550.00
        , lastbuyprice_withTax = 550, meanbuyprice_withTax = 550, lastbuyprice_withDiscountAndTax = 550
                where sellbilldetailid = 2005;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1489, '2026-10-14', 4720, 4400, 4400
                    , 4400, 4400, 4400, 4400
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8, 0, 4400, 4400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4720, sellCostBuyPrice =sellCostBuyPrice+4400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4400, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4400
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4400
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+8
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4720, 4400, 4400
                    , 4400, 4400, 4400, 4400
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4400, 4400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4720, sellCostBuyPrice =sellCostBuyPrice+4400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4400, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4400
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4400
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '1514';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1489', '1', '8', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '8', '0', '3', '2026-10-14 21:43:18','0','0'); -- id=11379
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+8 where id = 155;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('339.99','01405', '547', '99', '1405', '8', '340', '2720', '0', '', '0', '2026-10-14 21:43:18', '1405', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','155-8,','1','1','0','0','340','2720','0','','0','0.00','0','0','0','0'); -- id=2006
UPDATE sellbilldetail SET  lastbuyprice = 340.00 , meanbuyprice = 340.00, lastbuyprice_withDiscount = 339.99, meanbuyprice_withDiscount = 339.99
        , lastbuyprice_withTax = 340, meanbuyprice_withTax = 340, lastbuyprice_withDiscountAndTax = 339.99
                where sellbilldetailid = 2006;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1405, '2026-10-14', 2720, 2720, 2720
                    , 2720, 2719.92, 2719.92, 2719.92
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8, 0, 2720, 2720, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2720, sellCostBuyPrice =sellCostBuyPrice+2720
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2720, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2720
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2719.92, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2719.92
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2719.92
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2720
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2720
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+8
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2720, 2720, 2720
                    , 2720, 2719.92, 2719.92, 2719.92
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2720, 2720, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2720, sellCostBuyPrice =sellCostBuyPrice+2720
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2720, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2720
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2719.92, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2719.92
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2719.92
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2720
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2720
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '212', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '1418';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1405', '1', '8', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '220', '212', '3', '2026-10-14 21:43:18','0','0'); -- id=11380
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 211;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('420','01430', '547', '100', '1430', '3', '450', '1350', '0', '', '0', '2026-10-14 21:43:18', '1430', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','211-3,','1','1','0','0','450','1350','0','','0','0.00','0','0','0','0'); -- id=2007
UPDATE sellbilldetail SET  lastbuyprice = 420.00 , meanbuyprice = 417.50, lastbuyprice_withDiscount = 420.00, meanbuyprice_withDiscount = 417.50
        , lastbuyprice_withTax = 417.5, meanbuyprice_withTax = 417.5, lastbuyprice_withDiscountAndTax = 420
                where sellbilldetailid = 2007;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1430, '2026-10-14', 1350, 1245, 1260
                    , 1252.5, 1260, 1252.5, 1260
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1252.5, 1252.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1350, sellCostBuyPrice =sellCostBuyPrice+1245
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1260, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1252.5
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1260, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1252.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1260
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1252.5
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1252.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1350, 1245, 1260
                    , 1252.5, 1260, 1252.5, 1260
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1252.5, 1252.5, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1350, sellCostBuyPrice =sellCostBuyPrice+1245
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1260, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1252.5
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1260, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1252.5
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1260
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1252.5
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1252.5
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '18', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '1443';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1430', '1', '3', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '21', '18', '3', '2026-10-14 21:43:18','0','0'); -- id=11381
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 206;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('265','01425', '547', '100', '1425', '6', '295', '1770', '0', '', '0', '2026-10-14 21:43:18', '1425', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','206-6,','1','1','0','0','295','1770','0','','0','0.00','0','0','0','0'); -- id=2008
UPDATE sellbilldetail SET  lastbuyprice = 265.00 , meanbuyprice = 262.50, lastbuyprice_withDiscount = 265.00, meanbuyprice_withDiscount = 262.50
        , lastbuyprice_withTax = 262.5, meanbuyprice_withTax = 262.5, lastbuyprice_withDiscountAndTax = 265
                where sellbilldetailid = 2008;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1425, '2026-10-14', 1770, 1560, 1590
                    , 1575, 1590, 1575, 1590
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1575, 1575, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1770, sellCostBuyPrice =sellCostBuyPrice+1560
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1590, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1575
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1590, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1575
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1590
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1575
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1575
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1770, 1560, 1590
                    , 1575, 1590, 1575, 1590
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1575, 1575, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1770, sellCostBuyPrice =sellCostBuyPrice+1560
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1590, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1575
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1590, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1575
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1590
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1575
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1575
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '1438';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1425', '1', '6', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '6', '0', '3', '2026-10-14 21:43:18','0','0'); -- id=11382
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 197;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('144','01448', '547', '101', '1448', '9', '160', '1440', '0', '', '0', '2026-10-14 21:43:18', '1448', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','197-9,','1','1','0','0','160','1440','0','','0','0.00','0','0','0','0'); -- id=2009
UPDATE sellbilldetail SET  lastbuyprice = 160.00 , meanbuyprice = 160.00, lastbuyprice_withDiscount = 144.00, meanbuyprice_withDiscount = 144.00
        , lastbuyprice_withTax = 160, meanbuyprice_withTax = 160, lastbuyprice_withDiscountAndTax = 144
                where sellbilldetailid = 2009;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1448, '2026-10-14', 1440, 1440, 1440
                    , 1440, 1296, 1296, 1296
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 1440, 1440, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1440, sellCostBuyPrice =sellCostBuyPrice+1440
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1440, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1440
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1296, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1296
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1296
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1440
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1440
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1440, 1440, 1440
                    , 1440, 1296, 1296, 1296
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1440, 1440, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1440, sellCostBuyPrice =sellCostBuyPrice+1440
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1440, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1440
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1296, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1296
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1296
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1440
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1440
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '3', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '1465';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1448', '1', '9', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '12', '3', '3', '2026-10-14 21:43:18','0','0'); -- id=11383
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 1119;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('310','01932', '547', '102', '1932', '12', '330', '3960', '0', '', '0', '2026-10-14 21:43:18', '1932', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1119-12,','1','1','0','0','330','3960','0','','0','0.00','0','0','0','0'); -- id=2010
UPDATE sellbilldetail SET  lastbuyprice = 310.00 , meanbuyprice = 310.00, lastbuyprice_withDiscount = 310.00, meanbuyprice_withDiscount = 310.00
        , lastbuyprice_withTax = 310, meanbuyprice_withTax = 310, lastbuyprice_withDiscountAndTax = 310
                where sellbilldetailid = 2010;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1932, '2026-10-14', 3960, 3720, 3720
                    , 3720, 3720, 3720, 3720
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 3720, 3720, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3960, sellCostBuyPrice =sellCostBuyPrice+3720
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3720, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3720
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3720, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3720
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3720
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3720
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3720
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3960, 3720, 3720
                    , 3720, 3720, 3720, 3720
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3720, 3720, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3960, sellCostBuyPrice =sellCostBuyPrice+3720
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3720, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3720
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3720, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3720
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3720
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3720
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3720
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '153', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2949';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1932', '1', '12', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '165', '153', '3', '2026-10-14 21:43:18','0','0'); -- id=11384
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 6028;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('322','02035', '547', '166', '2035', '9', '350', '3150', '0', '', '0', '2026-10-14 21:43:18', '2035', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','6028-9,','1','1','0','0','350','3150','0','','0','0.00','0','0','0','0'); -- id=2011
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 322.00, meanbuyprice_withDiscount = 322.00
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 322
                where sellbilldetailid = 2011;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (2035, '2026-10-14', 3150, 3150, 3150
                    , 3150, 2898, 2898, 2898
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3150, 3150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3150, sellCostBuyPrice =sellCostBuyPrice+3150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2898, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2898
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2898
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3150, 3150, 3150
                    , 3150, 2898, 2898, 2898
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3150, 3150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3150, sellCostBuyPrice =sellCostBuyPrice+3150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2898, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2898
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2898
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '27', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '3394';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2035', '1', '9', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '36', '27', '3', '2026-10-14 21:43:18','0','0'); -- id=11385
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 6025;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('515.2','02033', '547', '166', '2033', '9', '560', '5040', '0', '', '0', '2026-10-14 21:43:18', '2033', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','6025-9,','1','1','0','0','560','5040','0','','0','0.00','0','0','0','0'); -- id=2012
UPDATE sellbilldetail SET  lastbuyprice = 560.00 , meanbuyprice = 560.00, lastbuyprice_withDiscount = 515.20, meanbuyprice_withDiscount = 515.20
        , lastbuyprice_withTax = 560, meanbuyprice_withTax = 560, lastbuyprice_withDiscountAndTax = 515.2
                where sellbilldetailid = 2012;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (2033, '2026-10-14', 5040, 5040, 5040
                    , 5040, 4636.8, 4636.8, 4636.8
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 5040, 5040, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5040, sellCostBuyPrice =sellCostBuyPrice+5040
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5040, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5040
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4636.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4636.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4636.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5040
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5040
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5040, 5040, 5040
                    , 5040, 4636.8, 4636.8, 4636.8
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5040, 5040, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5040, sellCostBuyPrice =sellCostBuyPrice+5040
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5040, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5040
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4636.8, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4636.8
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4636.8
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5040
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5040
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '21', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '3392';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2033', '1', '9', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '30', '21', '3', '2026-10-14 21:43:18','0','0'); -- id=11386
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 71;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('270','01379', '547', '94', '1379', '12', '300', '3600', '0', '', '0', '2026-10-14 21:43:18', '1379', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','71-12,','1','1','0','0','300','3600','0','','0','0.00','0','0','0','0'); -- id=2013
UPDATE sellbilldetail SET  lastbuyprice = 270.00 , meanbuyprice = 270.00, lastbuyprice_withDiscount = 270.00, meanbuyprice_withDiscount = 270.00
        , lastbuyprice_withTax = 270, meanbuyprice_withTax = 270, lastbuyprice_withDiscountAndTax = 270
                where sellbilldetailid = 2013;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1379, '2026-10-14', 3600, 3240, 3240
                    , 3240, 3240, 3240, 3240
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 3240, 3240, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3600, sellCostBuyPrice =sellCostBuyPrice+3240
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3240, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3240
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3240, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3240
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3240
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3240
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3240
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3600, 3240, 3240
                    , 3240, 3240, 3240, 3240
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3240, 3240, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3600, sellCostBuyPrice =sellCostBuyPrice+3240
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3240, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3240
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3240, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3240
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3240
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3240
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3240
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '429', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '1379';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1379', '1', '12', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '441', '429', '3', '2026-10-14 21:43:18','0','0'); -- id=11387
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 72;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('350','01380', '547', '94', '1380', '9', '390', '3510', '0', '', '0', '2026-10-14 21:43:18', '1380', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','72-9,','1','1','0','0','390','3510','0','','0','0.00','0','0','0','0'); -- id=2014
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 350.00, meanbuyprice_withDiscount = 350.00
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 350
                where sellbilldetailid = 2014;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1380, '2026-10-14', 3510, 3150, 3150
                    , 3150, 3150, 3150, 3150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3150, 3150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3510, sellCostBuyPrice =sellCostBuyPrice+3150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3510, 3150, 3150
                    , 3150, 3150, 3150, 3150
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3150, 3150, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3510, sellCostBuyPrice =sellCostBuyPrice+3150
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3150, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3150
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3150, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3150
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3150
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3150
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3150
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '492', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '1380';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1380', '1', '9', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '501', '492', '3', '2026-10-14 21:43:18','0','0'); -- id=11388
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 764;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('430','01790', '547', '138', '1790', '9', '460', '4140', '0', '', '0', '2026-10-14 21:43:18', '1790', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','764-9,','1','1','0','0','460','4140','0','','0','0.00','0','0','0','0'); -- id=2015
UPDATE sellbilldetail SET  lastbuyprice = 430.00 , meanbuyprice = 430.00, lastbuyprice_withDiscount = 430.00, meanbuyprice_withDiscount = 430.00
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 430
                where sellbilldetailid = 2015;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1790, '2026-10-14', 4140, 3870, 3870
                    , 3870, 3870, 3870, 3870
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3870, 3870, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4140, sellCostBuyPrice =sellCostBuyPrice+3870
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3870, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3870
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3870, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3870
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3870
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3870
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3870
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4140, 3870, 3870
                    , 3870, 3870, 3870, 3870
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3870, 3870, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4140, sellCostBuyPrice =sellCostBuyPrice+3870
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3870, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3870
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3870, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3870
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3870
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3870
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3870
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2803';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1790', '1', '9', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '9', '0', '3', '2026-10-14 21:43:18','0','0'); -- id=11389
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 759;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('400','01785', '547', '138', '1785', '6', '430', '2580', '0', '', '0', '2026-10-14 21:43:18', '1785', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','759-6,','1','1','0','0','430','2580','0','','0','0.00','0','0','0','0'); -- id=2016
UPDATE sellbilldetail SET  lastbuyprice = 400.00 , meanbuyprice = 400.00, lastbuyprice_withDiscount = 400.00, meanbuyprice_withDiscount = 400.00
        , lastbuyprice_withTax = 400, meanbuyprice_withTax = 400, lastbuyprice_withDiscountAndTax = 400
                where sellbilldetailid = 2016;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1785, '2026-10-14', 2580, 2400, 2400
                    , 2400, 2400, 2400, 2400
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2400, 2400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2580, sellCostBuyPrice =sellCostBuyPrice+2400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2400, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2400
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2400
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2580, 2400, 2400
                    , 2400, 2400, 2400, 2400
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2400, 2400, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2580, sellCostBuyPrice =sellCostBuyPrice+2400
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2400, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2400
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2400, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2400
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2400
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2400
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2400
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2798';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1785', '1', '6', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '6', '0', '3', '2026-10-14 21:43:18','0','0'); -- id=11390
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 70;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('320','01378', '547', '94', '1378', '6', '360', '2160', '0', '', '0', '2026-10-14 21:43:18', '1378', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','70-6,','1','1','0','0','360','2160','0','','0','0.00','0','0','0','0'); -- id=2017
UPDATE sellbilldetail SET  lastbuyprice = 320.00 , meanbuyprice = 320.00, lastbuyprice_withDiscount = 320.00, meanbuyprice_withDiscount = 320.00
        , lastbuyprice_withTax = 320, meanbuyprice_withTax = 320, lastbuyprice_withDiscountAndTax = 320
                where sellbilldetailid = 2017;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1378, '2026-10-14', 2160, 1920, 1920
                    , 1920, 1920, 1920, 1920
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 1920, 1920, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2160, sellCostBuyPrice =sellCostBuyPrice+1920
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1920, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1920
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1920, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1920
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1920
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1920
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1920
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2160, 1920, 1920
                    , 1920, 1920, 1920, 1920
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1920, 1920, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2160, sellCostBuyPrice =sellCostBuyPrice+1920
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1920, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1920
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1920, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1920
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1920
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1920
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1920
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '537', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '1378';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1378', '1', '6', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '543', '537', '3', '2026-10-14 21:43:18','0','0'); -- id=11391
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 1080;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('425','01919', '547', '153', '1919', '6', '450', '2700', '0', '', '0', '2026-10-14 21:43:18', '1919', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1080-6,','1','1','0','0','450','2700','0','','0','0.00','0','0','0','0'); -- id=2018
UPDATE sellbilldetail SET  lastbuyprice = 425.00 , meanbuyprice = 425.00, lastbuyprice_withDiscount = 425.00, meanbuyprice_withDiscount = 425.00
        , lastbuyprice_withTax = 425, meanbuyprice_withTax = 425, lastbuyprice_withDiscountAndTax = 425
                where sellbilldetailid = 2018;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1919, '2026-10-14', 2700, 2550, 2550
                    , 2550, 2550, 2550, 2550
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2550, 2550, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2550, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2550
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2550
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2550
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2700, 2550, 2550
                    , 2550, 2550, 2550, 2550
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2550, 2550, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2700, sellCostBuyPrice =sellCostBuyPrice+2550
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2550, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2550
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2550, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2550
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2550
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2550
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2550
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '240', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2936';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1919', '1', '6', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '246', '240', '3', '2026-10-14 21:43:18','0','0'); -- id=11392
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 72;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('350','i0001380', '547', '94', '1380', '6', '400', '2400', '0', '', '0', '2026-10-14 21:43:18', '1380', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','72-6,','1','1','0','0','400','2400','0','','0','0.00','0','0','0','0'); -- id=2019
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 350.00, meanbuyprice_withDiscount = 350.00
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 350
                where sellbilldetailid = 2019;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1380, '2026-10-14', 2400, 2100, 2100
                    , 2100, 2100, 2100, 2100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2100, 2100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2400, sellCostBuyPrice =sellCostBuyPrice+2100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2400, 2100, 2100
                    , 2100, 2100, 2100, 2100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2100, 2100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2400, sellCostBuyPrice =sellCostBuyPrice+2100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '486', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '1380';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1380', '1', '6', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '492', '486', '3', '2026-10-14 21:43:18','0','0'); -- id=11393
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 761;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('410','01787', '547', '138', '1787', '9', '440', '3960', '0', '', '0', '2026-10-14 21:43:18', '1787', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','761-9,','1','1','0','0','440','3960','0','','0','0.00','0','0','0','0'); -- id=2020
UPDATE sellbilldetail SET  lastbuyprice = 410.00 , meanbuyprice = 410.00, lastbuyprice_withDiscount = 410.00, meanbuyprice_withDiscount = 410.00
        , lastbuyprice_withTax = 410, meanbuyprice_withTax = 410, lastbuyprice_withDiscountAndTax = 410
                where sellbilldetailid = 2020;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1787, '2026-10-14', 3960, 3690, 3690
                    , 3690, 3690, 3690, 3690
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 3690, 3690, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3960, sellCostBuyPrice =sellCostBuyPrice+3690
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3690, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3690
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3690, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3690
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3690
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3690
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3690
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3960, 3690, 3690
                    , 3690, 3690, 3690, 3690
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3690, 3690, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3960, sellCostBuyPrice =sellCostBuyPrice+3690
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3690, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3690
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3690, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3690
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3690
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3690
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3690
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2800';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1787', '1', '9', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '9', '0', '3', '2026-10-14 21:43:18','0','0'); -- id=11394
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 770;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('432','01649', '547', '123', '1649', '12', '480', '5760', '0', '', '0', '2026-10-14 21:43:18', '1649', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','770-12,','1','1','0','0','480','5760','0','','0','0.00','0','0','0','0'); -- id=2021
UPDATE sellbilldetail SET  lastbuyprice = 480.00 , meanbuyprice = 480.00, lastbuyprice_withDiscount = 432.00, meanbuyprice_withDiscount = 456.00
        , lastbuyprice_withTax = 480, meanbuyprice_withTax = 240, lastbuyprice_withDiscountAndTax = 432
                where sellbilldetailid = 2021;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1649, '2026-10-14', 5760, 5760, 5760
                    , 5760, 5184, 5472, 5184
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 5760, 2880, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5760, sellCostBuyPrice =sellCostBuyPrice+5760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5184, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5472
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5184
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2880
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5760, 5760, 5760
                    , 5760, 5184, 5472, 5184
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5760, 2880, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5760, sellCostBuyPrice =sellCostBuyPrice+5760
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5760, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5760
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5184, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5472
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5184
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5760
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2880
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '1674';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1649', '1', '12', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '12', '0', '3', '2026-10-14 21:43:18','0','0'); -- id=11395
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+6 where id = 527;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('386.4','01678', '547', '124', '1678', '6', '420', '2520', '0', '', '0', '2026-10-14 21:43:18', '1678', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','527-6,','1','1','0','0','420','2520','0','','0','0.00','0','0','0','0'); -- id=2022
UPDATE sellbilldetail SET  lastbuyprice = 420.00 , meanbuyprice = 420.00, lastbuyprice_withDiscount = 386.40, meanbuyprice_withDiscount = 386.40
        , lastbuyprice_withTax = 420, meanbuyprice_withTax = 420, lastbuyprice_withDiscountAndTax = 386.4
                where sellbilldetailid = 2022;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1678, '2026-10-14', 2520, 2520, 2520
                    , 2520, 2318.4, 2318.4, 2318.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2520, 2520, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2520, sellCostBuyPrice =sellCostBuyPrice+2520
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2520, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2520
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2318.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2318.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2318.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2520
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2520
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2520, 2520, 2520
                    , 2520, 2318.4, 2318.4, 2318.4
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2520, 2520, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2520, sellCostBuyPrice =sellCostBuyPrice+2520
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2520, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2520
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2318.4, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2318.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2318.4
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2520
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2520
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '24', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2690';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1678', '1', '6', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '30', '24', '3', '2026-10-14 21:43:18','0','0'); -- id=11396
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 863;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('404.8','01838', '547', '124', '1838', '12', '440', '5280', '0', '', '0', '2026-10-14 21:43:18', '1838', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','863-12,','1','1','0','0','440','5280','0','','0','0.00','0','0','0','0'); -- id=2023
UPDATE sellbilldetail SET  lastbuyprice = 440.00 , meanbuyprice = 440.00, lastbuyprice_withDiscount = 404.80, meanbuyprice_withDiscount = 404.80
        , lastbuyprice_withTax = 440, meanbuyprice_withTax = 440, lastbuyprice_withDiscountAndTax = 404.8
                where sellbilldetailid = 2023;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1838, '2026-10-14', 5280, 5280, 5280
                    , 5280, 4857.6, 4857.6, 4857.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 5280, 5280, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5280, sellCostBuyPrice =sellCostBuyPrice+5280
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5280, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5280
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4857.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4857.6
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4857.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5280
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5280
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5280, 5280, 5280
                    , 5280, 4857.6, 4857.6, 4857.6
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5280, 5280, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5280, sellCostBuyPrice =sellCostBuyPrice+5280
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5280, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5280
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4857.6, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4857.6
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4857.6
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5280
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5280
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '9', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2853';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1838', '1', '12', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '21', '9', '3', '2026-10-14 21:43:18','0','0'); -- id=11397
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+33 where id = 1084;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('230','01923', '547', '154', '1923', '33', '245', '8085', '0', '', '0', '2026-10-14 21:43:18', '1923', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','1084-33,','1','1','0','0','245','8085','0','','0','0.00','0','0','0','0'); -- id=2024
UPDATE sellbilldetail SET  lastbuyprice = 230.00 , meanbuyprice = 230.00, lastbuyprice_withDiscount = 230.00, meanbuyprice_withDiscount = 230.00
        , lastbuyprice_withTax = 230, meanbuyprice_withTax = 230, lastbuyprice_withDiscountAndTax = 230
                where sellbilldetailid = 2024;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1923, '2026-10-14', 8085, 7590, 7590
                    , 7590, 7590, 7590, 7590
                    , 0, 0, 0, 0
                    , 0, 0, 0, 33, 0, 7590, 7590, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8085, sellCostBuyPrice =sellCostBuyPrice+7590
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7590, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7590
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7590, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7590
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7590
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7590
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7590
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+33
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 8085, 7590, 7590
                    , 7590, 7590, 7590, 7590
                    , 0, 0, 0, 0
                    , 0, 0, 0, 7590, 7590, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+8085, sellCostBuyPrice =sellCostBuyPrice+7590
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+7590, sellCostMeanBuyPrice = sellCostMeanBuyPrice+7590
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+7590, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+7590
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+7590
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+7590
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+7590
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '138', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2940';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1923', '1', '33', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '171', '138', '3', '2026-10-14 21:43:18','0','0'); -- id=11398
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+18 where id = 1170;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('310','01976', '547', '59', '1976', '18', '320', '5760', '0', '', '0', '2026-10-14 21:43:18', '1976', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1170-18,','1','1','0','0','320','5760','0','','0','0.00','0','0','0','0'); -- id=2025
UPDATE sellbilldetail SET  lastbuyprice = 310.00 , meanbuyprice = 310.00, lastbuyprice_withDiscount = 310.00, meanbuyprice_withDiscount = 310.00
        , lastbuyprice_withTax = 310, meanbuyprice_withTax = 310, lastbuyprice_withDiscountAndTax = 310
                where sellbilldetailid = 2025;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1976, '2026-10-14', 5760, 5580, 5580
                    , 5580, 5580, 5580, 5580
                    , 0, 0, 0, 0
                    , 0, 0, 0, 18, 0, 5580, 5580, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5760, sellCostBuyPrice =sellCostBuyPrice+5580
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5580, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5580
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5580, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5580
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5580
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5580
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5580
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+18
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 5760, 5580, 5580
                    , 5580, 5580, 5580, 5580
                    , 0, 0, 0, 0
                    , 0, 0, 0, 5580, 5580, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+5760, sellCostBuyPrice =sellCostBuyPrice+5580
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+5580, sellCostMeanBuyPrice = sellCostMeanBuyPrice+5580
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+5580, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+5580
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+5580
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+5580
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+5580
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '120', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2993';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1976', '1', '18', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '138', '120', '3', '2026-10-14 21:43:18','0','0'); -- id=11399
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+15 where id = 1169;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('200','01975', '547', '59', '1975', '15', '210', '3150', '0', '', '0', '2026-10-14 21:43:18', '1975', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1169-15,','1','1','0','0','210','3150','0','','0','0.00','0','0','0','0'); -- id=2026
UPDATE sellbilldetail SET  lastbuyprice = 200.00 , meanbuyprice = 200.00, lastbuyprice_withDiscount = 200.00, meanbuyprice_withDiscount = 200.00
        , lastbuyprice_withTax = 200, meanbuyprice_withTax = 200, lastbuyprice_withDiscountAndTax = 200
                where sellbilldetailid = 2026;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1975, '2026-10-14', 3150, 3000, 3000
                    , 3000, 3000, 3000, 3000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 15, 0, 3000, 3000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3150, sellCostBuyPrice =sellCostBuyPrice+3000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+15
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3150, 3000, 3000
                    , 3000, 3000, 3000, 3000
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3000, 3000, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3150, sellCostBuyPrice =sellCostBuyPrice+3000
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3000, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3000
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3000, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3000
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3000
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3000
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3000
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '14', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2992';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1975', '1', '15', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '29', '14', '3', '2026-10-14 21:43:18','0','0'); -- id=11400
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 1168;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('300','01974', '547', '59', '1974', '9', '310', '2790', '0', '', '0', '2026-10-14 21:43:18', '1974', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','1168-9,','1','1','0','0','310','2790','0','','0','0.00','0','0','0','0'); -- id=2027
UPDATE sellbilldetail SET  lastbuyprice = 300.00 , meanbuyprice = 300.00, lastbuyprice_withDiscount = 300.00, meanbuyprice_withDiscount = 300.00
        , lastbuyprice_withTax = 300, meanbuyprice_withTax = 300, lastbuyprice_withDiscountAndTax = 300
                where sellbilldetailid = 2027;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1974, '2026-10-14', 2790, 2700, 2700
                    , 2700, 2700, 2700, 2700
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 2700, 2700, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2790, sellCostBuyPrice =sellCostBuyPrice+2700
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2700, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2700
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2700, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2700
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2700
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2700
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2700
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2790, 2700, 2700
                    , 2700, 2700, 2700, 2700
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2700, 2700, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2790, sellCostBuyPrice =sellCostBuyPrice+2700
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2700, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2700
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2700, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2700
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2700
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2700
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2700
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '36', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2991';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1974', '1', '9', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '45', '36', '3', '2026-10-14 21:43:18','0','0'); -- id=11401
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+16 where id = 549;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('225','01685', '547', '68', '1685', '16', '240', '3840', '0', '', '0', '2026-10-14 21:43:18', '1685', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','549-16,','1','1','0','0','240','3840','0','','0','0.00','0','0','0','0'); -- id=2028
UPDATE sellbilldetail SET  lastbuyprice = 225.00 , meanbuyprice = 225.00, lastbuyprice_withDiscount = 225.00, meanbuyprice_withDiscount = 225.00
        , lastbuyprice_withTax = 225, meanbuyprice_withTax = 225, lastbuyprice_withDiscountAndTax = 225
                where sellbilldetailid = 2028;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1685, '2026-10-14', 3840, 3600, 3600
                    , 3600, 3600, 3600, 3600
                    , 0, 0, 0, 0
                    , 0, 0, 0, 16, 0, 3600, 3600, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3840, sellCostBuyPrice =sellCostBuyPrice+3600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3600
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+16
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 3840, 3600, 3600
                    , 3600, 3600, 3600, 3600
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3600, 3600, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+3840, sellCostBuyPrice =sellCostBuyPrice+3600
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+3600, sellCostMeanBuyPrice = sellCostMeanBuyPrice+3600
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+3600, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+3600
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+3600
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+3600
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+3600
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '32', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2697';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1685', '1', '16', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '48', '32', '3', '2026-10-14 21:43:18','0','0'); -- id=11402
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+56 where id = 550;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('235','01686', '547', '68', '1686', '56', '250', '14000', '0', '', '0', '2026-10-14 21:43:18', '1686', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','550-56,','1','1','0','0','250','14000','0','','0','0.00','0','0','0','0'); -- id=2029
UPDATE sellbilldetail SET  lastbuyprice = 235.00 , meanbuyprice = 235.00, lastbuyprice_withDiscount = 235.00, meanbuyprice_withDiscount = 235.00
        , lastbuyprice_withTax = 235, meanbuyprice_withTax = 235, lastbuyprice_withDiscountAndTax = 235
                where sellbilldetailid = 2029;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1686, '2026-10-14', 14000, 13160, 13160
                    , 13160, 13160, 13160, 13160
                    , 0, 0, 0, 0
                    , 0, 0, 0, 56, 0, 13160, 13160, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+14000, sellCostBuyPrice =sellCostBuyPrice+13160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+13160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+13160
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+13160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+13160
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+13160
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+13160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+13160
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+56
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 14000, 13160, 13160
                    , 13160, 13160, 13160, 13160
                    , 0, 0, 0, 0
                    , 0, 0, 0, 13160, 13160, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+14000, sellCostBuyPrice =sellCostBuyPrice+13160
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+13160, sellCostMeanBuyPrice = sellCostMeanBuyPrice+13160
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+13160, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+13160
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+13160
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+13160
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+13160
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '24', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2698';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1686', '1', '56', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '80', '24', '3', '2026-10-14 21:43:18','0','0'); -- id=11403
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+8 where id = 549;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('225','01685', '547', '68', '1685', '8', '240', '1920', '0', '', '0', '2026-10-14 21:43:18', '1685', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','549-8,','1','1','0','0','240','1920','0','','0','0.00','0','0','0','0'); -- id=2030
UPDATE sellbilldetail SET  lastbuyprice = 225.00 , meanbuyprice = 225.00, lastbuyprice_withDiscount = 225.00, meanbuyprice_withDiscount = 225.00
        , lastbuyprice_withTax = 225, meanbuyprice_withTax = 225, lastbuyprice_withDiscountAndTax = 225
                where sellbilldetailid = 2030;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1685, '2026-10-14', 1920, 1800, 1800
                    , 1800, 1800, 1800, 1800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8, 0, 1800, 1800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1920, sellCostBuyPrice =sellCostBuyPrice+1800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+8
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1920, 1800, 1800
                    , 1800, 1800, 1800, 1800
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1800, 1800, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1920, sellCostBuyPrice =sellCostBuyPrice+1800
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1800, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1800
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1800, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1800
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1800
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1800
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1800
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '24', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2697';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1685', '1', '8', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '32', '24', '3', '2026-10-14 21:43:18','0','0'); -- id=11404
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+12 where id = 549;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('225','01685', '547', '68', '1685', '12', '240', '2880', '0', '', '0', '2026-10-14 21:43:18', '1685', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','549-12,','1','1','0','0','240','2880','0','','0','0.00','0','0','0','0'); -- id=2031
UPDATE sellbilldetail SET  lastbuyprice = 225.00 , meanbuyprice = 225.00, lastbuyprice_withDiscount = 225.00, meanbuyprice_withDiscount = 225.00
        , lastbuyprice_withTax = 225, meanbuyprice_withTax = 225, lastbuyprice_withDiscountAndTax = 225
                where sellbilldetailid = 2031;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1685, '2026-10-14', 2880, 2700, 2700
                    , 2700, 2700, 2700, 2700
                    , 0, 0, 0, 0
                    , 0, 0, 0, 12, 0, 2700, 2700, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2880, sellCostBuyPrice =sellCostBuyPrice+2700
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2700, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2700
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2700, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2700
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2700
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2700
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2700
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+12
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2880, 2700, 2700
                    , 2700, 2700, 2700, 2700
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2700, 2700, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2880, sellCostBuyPrice =sellCostBuyPrice+2700
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2700, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2700
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2700, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2700
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2700
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2700
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2700
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '12', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '2697';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1685', '1', '12', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '24', '12', '3', '2026-10-14 21:43:18','0','0'); -- id=11405
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('375','i0001244', '547', '71', '1244', '28', '260', '7280', '0', '', '0', '2026-10-14 21:43:18', '1244', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','260','7280','0','','0','0.00','0','0','0','0'); -- id=2032
UPDATE sellbilldetail SET  lastbuyprice = 365.00 , meanbuyprice = 370.00, lastbuyprice_withDiscount = 365.00, meanbuyprice_withDiscount = 370.00
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 365
                where sellbilldetailid = 2032;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1244, '2026-10-14', 7280, 10500, 10220
                    , 10360, 10220, 10360, 10220
                    , 0, 0, 0, 0
                    , 0, 0, 0, 28, 0, 10360, 10360, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+7280, sellCostBuyPrice =sellCostBuyPrice+10500
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+10220, sellCostMeanBuyPrice = sellCostMeanBuyPrice+10360
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+10220, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+10360
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+10220
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+10360
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+10360
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+28
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 7280, 10500, 10220
                    , 10360, 10220, 10360, 10220
                    , 0, 0, 0, 0
                    , 0, 0, 0, 10360, 10360, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+7280, sellCostBuyPrice =sellCostBuyPrice+10500
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+10220, sellCostMeanBuyPrice = sellCostMeanBuyPrice+10360
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+10220, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+10360
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+10220
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+10360
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+10360
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '19', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '1244';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1244', '1', '28', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '47', '19', '3', '2026-10-14 21:43:18','0','0'); -- id=11406
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('350','08681', '547', '48', '1171', '6', '200', '1200', '0', '', '0', '2026-10-14 21:43:18', '1171', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','200','1200','0','','0','0.00','0','0','0','0'); -- id=2033
UPDATE sellbilldetail SET  lastbuyprice = 350.00 , meanbuyprice = 350.00, lastbuyprice_withDiscount = 350.00, meanbuyprice_withDiscount = 350.00
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 350
                where sellbilldetailid = 2033;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1171, '2026-10-14', 1200, 2100, 2100
                    , 2100, 2100, 2100, 2100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 6, 0, 2100, 2100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1200, sellCostBuyPrice =sellCostBuyPrice+2100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+6
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1200, 2100, 2100
                    , 2100, 2100, 2100, 2100
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2100, 2100, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1200, sellCostBuyPrice =sellCostBuyPrice+2100
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2100, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2100
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2100, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2100
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2100
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2100
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2100
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '0', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '1171';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1171', '1', '6', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '6', '0', '3', '2026-10-14 21:43:18','0','0'); -- id=11407
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('330','08971', '547', '66', '1231', '8', '250', '2000', '0', '', '0', '2026-10-14 21:43:18', '1231', '0.00', '0', '1','0.00','','','0','0','0','0','0','0','0','0','','','1','1','0','0','250','2000','0','','0','0.00','0','0','0','0'); -- id=2034
UPDATE sellbilldetail SET  lastbuyprice = 330.00 , meanbuyprice = 330.00, lastbuyprice_withDiscount = 330.00, meanbuyprice_withDiscount = 330.00
        , lastbuyprice_withTax = 330, meanbuyprice_withTax = 330, lastbuyprice_withDiscountAndTax = 330
                where sellbilldetailid = 2034;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1231, '2026-10-14', 2000, 2640, 2640
                    , 2640, 2640, 2640, 2640
                    , 0, 0, 0, 0
                    , 0, 0, 0, 8, 0, 2640, 2640, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2000, sellCostBuyPrice =sellCostBuyPrice+2640
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2640, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2640
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2640, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2640
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2640
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2640
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2640
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+8
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 2000, 2640, 2640
                    , 2640, 2640, 2640, 2640
                    , 0, 0, 0, 0
                    , 0, 0, 0, 2640, 2640, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+2000, sellCostBuyPrice =sellCostBuyPrice+2640
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+2640, sellCostMeanBuyPrice = sellCostMeanBuyPrice+2640
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+2640, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+2640
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+2640
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+2640
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+2640
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '55', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '1231';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1231', '1', '8', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '63', '55', '3', '2026-10-14 21:43:18','0','0'); -- id=11408
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+9 where id = 530;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('496.8','01628', '547', '120', '1628', '9', '540', '4860', '0', '', '0', '2026-10-14 21:43:18', '1628', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','530-9,','1','1','0','0','540','4860','0','','0','0.00','0','0','0','0'); -- id=2035
UPDATE sellbilldetail SET  lastbuyprice = 540.00 , meanbuyprice = 540.00, lastbuyprice_withDiscount = 496.80, meanbuyprice_withDiscount = 496.80
        , lastbuyprice_withTax = 540, meanbuyprice_withTax = 540, lastbuyprice_withDiscountAndTax = 496.8
                where sellbilldetailid = 2035;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1628, '2026-10-14', 4860, 4860, 4860
                    , 4860, 4471.2, 4471.2, 4471.2
                    , 0, 0, 0, 0
                    , 0, 0, 0, 9, 0, 4860, 4860, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4860, sellCostBuyPrice =sellCostBuyPrice+4860
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4860, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4860
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4471.2, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4471.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4471.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4860
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4860
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+9
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 4860, 4860, 4860
                    , 4860, 4471.2, 4471.2, 4471.2
                    , 0, 0, 0, 0
                    , 0, 0, 0, 4860, 4860, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+4860, sellCostBuyPrice =sellCostBuyPrice+4860
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+4860, sellCostMeanBuyPrice = sellCostMeanBuyPrice+4860
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+4471.2, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+4471.2
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+4471.2
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+4860
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+4860
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '9', userid = '3', storedetaildate = '2026-10-14 21:43:18' WHERE storedetailid = '1653';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1628', '1', '9', '1', '547', 'اضافة فاتورة مبيعات', 'sellbillController.php', '18', '9', '3', '2026-10-14 21:43:18','0','0'); -- id=11409
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3929725',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3751335','178390', '0', '2', 'اضافة فاتورة مبيعات', '547', '3929725', '2026-10-14 21:43:18', '3',  'sellbillController.php','1','','0'); -- id=689
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '178390', '178390', '2026-10-14', '3', '0', '0', '2026-10-14 21:43:18','اضافة فاتورة مبيعات رقم 547','1','0',null,'0','547','sellbillController.php?do=showDetail&sellbillid=547'); -- id=2488
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2488', '419', '178390', '','0'); -- id=2544
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3929725', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2488', '143', '178390', '','0'); -- id=2490
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '6181535', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '170774.72', '170774.72', '2026-10-14', '3', '0', '0', '2026-10-14 21:43:18','اضافة فاتورة مبيعات رقم 547 - صرف البضاعة من المخزن','1','0',null,'0','547','sellbillController.php?do=showDetail&sellbillid=547'); -- id=2489
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2489', '402', '170774.72', '','0'); -- id=2545
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5768996.69', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2489', '382', '170774.72', '','0'); -- id=2491
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '23930746.11', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2488,0,2489' where sellbillid=547;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 178390, 176186, 176026
                    , 176106, 170774.72, 171462.4, 170774.72
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,176106, 167931, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+178390, sellCostBuyPrice =sellCostBuyPrice+176186
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+176026, sellCostMeanBuyPrice = sellCostMeanBuyPrice+176106
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+170774.72, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+171462.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+170774.72
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+176106
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+167931
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 178390, 176186, 176026
                    , 176106, 170774.72, 171462.4, 170774.72
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,176106, 167931, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+178390, sellCostBuyPrice =sellCostBuyPrice+176186
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+176026, sellCostMeanBuyPrice = sellCostMeanBuyPrice+176106
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+170774.72, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+171462.4
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+170774.72
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+176106
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+167931
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 178390, 176186, 176026
                    , 176106, 170774.72, 171462.4, 170774.72, 176106, 167931)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+178390, netSellCostBuyPrice = netSellCostBuyPrice+176186
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+176026
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+176106
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+170774.72
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+171462.4
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+170774.72
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+176106
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+167931;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acfa7d65a356 and sellbillId = 547 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:13:18";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:43:18", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 21:43:18', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9927
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:13:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:43:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:43:42', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9928
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('اوك ok','2026-10-14','','93', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=172
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (172, 1,'2026-10-14 21:43:42',1)
                ON DUPLICATE KEY UPDATE catid = 172, edited = 1, sysdate = '2026-10-14 21:43:42', userid = 1; -- id=184
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '172', '1', '2026-10-14', '1', '0'); -- id=77
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:13:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:43:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:43:42', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9929
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:13:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:43:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 21:43:44', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9930
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:13:46";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:43:46", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:43:46', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9931
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:14:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:44:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:44:03', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=176&type=2'); -- id=9932
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:14:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:44:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:44:43', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9933
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:15:01";
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:15:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:45:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 21:45:12', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9934
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 18:15:12";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 21:45:12', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9935
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:15:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:45:23", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 21:45:23', '4', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9936
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 18:15:23";
UPDATE user SET loginip = "51.89.20.165", lastactivetime = "2026-10-14 21:45:23", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 21:45:23', '4', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9937
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:15:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:45:26", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('savedailyController.php', '2026-10-14 21:45:26', '4', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/savedailyController.php'); -- id=9938
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:16:58";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:46:58", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:46:58', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9939
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:17:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:47:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 21:47:16', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php'); -- id=9940
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:17:16";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:47:16", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:47:16', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9941
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديلات 595 اوك','','172','545','595','595','595','2026-10-14','0','1','0','','0','0','0','0','0','545','545','545','545','545','0','9.17','0','0','.','0','0','0','545','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','545','545','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','545','0','0','0','0','0','0','','','0','0','0','0'); -- id=2073
UPDATE product SET productName = 'موديلات 595 اوك', productDescription = '', productCatId = '172', productBuyPrice = '545', productSellAllPrice = '595', productSellUnitPrice = '595', productSellHalfPrice = '595', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02073',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '545',lastbuyprice_withDiscount = '545',meanbuyprice = '545',meanbuyprice_withDiscount = '545' , productbuypricereal = '545' , buypricereal_precentage = '0' , buytotal_precentage = '9.17' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='545',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='545',meanbuyprice_withTax='545',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='545',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2073';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2073', '1.00', '2026-10-14', '1', '0','0207301','595','595','595','545','','0','0','0','0','0','0','0','0','0','0'); -- id=2073
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2073', '1', '0', '1', '2026-10-14'); -- id=3432
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2073', '1', '0', '0', '2073', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11410
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2073, 1,'2026-10-14 21:47:16',1)
                ON DUPLICATE KEY UPDATE productid = 2073, edited = 1, sysdate = '2026-10-14 21:47:16', userid = 1; -- id=3031
UPDATE product SET productName = 'موديلات 595 اوك', productDescription = '', productCatId = '172', productBuyPrice = '545.00', productSellAllPrice = '595.00', productSellUnitPrice = '595.00', productSellHalfPrice = '595.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02073',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '545',lastbuyprice_withDiscount = '545',meanbuyprice = '545',meanbuyprice_withDiscount = '545' , productbuypricereal = '545' , buypricereal_precentage = '0' , buytotal_precentage = '9.17' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='545',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='545',meanbuyprice_withTax='545',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='545',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2073';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 118 اوك','','172','435','485','485','485','2026-10-14','0','1','0','','0','0','0','0','0','435','435','435','435','435','0','11.49','0','0','.','0','0','0','435','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','435','435','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','435','0','0','0','0','0','0','','','0','0','0','0'); -- id=2074
UPDATE product SET productName = 'موديل 118 اوك', productDescription = '', productCatId = '172', productBuyPrice = '435', productSellAllPrice = '485', productSellUnitPrice = '485', productSellHalfPrice = '485', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02074',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '435',lastbuyprice_withDiscount = '435',meanbuyprice = '435',meanbuyprice_withDiscount = '435' , productbuypricereal = '435' , buypricereal_precentage = '0' , buytotal_precentage = '11.49' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='435',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='435',meanbuyprice_withTax='435',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='435',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2074';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2074', '1.00', '2026-10-14', '1', '0','0207401','485','485','485','435','','0','0','0','0','0','0','0','0','0','0'); -- id=2074
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2074', '1', '0', '1', '2026-10-14'); -- id=3433
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2074', '1', '0', '0', '2074', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11411
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2074, 1,'2026-10-14 21:47:16',1)
                ON DUPLICATE KEY UPDATE productid = 2074, edited = 1, sysdate = '2026-10-14 21:47:16', userid = 1; -- id=3032
UPDATE product SET productName = 'موديل 118 اوك', productDescription = '', productCatId = '172', productBuyPrice = '435.00', productSellAllPrice = '485.00', productSellUnitPrice = '485.00', productSellHalfPrice = '485.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02074',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '435',lastbuyprice_withDiscount = '435',meanbuyprice = '435',meanbuyprice_withDiscount = '435' , productbuypricereal = '435' , buypricereal_precentage = '0' , buytotal_precentage = '11.49' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='435',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='435',meanbuyprice_withTax='435',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='435',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2074';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 121 اوك','','172','490','540','540','540','2026-10-14','0','1','0','','0','0','0','0','0','490','490','490','490','490','0','10.2','0','0','.','0','0','0','490','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','490','490','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','490','0','0','0','0','0','0','','','0','0','0','0'); -- id=2075
UPDATE product SET productName = 'موديل 121 اوك', productDescription = '', productCatId = '172', productBuyPrice = '490', productSellAllPrice = '540', productSellUnitPrice = '540', productSellHalfPrice = '540', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02075',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '490',lastbuyprice_withDiscount = '490',meanbuyprice = '490',meanbuyprice_withDiscount = '490' , productbuypricereal = '490' , buypricereal_precentage = '0' , buytotal_precentage = '10.2' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='490',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='490',meanbuyprice_withTax='490',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='490',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2075';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2075', '1.00', '2026-10-14', '1', '0','0207501','540','540','540','490','','0','0','0','0','0','0','0','0','0','0'); -- id=2075
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2075', '1', '0', '1', '2026-10-14'); -- id=3434
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2075', '1', '0', '0', '2075', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11412
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2075, 1,'2026-10-14 21:47:16',1)
                ON DUPLICATE KEY UPDATE productid = 2075, edited = 1, sysdate = '2026-10-14 21:47:16', userid = 1; -- id=3033
UPDATE product SET productName = 'موديل 121 اوك', productDescription = '', productCatId = '172', productBuyPrice = '490.00', productSellAllPrice = '540.00', productSellUnitPrice = '540.00', productSellHalfPrice = '540.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02075',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '490',lastbuyprice_withDiscount = '490',meanbuyprice = '490',meanbuyprice_withDiscount = '490' , productbuypricereal = '490' , buypricereal_precentage = '0' , buytotal_precentage = '10.2' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='490',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='490',meanbuyprice_withTax='490',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='490',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2075';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديلات 535 اوك','','172','485','535','535','535','2026-10-14','0','1','0','','0','0','0','0','0','485','485','485','485','485','0','10.31','0','0','.','0','0','0','485','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','485','485','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','485','0','0','0','0','0','0','','','0','0','0','0'); -- id=2076
UPDATE product SET productName = 'موديلات 535 اوك', productDescription = '', productCatId = '172', productBuyPrice = '485', productSellAllPrice = '535', productSellUnitPrice = '535', productSellHalfPrice = '535', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02076',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '485',lastbuyprice_withDiscount = '485',meanbuyprice = '485',meanbuyprice_withDiscount = '485' , productbuypricereal = '485' , buypricereal_precentage = '0' , buytotal_precentage = '10.31' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='485',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='485',meanbuyprice_withTax='485',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='485',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2076';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2076', '1.00', '2026-10-14', '1', '0','0207601','535','535','535','485','','0','0','0','0','0','0','0','0','0','0'); -- id=2076
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2076', '1', '0', '1', '2026-10-14'); -- id=3435
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2076', '1', '0', '0', '2076', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11413
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2076, 1,'2026-10-14 21:47:16',1)
                ON DUPLICATE KEY UPDATE productid = 2076, edited = 1, sysdate = '2026-10-14 21:47:16', userid = 1; -- id=3034
UPDATE product SET productName = 'موديلات 535 اوك', productDescription = '', productCatId = '172', productBuyPrice = '485.00', productSellAllPrice = '535.00', productSellUnitPrice = '535.00', productSellHalfPrice = '535.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02076',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '485',lastbuyprice_withDiscount = '485',meanbuyprice = '485',meanbuyprice_withDiscount = '485' , productbuypricereal = '485' , buypricereal_precentage = '0' , buytotal_precentage = '10.31' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='485',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='485',meanbuyprice_withTax='485',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='485',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2076';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 123 اوك','','172','500','550','550','550','2026-10-14','0','1','0','','0','0','0','0','0','500','500','500','500','500','0','10','0','0','.','0','0','0','500','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','500','500','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','500','0','0','0','0','0','0','','','0','0','0','0'); -- id=2077
UPDATE product SET productName = 'موديل 123 اوك', productDescription = '', productCatId = '172', productBuyPrice = '500', productSellAllPrice = '550', productSellUnitPrice = '550', productSellHalfPrice = '550', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02077',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500' , buypricereal_precentage = '0' , buytotal_precentage = '10' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2077';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2077', '1.00', '2026-10-14', '1', '0','0207701','550','550','550','500','','0','0','0','0','0','0','0','0','0','0'); -- id=2077
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2077', '1', '0', '1', '2026-10-14'); -- id=3436
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2077', '1', '0', '0', '2077', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11414
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2077, 1,'2026-10-14 21:47:16',1)
                ON DUPLICATE KEY UPDATE productid = 2077, edited = 1, sysdate = '2026-10-14 21:47:16', userid = 1; -- id=3035
UPDATE product SET productName = 'موديل 123 اوك', productDescription = '', productCatId = '172', productBuyPrice = '500.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02077',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500' , buypricereal_precentage = '0' , buytotal_precentage = '10' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2077';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 119 اوك','','172','495','545','545','545','2026-10-14','0','1','0','','0','0','0','0','0','495','495','495','495','495','0','10.1','0','0','.','0','0','0','495','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','495','495','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','495','0','0','0','0','0','0','','','0','0','0','0'); -- id=2078
UPDATE product SET productName = 'موديل 119 اوك', productDescription = '', productCatId = '172', productBuyPrice = '495', productSellAllPrice = '545', productSellUnitPrice = '545', productSellHalfPrice = '545', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02078',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '495',lastbuyprice_withDiscount = '495',meanbuyprice = '495',meanbuyprice_withDiscount = '495' , productbuypricereal = '495' , buypricereal_precentage = '0' , buytotal_precentage = '10.1' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='495',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='495',meanbuyprice_withTax='495',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='495',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2078';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2078', '1.00', '2026-10-14', '1', '0','0207801','545','545','545','495','','0','0','0','0','0','0','0','0','0','0'); -- id=2078
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2078', '1', '0', '1', '2026-10-14'); -- id=3437
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2078', '1', '0', '0', '2078', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11415
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2078, 1,'2026-10-14 21:47:16',1)
                ON DUPLICATE KEY UPDATE productid = 2078, edited = 1, sysdate = '2026-10-14 21:47:16', userid = 1; -- id=3036
UPDATE product SET productName = 'موديل 119 اوك', productDescription = '', productCatId = '172', productBuyPrice = '495.00', productSellAllPrice = '545.00', productSellUnitPrice = '545.00', productSellHalfPrice = '545.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02078',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '495',lastbuyprice_withDiscount = '495',meanbuyprice = '495',meanbuyprice_withDiscount = '495' , productbuypricereal = '495' , buypricereal_precentage = '0' , buytotal_precentage = '10.1' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='495',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='495',meanbuyprice_withTax='495',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='495',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2078';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:17:18";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:47:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:47:18', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9942
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:17:21";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:47:21", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:47:21', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9943
INSERT INTO supplier (suppliername, supplieraddress, supplierphone, suppliercurrentDebt, supplierdetails, conditions, userid, supplierdate, dailyentryid, category_id, typesupplier_id,linkedClientId,inUse,suppliercode,goverareaid,namepayeecheck,suppliermobile,warrantyOfficer,warrantymobile,sellername,sellermobile,taxnumber,supplierTypeForTree,treeId,sullpierCurrencyid,suppliercurrentDebtInCurrency,webApiId,shippingDiscountPer) VALUES ('اوك OK', '', '', '', '', '0', '1', '2026-10-14 21:47:30', '0', '', '','0','0','','','','','','','','','','0','0','1','0','0','0'); -- id=180
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('180', '0', '', '0', 'إضافة مورد جديد', '180', '', '2026-10-14 21:47:30', '1', 'supplierController.php', '', '0','', '0','1','1','0','1','0','0','0','0',''); -- id=524
INSERT INTO accountstree (name, customName, customNameEn, nameEn, parent, accountNature, theValue, theOrder, layingOrder, reportid, listId, notes, itemfrom, itemtype, itemtype2, itemtype3, userid, del, sysdate) VALUES ('اوك OK', 'اوك OK', 'اوك OK', 'اوك OK', '81', '1', '0', '0', '', '1', '1', '', '0', '1', '1', '', '1', '0', '2026-10-14 21:47:30'); -- id=663
UPDATE supplier SET suppliername = 'اوك OK', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '0.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-10-14', dailyentryid = '0', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='663',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='0',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '180';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:17:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:47:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('storedetailController.php', '2026-10-14 21:47:32', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/storedetailController.php?do=show'); -- id=9944
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:17:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:47:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:47:50', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9945
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:18:33";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:48:33", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:48:33', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9946
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:18:43";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:48:43", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:48:43', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9947
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:19:13";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:49:13", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:49:13', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9948
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('قصات قطيفه','','123','520','520','520','520','2026-10-14','0','1','0','','0','0','0','0','0','520','520','520','520','520','0','0','0','0','.','0','0','0','520','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','520','520','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','520','0','0','0','0','0','0','','','0','0','0','0'); -- id=2079
UPDATE product SET productName = 'قصات قطيفه', productDescription = '', productCatId = '123', productBuyPrice = '520', productSellAllPrice = '520', productSellUnitPrice = '520', productSellHalfPrice = '520', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02079',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '520',lastbuyprice_withDiscount = '520',meanbuyprice = '520',meanbuyprice_withDiscount = '520' , productbuypricereal = '520' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='520',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='520',meanbuyprice_withTax='520',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='520',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2079';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2079', '1.00', '2026-10-14', '1', '0','0207901','520','520','520','520','','0','0','0','0','0','0','0','0','0','0'); -- id=2079
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2079', '1', '0', '1', '2026-10-14'); -- id=3438
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2079', '1', '0', '0', '2079', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11416
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2079, 1,'2026-10-14 21:49:13',1)
                ON DUPLICATE KEY UPDATE productid = 2079, edited = 1, sysdate = '2026-10-14 21:49:13', userid = 1; -- id=3037
UPDATE product SET productName = 'قصات قطيفه', productDescription = '', productCatId = '123', productBuyPrice = '520.00', productSellAllPrice = '520.00', productSellUnitPrice = '520.00', productSellHalfPrice = '520.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02079',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '520',lastbuyprice_withDiscount = '520',meanbuyprice = '520',meanbuyprice_withDiscount = '520' , productbuypricereal = '520' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='520',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='520',meanbuyprice_withTax='520',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='520',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2079';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:19:15";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:49:15", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:49:15', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9949
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:19:17";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:49:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:49:17', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9950
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:19:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:49:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:49:50', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9951
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfce3927d3f', '2026-10-14 21:47:21', '180', '0.00', '99440', '0', '0', '99440.00',  '99440.00', '0', '99440', '1', '2026-10-14 21:49:50', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=177
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02073', '177', '172', '2073', '24', '545', '13080.00', '0', '', '2026-10-14 21:49:50', '2073','','','0','0','0','0','0',null,'545','13080','0','0','0','0','0','0','0','0','1'); -- id=1064
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:47:21', 1, 2073, 0, 0
                    , 545, 24, 0, 0, 1, '2026-10-14 21:49:50')
                ON DUPLICATE KEY UPDATE buyprice = 545,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:49:50' ; -- id=6115
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2073', '545', '24', '0', 'buyBillController.php', '1064', '', '0', '0'); -- id=817
UPDATE product SET  productBuyPrice = "545" WHERE productId = 2073 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1064 ;
UPDATE product SET productName = 'موديلات 595 اوك', productDescription = '', productCatId = '172', productBuyPrice = '545.00', productSellAllPrice = '595.00', productSellUnitPrice = '595.00', productSellHalfPrice = '595.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02073',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '545',lastbuyprice_withDiscount = '545',meanbuyprice = '545',meanbuyprice_withDiscount = '545' , productbuypricereal = '545.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '9.17' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='545',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='545',meanbuyprice_withTax='545',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='545',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2073';
UPDATE buybilldetail SET  lastbuyprice = 545 , meanbuyprice = 545, lastbuyprice_withDiscount = 545, meanbuyprice_withDiscount = 545
        , lastbuyprice_withTax = 545, meanbuyprice_withTax = 545, lastbuyprice_withDiscountAndTax = 545
                where buybilldetailid = 1064;
UPDATE productunit SET proUnitBuyPrice  = 545 * productnumber WHERE productid = 2073;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3432';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2073', '1', '24', '0', '177', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 21:47:21','0','0'); -- id=11417
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02073', '177', '172', '2073', '24', '545', '13080.00', '0', '', '2026-10-14 21:49:50', '2073','','','0','0','0','0','0',null,'545','13080','0','0','0','0','0','0','0','0','1'); -- id=1065
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:47:21', 1, 2073, 0, 0
                    , 545, 24, 0, 0, 1, '2026-10-14 21:49:50')
                ON DUPLICATE KEY UPDATE buyprice = 545,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:49:50' ; -- id=6115
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2073', '545', '24', '0', 'buyBillController.php', '1065', '', '0', '0'); -- id=818
UPDATE product SET  productBuyPrice = "545" WHERE productId = 2073 ;
UPDATE buybilldetail SET  quantitybefore = 24 WHERE buybilldetailid = 1065 ;
UPDATE product SET productName = 'موديلات 595 اوك', productDescription = '', productCatId = '172', productBuyPrice = '545.00', productSellAllPrice = '595.00', productSellUnitPrice = '595.00', productSellHalfPrice = '595.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02073',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '545',lastbuyprice_withDiscount = '545',meanbuyprice = '545',meanbuyprice_withDiscount = '545' , productbuypricereal = '545.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '9.17' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='545',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='545',meanbuyprice_withTax='545',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='545',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2073';
UPDATE buybilldetail SET  lastbuyprice = 545 , meanbuyprice = 545, lastbuyprice_withDiscount = 545, meanbuyprice_withDiscount = 545
        , lastbuyprice_withTax = 545, meanbuyprice_withTax = 545, lastbuyprice_withDiscountAndTax = 545
                where buybilldetailid = 1065;
UPDATE productunit SET proUnitBuyPrice  = 545 * productnumber WHERE productid = 2073;
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3432';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2073', '1', '24', '0', '177', 'اضافة فاتورة مشتريات', 'buyBillController.php', '24', '48', '1', '2026-10-14 21:47:21','0','0'); -- id=11418
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02074', '177', '172', '2074', '24', '435', '10440.00', '0', '', '2026-10-14 21:49:50', '2074','','','0','0','0','0','0',null,'435','10440','0','0','0','0','0','0','0','0','1'); -- id=1066
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:47:21', 1, 2074, 0, 0
                    , 435, 24, 0, 0, 1, '2026-10-14 21:49:50')
                ON DUPLICATE KEY UPDATE buyprice = 435,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:49:50' ; -- id=6117
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2074', '435', '24', '0', 'buyBillController.php', '1066', '', '0', '0'); -- id=819
UPDATE product SET  productBuyPrice = "435" WHERE productId = 2074 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1066 ;
UPDATE product SET productName = 'موديل 118 اوك', productDescription = '', productCatId = '172', productBuyPrice = '435.00', productSellAllPrice = '485.00', productSellUnitPrice = '485.00', productSellHalfPrice = '485.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02074',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '435',lastbuyprice_withDiscount = '435',meanbuyprice = '435',meanbuyprice_withDiscount = '435' , productbuypricereal = '435.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '11.49' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='435',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='435',meanbuyprice_withTax='435',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='435',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2074';
UPDATE buybilldetail SET  lastbuyprice = 435 , meanbuyprice = 435, lastbuyprice_withDiscount = 435, meanbuyprice_withDiscount = 435
        , lastbuyprice_withTax = 435, meanbuyprice_withTax = 435, lastbuyprice_withDiscountAndTax = 435
                where buybilldetailid = 1066;
UPDATE productunit SET proUnitBuyPrice  = 435 * productnumber WHERE productid = 2074;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3433';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2074', '1', '24', '0', '177', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 21:47:21','0','0'); -- id=11419
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02075', '177', '172', '2075', '32', '490', '15680.00', '0', '', '2026-10-14 21:49:50', '2075','','','0','0','0','0','0',null,'490','15680','0','0','0','0','0','0','0','0','1'); -- id=1067
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:47:21', 1, 2075, 0, 0
                    , 490, 32, 0, 0, 1, '2026-10-14 21:49:50')
                ON DUPLICATE KEY UPDATE buyprice = 490,
                        buyQuantity =buyQuantity+32, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:49:50' ; -- id=6118
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2075', '490', '32', '0', 'buyBillController.php', '1067', '', '0', '0'); -- id=820
UPDATE product SET  productBuyPrice = "490" WHERE productId = 2075 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1067 ;
UPDATE product SET productName = 'موديل 121 اوك', productDescription = '', productCatId = '172', productBuyPrice = '490.00', productSellAllPrice = '540.00', productSellUnitPrice = '540.00', productSellHalfPrice = '540.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02075',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '490',lastbuyprice_withDiscount = '490',meanbuyprice = '490',meanbuyprice_withDiscount = '490' , productbuypricereal = '490.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '10.20' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='490',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='490',meanbuyprice_withTax='490',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='490',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2075';
UPDATE buybilldetail SET  lastbuyprice = 490 , meanbuyprice = 490, lastbuyprice_withDiscount = 490, meanbuyprice_withDiscount = 490
        , lastbuyprice_withTax = 490, meanbuyprice_withTax = 490, lastbuyprice_withDiscountAndTax = 490
                where buybilldetailid = 1067;
UPDATE productunit SET proUnitBuyPrice  = 490 * productnumber WHERE productid = 2075;
UPDATE storedetail SET  productquantity = '32', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3434';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2075', '1', '32', '0', '177', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '32', '1', '2026-10-14 21:47:21','0','0'); -- id=11420
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02076', '177', '172', '2076', '24', '485', '11640.00', '0', '', '2026-10-14 21:49:50', '2076','','','0','0','0','0','0',null,'485','11640','0','0','0','0','0','0','0','0','1'); -- id=1068
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:47:21', 1, 2076, 0, 0
                    , 485, 24, 0, 0, 1, '2026-10-14 21:49:50')
                ON DUPLICATE KEY UPDATE buyprice = 485,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:49:50' ; -- id=6119
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2076', '485', '24', '0', 'buyBillController.php', '1068', '', '0', '0'); -- id=821
UPDATE product SET  productBuyPrice = "485" WHERE productId = 2076 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1068 ;
UPDATE product SET productName = 'موديلات 535 اوك', productDescription = '', productCatId = '172', productBuyPrice = '485.00', productSellAllPrice = '535.00', productSellUnitPrice = '535.00', productSellHalfPrice = '535.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02076',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '485',lastbuyprice_withDiscount = '485',meanbuyprice = '485',meanbuyprice_withDiscount = '485' , productbuypricereal = '485.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '10.31' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='485',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='485',meanbuyprice_withTax='485',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='485',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2076';
UPDATE buybilldetail SET  lastbuyprice = 485 , meanbuyprice = 485, lastbuyprice_withDiscount = 485, meanbuyprice_withDiscount = 485
        , lastbuyprice_withTax = 485, meanbuyprice_withTax = 485, lastbuyprice_withDiscountAndTax = 485
                where buybilldetailid = 1068;
UPDATE productunit SET proUnitBuyPrice  = 485 * productnumber WHERE productid = 2076;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3435';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2076', '1', '24', '0', '177', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 21:47:21','0','0'); -- id=11421
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02077', '177', '172', '2077', '24', '500', '12000.00', '0', '', '2026-10-14 21:49:50', '2077','','','0','0','0','0','0',null,'500','12000','0','0','0','0','0','0','0','0','1'); -- id=1069
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:47:21', 1, 2077, 0, 0
                    , 500, 24, 0, 0, 1, '2026-10-14 21:49:50')
                ON DUPLICATE KEY UPDATE buyprice = 500,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:49:50' ; -- id=6120
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2077', '500', '24', '0', 'buyBillController.php', '1069', '', '0', '0'); -- id=822
UPDATE product SET  productBuyPrice = "500" WHERE productId = 2077 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1069 ;
UPDATE product SET productName = 'موديل 123 اوك', productDescription = '', productCatId = '172', productBuyPrice = '500.00', productSellAllPrice = '550.00', productSellUnitPrice = '550.00', productSellHalfPrice = '550.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02077',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '500',lastbuyprice_withDiscount = '500',meanbuyprice = '500',meanbuyprice_withDiscount = '500' , productbuypricereal = '500.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '10.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='500',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='500',meanbuyprice_withTax='500',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='500',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2077';
UPDATE buybilldetail SET  lastbuyprice = 500 , meanbuyprice = 500, lastbuyprice_withDiscount = 500, meanbuyprice_withDiscount = 500
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 500
                where buybilldetailid = 1069;
UPDATE productunit SET proUnitBuyPrice  = 500 * productnumber WHERE productid = 2077;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3436';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2077', '1', '24', '0', '177', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 21:47:21','0','0'); -- id=11422
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02078', '177', '172', '2078', '24', '495', '11880.00', '0', '', '2026-10-14 21:49:50', '2078','','','0','0','0','0','0',null,'495','11880','0','0','0','0','0','0','0','0','1'); -- id=1070
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:47:21', 1, 2078, 0, 0
                    , 495, 24, 0, 0, 1, '2026-10-14 21:49:50')
                ON DUPLICATE KEY UPDATE buyprice = 495,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:49:50' ; -- id=6121
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2078', '495', '24', '0', 'buyBillController.php', '1070', '', '0', '0'); -- id=823
UPDATE product SET  productBuyPrice = "495" WHERE productId = 2078 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1070 ;
UPDATE product SET productName = 'موديل 119 اوك', productDescription = '', productCatId = '172', productBuyPrice = '495.00', productSellAllPrice = '545.00', productSellUnitPrice = '545.00', productSellHalfPrice = '545.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02078',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '495',lastbuyprice_withDiscount = '495',meanbuyprice = '495',meanbuyprice_withDiscount = '495' , productbuypricereal = '495.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '10.10' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='495',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='495',meanbuyprice_withTax='495',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='495',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2078';
UPDATE buybilldetail SET  lastbuyprice = 495 , meanbuyprice = 495, lastbuyprice_withDiscount = 495, meanbuyprice_withDiscount = 495
        , lastbuyprice_withTax = 495, meanbuyprice_withTax = 495, lastbuyprice_withDiscountAndTax = 495
                where buybilldetailid = 1070;
UPDATE productunit SET proUnitBuyPrice  = 495 * productnumber WHERE productid = 2078;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3437';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2078', '1', '24', '0', '177', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 21:47:21','0','0'); -- id=11423
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02076', '177', '172', '2076', '24', '485', '11640.00', '0', '', '2026-10-14 21:49:50', '2076','','','0','0','0','0','0',null,'485','11640','0','0','0','0','0','0','0','0','1'); -- id=1071
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:47:21', 1, 2076, 0, 0
                    , 485, 24, 0, 0, 1, '2026-10-14 21:49:50')
                ON DUPLICATE KEY UPDATE buyprice = 485,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:49:50' ; -- id=6119
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2076', '485', '24', '0', 'buyBillController.php', '1071', '', '0', '0'); -- id=824
UPDATE product SET  productBuyPrice = "485" WHERE productId = 2076 ;
UPDATE buybilldetail SET  quantitybefore = 24 WHERE buybilldetailid = 1071 ;
UPDATE product SET productName = 'موديلات 535 اوك', productDescription = '', productCatId = '172', productBuyPrice = '485.00', productSellAllPrice = '535.00', productSellUnitPrice = '535.00', productSellHalfPrice = '535.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02076',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '485',lastbuyprice_withDiscount = '485',meanbuyprice = '485',meanbuyprice_withDiscount = '485' , productbuypricereal = '485.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '10.31' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='485',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='485',meanbuyprice_withTax='485',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='485',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2076';
UPDATE buybilldetail SET  lastbuyprice = 485 , meanbuyprice = 485, lastbuyprice_withDiscount = 485, meanbuyprice_withDiscount = 485
        , lastbuyprice_withTax = 485, meanbuyprice_withTax = 485, lastbuyprice_withDiscountAndTax = 485
                where buybilldetailid = 1071;
UPDATE productunit SET proUnitBuyPrice  = 485 * productnumber WHERE productid = 2076;
UPDATE storedetail SET  productquantity = '48', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3435';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2076', '1', '24', '0', '177', 'اضافة فاتورة مشتريات', 'buyBillController.php', '24', '48', '1', '2026-10-14 21:47:21','0','0'); -- id=11424
UPDATE supplier SET  suppliercurrentDebt = '99440',suppliercurrentDebtInCurrency= '99440' , userid = '1', supplierdate = '2026-10-14 21:49:50'   WHERE supplierid = '180';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('180', '0.00', '99440', '0', 'اضافة فاتورة مشتريات', '177', '99440', '2026-10-14 21:47:21', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','99440','1','0','99440','99440','0',''); -- id=525
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '99440', '99440', '2026-10-14', '1', '0', '0', '2026-10-14 21:49:50','اضافة فاتورة مشتريات رقم 177','1','0',null,'0','177','buyBillController.php?do=details&id=177'); -- id=2490
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2490', '382', '99440', '','0'); -- id=2546
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '24030186.11', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2490', '663', '99440', '','0'); -- id=2492
UPDATE accountstree SET name = 'اوك OK', customName = 'اوك OK', customNameEn = 'اوك OK', nameEn = 'اوك OK', parent = '81', accountNature = '1', theValue = '99440', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-14 21:47:30' WHERE id = '663';
update buybill set dailyentryid='2490,0' where buybillid=177;
COMMIT;
UPDATE product SET overAllAveragePrice = 545 WHERE productId = 2073;UPDATE product SET overAllAveragePrice = 435 WHERE productId = 2074;UPDATE product SET overAllAveragePrice = 490 WHERE productId = 2075;UPDATE product SET overAllAveragePrice = 485 WHERE productId = 2076;UPDATE product SET overAllAveragePrice = 500 WHERE productId = 2077;UPDATE product SET overAllAveragePrice = 495 WHERE productId = 2078;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:19:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:49:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:49:50', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=177'); -- id=9952
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:19:53";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:49:53", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:49:53', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9953
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:19:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:49:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:49:56', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=177&type=2'); -- id=9954
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:21:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:51:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:51:10', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9955
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfced16cb25', '2026-10-14 21:49:53', '119', '74088.00', '106056', '10', '1', '35520.00',  '31968.00', '0', '31968', '1', '2026-10-14 21:51:10', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=178
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('01654', '178', '123', '1654', '48', '480', '23040.00', '0', '', '2026-10-14 21:51:10', '1654','','','0','0','0','0','0',null,'480','23040','0','0','0','0','0','0','0','0','1'); -- id=1072
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:49:53', 1, 1654, 0, 0
                    , 432, 48, 0, 0, 1, '2026-10-14 21:51:10')
                ON DUPLICATE KEY UPDATE buyprice = 432,
                        buyQuantity =buyQuantity+48, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:51:10' ; -- id=6123
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('1654', '480', '48', '0', 'buyBillController.php', '1072', '', '0', '0'); -- id=825
UPDATE product SET  productBuyPrice = "480" WHERE productId = 1654 ;
UPDATE buybilldetail SET  quantitybefore = 24 WHERE buybilldetailid = 1072 ;
UPDATE product SET productName = 'بوكس 2 زنط ليزر 2', productDescription = '', productCatId = '123', productBuyPrice = '480.00', productSellAllPrice = '480.00', productSellUnitPrice = '480.00', productSellHalfPrice = '480.00', productDate = '2026-10-08', conditions = '0', userId = '1', limitamount = '0', parcode = '01654',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '480',lastbuyprice_withDiscount = '432',meanbuyprice = '480',meanbuyprice_withDiscount = '440' , productbuypricereal = '480.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='432',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='480',meanbuyprice_withTax='400',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='432',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '1654';
UPDATE buybilldetail SET  lastbuyprice = 480 , meanbuyprice = 480, lastbuyprice_withDiscount = 432, meanbuyprice_withDiscount = 440
        , lastbuyprice_withTax = 480, meanbuyprice_withTax = 400, lastbuyprice_withDiscountAndTax = 432
                where buybilldetailid = 1072;
UPDATE productunit SET proUnitBuyPrice  = 480 * productnumber WHERE productid = 1654;
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '1679';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1654', '1', '48', '0', '178', 'اضافة فاتورة مشتريات', 'buyBillController.php', '24', '72', '1', '2026-10-14 21:49:53','0','0'); -- id=11425
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02079', '178', '123', '2079', '24', '520', '12480.00', '0', '', '2026-10-14 21:51:10', '2079','','','0','0','0','0','0',null,'520','12480','0','0','0','0','0','0','0','0','1'); -- id=1073
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:49:53', 1, 2079, 0, 0
                    , 468, 24, 0, 0, 1, '2026-10-14 21:51:10')
                ON DUPLICATE KEY UPDATE buyprice = 468,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 21:51:10' ; -- id=6124
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2079', '520', '24', '0', 'buyBillController.php', '1073', '', '0', '0'); -- id=826
UPDATE product SET  productBuyPrice = "520" WHERE productId = 2079 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1073 ;
UPDATE product SET productName = 'قصات قطيفه', productDescription = '', productCatId = '123', productBuyPrice = '520.00', productSellAllPrice = '520.00', productSellUnitPrice = '520.00', productSellHalfPrice = '520.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02079',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '520',lastbuyprice_withDiscount = '468',meanbuyprice = '520',meanbuyprice_withDiscount = '468' , productbuypricereal = '520.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='520',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='520',meanbuyprice_withTax='520',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='468',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2079';
UPDATE buybilldetail SET  lastbuyprice = 520 , meanbuyprice = 520, lastbuyprice_withDiscount = 468, meanbuyprice_withDiscount = 468
        , lastbuyprice_withTax = 520, meanbuyprice_withTax = 520, lastbuyprice_withDiscountAndTax = 468
                where buybilldetailid = 1073;
UPDATE productunit SET proUnitBuyPrice  = 520 * productnumber WHERE productid = 2079;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3438';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2079', '1', '24', '0', '178', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 21:49:53','0','0'); -- id=11426
UPDATE supplier SET  suppliercurrentDebt = '106056',suppliercurrentDebtInCurrency= '106056' , userid = '1', supplierdate = '2026-10-14 21:51:10'   WHERE supplierid = '119';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('119', '74088.00', '31968', '0', 'اضافة فاتورة مشتريات', '178', '106056', '2026-10-14 21:49:53', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','31968','1','74088','31968','106056','0',''); -- id=526
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '31968', '31968', '2026-10-14', '1', '0', '0', '2026-10-14 21:51:10','اضافة فاتورة مشتريات رقم 178','1','0',null,'0','178','buyBillController.php?do=details&id=178'); -- id=2491
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2491', '382', '31968', '','0'); -- id=2547
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '24062154.11', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2491', '602', '31968', '','0'); -- id=2493
UPDATE accountstree SET name = 'ليزر 2', customName = 'ليزر 2', customNameEn = 'ليزر 2', nameEn = 'ليزر 2', parent = '81', accountNature = '1', theValue = '106056', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-08 10:40:45' WHERE id = '602';
update buybill set dailyentryid='2491,0' where buybillid=178;
COMMIT;
UPDATE product SET overAllAveragePrice = 432 WHERE productId = 1654;UPDATE product SET overAllAveragePrice = 468 WHERE productId = 2079;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:21:10";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:51:10", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:51:10', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=178'); -- id=9956
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:21:14";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:51:14", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:51:14', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=178&type=2'); -- id=9957
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:21:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:51:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 21:51:29', '1', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9958
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:23:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:53:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:53:26', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9959
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:23:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:53:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:53:29', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9960
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:23:41";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:53:41", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:53:41', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9961
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:23:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:53:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:53:50', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=9962
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:24:35";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:54:35", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:54:35', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9963
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:25:55";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:55:55", deviceType = "DESKTOP" WHERE userid = 4;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 21:55:55', '4', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9964
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:27:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:57:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:57:29', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9965
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('وايد ليج ابل','','43','330','330','330','330','2026-10-14','0','1','0','','0','0','0','0','0','330','330','330','330','330','0','0','0','0','.','0','0','0','330','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','330','330','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','330','0','0','0','0','0','0','','','0','0','0','0'); -- id=2080
UPDATE product SET productName = 'وايد ليج ابل', productDescription = '', productCatId = '43', productBuyPrice = '330', productSellAllPrice = '330', productSellUnitPrice = '330', productSellHalfPrice = '330', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02080',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '330',lastbuyprice_withDiscount = '330',meanbuyprice = '330',meanbuyprice_withDiscount = '330' , productbuypricereal = '330' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='330',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='330',meanbuyprice_withTax='330',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='330',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2080';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2080', '1', '2026-10-14', '1', '0','0208001','330','330','330','330','','0','0','0','0','0','0','0','0','0','0'); -- id=2080
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2080', '1', '0', '1', '2026-10-14'); -- id=3439
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2080', '1', '0', '0', '2080', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11427
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2080, 1,'2026-10-14 21:57:29',1)
                ON DUPLICATE KEY UPDATE productid = 2080, edited = 1, sysdate = '2026-10-14 21:57:29', userid = 1; -- id=3038
UPDATE product SET productName = 'وايد ليج ابل', productDescription = '', productCatId = '43', productBuyPrice = '330.00', productSellAllPrice = '330.00', productSellUnitPrice = '330.00', productSellHalfPrice = '330.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02080',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '330',lastbuyprice_withDiscount = '330',meanbuyprice = '330',meanbuyprice_withDiscount = '330' , productbuypricereal = '330' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='330',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='330',meanbuyprice_withTax='330',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='330',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2080';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('نص شريط ابل','','43','370','370','370','370','2026-10-14','0','1','0','','0','0','0','0','0','370','370','370','370','370','0','0','0','0','.','0','0','0','370','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','370','370','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','370','0','0','0','0','0','0','','','0','0','0','0'); -- id=2081
UPDATE product SET productName = 'نص شريط ابل', productDescription = '', productCatId = '43', productBuyPrice = '370', productSellAllPrice = '370', productSellUnitPrice = '370', productSellHalfPrice = '370', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02081',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2081';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2081', '1', '2026-10-14', '1', '0','0208101','370','370','370','370','','0','0','0','0','0','0','0','0','0','0'); -- id=2081
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2081', '1', '0', '1', '2026-10-14'); -- id=3440
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2081', '1', '0', '0', '2081', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11428
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2081, 1,'2026-10-14 21:57:29',1)
                ON DUPLICATE KEY UPDATE productid = 2081, edited = 1, sysdate = '2026-10-14 21:57:29', userid = 1; -- id=3039
UPDATE product SET productName = 'نص شريط ابل', productDescription = '', productCatId = '43', productBuyPrice = '370.00', productSellAllPrice = '370.00', productSellUnitPrice = '370.00', productSellHalfPrice = '370.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02081',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='370',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2081';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('قصات 340 ابل','','43','340','340','340','340','2026-10-14','0','1','0','','0','0','0','0','0','340','340','340','340','340','0','0','0','0','.','0','0','0','340','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','340','340','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','340','0','0','0','0','0','0','','','0','0','0','0'); -- id=2082
UPDATE product SET productName = 'قصات 340 ابل', productDescription = '', productCatId = '43', productBuyPrice = '340', productSellAllPrice = '340', productSellUnitPrice = '340', productSellHalfPrice = '340', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02082',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '340',lastbuyprice_withDiscount = '340',meanbuyprice = '340',meanbuyprice_withDiscount = '340' , productbuypricereal = '340' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='340',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='340',meanbuyprice_withTax='340',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='340',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2082';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2082', '1', '2026-10-14', '1', '0','0208201','340','340','340','340','','0','0','0','0','0','0','0','0','0','0'); -- id=2082
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2082', '1', '0', '1', '2026-10-14'); -- id=3441
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2082', '1', '0', '0', '2082', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11429
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2082, 1,'2026-10-14 21:57:29',1)
                ON DUPLICATE KEY UPDATE productid = 2082, edited = 1, sysdate = '2026-10-14 21:57:29', userid = 1; -- id=3040
UPDATE product SET productName = 'قصات 340 ابل', productDescription = '', productCatId = '43', productBuyPrice = '340.00', productSellAllPrice = '340.00', productSellUnitPrice = '340.00', productSellHalfPrice = '340.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02082',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '340',lastbuyprice_withDiscount = '340',meanbuyprice = '340',meanbuyprice_withDiscount = '340' , productbuypricereal = '340' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='340',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='340',meanbuyprice_withTax='340',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='340',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2082';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تطريز 350 ابل','','43','350','350','350','350','2026-10-14','0','1','0','','0','0','0','0','0','350','350','350','350','350','0','0','0','0','.','0','0','0','350','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','350','350','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','350','0','0','0','0','0','0','','','0','0','0','0'); -- id=2083
UPDATE product SET productName = 'تطريز 350 ابل', productDescription = '', productCatId = '43', productBuyPrice = '350', productSellAllPrice = '350', productSellUnitPrice = '350', productSellHalfPrice = '350', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02083',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '350',meanbuyprice = '350',meanbuyprice_withDiscount = '350' , productbuypricereal = '350' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='350',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2083';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2083', '1', '2026-10-14', '1', '0','0208301','350','350','350','350','','0','0','0','0','0','0','0','0','0','0'); -- id=2083
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2083', '1', '0', '1', '2026-10-14'); -- id=3442
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2083', '1', '0', '0', '2083', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11430
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2083, 1,'2026-10-14 21:57:29',1)
                ON DUPLICATE KEY UPDATE productid = 2083, edited = 1, sysdate = '2026-10-14 21:57:29', userid = 1; -- id=3041
UPDATE product SET productName = 'تطريز 350 ابل', productDescription = '', productCatId = '43', productBuyPrice = '350.00', productSellAllPrice = '350.00', productSellUnitPrice = '350.00', productSellHalfPrice = '350.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02083',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '350',meanbuyprice = '350',meanbuyprice_withDiscount = '350' , productbuypricereal = '350' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='350',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2083';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('تطريز 360 ابل','','43','360','360','360','360','2026-10-14','0','1','0','','0','0','0','0','0','360','360','360','360','360','0','0','0','0','.','0','0','0','360','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','360','360','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','360','0','0','0','0','0','0','','','0','0','0','0'); -- id=2084
UPDATE product SET productName = 'تطريز 360 ابل', productDescription = '', productCatId = '43', productBuyPrice = '360', productSellAllPrice = '360', productSellUnitPrice = '360', productSellHalfPrice = '360', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02084',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2084';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2084', '1', '2026-10-14', '1', '0','0208401','360','360','360','360','','0','0','0','0','0','0','0','0','0','0'); -- id=2084
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2084', '1', '0', '1', '2026-10-14'); -- id=3443
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2084', '1', '0', '0', '2084', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11431
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2084, 1,'2026-10-14 21:57:29',1)
                ON DUPLICATE KEY UPDATE productid = 2084, edited = 1, sysdate = '2026-10-14 21:57:29', userid = 1; -- id=3042
UPDATE product SET productName = 'تطريز 360 ابل', productDescription = '', productCatId = '43', productBuyPrice = '360.00', productSellAllPrice = '360.00', productSellUnitPrice = '360.00', productSellHalfPrice = '360.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02084',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 = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='360',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2084';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:27:31";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:57:31", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 21:57:31', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9966
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:27:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 21:57:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 21:57:39', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9967
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:30:44";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:00:44", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 22:00:44', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9968
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfd0a3720e8', '2026-10-14 21:57:39', '41', '45151.00', '105469', '10', '1', '67020.00',  '60318.00', '0', '60318', '1', '2026-10-14 22:00:44', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=179
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02080', '179', '43', '2080', '24', '330', '7920.00', '0', '', '2026-10-14 22:00:44', '2080','','','0','0','0','0','0',null,'330','7920','0','0','0','0','0','0','0','0','1'); -- id=1074
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:57:39', 1, 2080, 0, 0
                    , 297, 24, 0, 0, 1, '2026-10-14 22:00:44')
                ON DUPLICATE KEY UPDATE buyprice = 297,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 22:00:44' ; -- id=6125
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2080', '330', '24', '0', 'buyBillController.php', '1074', '', '0', '0'); -- id=827
UPDATE product SET  productBuyPrice = "330" WHERE productId = 2080 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1074 ;
UPDATE product SET productName = 'وايد ليج ابل', productDescription = '', productCatId = '43', productBuyPrice = '330.00', productSellAllPrice = '330.00', productSellUnitPrice = '330.00', productSellHalfPrice = '330.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02080',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '330',lastbuyprice_withDiscount = '297',meanbuyprice = '330',meanbuyprice_withDiscount = '297' , productbuypricereal = '330.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='330',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='330',meanbuyprice_withTax='330',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='297',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2080';
UPDATE buybilldetail SET  lastbuyprice = 330 , meanbuyprice = 330, lastbuyprice_withDiscount = 297, meanbuyprice_withDiscount = 297
        , lastbuyprice_withTax = 330, meanbuyprice_withTax = 330, lastbuyprice_withDiscountAndTax = 297
                where buybilldetailid = 1074;
UPDATE productunit SET proUnitBuyPrice  = 330 * productnumber WHERE productid = 2080;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3439';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2080', '1', '24', '0', '179', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 21:57:39','0','0'); -- id=11432
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02081', '179', '43', '2081', '24', '370', '8880.00', '0', '', '2026-10-14 22:00:44', '2081','','','0','0','0','0','0',null,'370','8880','0','0','0','0','0','0','0','0','1'); -- id=1075
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:57:39', 1, 2081, 0, 0
                    , 333, 24, 0, 0, 1, '2026-10-14 22:00:44')
                ON DUPLICATE KEY UPDATE buyprice = 333,
                        buyQuantity =buyQuantity+24, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 22:00:44' ; -- id=6126
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2081', '370', '24', '0', 'buyBillController.php', '1075', '', '0', '0'); -- id=828
UPDATE product SET  productBuyPrice = "370" WHERE productId = 2081 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1075 ;
UPDATE product SET productName = 'نص شريط ابل', productDescription = '', productCatId = '43', productBuyPrice = '370.00', productSellAllPrice = '370.00', productSellUnitPrice = '370.00', productSellHalfPrice = '370.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02081',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '370',lastbuyprice_withDiscount = '333',meanbuyprice = '370',meanbuyprice_withDiscount = '333' , productbuypricereal = '370.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='370',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='370',meanbuyprice_withTax='370',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='333',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2081';
UPDATE buybilldetail SET  lastbuyprice = 370 , meanbuyprice = 370, lastbuyprice_withDiscount = 333, meanbuyprice_withDiscount = 333
        , lastbuyprice_withTax = 370, meanbuyprice_withTax = 370, lastbuyprice_withDiscountAndTax = 333
                where buybilldetailid = 1075;
UPDATE productunit SET proUnitBuyPrice  = 370 * productnumber WHERE productid = 2081;
UPDATE storedetail SET  productquantity = '24', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3440';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2081', '1', '24', '0', '179', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '24', '1', '2026-10-14 21:57:39','0','0'); -- id=11433
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02082', '179', '43', '2082', '27', '340', '9180.00', '0', '', '2026-10-14 22:00:44', '2082','','','0','0','0','0','0',null,'340','9180','0','0','0','0','0','0','0','0','1'); -- id=1076
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:57:39', 1, 2082, 0, 0
                    , 306, 27, 0, 0, 1, '2026-10-14 22:00:44')
                ON DUPLICATE KEY UPDATE buyprice = 306,
                        buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 22:00:44' ; -- id=6127
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2082', '340', '27', '0', 'buyBillController.php', '1076', '', '0', '0'); -- id=829
UPDATE product SET  productBuyPrice = "340" WHERE productId = 2082 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1076 ;
UPDATE product SET productName = 'قصات 340 ابل', productDescription = '', productCatId = '43', productBuyPrice = '340.00', productSellAllPrice = '340.00', productSellUnitPrice = '340.00', productSellHalfPrice = '340.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02082',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '340',lastbuyprice_withDiscount = '306',meanbuyprice = '340',meanbuyprice_withDiscount = '306' , productbuypricereal = '340.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='340',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='340',meanbuyprice_withTax='340',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='306',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2082';
UPDATE buybilldetail SET  lastbuyprice = 340 , meanbuyprice = 340, lastbuyprice_withDiscount = 306, meanbuyprice_withDiscount = 306
        , lastbuyprice_withTax = 340, meanbuyprice_withTax = 340, lastbuyprice_withDiscountAndTax = 306
                where buybilldetailid = 1076;
UPDATE productunit SET proUnitBuyPrice  = 340 * productnumber WHERE productid = 2082;
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3441';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2082', '1', '27', '0', '179', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '27', '1', '2026-10-14 21:57:39','0','0'); -- id=11434
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02083', '179', '43', '2083', '27', '350', '9450.00', '0', '', '2026-10-14 22:00:44', '2083','','','0','0','0','0','0',null,'350','9450','0','0','0','0','0','0','0','0','1'); -- id=1077
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:57:39', 1, 2083, 0, 0
                    , 315, 27, 0, 0, 1, '2026-10-14 22:00:44')
                ON DUPLICATE KEY UPDATE buyprice = 315,
                        buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 22:00:44' ; -- id=6128
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2083', '350', '27', '0', 'buyBillController.php', '1077', '', '0', '0'); -- id=830
UPDATE product SET  productBuyPrice = "350" WHERE productId = 2083 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1077 ;
UPDATE product SET productName = 'تطريز 350 ابل', productDescription = '', productCatId = '43', productBuyPrice = '350.00', productSellAllPrice = '350.00', productSellUnitPrice = '350.00', productSellHalfPrice = '350.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02083',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '315',meanbuyprice = '350',meanbuyprice_withDiscount = '315' , productbuypricereal = '350.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='315',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2083';
UPDATE buybilldetail SET  lastbuyprice = 350 , meanbuyprice = 350, lastbuyprice_withDiscount = 315, meanbuyprice_withDiscount = 315
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 315
                where buybilldetailid = 1077;
UPDATE productunit SET proUnitBuyPrice  = 350 * productnumber WHERE productid = 2083;
UPDATE storedetail SET  productquantity = '27', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3442';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2083', '1', '27', '0', '179', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '27', '1', '2026-10-14 21:57:39','0','0'); -- id=11435
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02082', '179', '43', '2082', '27', '340', '9180.00', '0', '', '2026-10-14 22:00:44', '2082','','','0','0','0','0','0',null,'340','9180','0','0','0','0','0','0','0','0','1'); -- id=1078
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:57:39', 1, 2082, 0, 0
                    , 306, 27, 0, 0, 1, '2026-10-14 22:00:44')
                ON DUPLICATE KEY UPDATE buyprice = 306,
                        buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 22:00:44' ; -- id=6127
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2082', '340', '27', '0', 'buyBillController.php', '1078', '', '0', '0'); -- id=831
UPDATE product SET  productBuyPrice = "340" WHERE productId = 2082 ;
UPDATE buybilldetail SET  quantitybefore = 27 WHERE buybilldetailid = 1078 ;
UPDATE product SET productName = 'قصات 340 ابل', productDescription = '', productCatId = '43', productBuyPrice = '340.00', productSellAllPrice = '340.00', productSellUnitPrice = '340.00', productSellHalfPrice = '340.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02082',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '340',lastbuyprice_withDiscount = '306',meanbuyprice = '340',meanbuyprice_withDiscount = '306' , productbuypricereal = '340.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='340',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='340',meanbuyprice_withTax='340',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='306',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2082';
UPDATE buybilldetail SET  lastbuyprice = 340 , meanbuyprice = 340, lastbuyprice_withDiscount = 306, meanbuyprice_withDiscount = 306
        , lastbuyprice_withTax = 340, meanbuyprice_withTax = 340, lastbuyprice_withDiscountAndTax = 306
                where buybilldetailid = 1078;
UPDATE productunit SET proUnitBuyPrice  = 340 * productnumber WHERE productid = 2082;
UPDATE storedetail SET  productquantity = '54', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3441';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2082', '1', '27', '0', '179', 'اضافة فاتورة مشتريات', 'buyBillController.php', '27', '54', '1', '2026-10-14 21:57:39','0','0'); -- id=11436
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02083', '179', '43', '2083', '27', '350', '9450.00', '0', '', '2026-10-14 22:00:44', '2083','','','0','0','0','0','0',null,'350','9450','0','0','0','0','0','0','0','0','1'); -- id=1079
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:57:39', 1, 2083, 0, 0
                    , 315, 27, 0, 0, 1, '2026-10-14 22:00:44')
                ON DUPLICATE KEY UPDATE buyprice = 315,
                        buyQuantity =buyQuantity+27, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 22:00:44' ; -- id=6128
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2083', '350', '27', '0', 'buyBillController.php', '1079', '', '0', '0'); -- id=832
UPDATE product SET  productBuyPrice = "350" WHERE productId = 2083 ;
UPDATE buybilldetail SET  quantitybefore = 27 WHERE buybilldetailid = 1079 ;
UPDATE product SET productName = 'تطريز 350 ابل', productDescription = '', productCatId = '43', productBuyPrice = '350.00', productSellAllPrice = '350.00', productSellUnitPrice = '350.00', productSellHalfPrice = '350.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02083',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '350',lastbuyprice_withDiscount = '315',meanbuyprice = '350',meanbuyprice_withDiscount = '315' , productbuypricereal = '350.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='350',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='350',meanbuyprice_withTax='350',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='315',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2083';
UPDATE buybilldetail SET  lastbuyprice = 350 , meanbuyprice = 350, lastbuyprice_withDiscount = 315, meanbuyprice_withDiscount = 315
        , lastbuyprice_withTax = 350, meanbuyprice_withTax = 350, lastbuyprice_withDiscountAndTax = 315
                where buybilldetailid = 1079;
UPDATE productunit SET proUnitBuyPrice  = 350 * productnumber WHERE productid = 2083;
UPDATE storedetail SET  productquantity = '54', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3442';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2083', '1', '27', '0', '179', 'اضافة فاتورة مشتريات', 'buyBillController.php', '27', '54', '1', '2026-10-14 21:57:39','0','0'); -- id=11437
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02084', '179', '43', '2084', '36', '360', '12960.00', '0', '', '2026-10-14 22:00:44', '2084','','','0','0','0','0','0',null,'360','12960','0','0','0','0','0','0','0','0','1'); -- id=1080
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 21:57:39', 1, 2084, 0, 0
                    , 324, 36, 0, 0, 1, '2026-10-14 22:00:44')
                ON DUPLICATE KEY UPDATE buyprice = 324,
                        buyQuantity =buyQuantity+36, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 22:00:44' ; -- id=6131
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2084', '360', '36', '0', 'buyBillController.php', '1080', '', '0', '0'); -- id=833
UPDATE product SET  productBuyPrice = "360" WHERE productId = 2084 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1080 ;
UPDATE product SET productName = 'تطريز 360 ابل', productDescription = '', productCatId = '43', productBuyPrice = '360.00', productSellAllPrice = '360.00', productSellUnitPrice = '360.00', productSellHalfPrice = '360.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02084',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '360',lastbuyprice_withDiscount = '324',meanbuyprice = '360',meanbuyprice_withDiscount = '324' , productbuypricereal = '360.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='360',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='360',meanbuyprice_withTax='360',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='324',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2084';
UPDATE buybilldetail SET  lastbuyprice = 360 , meanbuyprice = 360, lastbuyprice_withDiscount = 324, meanbuyprice_withDiscount = 324
        , lastbuyprice_withTax = 360, meanbuyprice_withTax = 360, lastbuyprice_withDiscountAndTax = 324
                where buybilldetailid = 1080;
UPDATE productunit SET proUnitBuyPrice  = 360 * productnumber WHERE productid = 2084;
UPDATE storedetail SET  productquantity = '36', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3443';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2084', '1', '36', '0', '179', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '36', '1', '2026-10-14 21:57:39','0','0'); -- id=11438
UPDATE supplier SET  suppliercurrentDebt = '105469',suppliercurrentDebtInCurrency= '105469' , userid = '1', supplierdate = '2026-10-14 22:00:44'   WHERE supplierid = '41';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('41', '45151.00', '60318', '0', 'اضافة فاتورة مشتريات', '179', '105469', '2026-10-14 21:57:39', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','60318','1','45151','60318','105469','0',''); -- id=527
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '60318', '60318', '2026-10-14', '1', '0', '0', '2026-10-14 22:00:44','اضافة فاتورة مشتريات رقم 179','1','0',null,'0','179','buyBillController.php?do=details&id=179'); -- id=2492
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2492', '382', '60318', '','0'); -- id=2548
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '24122472.11', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2492', '460', '60318', '','0'); -- id=2494
UPDATE accountstree SET name = 'ابل - مورد', customName = 'ابل - مورد', customNameEn = 'ابل - مورد', nameEn = 'ابل - مورد', parent = '81', accountNature = '1', theValue = '57618', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-29 13:17:33' WHERE id = '460';
update buybill set dailyentryid='2492,0' where buybillid=179;
COMMIT;
UPDATE product SET overAllAveragePrice = 297 WHERE productId = 2080;UPDATE product SET overAllAveragePrice = 333 WHERE productId = 2081;UPDATE product SET overAllAveragePrice = 306 WHERE productId = 2082;UPDATE product SET overAllAveragePrice = 315 WHERE productId = 2083;UPDATE product SET overAllAveragePrice = 324 WHERE productId = 2084;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:30:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:00:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 22:00:45', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=179'); -- id=9969
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:30:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:00:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 22:00:49', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=179&type=2'); -- id=9970
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:32:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:02:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 22:02:57', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=179&type=2'); -- id=9971
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:33:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:03:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 22:03:09', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9972
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:33:26";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:03:26", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 22:03:26', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9973
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('بيزك','2026-10-14','','93', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=173
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (173, 1,'2026-10-14 22:03:26',1)
                ON DUPLICATE KEY UPDATE catid = 173, edited = 1, sysdate = '2026-10-14 22:03:26', userid = 1; -- id=185
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '173', '1', '2026-10-14', '1', '0'); -- id=78
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:33:27";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:03:27", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 22:03:27', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9974
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:33:29";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:03:29", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 22:03:29', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9975
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:33:32";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:03:32", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 22:03:32', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9976
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:36:46";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:06:46", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 22:06:46', '3', 'addAndRetuen', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addAndRetuen'); -- id=9977

-- ----------------------------------------------------------------------------------------------------
-- bill add start - with serial 06acfcd4676b7b
-- ----------------------------------------------------------------------------------------------------

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,qrerpid,qrerpids,autoSaveFlag,ereason,estatus,epdf,obgyBillType,billoperationid,datestarting,pricetype,currencyId,knownwayId,travelDriverId,travelBusId,travelPathId,travelTripId,travelTripTypeId,travelTripDateId,totalprodiscount,manage_ex,med_hallmark,pay_rec_no,pay_rec_val,decisionNo,decisionValue,sellToSupplier,supplierbuybillid,sellbilltypeclientid,shipfrom,shipto,paymethodshipping,whatShippingCost,clientaddress,tagids,obgyRefDoc,addressid,couponid,paymenttypeid,paymentdetails) VALUES ('2026-10-14 22:06:46', '06acfcd4676b7b', '1', '0.00', '0', '0', '1', '1500.00', '1500', '1500', '0', '1', '2026-10-14 22:06:46', '', '3', '0', 'نقدي', '2', '0', '3', '0', 'نقدي', '3' ,'0','','','','','-1','0','0','0','0','0','1500','0','','0','0','1500','0','0','0','0','0','0','0','0','','','','0','','0','','0','-1','2026-10-14','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','','','0','0','0',''); -- id=548
UPDATE client SET  clientdebt = '0', userid = '3' 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,userSelectedDate,paySerialNo,totalpayments,tagids,file) VALUES ('1','0.00','0','0','اضافة فاتورة مبيعات','548', '0', '2026-10-14 22:06:46', '3', 'sellbillController.php', 'اضافة فاتورة مبيعات', '1500', '0', null, '0', null, null,'', '0','1','1','0','1','2026-10-14 22:06:46','0','0','',''); -- id=696
UPDATE buypriceshistorybook set sellQuantity = sellQuantity+3 where id = 548;
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,proHeight,proWidth,lastbuyprice_withTax,meanbuyprice_withTax,sellbilldetailpriceC,sellbilldetailtotalpriceC,discountvalueC,proSellTrackingSerial,travelBrokerId,categorydiscount,lastbuyprice_withDiscountAndTax,prosellDiscountPer,prosellDiscountPerType,prosellDiscountVal) VALUES ('450','01646', '548', '122', '1646', '3', '500', '1500', '0', '', '0', '2026-10-14 22:06:46', '1646', '0.00', '-1', '1','0.00','','','0','0','0','0','0','0','0','0','','548-3,','1','1','0','0','500','1500','0','','0','0.00','0','0','0','0'); -- id=2036
UPDATE sellbilldetail SET  lastbuyprice = 500.00 , meanbuyprice = 500.00, lastbuyprice_withDiscount = 450.00, meanbuyprice_withDiscount = 450.00
        , lastbuyprice_withTax = 500, meanbuyprice_withTax = 500, lastbuyprice_withDiscountAndTax = 450
                where sellbilldetailid = 2036;
 INSERT INTO quickprofitproduct (productId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,netQuantity,netQuantityRet,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1646, '2026-10-14', 1500, 1500, 1500
                    , 1500, 1350, 1350, 1350
                    , 0, 0, 0, 0
                    , 0, 0, 0, 3, 0, 1500, 1500, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1500, sellCostBuyPrice =sellCostBuyPrice+1500
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1500, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1500
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1350, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1350
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1350
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1500
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1500
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0
                        , netQuantity = netQuantity+3
                        , netQuantityRet = netQuantityRet+0;
 INSERT INTO quickprofitstore (storeId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount, returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1500, 1500, 1500
                    , 1500, 1350, 1350, 1350
                    , 0, 0, 0, 0
                    , 0, 0, 0, 1500, 1500, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1500, sellCostBuyPrice =sellCostBuyPrice+1500
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1500, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1500
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1350, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1350
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1350
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1500
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1500
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
UPDATE storedetail SET  productquantity = '6', userid = '3', storedetaildate = '2026-10-14 22:06:46' WHERE storedetailid = '1671';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('1646', '1', '3', '1', '548', 'اضافة فاتورة مبيعات', 'sellbillController.php', '9', '6', '3', '2026-10-14 22:06:46','0','0'); -- id=11439
CALL saveInUse(2,@saveidis,@savecurrentvalueis,@currencyIdis,@treeIdis,@conversionFactoris);
UPDATE save SET  savecurrentvalue = '3931225',  userid = '3' WHERE saveid = '2';
UPDATE save SET  inUse = 0 where saveid = 2;
INSERT INTO savedaily (savedailysavebefore, savedailychangeamount, savedailychangetype, saveid, processname, savedailymodelid, savedailysaveafter, savedailydate, userid, tablename,clientid ,note,clientdebtchangeidfk) VALUES ('3929725','1500', '0', '2', 'اضافة فاتورة مبيعات', '548', '3931225', '2026-10-14 22:06:46', '3',  'sellbillController.php','1','','0'); -- id=690
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '1500', '1500', '2026-10-14', '3', '0', '0', '2026-10-14 22:06:46','اضافة فاتورة مبيعات رقم 548','1','0',null,'0','548','sellbillController.php?do=showDetail&sellbillid=548'); -- id=2493
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2493', '419', '1500', '','0'); -- id=2549
UPDATE accountstree SET name = 'خزنة كاشير ', customName = 'خزنة كاشير ', customNameEn = 'خزنة كاشير ', nameEn = 'خزنة كاشير ', parent = '40', accountNature = '0', theValue = '3931225', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-09-27 18:07:37' WHERE id = '419';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2493', '143', '1500', '','0'); -- id=2495
UPDATE accountstree SET name = 'ايرادات المبيعات ', customName = 'ايرادات المبيعات ', customNameEn = 'Revenue of Sales', nameEn = 'Revenue of Sales', parent = '142', accountNature = '1', theValue = '6183035', theOrder = '0', layingOrder = '410101', reportid = '2', listId = '2', notes = '', itemfrom = '0', itemtype = '2', itemtype2 = '0', itemtype3 = 'Income ', userid = '1', del = '0', sysdate = '2022-05-08 23:12:40' WHERE id = '143';
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '1350', '1350', '2026-10-14', '3', '0', '0', '2026-10-14 22:06:46','اضافة فاتورة مبيعات رقم 548 - صرف البضاعة من المخزن','1','0',null,'0','548','sellbillController.php?do=showDetail&sellbillid=548'); -- id=2494
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2494', '402', '1350', '','0'); -- id=2550
UPDATE accountstree SET name = 'تكلفة التشغيل', customName = 'تكلفة التشغيل', customNameEn = '', nameEn = '', parent = '160', accountNature = '0', theValue = '5770346.69', theOrder = '0', layingOrder = '530101', reportid = '2', listId = '2', notes = '', itemfrom = '1', itemtype = '5', itemtype2 = '0', itemtype3 = '', userid = '1', del = '0', sysdate = '2023-07-25 23:37:18' WHERE id = '402';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2494', '382', '1350', '','0'); -- id=2496
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '24121122.11', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
update sellbill set dailyentryid='2493,0,2494' where sellbillid=548;
 INSERT INTO quickprofitday (theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES ('2026-10-14', 1500, 1500, 1500
                    , 1500, 1350, 1350, 1350
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,1500, 1500, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1500, sellCostBuyPrice =sellCostBuyPrice+1500
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1500, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1500
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1350, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1350
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1350
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1500
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1500
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitclient (clientId, theDate, sellVal, sellCostBuyPrice, sellCostLastBuyPrice, sellCostMeanBuyPrice, sellCostLastBuyPricewithDiscount, sellCostMeanBuyPricewithDiscount, sellCostOverAllAveragePrice, returnSellVal, returnSellCostBuyPrice, returnSellCostLastBuyPrice, returnSellCostMeanBuyPrice, returnSellCostLastBuyPricewithDiscount, returnSellCostMeanBuyPricewithDiscount,returnSellCostOverAllAveragePrice,sellCostLastBuyPricewithTax,sellCostMeanBuyPricewithTax,returnSellCostLastBuyPricewithTax,returnSellCostMeanBuyPricewithTax)
                    VALUES (1, '2026-10-14', 1500, 1500, 1500
                    , 1500, 1350, 1350, 1350
                    , 0, 0, 0, 0
                    , 0, 0, 0 ,1500, 1500, 0, 0)
                ON DUPLICATE KEY UPDATE sellVal = sellVal+1500, sellCostBuyPrice =sellCostBuyPrice+1500
                        , sellCostLastBuyPrice = sellCostLastBuyPrice+1500, sellCostMeanBuyPrice = sellCostMeanBuyPrice+1500
                        , sellCostLastBuyPricewithDiscount = sellCostLastBuyPricewithDiscount+1350, sellCostMeanBuyPricewithDiscount = sellCostMeanBuyPricewithDiscount+1350
                            , sellCostOverAllAveragePrice = sellCostOverAllAveragePrice+1350
                            , sellCostLastBuyPricewithTax = sellCostLastBuyPricewithTax+1500
                            , sellCostMeanBuyPricewithTax = sellCostMeanBuyPricewithTax+1500
                        , returnSellVal = returnSellVal+0, returnSellCostBuyPrice = returnSellCostBuyPrice+0, returnSellCostLastBuyPrice = returnSellCostLastBuyPrice+0
                        , returnSellCostMeanBuyPrice = returnSellCostMeanBuyPrice+0, returnSellCostLastBuyPricewithDiscount = returnSellCostLastBuyPricewithDiscount+0
                        , returnSellCostMeanBuyPricewithDiscount = returnSellCostMeanBuyPricewithDiscount+0
                            , returnSellCostOverAllAveragePrice = returnSellCostOverAllAveragePrice+0
                            , returnSellCostLastBuyPricewithTax = returnSellCostLastBuyPricewithTax+0
                            , returnSellCostMeanBuyPricewithTax = returnSellCostMeanBuyPricewithTax+0;
 INSERT INTO quickprofitgeneral (id, netSellVal, netSellCostBuyPrice, netSellCostLastBuyPrice, netSellCostMeanBuyPrice, netSellCostLastBuyPricewithDiscount, netSellCostMeanBuyPricewithDiscount, netSellCostOverAllAveragePrice,netSellCostLastBuyPricewithTax,netSellCostMeanBuyPricewithTax)
                    VALUES (1, 1500, 1500, 1500
                    , 1500, 1350, 1350, 1350, 1500, 1500)
                ON DUPLICATE KEY UPDATE netSellVal = netSellVal+1500, netSellCostBuyPrice = netSellCostBuyPrice+1500
                , netSellCostLastBuyPrice = netSellCostLastBuyPrice+1500
                , netSellCostMeanBuyPrice = netSellCostMeanBuyPrice+1500
                , netSellCostLastBuyPricewithDiscount = netSellCostLastBuyPricewithDiscount+1350
                , netSellCostMeanBuyPricewithDiscount = netSellCostMeanBuyPricewithDiscount+1350
                , netSellCostOverAllAveragePrice = netSellCostOverAllAveragePrice+1350
                , netSellCostLastBuyPricewithTax = netSellCostLastBuyPricewithTax+1500
                , netSellCostMeanBuyPricewithTax = netSellCostMeanBuyPricewithTax+1500;
COMMIT;

-- ----------------------------------------------------------------------------------------------------
-- bill add end - with serial 06acfcd4676b7b and sellbillId = 548 and returnsellbillId = 
-- ----------------------------------------------------------------------------------------------------

UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:36:46";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:06:46", deviceType = "DESKTOP" WHERE userid = 3;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('sellbillController.php', '2026-10-14 22:06:46', '3', 'addsellBill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/sellbillController.php?do=addsellBill&billnameid=3'); -- id=9978
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:50:42";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:20:42", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 22:20:42', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9979
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:51:17";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:21:17", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 22:21:17', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9980
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('العمده','2026-10-14','','93', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','1','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=174
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (174, 1,'2026-10-14 22:21:17',1)
                ON DUPLICATE KEY UPDATE catid = 174, edited = 1, sysdate = '2026-10-14 22:21:17', userid = 1; -- id=186
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '174', '1', '2026-10-14', '1', '0'); -- id=79
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:51:18";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:21:18", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 22:21:18', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9981
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:51:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:21:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 22:21:22', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9982
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:51:22";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:21:22", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 22:21:22', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9983
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:52:49";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:22:49", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 22:22:49', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=9984
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 460 العمده','','174','460','460','460','460','2026-10-14','0','1','0','','0','0','0','0','0','460','460','460','460','460','0','0','0','0','.','0','0','0','460','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','460','460','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','460','0','0','0','0','0','0','','','0','0','0','0'); -- id=2085
UPDATE product SET productName = 'موديل 460 العمده', productDescription = '', productCatId = '174', productBuyPrice = '460', productSellAllPrice = '460', productSellUnitPrice = '460', productSellHalfPrice = '460', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02085',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2085';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2085', '1.00', '2026-10-14', '1', '0','0208501','460','460','460','460','','0','0','0','0','0','0','0','0','0','0'); -- id=2085
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2085', '1', '0', '1', '2026-10-14'); -- id=3444
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2085', '1', '0', '0', '2085', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11440
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2085, 1,'2026-10-14 22:22:49',1)
                ON DUPLICATE KEY UPDATE productid = 2085, edited = 1, sysdate = '2026-10-14 22:22:49', userid = 1; -- id=3043
UPDATE product SET productName = 'موديل 460 العمده', productDescription = '', productCatId = '174', productBuyPrice = '460.00', productSellAllPrice = '460.00', productSellUnitPrice = '460.00', productSellHalfPrice = '460.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02085',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '460',meanbuyprice = '460',meanbuyprice_withDiscount = '460' , productbuypricereal = '460' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='460',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2085';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('شروال 260 العمده','','174','260','260','260','260','2026-10-14','0','1','0','','0','0','0','0','0','260','260','260','260','260','0','0','0','0','.','0','0','0','260','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','260','260','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','260','0','0','0','0','0','0','','','0','0','0','0'); -- id=2086
UPDATE product SET productName = 'شروال 260 العمده', productDescription = '', productCatId = '174', productBuyPrice = '260', productSellAllPrice = '260', productSellUnitPrice = '260', productSellHalfPrice = '260', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02086',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '260',lastbuyprice_withDiscount = '260',meanbuyprice = '260',meanbuyprice_withDiscount = '260' , productbuypricereal = '260' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='260',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='260',meanbuyprice_withTax='260',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='260',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2086';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2086', '1.00', '2026-10-14', '1', '0','0208601','260','260','260','260','','0','0','0','0','0','0','0','0','0','0'); -- id=2086
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2086', '1', '0', '1', '2026-10-14'); -- id=3445
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2086', '1', '0', '0', '2086', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11441
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2086, 1,'2026-10-14 22:22:49',1)
                ON DUPLICATE KEY UPDATE productid = 2086, edited = 1, sysdate = '2026-10-14 22:22:49', userid = 1; -- id=3044
UPDATE product SET productName = 'شروال 260 العمده', productDescription = '', productCatId = '174', productBuyPrice = '260.00', productSellAllPrice = '260.00', productSellUnitPrice = '260.00', productSellHalfPrice = '260.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02086',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '260',lastbuyprice_withDiscount = '260',meanbuyprice = '260',meanbuyprice_withDiscount = '260' , productbuypricereal = '260' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='260',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='260',meanbuyprice_withTax='260',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='260',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2086';
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('موديل 430 العمده','','174','430','430','430','430','2026-10-14','0','1','0','','0','0','0','0','0','430','430','430','430','430','0','0','0','0','.','0','0','0','430','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','430','430','0','0','0','0','0','0','0','1','0','0','0','0','0','0','','430','0','0','0','0','0','0','','','0','0','0','0'); -- id=2087
UPDATE product SET productName = 'موديل 430 العمده', productDescription = '', productCatId = '174', productBuyPrice = '430', productSellAllPrice = '430', productSellUnitPrice = '430', productSellHalfPrice = '430', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02087',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',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='430',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2087';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2087', '1.00', '2026-10-14', '1', '0','0208701','430','430','430','430','','0','0','0','0','0','0','0','0','0','0'); -- id=2087
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2087', '1', '0', '1', '2026-10-14'); -- id=3446
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2087', '1', '0', '0', '2087', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11442
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2087, 1,'2026-10-14 22:22:49',1)
                ON DUPLICATE KEY UPDATE productid = 2087, edited = 1, sysdate = '2026-10-14 22:22:49', userid = 1; -- id=3045
UPDATE product SET productName = 'موديل 430 العمده', productDescription = '', productCatId = '174', productBuyPrice = '430.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02087',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',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='430',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2087';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:52:52";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:22:52", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 22:22:52', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9985
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:52:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:22:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 22:22:57', '1', 'bill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=bill&billnameid=1'); -- id=9986
INSERT INTO supplier (suppliername, supplieraddress, supplierphone, suppliercurrentDebt, supplierdetails, conditions, userid, supplierdate, dailyentryid, category_id, typesupplier_id,linkedClientId,inUse,suppliercode,goverareaid,namepayeecheck,suppliermobile,warrantyOfficer,warrantymobile,sellername,sellermobile,taxnumber,supplierTypeForTree,treeId,sullpierCurrencyid,suppliercurrentDebtInCurrency,webApiId,shippingDiscountPer) VALUES ('العمدة', '', '', '', '', '0', '1', '2026-10-14 22:23:12', '0', '', '','0','0','','','','','','','','','','0','0','1','0','0','0'); -- id=181
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('181', '0', '', '0', 'إضافة مورد جديد', '181', '', '2026-10-14 22:23:12', '1', 'supplierController.php', '', '0','', '0','1','1','0','1','0','0','0','0',''); -- id=528
INSERT INTO accountstree (name, customName, customNameEn, nameEn, parent, accountNature, theValue, theOrder, layingOrder, reportid, listId, notes, itemfrom, itemtype, itemtype2, itemtype3, userid, del, sysdate) VALUES ('العمدة', 'العمدة', 'العمدة', 'العمدة', '81', '1', '0', '0', '', '1', '1', '', '0', '1', '1', '', '1', '0', '2026-10-14 22:23:12'); -- id=664
UPDATE supplier SET suppliername = 'العمدة', supplieraddress = '', supplierphone = '', suppliercurrentDebt = '0.00', supplierdetails = '', conditions = '0', userid = '1', supplierdate = '2026-10-14', dailyentryid = '0', category_id = '', typesupplier_id = '',linkedClientId = '0',inUse='0',suppliercode = '',goverareaid='',namepayeecheck = '',suppliermobile='',warrantyOfficer = '',warrantymobile='',sellername = '',sellermobile='',taxnumber = '',supplierTypeForTree='0',treeId='664',sullpierCurrencyid='1',suppliercurrentDebtInCurrency='0',webApiId='0',shippingDiscountPer='0' WHERE supplierid = '181';
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:54:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:24:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 22:24:39', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=add'); -- id=9987
BEGIN;
INSERT INTO buybill (buybillSerial, buybilldate, buybillsupplierid, buybilltotaldeptbefor, buybilltotaldeptafter, buybilldiscount, buybilldiscountrype, buybilltotalbill, buybillaftertotalbill, buybilltotalpayed, buybillfinalbill, buybillstoreid, buybillsysdate,comment, userid, conditions, buybillclientname, buybillsaveid, buybilldirectpayment, billnameid,payedtax,costcenterid,dailyentryid,delbyuserid,currencyId,taxOfDiscountPer,taxOfDiscountVal,files,client,totalBuyDiscountVal,webApiId,buybilladdition,buybilladditiontrype,tagids) VALUES ('06acfd69131502', '2026-10-14 22:22:57', '181', '0.00', '168750', '10', '1', '187500.00',  '168750.00', '0', '168750', '1', '2026-10-14 22:24:39', '', '1', '0', '', '1','1','1','0.00','-1','0','0','1','0','0','.','0','0','0','0','0',''); -- id=180
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02085', '180', '174', '2085', '54', '460', '24840.00', '0', '', '2026-10-14 22:24:39', '2085','','','0','0','0','0','0',null,'460','24840','0','0','0','0','0','0','0','0','1'); -- id=1081
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 22:22:57', 1, 2085, 0, 0
                    , 414, 54, 0, 0, 1, '2026-10-14 22:24:39')
                ON DUPLICATE KEY UPDATE buyprice = 414,
                        buyQuantity =buyQuantity+54, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 22:24:39' ; -- id=6132
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2085', '460', '54', '0', 'buyBillController.php', '1081', '', '0', '0'); -- id=834
UPDATE product SET  productBuyPrice = "460" WHERE productId = 2085 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1081 ;
UPDATE product SET productName = 'موديل 460 العمده', productDescription = '', productCatId = '174', productBuyPrice = '460.00', productSellAllPrice = '460.00', productSellUnitPrice = '460.00', productSellHalfPrice = '460.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02085',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '414',meanbuyprice = '460',meanbuyprice_withDiscount = '414' , productbuypricereal = '460.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='414',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2085';
UPDATE buybilldetail SET  lastbuyprice = 460 , meanbuyprice = 460, lastbuyprice_withDiscount = 414, meanbuyprice_withDiscount = 414
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 414
                where buybilldetailid = 1081;
UPDATE productunit SET proUnitBuyPrice  = 460 * productnumber WHERE productid = 2085;
UPDATE storedetail SET  productquantity = '54', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3444';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2085', '1', '54', '0', '180', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '54', '1', '2026-10-14 22:22:57','0','0'); -- id=11443
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02085', '180', '174', '2085', '60', '460', '27600.00', '0', '', '2026-10-14 22:24:39', '2085','','','0','0','0','0','0',null,'460','27600','0','0','0','0','0','0','0','0','1'); -- id=1082
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 22:22:57', 1, 2085, 0, 0
                    , 414, 60, 0, 0, 1, '2026-10-14 22:24:39')
                ON DUPLICATE KEY UPDATE buyprice = 414,
                        buyQuantity =buyQuantity+60, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 22:24:39' ; -- id=6132
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2085', '460', '60', '0', 'buyBillController.php', '1082', '', '0', '0'); -- id=835
UPDATE product SET  productBuyPrice = "460" WHERE productId = 2085 ;
UPDATE buybilldetail SET  quantitybefore = 54 WHERE buybilldetailid = 1082 ;
UPDATE product SET productName = 'موديل 460 العمده', productDescription = '', productCatId = '174', productBuyPrice = '460.00', productSellAllPrice = '460.00', productSellUnitPrice = '460.00', productSellHalfPrice = '460.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02085',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '414',meanbuyprice = '460',meanbuyprice_withDiscount = '414' , productbuypricereal = '460.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='414',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2085';
UPDATE buybilldetail SET  lastbuyprice = 460 , meanbuyprice = 460, lastbuyprice_withDiscount = 414, meanbuyprice_withDiscount = 414
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 414
                where buybilldetailid = 1082;
UPDATE productunit SET proUnitBuyPrice  = 460 * productnumber WHERE productid = 2085;
UPDATE storedetail SET  productquantity = '114', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3444';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2085', '1', '60', '0', '180', 'اضافة فاتورة مشتريات', 'buyBillController.php', '54', '114', '1', '2026-10-14 22:22:57','0','0'); -- id=11444
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02085', '180', '174', '2085', '39', '460', '17940.00', '0', '', '2026-10-14 22:24:39', '2085','','','0','0','0','0','0',null,'460','17940','0','0','0','0','0','0','0','0','1'); -- id=1083
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 22:22:57', 1, 2085, 0, 0
                    , 414, 39, 0, 0, 1, '2026-10-14 22:24:39')
                ON DUPLICATE KEY UPDATE buyprice = 414,
                        buyQuantity =buyQuantity+39, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 22:24:39' ; -- id=6132
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2085', '460', '39', '0', 'buyBillController.php', '1083', '', '0', '0'); -- id=836
UPDATE product SET  productBuyPrice = "460" WHERE productId = 2085 ;
UPDATE buybilldetail SET  quantitybefore = 114 WHERE buybilldetailid = 1083 ;
UPDATE product SET productName = 'موديل 460 العمده', productDescription = '', productCatId = '174', productBuyPrice = '460.00', productSellAllPrice = '460.00', productSellUnitPrice = '460.00', productSellHalfPrice = '460.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02085',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '414',meanbuyprice = '460',meanbuyprice_withDiscount = '414' , productbuypricereal = '460.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='414',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2085';
UPDATE buybilldetail SET  lastbuyprice = 460 , meanbuyprice = 460, lastbuyprice_withDiscount = 414, meanbuyprice_withDiscount = 414
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 414
                where buybilldetailid = 1083;
UPDATE productunit SET proUnitBuyPrice  = 460 * productnumber WHERE productid = 2085;
UPDATE storedetail SET  productquantity = '153', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3444';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2085', '1', '39', '0', '180', 'اضافة فاتورة مشتريات', 'buyBillController.php', '114', '153', '1', '2026-10-14 22:22:57','0','0'); -- id=11445
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02085', '180', '174', '2085', '54', '460', '24840.00', '0', '', '2026-10-14 22:24:39', '2085','','','0','0','0','0','0',null,'460','24840','0','0','0','0','0','0','0','0','1'); -- id=1084
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 22:22:57', 1, 2085, 0, 0
                    , 414, 54, 0, 0, 1, '2026-10-14 22:24:39')
                ON DUPLICATE KEY UPDATE buyprice = 414,
                        buyQuantity =buyQuantity+54, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 22:24:39' ; -- id=6132
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2085', '460', '54', '0', 'buyBillController.php', '1084', '', '0', '0'); -- id=837
UPDATE product SET  productBuyPrice = "460" WHERE productId = 2085 ;
UPDATE buybilldetail SET  quantitybefore = 153 WHERE buybilldetailid = 1084 ;
UPDATE product SET productName = 'موديل 460 العمده', productDescription = '', productCatId = '174', productBuyPrice = '460.00', productSellAllPrice = '460.00', productSellUnitPrice = '460.00', productSellHalfPrice = '460.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02085',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '414',meanbuyprice = '460',meanbuyprice_withDiscount = '414' , productbuypricereal = '460.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='414',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2085';
UPDATE buybilldetail SET  lastbuyprice = 460 , meanbuyprice = 460, lastbuyprice_withDiscount = 414, meanbuyprice_withDiscount = 414
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 414
                where buybilldetailid = 1084;
UPDATE productunit SET proUnitBuyPrice  = 460 * productnumber WHERE productid = 2085;
UPDATE storedetail SET  productquantity = '207', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3444';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2085', '1', '54', '0', '180', 'اضافة فاتورة مشتريات', 'buyBillController.php', '153', '207', '1', '2026-10-14 22:22:57','0','0'); -- id=11446
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02085', '180', '174', '2085', '54', '460', '24840.00', '0', '', '2026-10-14 22:24:39', '2085','','','0','0','0','0','0',null,'460','24840','0','0','0','0','0','0','0','0','1'); -- id=1085
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 22:22:57', 1, 2085, 0, 0
                    , 414, 54, 0, 0, 1, '2026-10-14 22:24:39')
                ON DUPLICATE KEY UPDATE buyprice = 414,
                        buyQuantity =buyQuantity+54, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 22:24:39' ; -- id=6132
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2085', '460', '54', '0', 'buyBillController.php', '1085', '', '0', '0'); -- id=838
UPDATE product SET  productBuyPrice = "460" WHERE productId = 2085 ;
UPDATE buybilldetail SET  quantitybefore = 207 WHERE buybilldetailid = 1085 ;
UPDATE product SET productName = 'موديل 460 العمده', productDescription = '', productCatId = '174', productBuyPrice = '460.00', productSellAllPrice = '460.00', productSellUnitPrice = '460.00', productSellHalfPrice = '460.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02085',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '460',lastbuyprice_withDiscount = '414',meanbuyprice = '460',meanbuyprice_withDiscount = '414' , productbuypricereal = '460.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='460',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='460',meanbuyprice_withTax='460',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='414',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2085';
UPDATE buybilldetail SET  lastbuyprice = 460 , meanbuyprice = 460, lastbuyprice_withDiscount = 414, meanbuyprice_withDiscount = 414
        , lastbuyprice_withTax = 460, meanbuyprice_withTax = 460, lastbuyprice_withDiscountAndTax = 414
                where buybilldetailid = 1085;
UPDATE productunit SET proUnitBuyPrice  = 460 * productnumber WHERE productid = 2085;
UPDATE storedetail SET  productquantity = '261', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3444';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2085', '1', '54', '0', '180', 'اضافة فاتورة مشتريات', 'buyBillController.php', '207', '261', '1', '2026-10-14 22:22:57','0','0'); -- id=11447
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02086', '180', '174', '2086', '51', '260', '13260.00', '0', '', '2026-10-14 22:24:39', '2086','','','0','0','0','0','0',null,'260','13260','0','0','0','0','0','0','0','0','1'); -- id=1086
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 22:22:57', 1, 2086, 0, 0
                    , 234, 51, 0, 0, 1, '2026-10-14 22:24:39')
                ON DUPLICATE KEY UPDATE buyprice = 234,
                        buyQuantity =buyQuantity+51, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 22:24:39' ; -- id=6137
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2086', '260', '51', '0', 'buyBillController.php', '1086', '', '0', '0'); -- id=839
UPDATE product SET  productBuyPrice = "260" WHERE productId = 2086 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1086 ;
UPDATE product SET productName = 'شروال 260 العمده', productDescription = '', productCatId = '174', productBuyPrice = '260.00', productSellAllPrice = '260.00', productSellUnitPrice = '260.00', productSellHalfPrice = '260.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02086',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '260',lastbuyprice_withDiscount = '234',meanbuyprice = '260',meanbuyprice_withDiscount = '234' , productbuypricereal = '260.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='260',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='260',meanbuyprice_withTax='260',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='234',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2086';
UPDATE buybilldetail SET  lastbuyprice = 260 , meanbuyprice = 260, lastbuyprice_withDiscount = 234, meanbuyprice_withDiscount = 234
        , lastbuyprice_withTax = 260, meanbuyprice_withTax = 260, lastbuyprice_withDiscountAndTax = 234
                where buybilldetailid = 1086;
UPDATE productunit SET proUnitBuyPrice  = 260 * productnumber WHERE productid = 2086;
UPDATE storedetail SET  productquantity = '51', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3445';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2086', '1', '51', '0', '180', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '51', '1', '2026-10-14 22:22:57','0','0'); -- id=11448
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02087', '180', '174', '2087', '72', '430', '30960.00', '0', '', '2026-10-14 22:24:39', '2087','','','0','0','0','0','0',null,'430','30960','0','0','0','0','0','0','0','0','1'); -- id=1087
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 22:22:57', 1, 2087, 0, 0
                    , 387, 72, 0, 0, 1, '2026-10-14 22:24:39')
                ON DUPLICATE KEY UPDATE buyprice = 387,
                        buyQuantity =buyQuantity+72, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 22:24:39' ; -- id=6138
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2087', '430', '72', '0', 'buyBillController.php', '1087', '', '0', '0'); -- id=840
UPDATE product SET  productBuyPrice = "430" WHERE productId = 2087 ;
UPDATE buybilldetail SET  quantitybefore = 0 WHERE buybilldetailid = 1087 ;
UPDATE product SET productName = 'موديل 430 العمده', productDescription = '', productCatId = '174', productBuyPrice = '430.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02087',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '430',lastbuyprice_withDiscount = '387',meanbuyprice = '430',meanbuyprice_withDiscount = '387' , productbuypricereal = '430.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='387',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2087';
UPDATE buybilldetail SET  lastbuyprice = 430 , meanbuyprice = 430, lastbuyprice_withDiscount = 387, meanbuyprice_withDiscount = 387
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 387
                where buybilldetailid = 1087;
UPDATE productunit SET proUnitBuyPrice  = 430 * productnumber WHERE productid = 2087;
UPDATE storedetail SET  productquantity = '72', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3446';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2087', '1', '72', '0', '180', 'اضافة فاتورة مشتريات', 'buyBillController.php', '0', '72', '1', '2026-10-14 22:22:57','0','0'); -- id=11449
INSERT INTO buybilldetail (Parcode, buybillid, buybilldetailcatid, buybilldetailproductid, buybilldetailquantity, buybilldetailprice, buybilldetailtotalprice, discountvalue, note, buybilldetaildate, productunitid,lastbuyprice,meanbuyprice,lastbuyprice_withDiscount,meanbuyprice_withDiscount,otherdetailquantity,sizeid,colorid,quantitybefore, buybilldetailpriceC, buybilldetailtotalpriceC, discountvalueC,discounttype,rowtaxval,rowtaxper,lastbuyprice_withTax,meanbuyprice_withTax,probuyDiscountPer,lastbuyprice_withDiscountAndTax,storeid) VALUES ('02087', '180', '174', '2087', '54', '430', '23220.00', '0', '', '2026-10-14 22:24:39', '2087','','','0','0','0','0','0',null,'430','23220','0','0','0','0','0','0','0','0','1'); -- id=1088
INSERT INTO buypriceshistorybook (theDate, storeId, productid, sizeid, colorid, buyprice, buyQuantity, sellQuantity, del, userid, sysDate)
                    VALUES ('2026-10-14 22:22:57', 1, 2087, 0, 0
                    , 387, 54, 0, 0, 1, '2026-10-14 22:24:39')
                ON DUPLICATE KEY UPDATE buyprice = 387,
                        buyQuantity =buyQuantity+54, sellQuantity = sellQuantity+0,
                        del = 0,userid = 1,sysDate = '2026-10-14 22:24:39' ; -- id=6138
INSERT INTO entryproductspurchased (productid, price, productquantity, soldquantity, tablename, modelid, expirationDate, priority, del) VALUES ('2087', '430', '54', '0', 'buyBillController.php', '1088', '', '0', '0'); -- id=841
UPDATE product SET  productBuyPrice = "430" WHERE productId = 2087 ;
UPDATE buybilldetail SET  quantitybefore = 72 WHERE buybilldetailid = 1088 ;
UPDATE product SET productName = 'موديل 430 العمده', productDescription = '', productCatId = '174', productBuyPrice = '430.00', productSellAllPrice = '430.00', productSellUnitPrice = '430.00', productSellHalfPrice = '430.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02087',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '430',lastbuyprice_withDiscount = '387',meanbuyprice = '430',meanbuyprice_withDiscount = '387' , productbuypricereal = '430.00' , buypricereal_precentage = '0.00' , buytotal_precentage = '0.00' , buyhalf_precentage = '0.00' , buypart_precentage = '0.00',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='430',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '0',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='430',meanbuyprice_withTax='430',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='1',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='0',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='387',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2087';
UPDATE buybilldetail SET  lastbuyprice = 430 , meanbuyprice = 430, lastbuyprice_withDiscount = 387, meanbuyprice_withDiscount = 387
        , lastbuyprice_withTax = 430, meanbuyprice_withTax = 430, lastbuyprice_withDiscountAndTax = 387
                where buybilldetailid = 1088;
UPDATE productunit SET proUnitBuyPrice  = 430 * productnumber WHERE productid = 2087;
UPDATE storedetail SET  productquantity = '126', userid = '1', storedetaildate = '2026-10-14' WHERE storedetailid = '3446';
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2087', '1', '54', '0', '180', 'اضافة فاتورة مشتريات', 'buyBillController.php', '72', '126', '1', '2026-10-14 22:22:57','0','0'); -- id=11450
UPDATE supplier SET  suppliercurrentDebt = '168750',suppliercurrentDebtInCurrency= '168750' , userid = '1', supplierdate = '2026-10-14 22:24:39'   WHERE supplierid = '181';
INSERT INTO supplierdebtchange (supplierid, supplierdebtchangebefore, supplierdebtchangeamount, supplierdebtchangetype, processname, supplierdebtchangemodelid, supplierdebtchangeafter, supplierdebtchangedate, userid, tablename, comment, dailyentryid,saveid, costcenterid,currencyId,conversionFactor,payedInCurrency,saveConversionFactor,debtchangbeforeInSupplierCurrency,debtchangamountInSupplierCurrency,debtchangafterInSupplierCurrency,paySerialNo,tagids) VALUES ('181', '0.00', '168750', '0', 'اضافة فاتورة مشتريات', '180', '168750', '2026-10-14 22:22:57', '1', 'buyBillController.php', 'اضافة فاتورة مشتريات', '0','', '0','1','1','168750','1','0','168750','168750','0',''); -- id=529
INSERT INTO dailyentry (totalcreditor, totaldebtor, thedate, userid, `condition`, reverseofid, dDateTime,entryComment,fromFlag,related,branchid,isopeningentry,operationId,operationDetailLink) VALUES ( '168750', '168750', '2026-10-14', '1', '0', '0', '2026-10-14 22:24:39','اضافة فاتورة مشتريات رقم 180','1','0',null,'0','180','buyBillController.php?do=details&id=180'); -- id=2495
INSERT INTO dailyentrydebtor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2495', '382', '168750', '','0'); -- id=2551
UPDATE accountstree SET name = 'مخزن1', customName = 'المخزن الرئيسي', customNameEn = 'مخزن1', nameEn = 'مخزن1', parent = '49', accountNature = '0', theValue = '24289872.11', theOrder = '0', layingOrder = '120202', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '3', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2022-05-08 23:13:11' WHERE id = '382';
INSERT INTO dailyentrycreditor (dailyentryid, accountstreeid, value, dComment,costcenterid) VALUES ('2495', '664', '168750', '','0'); -- id=2497
UPDATE accountstree SET name = 'العمدة', customName = 'العمدة', customNameEn = 'العمدة', nameEn = 'العمدة', parent = '81', accountNature = '1', theValue = '168750', theOrder = '0', layingOrder = '', reportid = '1', listId = '1', notes = '', itemfrom = '0', itemtype = '1', itemtype2 = '1', itemtype3 = '', userid = '1', del = '0', sysdate = '2026-10-14 22:23:12' WHERE id = '664';
update buybill set dailyentryid='2495,0' where buybillid=180;
COMMIT;
UPDATE product SET overAllAveragePrice = 414 WHERE productId = 2085;UPDATE product SET overAllAveragePrice = 234 WHERE productId = 2086;UPDATE product SET overAllAveragePrice = 387 WHERE productId = 2087;;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:54:39";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:24:39", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 22:24:39', '1', 'editprint', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editprint&id=180'); -- id=9988
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:54:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:24:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 22:24:45', '1', 'showbarcodebuybill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcodebuybill&buybillid=180&type=2'); -- id=9989
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:57:56";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:27:56", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 22:27:56', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9990
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 18:57:56";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 22:27:56', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9991
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 18:58:03";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 22:28:03", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 22:28:03', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=9992
update user set blockedByLimits = 0;
INSERT IGNORE INTO relusergroupproperties (usergroupid, propertyid, propertyvalue, theorder)
                SELECT -1,propertyid , 0,0
                from properties; -- id=0
INSERT IGNORE INTO usergroupadmin (propertyid, isallowed)
                SELECT propertyid , propertydefault
                from properties; -- id=0
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 19:33:20";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 23:03:20", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 23:03:20', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=9993
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 19:33:20";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 23:03:20', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=9994
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 19:33:38";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 23:03:38", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 23:03:38', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php'); -- id=9995
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 19:34:08";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 23:04:08", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 23:04:08', '1', 'add2', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=add2'); -- id=9996
INSERT INTO productcat (productCatName, productCatDate, productCatDescription, productCatParent, userId, conditions, selldiscount, buydiscount, discounttype,isOptic , buytotal , buyhalf , buypart ,buypricereal,opticServices,logo,inMenu,stopNegativeSale,catExcelid,webApiId,obygyInvestigationCatId,price4,price5,price6,price7,price8,price9,price10,price11,price12,price13) VALUES ('احمد اللبان','2026-10-14','','90', '1','0', '0', '0', '-1', '0', '0', '0', '0','0','','.','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'); -- id=175
INSERT INTO onlinetempcategory (catid, edited, sysdate, userid)
                VALUES (175, 1,'2026-10-14 23:04:08',1)
                ON DUPLICATE KEY UPDATE catid = 175, edited = 1, sysdate = '2026-10-14 23:04:08', userid = 1; -- id=187
INSERT INTO productcatunit (unitid, productcatid, productnumber, productcatunitdate, userid, conditions) VALUES ('1', '175', '1', '2026-10-14', '1', '0'); -- id=80
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 19:34:09";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 23:04:09", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 23:04:09', '1', 'sucess', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=sucess'); -- id=9997
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 19:34:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 23:04:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productCatController.php', '2026-10-14 23:04:12', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productCatController.php?do=show'); -- id=9998
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 19:34:12";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 23:04:12", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 23:04:12', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=9999
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 19:34:48";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 23:04:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 23:04:48', '1', 'add', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=add'); -- id=10000
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,runquery,weightedDiscount,sortby,obygyInvestigationId,TypeOfBarcodeInTax,itemsymbol,barcodeInTax,productNameE,partNumber,vehicleType,company,weight,origin,hscode,power,ProductionDate,expiry,procode,lastbuyprice_withTax,meanbuyprice_withTax,price4,price5,price6,price7,price8,clientid,grantduration,onlinepro,minappearonline,selladdpercent,selldiscountpercent,buydiscountpercent,onlinecatid,sellpercenttype,searchfiltersid,lastbuyprice_withDiscountAndTax,price9,price10,price11,price12,price13,productCatIdOnline,tagids,productDescriptionE,discountType,discount,discountRatio,priceAfterDiscount) VALUES ('جاكيت مستورد 595','','175','595','595','595','595','2026-10-14','0','1','0','','0','0','0','0','0','595','595','595','595','595','0','0','0','0','.','0','0','0','595','0','','','0','0','0','','0','0','0','GS1','','','','0','0','0','0','','0','0','','0','','595','595','0','0','0','0','0','0','0','0','0','0','0','0','-1','0','','595','0','0','0','0','0','0','','','0','0','0','0'); -- id=2088
UPDATE product SET productName = 'جاكيت مستورد 595', productDescription = '', productCatId = '175', productBuyPrice = '595', productSellAllPrice = '595', productSellUnitPrice = '595', productSellHalfPrice = '595', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02088',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '595',lastbuyprice_withDiscount = '595',meanbuyprice = '595',meanbuyprice_withDiscount = '595' , productbuypricereal = '595' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='595',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='595',meanbuyprice_withTax='595',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='595',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2088';
INSERT INTO productunit (unitid, productid, productnumber, productunitdate, userid, conditions,proUnitParcode,proUnitSellAllPrice,proUnitSellHalfPrice,proUnitSellUnitPrice,proUnitBuyPrice,unitInTax,proUnitPrice4,proUnitPrice5,proUnitPrice6,proUnitPrice7,proUnitPrice8,proUnitPrice9,proUnitPrice10,proUnitPrice11,proUnitPrice12,proUnitPrice13) VALUES ('1', '2088', '1.00', '2026-10-14', '1', '0','0208801','595','595','595','595','','0','0','0','0','0','0','0','0','0','0'); -- id=2088
INSERT INTO storedetail (productid, storeid, productquantity, userid, storedetaildate) VALUES ('2088', '1', '0', '1', '2026-10-14'); -- id=3447
INSERT INTO storereport (productid, storeid, productquantity, storereporttype, storereportmodelid, processname, tablename, productbefore, productafter, userid, storereportdate,sizeid,colorid) VALUES ('2088', '1', '0', '0', '2088', 'إضافة منتج', 'productController.php', '0', '0', '1', '2026-10-14','0','0'); -- id=11451
INSERT INTO onlinetempproduct (productid, edited, sysdate, userid)
                VALUES (2088, 1,'2026-10-14 23:04:48',1)
                ON DUPLICATE KEY UPDATE productid = 2088, edited = 1, sysdate = '2026-10-14 23:04:48', userid = 1; -- id=3046
UPDATE product SET productName = 'جاكيت مستورد 595', productDescription = '', productCatId = '175', productBuyPrice = '595.00', productSellAllPrice = '595.00', productSellUnitPrice = '595.00', productSellHalfPrice = '595.00', productDate = '2026-10-14', conditions = '0', userId = '1', limitamount = '0', parcode = '02088',type ='0', expireDate = '0' , dailyentryId = '0',isService = '0',isOptic = '0',lastbuyprice = '595',lastbuyprice_withDiscount = '595',meanbuyprice = '595',meanbuyprice_withDiscount = '595' , productbuypricereal = '595' , buypricereal_precentage = '0' , buytotal_precentage = '0' , buyhalf_precentage = '0' , buypart_precentage = '0',logo = '.',inMenu='0', obygyDetectionId = '0',hasSizeAndColor = '0',overAllAveragePrice='595',logo1 = '',logo2 = '',logo3 = '',logo4 = '',logo5 = '',logo6 = '',logo7 = '',reviewType ='0' , online = '' , updatebyuser = '',webApiId='0',weightedDiscount='0',sortby='0',TypeOfBarcodeInTax='GS1',itemsymbol='',barcodeInTax='',productNameE='',partNumber='0',vehicleType='0',company='0',weight='0',origin='',hscode='0',power='0',ProductionDate='',expiry='0',procode='',lastbuyprice_withTax='595',meanbuyprice_withTax='595',price4='0',price5='0',price6='0',price7='0',price8='0',clientid='0',grantduration='0',onlinepro='0',minappearonline='0',selladdpercent='0',selldiscountpercent='0',buydiscountpercent='0',onlinecatid='-1',sellpercenttype='0',searchfiltersid='',lastbuyprice_withDiscountAndTax='595',price9='0',price10='0',price11='0',price12='0',price13='0',productCatIdOnline='0',tagids='',productDescriptionE='', discountType = '0', discount = '0', discountRatio = '0',priceAfterDiscount = '0' WHERE productId = '2088';
COMMIT;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 19:34:50";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 23:04:50", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 23:04:50', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php'); -- id=10001
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 19:35:23";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 23:05:23", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 23:05:23', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=show'); -- id=10002
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 19:35:25";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 23:05:25", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 23:05:25', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=10003
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 19:36:48";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 23:06:48", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 23:06:48', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=10004
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 19:39:45";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 23:09:45", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 23:09:45', '1', 'show', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=show'); -- id=10005
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 19:40:04";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 23:10:04", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('buyBillController.php', '2026-10-14 23:10:04', '1', 'editbill', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/buyBillController.php?do=editbill&id=180'); -- id=10006
update user set blockedByLimits = 0;
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 19:41:57";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 23:11:57", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('index.php', '2026-10-14 23:11:57', '1', '', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/index.php'); -- id=10007
UPDATE product SET lastbuyprice=productBuyPrice,lastbuyprice_withDiscount=productBuyPrice,meanbuyprice=productBuyPrice,meanbuyprice_withDiscount=productBuyPrice where lastbuyprice is null;
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 < "2026-10-14 19:41:57";
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('playStationCardController.php', '2026-10-14 23:11:57', '1', 'handleExpiredCards', '51.89.20.165', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/playStationCardController.php?do=handleExpiredCards'); -- id=10008
UPDATE user SET loginip = "" WHERE lastactivetime < "2026-10-14 19:42:00";
UPDATE user SET loginip = "156.196.18.158", lastactivetime = "2026-10-14 23:12:00", deviceType = "DESKTOP" WHERE userid = 1;
INSERT INTO movementmanage (operationname, movementmanagedate, userid, currentDo, ip, mac, deviceType,completeURL) VALUES ('productController.php', '2026-10-14 23:12:00', '1', 'showbarcode', '156.196.18.158', '', 'DESKTOP','https://elaraby.gt4it.com/erp/controllers/productController.php?do=showbarcode'); -- id=10009
